Skip to content

Commit 2b16739

Browse files
authored
Dev (#423)
* Remove unused dependencies (arrow). Update time_utils tests to remove all arrow references. Add chardet, hishel dependencies. Remove tox from CI group. Remove all mkdocs depdencies from dev dependencies (they exist in the docs group) * Export requirements. Lint tests code
1 parent 00b4be9 commit 2b16739

File tree

14 files changed

+957
-867
lines changed

14 files changed

+957
-867
lines changed

docs/requirements.txt

+49-37
Original file line numberDiff line numberDiff line change
@@ -2,79 +2,91 @@
22
# Please do not edit it manually.
33

44
annotated-types==0.6.0
5-
argcomplete==3.2.3
6-
babel==2.14.0
7-
black==24.3.0
8-
blinker==1.7.0
9-
cachecontrol==0.14.0
5+
anyio==4.3.0
6+
argcomplete==3.3.0
7+
babel==2.15.0
8+
black==24.4.2
9+
blinker==1.8.2
1010
certifi==2024.2.2
11+
cffi==1.16.0; platform_python_implementation == "PyPy"
1112
cfgv==3.4.0
1213
charset-normalizer==3.3.2
1314
click==8.1.7
1415
colorama==0.4.6
1516
colorlog==6.8.2
1617
dep-logic==0.2.0
1718
distlib==0.3.8
18-
execnet==2.0.2
19-
filelock==3.13.1
20-
findpython==0.4.1
19+
execnet==2.1.1
20+
filelock==3.14.0
21+
findpython==0.6.1
2122
ghp-import==2.1.0
22-
griffe==0.42.0
23-
identify==2.5.35
24-
idna==3.6
23+
griffe==0.44.0
24+
h11==0.14.0
25+
hishel==0.0.26
26+
httpcore==1.0.5
27+
httpx==0.27.0
28+
identify==2.5.36
29+
idna==3.7
2530
iniconfig==2.0.0
2631
installer==0.7.0
27-
jinja2==3.1.3
28-
markdown==3.5.2
32+
jinja2==3.1.4
33+
markdown==3.6
2934
markdown-include==0.8.1
3035
markdown-it-py==3.0.0
3136
markupsafe==2.1.5
3237
mdurl==0.1.2
3338
mergedeep==1.3.4
34-
mkdocs==1.5.3
39+
mkdocs==1.6.0
3540
mkdocs-autorefs==1.0.1
3641
mkdocs-gen-files==0.5.0
42+
mkdocs-get-deps==0.2.0
3743
mkdocs-literate-nav==0.6.1
38-
mkdocs-material==9.5.14
44+
mkdocs-material==9.5.21
3945
mkdocs-material-extensions==1.3.1
40-
mkdocs-section-index==0.3.8
41-
mkdocstrings==0.24.1
42-
mkdocstrings-python==1.9.0
46+
mkdocs-section-index==0.3.9
47+
mkdocstrings==0.25.1
48+
mkdocstrings-python==1.10.0
4349
msgpack==1.0.8
4450
mypy-extensions==1.0.0
4551
nodeenv==1.8.0
46-
nox==2024.3.2
52+
nox==2024.4.15
4753
packaging==24.0
4854
paginate==0.5.6
4955
pathspec==0.12.1
50-
pdm==2.12.4
51-
pdm-bump==0.7.3
52-
platformdirs==4.2.0
53-
pluggy==1.4.0
54-
pre-commit==3.6.2
55-
pygments==2.17.2
56-
pymdown-extensions==10.7.1
57-
pyproject-hooks==1.0.0
58-
pyproject-metadata==0.7.1
59-
pytest==8.1.1
60-
pytest-xdist==3.5.0
56+
pbs-installer==2024.4.1
57+
pdm==2.15.1
58+
pdm-bump==0.9.0
59+
pdm-pfsc==0.11.3
60+
platformdirs==4.2.1
61+
pluggy==1.5.0
62+
pre-commit==3.7.0
63+
pycparser==2.22; platform_python_implementation == "PyPy"
64+
pygments==2.18.0
65+
pymdown-extensions==10.8.1
66+
pyproject-hooks==1.1.0
67+
pyproject-metadata==0.8.0
68+
pytest==8.2.0
69+
pytest-xdist==3.6.1
6170
python-dateutil==2.9.0.post0
6271
python-dotenv==1.0.1
6372
pyyaml==6.0.1
6473
pyyaml-env-tag==0.1
65-
regex==2023.12.25
74+
regex==2024.4.28
6675
requests==2.31.0
67-
requests-toolbelt==1.0.0
6876
resolvelib==1.0.1
6977
rich==13.7.1
70-
ruff==0.3.3
71-
setuptools==69.2.0
78+
ruff==0.4.3
79+
setuptools==69.5.1
7280
shellingham==1.5.4
7381
six==1.16.0
82+
sniffio==1.3.1
83+
socksio==1.0.0
7484
tomli-w==1.0.0
7585
tomlkit==0.12.4
76-
truststore==0.8.0; python_version >= "3.10"
77-
unearth==0.14.0
86+
truststore==0.9.1; python_version >= "3.10"
87+
typing-extensions==4.11.0
88+
unearth==0.15.2
7889
urllib3==2.2.1
79-
virtualenv==20.25.1
90+
virtualenv==20.26.1
8091
watchdog==4.0.0
92+
zstandard==0.22.0

pdm.lock

+862-535
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+7-20
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ authors = [
66
{ name = "redjax", email = "[email protected]" },
77
{ name = "redjax", email = "[email protected]" },
88
]
9-
dependencies = [
10-
]
9+
dependencies = []
1110
requires-python = ">=3.11"
1211
readme = "README.md"
1312

@@ -27,6 +26,8 @@ standard = [
2726
"rich>=13.7.0",
2827
"msgpack>=1.0.7",
2928
"sqlalchemy>=2.0.25",
29+
"chardet>=5.2.0",
30+
"hishel>=0.0.26",
3031
]
3132
all = [
3233
"diskcache>=5.6.3",
@@ -37,11 +38,12 @@ all = [
3738
"msgpack>=1.0.7",
3839
"pendulum>=3.0.0",
3940
"sqlalchemy>=2.0.25",
40-
"arrow>=1.3.0",
4141
"pandas>=2.1.4",
4242
"fastparquet>=2024.2.0",
4343
"pyarrow>=15.0.0",
4444
"ipykernel>=6.29.2",
45+
"hishel>=0.0.26",
46+
"chardet>=5.2.0",
4547
]
4648
fastapi = [
4749
"fastapi>=0.109.0",
@@ -60,17 +62,11 @@ http = [
6062
"msgpack>=1.0.7",
6163
"pendulum>=2.1.2",
6264
"hishel>=0.0.26",
65+
"chardet>=5.2.0",
6366
]
64-
arrow = ["arrow>=1.3.0"]
6567
data = ["ipykernel>=6.28.0", "pandas>=2.1.4", "fastparquet>=2023.10.1"]
6668
dataframes = ["pandas>=2.1.4", "fastparquet>=2023.10.1", "pyarrow>=15.0.0"]
67-
ci = [
68-
"tox>=4.12.0",
69-
"ruff>=0.1.13",
70-
"black>=23.12.1",
71-
"pytest>=7.4.4",
72-
"nox>=2023.4.22",
73-
]
69+
ci = ["ruff>=0.1.13", "black>=23.12.1", "pytest>=7.4.4", "nox>=2023.4.22"]
7470
docs = [
7571
"pygments>=2.17.2",
7672
"mkdocs>=1.5.3",
@@ -92,15 +88,6 @@ dev = [
9288
"pdm-bump>=0.7.3",
9389
"nox>=2023.4.22",
9490
"pytest-xdist>=3.5.0",
95-
"pygments>=2.17.2",
96-
"mkdocs>=1.5.3",
97-
"mkdocs-material>=9.5.4",
98-
"mkdocstrings[python]>=0.24.0",
99-
"markdown-include>=0.8.1",
100-
"mkdocs-gen-files>=0.5.0",
101-
"mkdocs-autorefs>=0.5.0",
102-
"mkdocs-section-index>=0.3.8",
103-
"mkdocs-literate-nav>=0.6.1",
10491
]
10592

10693
[tool.pdm.scripts.tests]

requirements/requirements.dev.txt

+38-54
Original file line numberDiff line numberDiff line change
@@ -2,79 +2,63 @@
22
# Please do not edit it manually.
33

44
annotated-types==0.6.0
5-
argcomplete==3.2.3
6-
babel==2.14.0
7-
black==24.3.0
8-
blinker==1.7.0
9-
cachecontrol==0.14.0
5+
anyio==4.3.0
6+
argcomplete==3.3.0
7+
black==24.4.2
8+
blinker==1.8.2
109
certifi==2024.2.2
10+
cffi==1.16.0; platform_python_implementation == "PyPy"
1111
cfgv==3.4.0
12-
charset-normalizer==3.3.2
1312
click==8.1.7
14-
colorama==0.4.6
13+
colorama==0.4.6; sys_platform == "win32" or platform_system == "Windows"
1514
colorlog==6.8.2
1615
dep-logic==0.2.0
1716
distlib==0.3.8
18-
execnet==2.0.2
19-
filelock==3.13.1
20-
findpython==0.4.1
21-
ghp-import==2.1.0
22-
griffe==0.42.0
23-
identify==2.5.35
24-
idna==3.6
17+
execnet==2.1.1
18+
filelock==3.14.0
19+
findpython==0.6.1
20+
h11==0.14.0
21+
hishel==0.0.26
22+
httpcore==1.0.5
23+
httpx==0.27.0
24+
identify==2.5.36
25+
idna==3.7
2526
iniconfig==2.0.0
2627
installer==0.7.0
27-
jinja2==3.1.3
28-
markdown==3.5.2
29-
markdown-include==0.8.1
3028
markdown-it-py==3.0.0
31-
markupsafe==2.1.5
3229
mdurl==0.1.2
33-
mergedeep==1.3.4
34-
mkdocs==1.5.3
35-
mkdocs-autorefs==1.0.1
36-
mkdocs-gen-files==0.5.0
37-
mkdocs-literate-nav==0.6.1
38-
mkdocs-material==9.5.14
39-
mkdocs-material-extensions==1.3.1
40-
mkdocs-section-index==0.3.8
41-
mkdocstrings==0.24.1
42-
mkdocstrings-python==1.9.0
4330
msgpack==1.0.8
4431
mypy-extensions==1.0.0
4532
nodeenv==1.8.0
46-
nox==2024.3.2
33+
nox==2024.4.15
4734
packaging==24.0
48-
paginate==0.5.6
4935
pathspec==0.12.1
50-
pdm==2.12.4
51-
pdm-bump==0.7.3
52-
platformdirs==4.2.0
53-
pluggy==1.4.0
54-
pre-commit==3.6.2
55-
pygments==2.17.2
56-
pymdown-extensions==10.7.1
57-
pyproject-hooks==1.0.0
58-
pyproject-metadata==0.7.1
59-
pytest==8.1.1
60-
pytest-xdist==3.5.0
61-
python-dateutil==2.9.0.post0
36+
pbs-installer==2024.4.1
37+
pdm==2.15.1
38+
pdm-bump==0.9.0
39+
pdm-pfsc==0.11.3
40+
platformdirs==4.2.1
41+
pluggy==1.5.0
42+
pre-commit==3.7.0
43+
pycparser==2.22; platform_python_implementation == "PyPy"
44+
pygments==2.18.0
45+
pyproject-hooks==1.1.0
46+
pyproject-metadata==0.8.0
47+
pytest==8.2.0
48+
pytest-xdist==3.6.1
6249
python-dotenv==1.0.1
6350
pyyaml==6.0.1
64-
pyyaml-env-tag==0.1
65-
regex==2023.12.25
66-
requests==2.31.0
67-
requests-toolbelt==1.0.0
6851
resolvelib==1.0.1
6952
rich==13.7.1
70-
ruff==0.3.3
71-
setuptools==69.2.0
53+
ruff==0.4.3
54+
setuptools==69.5.1
7255
shellingham==1.5.4
73-
six==1.16.0
56+
sniffio==1.3.1
57+
socksio==1.0.0
7458
tomli-w==1.0.0
7559
tomlkit==0.12.4
76-
truststore==0.8.0; python_version >= "3.10"
77-
unearth==0.14.0
78-
urllib3==2.2.1
79-
virtualenv==20.25.1
80-
watchdog==4.0.0
60+
truststore==0.9.1; python_version >= "3.10"
61+
typing-extensions==4.11.0
62+
unearth==0.15.2
63+
virtualenv==20.26.1
64+
zstandard==0.22.0

src/red_utils/ext/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
import pkgutil
1818

19-
if pkgutil.find_loader("arrow") or pkgutil.find_loader("pendulum"):
19+
if pkgutil.find_loader("pendulum"):
2020
from . import time_utils
2121

2222
if pkgutil.find_loader("loguru"):

src/red_utils/ext/time_utils/__init__.py

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99

1010
import pkgutil
1111

12-
if pkgutil.find_loader("arrow"):
13-
from . import arrow_utils
14-
1512
if pkgutil.find_loader("pendulum"):
1613
from . import pendulum_utils
1714
from .pendulum_utils import get_ts

src/red_utils/ext/time_utils/arrow_utils/__init__.py

-9
This file was deleted.

src/red_utils/ext/time_utils/arrow_utils/constants.py

-14
This file was deleted.

0 commit comments

Comments
 (0)