Skip to content

Commit

Permalink
Change get_git_version to point to master; add tests of `get_{git…
Browse files Browse the repository at this point in the history
…,hatch}_version` (#1039)
  • Loading branch information
dycw authored Jan 7, 2025
1 parent d3c8fc6 commit 604053a
Show file tree
Hide file tree
Showing 91 changed files with 508 additions and 235 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.version }}
- run: git fetch origin master:origin/master --update-head-ok
- run: git fetch origin master:origin/master --update-head-ok # https://stackoverflow.com/a/76384065
- run: python -m pip install uv
- run: uv pip sync --system --compile requirements.txt
- run: pytest --cov-report=term-missing:skip-covered -n=auto
Expand Down
6 changes: 3 additions & 3 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.4, < 6.124",
"hypothesis >= 6.123.7, < 6.124",
"ib-async-dataclass >= 1.0.3rc5, < 1.1",
"img2pdf >= 0.5.1, < 0.6",
"loguru >= 0.7.3, < 0.8",
Expand Down Expand Up @@ -89,7 +89,7 @@ dev = [
]
test = [
"coverage-conditional-plugin >= 0.9.0, < 0.10",
"hypothesis >= 6.123.4, < 6.124",
"hypothesis >= 6.123.7, < 6.124",
"pytest >= 8.3.4, < 8.4",
"pytest-asyncio >= 0.25.1, < 0.26",
"pytest-cov >= 6.0.0, < 6.1",
Expand Down Expand Up @@ -165,7 +165,7 @@ 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.4, < 6.124",
"hypothesis >= 6.123.7, < 6.124",
"numpy >= 2.0.2, < 2.1",
"redis >= 5.2.1, < 5.3",
"sqlalchemy >= 2.0.36, < 2.1",
Expand Down
4 changes: 2 additions & 2 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.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
ib-async-dataclass==1.0.3rc5
# via dycw-utilities (pyproject.toml)
Expand Down Expand Up @@ -443,7 +443,7 @@ urllib3==2.3.0
# via requests
userpath==1.9.2
# via hatch
uv==0.5.14
uv==0.5.15
# via hatch
uvicorn==0.34.0
# via dycw-utilities (pyproject.toml)
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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion 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.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion 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.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
idna==3.10
# via
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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# 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.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion 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.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/ipython.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ execnet==2.1.1
# via pytest-xdist
executing==2.1.0
# via stack-data
hypothesis==6.123.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/iterables.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.4
hypothesis==6.123.7
# 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/jupyter.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ httpcore==1.0.7
# via httpx
httpx==0.28.1
# via jupyterlab
hypothesis==6.123.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
idna==3.10
# via
Expand Down
4 changes: 2 additions & 2 deletions requirements/logging.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ humanfriendly==10.0
# via coloredlogs
hyperlink==21.0.0
# via hatch
hypothesis==6.123.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
idna==3.10
# via
Expand Down Expand Up @@ -148,7 +148,7 @@ tzlocal==5.2
# via dycw-utilities (pyproject.toml)
userpath==1.9.2
# via hatch
uv==0.5.14
uv==0.5.15
# via hatch
virtualenv==20.28.1
# via hatch
Expand Down
2 changes: 1 addition & 1 deletion requirements/loguru.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.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/math.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.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/memory-profiler.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.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/modules.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.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/more-itertools.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.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/numpy.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.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
2 changes: 1 addition & 1 deletion requirements/optuna.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ coverage-conditional-plugin==0.9.0
# via dycw-utilities (pyproject.toml)
execnet==2.1.1
# via pytest-xdist
hypothesis==6.123.4
hypothesis==6.123.7
# via dycw-utilities (pyproject.toml)
iniconfig==2.0.0
# via pytest
Expand Down
Loading

0 comments on commit 604053a

Please sign in to comment.