v0.4.0 #53

Merged
profitroll merged 108 commits from dev into master 2024-09-08 02:54:11 +03:00
4 changed files with 12 additions and 0 deletions
Showing only changes of commit 66cb676639 - Show all commits

View File

@ -38,6 +38,7 @@ dependencies = { file = "requirements/_.txt" }
[tool.setuptools.dynamic.optional-dependencies] [tool.setuptools.dynamic.optional-dependencies]
dev = { file = "requirements/dev.txt" } dev = { file = "requirements/dev.txt" }
speed = { file = "requirements/speed.txt" }
[tool.setuptools.packages.find] [tool.setuptools.packages.find]
where = ["src"] where = ["src"]

1
requirements/speed.txt Normal file
View File

@ -0,0 +1 @@
ujson~=5.8.0

View File

@ -1,3 +1,7 @@
import contextlib
import requests
from .board_arrival import board_arrival from .board_arrival import board_arrival
from .board_departure import board_departure from .board_departure import board_departure
from .him_search import him_search from .him_search import him_search
@ -6,3 +10,8 @@ from .stop_by_coords import stop_by_coords
from .stop_by_name import stop_by_name from .stop_by_name import stop_by_name
from .trip_find import trip_find from .trip_find import trip_find
from .trip_recon import trip_recon from .trip_recon import trip_recon
with contextlib.suppress(ImportError):
import ujson
requests.models.complexjson = ujson

View File

@ -18,6 +18,7 @@ passenv =
deps = deps =
-r{toxinidir}/requirements/_.txt -r{toxinidir}/requirements/_.txt
-r{toxinidir}/requirements/dev.txt -r{toxinidir}/requirements/dev.txt
-r{toxinidir}/requirements/speed.txt
commands = commands =
pytest --basetemp={envtmpdir} --cov=pyrmv --cov-report term-missing pytest --basetemp={envtmpdir} --cov=pyrmv --cov-report term-missing