1 Commits

Author SHA1 Message Date
8741bad85a Update dependency tox to v4.23.1
Some checks failed
Tests / test (3.10) (pull_request) Successful in -1m17s
Tests / test (3.11) (pull_request) Failing after -1m14s
Tests / test (3.12) (pull_request) Failing after -1m10s
Tests / test (3.8) (pull_request) Successful in 4m18s
Tests / test (3.9) (pull_request) Failing after -1m17s
2024-10-22 08:50:54 +03:00
9 changed files with 19 additions and 28 deletions

View File

@@ -15,7 +15,7 @@ jobs:
container: catthehacker/ubuntu:act-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3

View File

@@ -3,15 +3,6 @@
"extends": [
"config:base"
],
"baseBranches": [
"dev"
],
"pip_requirements": {
"fileMatch": [
"requirements/.*\\.txt$"
],
"enabled": true
},
"packageRules": [
{
"matchUpdateTypes": [

View File

@@ -10,7 +10,7 @@ Small module that makes your journey with RMV REST API somehow easier. Based ful
## Requirements
* RMV API key (Get it [here](https://opendata.rmv.de/site/start.html))
* Python 3.9+
* Python 3.8+
* git (Only for installation from source)
## Installation

View File

@@ -9,7 +9,7 @@ authors = [{ name = "Profitroll", email = "profitroll@end-play.xyz" }]
maintainers = [{ name = "Profitroll", email = "profitroll@end-play.xyz" }]
description = "Small module that makes your journey with RMV REST API somehow easier."
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.8"
license = { text = "MIT" }
classifiers = [
"Development Status :: 3 - Alpha",
@@ -17,6 +17,7 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
@@ -45,7 +46,7 @@ speed = { file = "requirements/speed.txt" }
where = ["src"]
[tool.black]
target-version = ['py39', 'py310', 'py311', 'py312']
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
line-length = 94
[tool.isort]
@@ -65,7 +66,7 @@ show_error_codes = true
[tool.pylint.main]
extension-pkg-whitelist = ["ujson"]
py-version = 3.9
py-version = 3.8
[tool.coverage.run]
source = ["pyrmv"]

View File

@@ -1,10 +1,10 @@
black~=25.1.0
black~=24.8.0
isort==5.13.2
mypy~=1.15.0
pylint==3.3.7,<3.4.0
pytest-cov~=6.1.0
mypy~=1.12.0
pylint==3.2.7,<3.3.0
pytest-cov~=5.0.0
pytest~=8.3.2
tox==4.25.0
tox==4.23.1
types-ujson~=5.10.0.20240515
# Disabled async libraries for now

View File

@@ -1,2 +1,2 @@
build==1.2.2.post1
twine~=6.1.0
twine~=5.1.1

View File

@@ -21,7 +21,7 @@ trip = client.trip_find(origin_id=origin.id, dest_id=destination.id)
"""
__name__ = "pyrmv"
__version__ = "0.5.0"
__version__ = "0.4.0"
__license__ = "MIT License"
__author__ = "Profitroll"

View File

@@ -81,10 +81,8 @@ class Message:
f"{data['validToDate']} {data['validToTime']}", "%Y-%m-%d %H:%M:%S"
)
)
self.date_start_alt: Union[str, None] = (
None if "altStart" not in data else data["altStart"]
)
self.date_end_alt: Union[str, None] = None if "altEnd" not in data else data["altEnd"]
self.date_start_alt: str = data["altStart"]
self.date_end_alt: str = data["altEnd"]
self.time_modified: Union[datetime, None] = (
None
if "modDate" not in data or "modTime" not in data

View File

@@ -1,10 +1,11 @@
[tox]
minversion = 3.9.0
envlist = py39, py310, py311, py312
minversion = 3.8.0
envlist = py38, py39, py310, py311, py312
isolated_build = true
[gh-actions]
python =
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311