Compare commits
1 Commits
master
...
8741bad85a
Author | SHA1 | Date | |
---|---|---|---|
8741bad85a |
@@ -15,7 +15,7 @@ jobs:
|
|||||||
container: catthehacker/ubuntu:act-latest
|
container: catthehacker/ubuntu:act-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.9", "3.10", "3.11", "3.12"]
|
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@@ -3,15 +3,6 @@
|
|||||||
"extends": [
|
"extends": [
|
||||||
"config:base"
|
"config:base"
|
||||||
],
|
],
|
||||||
"baseBranches": [
|
|
||||||
"dev"
|
|
||||||
],
|
|
||||||
"pip_requirements": {
|
|
||||||
"fileMatch": [
|
|
||||||
"requirements/.*\\.txt$"
|
|
||||||
],
|
|
||||||
"enabled": true
|
|
||||||
},
|
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"matchUpdateTypes": [
|
"matchUpdateTypes": [
|
||||||
|
@@ -10,7 +10,7 @@ Small module that makes your journey with RMV REST API somehow easier. Based ful
|
|||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* RMV API key (Get it [here](https://opendata.rmv.de/site/start.html))
|
* 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)
|
* git (Only for installation from source)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
@@ -9,7 +9,7 @@ authors = [{ name = "Profitroll", email = "profitroll@end-play.xyz" }]
|
|||||||
maintainers = [{ 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."
|
description = "Small module that makes your journey with RMV REST API somehow easier."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.8"
|
||||||
license = { text = "MIT" }
|
license = { text = "MIT" }
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Development Status :: 3 - Alpha",
|
"Development Status :: 3 - Alpha",
|
||||||
@@ -17,6 +17,7 @@ classifiers = [
|
|||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
|
"Programming Language :: Python :: 3.8",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
@@ -45,7 +46,7 @@ speed = { file = "requirements/speed.txt" }
|
|||||||
where = ["src"]
|
where = ["src"]
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
target-version = ['py39', 'py310', 'py311', 'py312']
|
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
|
||||||
line-length = 94
|
line-length = 94
|
||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
@@ -65,7 +66,7 @@ show_error_codes = true
|
|||||||
|
|
||||||
[tool.pylint.main]
|
[tool.pylint.main]
|
||||||
extension-pkg-whitelist = ["ujson"]
|
extension-pkg-whitelist = ["ujson"]
|
||||||
py-version = 3.9
|
py-version = 3.8
|
||||||
|
|
||||||
[tool.coverage.run]
|
[tool.coverage.run]
|
||||||
source = ["pyrmv"]
|
source = ["pyrmv"]
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
black~=25.1.0
|
black~=24.8.0
|
||||||
isort==5.13.2
|
isort==5.13.2
|
||||||
mypy~=1.15.0
|
mypy~=1.12.0
|
||||||
pylint==3.3.7,<3.4.0
|
pylint==3.2.7,<3.3.0
|
||||||
pytest-cov~=6.1.0
|
pytest-cov~=5.0.0
|
||||||
pytest~=8.3.2
|
pytest~=8.3.2
|
||||||
tox==4.25.0
|
tox==4.23.1
|
||||||
types-ujson~=5.10.0.20240515
|
types-ujson~=5.10.0.20240515
|
||||||
|
|
||||||
# Disabled async libraries for now
|
# Disabled async libraries for now
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
build==1.2.2.post1
|
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"
|
__name__ = "pyrmv"
|
||||||
__version__ = "0.5.0"
|
__version__ = "0.4.0"
|
||||||
__license__ = "MIT License"
|
__license__ = "MIT License"
|
||||||
__author__ = "Profitroll"
|
__author__ = "Profitroll"
|
||||||
|
|
||||||
|
@@ -81,10 +81,8 @@ class Message:
|
|||||||
f"{data['validToDate']} {data['validToTime']}", "%Y-%m-%d %H:%M:%S"
|
f"{data['validToDate']} {data['validToTime']}", "%Y-%m-%d %H:%M:%S"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
self.date_start_alt: Union[str, None] = (
|
self.date_start_alt: str = data["altStart"]
|
||||||
None if "altStart" not in data else data["altStart"]
|
self.date_end_alt: str = data["altEnd"]
|
||||||
)
|
|
||||||
self.date_end_alt: Union[str, None] = None if "altEnd" not in data else data["altEnd"]
|
|
||||||
self.time_modified: Union[datetime, None] = (
|
self.time_modified: Union[datetime, None] = (
|
||||||
None
|
None
|
||||||
if "modDate" not in data or "modTime" not in data
|
if "modDate" not in data or "modTime" not in data
|
||||||
|
5
tox.ini
5
tox.ini
@@ -1,10 +1,11 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 3.9.0
|
minversion = 3.8.0
|
||||||
envlist = py39, py310, py311, py312
|
envlist = py38, py39, py310, py311, py312
|
||||||
isolated_build = true
|
isolated_build = true
|
||||||
|
|
||||||
[gh-actions]
|
[gh-actions]
|
||||||
python =
|
python =
|
||||||
|
3.8: py38
|
||||||
3.9: py39
|
3.9: py39
|
||||||
3.10: py310
|
3.10: py310
|
||||||
3.11: py311
|
3.11: py311
|
||||||
|
Reference in New Issue
Block a user