32 Commits

Author SHA1 Message Date
5082b803a0 Merge pull request 'v0.5.0' (#87) from dev into master
Reviewed-on: #87
2025-05-05 01:06:48 +03:00
01d6831de0 Upgrade to version to 0.5.0
All checks were successful
Tests / test (3.10) (push) Successful in 30s
Tests / test (3.11) (push) Successful in 26s
Tests / test (3.12) (push) Successful in 34s
Tests / test (3.9) (push) Successful in 27s
Tests / test (3.10) (pull_request) Successful in 27s
Tests / test (3.11) (pull_request) Successful in 29s
Tests / test (3.12) (pull_request) Successful in 35s
Tests / test (3.9) (pull_request) Successful in 27s
2025-05-05 00:05:16 +02:00
00a772cb6a Update dependency pylint to ==3.3.7,<3.4.0
All checks were successful
Tests / test (3.10) (pull_request) Successful in 28s
Tests / test (3.11) (pull_request) Successful in 27s
Tests / test (3.12) (pull_request) Successful in 35s
Tests / test (3.9) (pull_request) Successful in 30s
Tests / test (3.10) (push) Successful in 27s
Tests / test (3.11) (push) Successful in 26s
Tests / test (3.12) (push) Successful in 31s
Tests / test (3.9) (push) Successful in 25s
2025-05-05 00:27:59 +03:00
6ade6f7554 Fixed altStart and altEnd not being provided causing KeyError
All checks were successful
Tests / test (3.10) (push) Successful in 29s
Tests / test (3.11) (push) Successful in 28s
Tests / test (3.12) (push) Successful in 37s
Tests / test (3.9) (push) Successful in 27s
2025-05-04 23:26:12 +02:00
c17a9d4206 Update dependency pytest-cov to ~=6.1.0
All checks were successful
Tests / test (3.10) (pull_request) Successful in 37s
Tests / test (3.11) (pull_request) Successful in 36s
Tests / test (3.12) (pull_request) Successful in 44s
Tests / test (3.9) (pull_request) Successful in 36s
Tests / test (3.10) (push) Successful in 45s
Tests / test (3.11) (push) Successful in 36s
Tests / test (3.12) (push) Successful in 44s
Tests / test (3.9) (push) Successful in 37s
2025-04-01 14:38:49 +03:00
389582255f Merge pull request 'Update dependency tox to v4.25.0' (#84) from renovate/tox-4.x into dev
All checks were successful
Tests / test (3.10) (push) Successful in 40s
Tests / test (3.11) (push) Successful in 38s
Tests / test (3.12) (push) Successful in 48s
Tests / test (3.9) (push) Successful in 42s
Reviewed-on: #84
2025-03-27 17:57:54 +02:00
89bfea3f8b Update dependency tox to v4.25.0
All checks were successful
Tests / test (3.10) (pull_request) Successful in 43s
Tests / test (3.11) (pull_request) Successful in 41s
Tests / test (3.12) (pull_request) Successful in 48s
Tests / test (3.9) (pull_request) Successful in 39s
2025-03-27 17:30:59 +02:00
668f05f7f2 Merge pull request 'Update dependency pylint to ==3.3.6,<3.4.0' (#83) from renovate/pylint-3.x into dev
All checks were successful
Tests / test (3.10) (push) Successful in 44s
Tests / test (3.11) (push) Successful in 40s
Tests / test (3.9) (push) Successful in 40s
Tests / test (3.12) (push) Successful in 48s
Reviewed-on: #83
2025-03-20 15:11:56 +02:00
c6d7e8733a Update dependency pylint to ==3.3.6,<3.4.0
All checks were successful
Tests / test (3.10) (pull_request) Successful in 42s
Tests / test (3.12) (pull_request) Successful in 53s
Tests / test (3.9) (pull_request) Successful in 41s
Tests / test (3.11) (pull_request) Successful in 40s
2025-03-20 13:41:06 +02:00
2fcd2eae52 Update dependency pylint to ==3.3.5,<3.4.0
Some checks failed
Tests / test (3.10) (pull_request) Successful in 45s
Tests / test (3.11) (pull_request) Successful in 44s
Tests / test (3.12) (pull_request) Successful in 50s
Tests / test (3.9) (pull_request) Failing after 45s
Tests / test (3.10) (push) Successful in 44s
Tests / test (3.11) (push) Successful in 43s
Tests / test (3.12) (push) Failing after 51s
Tests / test (3.9) (push) Failing after 44s
2025-03-09 09:35:12 +02:00
500d24016d Update dependency tox to v4.24.2
Some checks failed
Tests / test (3.10) (pull_request) Successful in 1m34s
Tests / test (3.11) (pull_request) Successful in 53s
Tests / test (3.12) (pull_request) Failing after 55s
Tests / test (3.9) (pull_request) Successful in 49s
Tests / test (3.10) (push) Successful in 47s
Tests / test (3.11) (push) Successful in 45s
Tests / test (3.12) (push) Successful in 53s
Tests / test (3.9) (push) Successful in 47s
2025-03-07 20:38:27 +02:00
7f1a330436 Update dependency mypy to ~=1.15.0
Some checks failed
Tests / test (3.10) (pull_request) Successful in 56s
Tests / test (3.11) (pull_request) Successful in 54s
Tests / test (3.12) (pull_request) Successful in 1m0s
Tests / test (3.9) (pull_request) Successful in 54s
Tests / test (3.10) (push) Failing after 55s
Tests / test (3.11) (push) Successful in 54s
Tests / test (3.12) (push) Successful in 1m1s
Tests / test (3.9) (push) Successful in 55s
2025-02-05 06:31:20 +02:00
a529184352 Update dependency black to v25
Some checks failed
Tests / test (3.10) (pull_request) Successful in 59s
Tests / test (3.11) (pull_request) Failing after 57s
Tests / test (3.12) (pull_request) Failing after 1m3s
Tests / test (3.9) (pull_request) Failing after 58s
Tests / test (3.10) (push) Failing after 58s
Tests / test (3.11) (push) Successful in 56s
Tests / test (3.12) (push) Failing after 1m3s
Tests / test (3.9) (push) Successful in 58s
2025-01-29 06:30:09 +02:00
c43a0223fa Update dependency pylint to ==3.3.4,<3.4.0
Some checks failed
Tests / test (3.10) (pull_request) Successful in 1m0s
Tests / test (3.11) (pull_request) Successful in 1m0s
Tests / test (3.12) (pull_request) Successful in 1m12s
Tests / test (3.9) (pull_request) Successful in 1m1s
Tests / test (3.10) (push) Failing after 1m0s
Tests / test (3.11) (push) Successful in 59s
Tests / test (3.12) (push) Failing after 1m9s
Tests / test (3.9) (push) Successful in 1m0s
2025-01-28 15:50:59 +02:00
37087787ee Merge pull request 'Update dependency twine to ~=6.1.0' (#76) from renovate/twine-6.x into dev
Some checks failed
Tests / test (3.10) (push) Successful in 1m29s
Tests / test (3.11) (push) Successful in 1m23s
Tests / test (3.12) (push) Successful in 1m37s
Tests / test (3.9) (push) Failing after 10m46s
Reviewed-on: #76
2025-01-21 22:03:21 +02:00
2ac646e7c0 Update dependency twine to ~=6.1.0
Some checks failed
Tests / test (3.10) (pull_request) Successful in 1m24s
Tests / test (3.11) (pull_request) Successful in 1m26s
Tests / test (3.12) (pull_request) Failing after 1m30s
Tests / test (3.9) (pull_request) Successful in 1m24s
2025-01-21 21:37:44 +02:00
a03a55e716 Update dependency tox to v4.24.1
Some checks failed
Tests / test (3.10) (pull_request) Successful in 1m25s
Tests / test (3.11) (pull_request) Successful in 1m24s
Tests / test (3.12) (pull_request) Successful in 1m30s
Tests / test (3.9) (pull_request) Successful in 1m23s
Tests / test (3.10) (push) Failing after 1m27s
Tests / test (3.11) (push) Failing after 1m24s
Tests / test (3.12) (push) Successful in 1m32s
Tests / test (3.9) (push) Failing after 1m25s
2025-01-21 21:37:40 +02:00
baad9bb83c Merge pull request 'Update dependency tox to v4.24.0' (#74) from renovate/tox-4.x into dev
All checks were successful
Tests / test (3.12) (push) Successful in 1m33s
Tests / test (3.9) (push) Successful in 1m27s
Tests / test (3.10) (push) Successful in 1m26s
Tests / test (3.11) (push) Successful in 1m27s
Reviewed-on: #74
2025-01-21 21:01:38 +02:00
f981deea66 Update dependency tox to v4.24.0
All checks were successful
Tests / test (3.11) (pull_request) Successful in 1m25s
Tests / test (3.12) (pull_request) Successful in 1m31s
Tests / test (3.9) (pull_request) Successful in 1m25s
Tests / test (3.10) (pull_request) Successful in 1m29s
2025-01-21 20:33:18 +02:00
8e4fec6be3 Update dependency pylint to ==3.3.3,<3.4.0
Some checks failed
Tests / test (3.10) (pull_request) Successful in 3m9s
Tests / test (3.11) (pull_request) Successful in 3m8s
Tests / test (3.12) (pull_request) Successful in 3m14s
Tests / test (3.9) (pull_request) Successful in 3m6s
Tests / test (3.10) (push) Successful in 3m7s
Tests / test (3.11) (push) Successful in 3m7s
Tests / test (3.12) (push) Successful in 3m14s
Tests / test (3.9) (push) Failing after 3m7s
2024-12-24 05:27:50 +02:00
393e120069 Update dependency mypy to ~=1.14.0
All checks were successful
Tests / test (3.10) (pull_request) Successful in 3m11s
Tests / test (3.11) (pull_request) Successful in 3m9s
Tests / test (3.9) (pull_request) Successful in 3m9s
Tests / test (3.12) (pull_request) Successful in 3m16s
Tests / test (3.10) (push) Successful in 3m13s
Tests / test (3.11) (push) Successful in 3m5s
Tests / test (3.12) (push) Successful in 3m15s
Tests / test (3.9) (push) Successful in 3m7s
2024-12-20 17:48:21 +02:00
7aec10eb58 Update dependency pylint to ==3.3.2,<3.4.0
Some checks failed
Tests / test (3.10) (pull_request) Successful in 3m41s
Tests / test (3.11) (pull_request) Successful in 3m14s
Tests / test (3.12) (pull_request) Successful in 3m20s
Tests / test (3.9) (pull_request) Successful in 3m14s
Tests / test (3.10) (push) Successful in 3m15s
Tests / test (3.11) (push) Failing after 3m14s
Tests / test (3.12) (push) Successful in 3m19s
Tests / test (3.9) (push) Successful in 3m14s
2024-12-01 21:33:07 +02:00
2ce3eb878b Merge pull request 'Update dependency twine to v6' (#70) from renovate/twine-6.x into dev
All checks were successful
Tests / test (3.10) (push) Successful in 3m13s
Tests / test (3.11) (push) Successful in 3m13s
Tests / test (3.12) (push) Successful in 3m18s
Tests / test (3.9) (push) Successful in 3m13s
Reviewed-on: #70
2024-11-30 21:08:39 +02:00
2b37dd2a0c Dropped support for Python 3.8 because of EOL.
All checks were successful
Tests / test (3.11) (push) Successful in 3m10s
Tests / test (3.9) (push) Successful in 3m10s
Tests / test (3.12) (push) Successful in 3m21s
Tests / test (3.10) (push) Successful in 3m11s
2024-11-30 20:04:06 +01:00
0bf4140c5e Update dependency twine to v6
Some checks failed
Tests / test (3.12) (pull_request) Successful in 3m20s
Tests / test (3.8) (pull_request) Failing after 2m45s
Tests / test (3.10) (pull_request) Successful in 3m41s
Tests / test (3.11) (pull_request) Successful in 3m20s
Tests / test (3.9) (pull_request) Successful in 3m14s
2024-11-30 18:27:49 +02:00
a3eb99793e Update dependency pytest-cov to v6
Some checks failed
Tests / test (3.10) (pull_request) Successful in -1m41s
Tests / test (3.11) (pull_request) Successful in -1m41s
Tests / test (3.12) (pull_request) Successful in -1m34s
Tests / test (3.8) (pull_request) Failing after -2m34s
Tests / test (3.9) (pull_request) Successful in -1m44s
Tests / test (3.10) (push) Successful in -1m41s
Tests / test (3.11) (push) Successful in -1m44s
Tests / test (3.12) (push) Successful in -1m36s
Tests / test (3.8) (push) Failing after -2m36s
Tests / test (3.9) (push) Successful in -1m44s
2024-10-29 22:25:23 +02:00
fb4ba9144a Merge pull request 'Update dependency mypy to ~=1.13.0' (#68) from renovate/mypy-1.x into dev
All checks were successful
Tests / test (3.10) (push) Successful in -1m16s
Tests / test (3.11) (push) Successful in -1m15s
Tests / test (3.12) (push) Successful in -1m4s
Tests / test (3.9) (push) Successful in -1m12s
Tests / test (3.8) (push) Successful in -1m15s
Reviewed-on: #68
2024-10-23 02:14:45 +03:00
0fe90e13a8 Update dependency mypy to ~=1.13.0
All checks were successful
Tests / test (3.10) (pull_request) Successful in -1m10s
Tests / test (3.12) (pull_request) Successful in -1m4s
Tests / test (3.8) (pull_request) Successful in -1m14s
Tests / test (3.11) (pull_request) Successful in -1m17s
Tests / test (3.9) (pull_request) Successful in -1m18s
2024-10-23 01:28:51 +03:00
608d3a775c Update dependency tox to v4.23.2
All checks were successful
Tests / test (3.11) (pull_request) Successful in -1m16s
Tests / test (3.8) (pull_request) Successful in -1m13s
Tests / test (3.10) (pull_request) Successful in -1m16s
Tests / test (3.12) (pull_request) Successful in -1m7s
Tests / test (3.9) (pull_request) Successful in -1m16s
Tests / test (3.10) (push) Successful in -1m17s
Tests / test (3.11) (push) Successful in -1m21s
Tests / test (3.12) (push) Successful in -1m7s
Tests / test (3.8) (push) Successful in -1m18s
Tests / test (3.9) (push) Successful in -1m16s
2024-10-22 18:12:10 +03:00
387565605e Merge pull request 'v0.4.0' (#53) from dev into master
Reviewed-on: #53
2024-09-08 02:54:11 +03:00
78de092a45 Changed pip_requirements location 2024-03-26 14:26:56 +02:00
860ecadb88 Renovate will use dev branch as a main one 2024-03-26 14:14:35 +02:00
9 changed files with 28 additions and 19 deletions

View File

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

View File

@@ -3,6 +3,15 @@
"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.8+
* Python 3.9+
* 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.8"
requires-python = ">=3.9"
license = { text = "MIT" }
classifiers = [
"Development Status :: 3 - Alpha",
@@ -17,7 +17,6 @@ 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",
@@ -46,7 +45,7 @@ speed = { file = "requirements/speed.txt" }
where = ["src"]
[tool.black]
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
target-version = ['py39', 'py310', 'py311', 'py312']
line-length = 94
[tool.isort]
@@ -66,7 +65,7 @@ show_error_codes = true
[tool.pylint.main]
extension-pkg-whitelist = ["ujson"]
py-version = 3.8
py-version = 3.9
[tool.coverage.run]
source = ["pyrmv"]

View File

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

View File

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

View File

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

View File

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

View File

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