Skip to content

Commit

Permalink
Let python_dotenv.load_settings support Path objects (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
dycw authored Jan 10, 2025
1 parent 239ce62 commit 16eff2f
Show file tree
Hide file tree
Showing 86 changed files with 195 additions and 108 deletions.
22 changes: 12 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dev = [
"greenlet >= 3.1.1, < 3.2", # for sqlalchemy async
"hatch >= 1.14.0, < 1.15",
"httpx >= 0.28.1, < 0.29", # for fastapi
"hypothesis >= 6.123.11, < 6.124",
"hypothesis >= 6.123.13, < 6.124",
"ib-async-dataclass >= 1.0.3rc5, < 1.1",
"img2pdf >= 0.5.1, < 0.6",
"loguru >= 0.7.3, < 0.8",
Expand All @@ -50,10 +50,11 @@ dev = [
"numpy >= 2.0.2, < 2.1", # if 2.1, llvmite: RuntimeError: Cannot install on Python version 3.11.9; only versions >=3.6,<3.10 are supported.
"optuna >= 4.1.0, < 4.2",
"orjson >= 3.10.14, < 3.11",
"pathvalidate >= 3.2.3, < 3.3",
"polars-lts-cpu >= 1.19.0, < 1.20",
"pqdm >= 0.2.0, < 0.3",
"psycopg2-binary >= 2.9.10, < 2.10", # for sqlalchemy
"pydantic >= 2.10.4, < 2.11",
"pydantic >= 2.10.5, < 2.11",
"pyhumps >= 3.8.0, < 3.9",
"pyinstrument >= 5.0.0, < 5.1",
"pyrsistent >= 0.20.0, < 0.21",
Expand All @@ -63,7 +64,7 @@ dev = [
"rich >= 13.8.1, < 13.9", # if 13.9, twine upload fails https://github.com/dycw/python-utilities/actions/runs/11125686648/job/30913966455
"scipy >= 1.15.0, < 1.16",
"slack-sdk >= 3.34.0, < 3.35",
"sqlalchemy >= 2.0.36, < 2.1",
"sqlalchemy >= 2.0.37, < 2.1",
"streamlit >= 1.41.1, < 1.42",
"tenacity >= 9.0.0, < 9.1",
"treelib >= 1.7.0, < 1.8",
Expand All @@ -89,7 +90,7 @@ dev = [
]
test = [
"coverage-conditional-plugin >= 0.9.0, < 0.10",
"hypothesis >= 6.123.11, < 6.124",
"hypothesis >= 6.123.13, < 6.124",
"pytest >= 8.3.4, < 8.4",
"pytest-asyncio >= 0.25.2, < 0.26",
"pytest-cov >= 6.0.0, < 6.1",
Expand Down Expand Up @@ -117,7 +118,7 @@ zzz-test-beartype = ["beartype >= 0.19.0, < 0.20"]
zzz-test-cachetools = ["cachetools >= 5.5.0, < 5.6"]
zzz-test-click = [
"click >= 8.1.8, < 8.2",
"sqlalchemy >= 2.0.36, < 2.1",
"sqlalchemy >= 2.0.37, < 2.1",
"whenever >= 0.6.16, < 0.7",
]
zzz-test-contextlib = []
Expand Down Expand Up @@ -165,10 +166,11 @@ zzz-test-hypothesis = [
"aiosqlite >= 0.20.0, < 0.21",
"asyncpg >= 0.30.0, < 0.31", # for sqlalchemy async
"greenlet >= 3.1.1, < 3.2", # for sqlalchemy async
"hypothesis >= 6.123.11, < 6.124",
"hypothesis >= 6.123.13, < 6.124",
"numpy >= 2.0.2, < 2.1",
"pathvalidate >= 3.2.3, < 3.3",
"redis >= 5.2.1, < 5.3",
"sqlalchemy >= 2.0.36, < 2.1",
"sqlalchemy >= 2.0.37, < 2.1",
"tenacity >= 9.0.0, < 9.1",
"tzlocal >= 5.2, < 5.3",
"whenever >= 0.6.16, < 0.7",
Expand Down Expand Up @@ -229,7 +231,7 @@ zzz-test-polars = [
zzz-test-pqdm = ["pqdm >= 0.2.0, < 0.3"]
zzz-test-pydantic = [
"atomicwrites >= 1.4.1, < 1.5",
"pydantic >= 2.10.4, < 2.11",
"pydantic >= 2.10.5, < 2.11",
]
zzz-test-pyinstrument = [
"atomicwrites >= 1.4.1, < 1.5",
Expand Down Expand Up @@ -269,7 +271,7 @@ zzz-test-sqlalchemy = [
"greenlet >= 3.1.1, < 3.2", # for sqlalchemy async
"nest-asyncio >= 1.6.0, < 1.7", # for sqlalchemy async
"pyhumps >= 3.8.0, < 3.9",
"sqlalchemy >= 2.0.36, < 2.1",
"sqlalchemy >= 2.0.37, < 2.1",
"tenacity >= 9.0.0, < 9.1",
]
zzz-test-sqlalchemy-polars = [
Expand All @@ -279,7 +281,7 @@ zzz-test-sqlalchemy-polars = [
"nest-asyncio >= 1.6.0, < 1.7", # for sqlalchemy async
"polars-lts-cpu >= 1.19.0, < 1.20",
"pyhumps >= 3.8.0, < 3.9",
"sqlalchemy >= 2.0.36, < 2.1",
"sqlalchemy >= 2.0.37, < 2.1",
"tenacity >= 9.0.0, < 9.1",
]
zzz-test-streamlit = ["streamlit >= 1.41.1, < 1.42"]
Expand Down
8 changes: 5 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ humanfriendly==10.0
# via coloredlogs
hyperlink==21.0.0
# via hatch
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
ib-async-dataclass==1.0.3rc5
# via dycw-utilities (pyproject.toml)
Expand Down Expand Up @@ -256,6 +256,8 @@ pandas==2.2.3
# via streamlit
pathspec==0.12.1
# via hatchling
pathvalidate==3.2.3
# via dycw-utilities (pyproject.toml)
pexpect==4.9.0
# via hatch
pikepdf==9.5.1
Expand Down Expand Up @@ -296,7 +298,7 @@ pyarrow==18.1.0
# via streamlit
pycparser==2.22
# via cffi
pydantic==2.10.4
pydantic==2.10.5
# via
# dycw-utilities (pyproject.toml)
# fastapi
Expand Down Expand Up @@ -389,7 +391,7 @@ sniffio==1.3.1
# via anyio
sortedcontainers==2.4.0
# via hypothesis
sqlalchemy==2.0.36
sqlalchemy==2.0.37
# via
# dycw-utilities (pyproject.toml)
# alembic
Expand Down
2 changes: 1 addition & 1 deletion requirements/altair.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ deprecated==1.2.15
# via pikepdf
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
img2pdf==0.5.1
# via dycw-utilities (pyproject.toml)
Expand Down
2 changes: 1 addition & 1 deletion requirements/astor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/asyncio.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/atomicwrites.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/atools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ execnet==2.1.1
# via pytest-xdist
frozendict==2.4.6
# via atools
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/beartype.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/cachetools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
4 changes: 2 additions & 2 deletions requirements/click.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down Expand Up @@ -49,7 +49,7 @@ pytest-xdist==3.6.1
# via dycw-utilities (pyproject.toml)
sortedcontainers==2.4.0
# via hypothesis
sqlalchemy==2.0.36
sqlalchemy==2.0.37
# via dycw-utilities (pyproject.toml)
tomli==2.2.1
# via coverage
Expand Down
2 changes: 1 addition & 1 deletion requirements/contextlib.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/cryptography.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cryptography==44.0.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/cvxpy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cvxpy==1.6.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/dataclasses.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ eventkit==1.0.3
# via ib-async-dataclass
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
ib-async-dataclass==1.0.3rc5
# via dycw-utilities (pyproject.toml)
Expand Down
2 changes: 1 addition & 1 deletion requirements/datetime.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/enum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/errors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/eventkit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ eventkit==1.0.3
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
4 changes: 2 additions & 2 deletions requirements/fastapi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ httpcore==1.0.7
# via httpx
httpx==0.28.1
# via dycw-utilities (pyproject.toml)
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
idna==3.10
# via
Expand All @@ -47,7 +47,7 @@ packaging==24.2
# pytest-rerunfailures
pluggy==1.5.0
# via pytest
pydantic==2.10.4
pydantic==2.10.5
# via fastapi
pydantic-core==2.27.2
# via pydantic
Expand Down
2 changes: 1 addition & 1 deletion requirements/fpdf2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fonttools==4.55.3
# via fpdf2
fpdf2==2.8.2
# via dycw-utilities (pyproject.toml)
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/functions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/functools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/getpass.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/git.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/hashlib.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ eventkit==1.0.3
# via ib-async-dataclass
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
ib-async-dataclass==1.0.3rc5
# via dycw-utilities (pyproject.toml)
Expand Down
2 changes: 1 addition & 1 deletion requirements/http.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/humps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
6 changes: 4 additions & 2 deletions requirements/hypothesis.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ execnet==2.1.1
# via pytest-xdist
greenlet==3.1.1
# via dycw-utilities (pyproject.toml)
hypothesis==6.123.11
hypothesis==6.123.13
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand All @@ -29,6 +29,8 @@ packaging==24.2
# coverage-conditional-plugin
# pytest
# pytest-rerunfailures
pathvalidate==3.2.3
# via dycw-utilities (pyproject.toml)
pluggy==1.5.0
# via pytest
pytest==8.3.4
Expand Down Expand Up @@ -59,7 +61,7 @@ redis==5.2.1
# via dycw-utilities (pyproject.toml)
sortedcontainers==2.4.0
# via hypothesis
sqlalchemy==2.0.36
sqlalchemy==2.0.37
# via dycw-utilities (pyproject.toml)
tenacity==9.0.0
# via dycw-utilities (pyproject.toml)
Expand Down
Loading

0 comments on commit 16eff2f

Please sign in to comment.