Compare commits
1 Commits
v0.5.0
...
8741bad85a
Author | SHA1 | Date | |
---|---|---|---|
8741bad85a |
@@ -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
|
||||
|
@@ -3,15 +3,6 @@
|
||||
"extends": [
|
||||
"config:base"
|
||||
],
|
||||
"baseBranches": [
|
||||
"dev"
|
||||
],
|
||||
"pip_requirements": {
|
||||
"fileMatch": [
|
||||
"requirements/.*\\.txt$"
|
||||
],
|
||||
"enabled": true
|
||||
},
|
||||
"packageRules": [
|
||||
{
|
||||
"matchUpdateTypes": [
|
||||
|
@@ -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
|
||||
|
@@ -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"]
|
||||
|
@@ -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
|
||||
|
@@ -1,2 +1,2 @@
|
||||
build==1.2.2.post1
|
||||
twine~=6.1.0
|
||||
twine~=5.1.1
|
||||
|
@@ -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"
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user