Skip to content

Commit

Permalink
use contraints file for build
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Dec 23, 2024
1 parent c258c5d commit fcbfe33
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
persist-credentials: false

- name: Install build
run: python -Im pip install build
run: python -Im pip install build -c test-requirements.txt

- name: Get the dist version
id: dist-version
Expand Down
2 changes: 1 addition & 1 deletion ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ python -m pip install -U pip uv -c test-requirements.txt
python -m pip --version
python -m uv --version

python -m uv pip install build
python -m uv pip install build -c test-requirements.txt

python -m build
wheel_package=$(ls dist/*.whl)
Expand Down
1 change: 1 addition & 0 deletions test-requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jedi; implementation_name == "cpython" # for jedi code completi
cryptography>=41.0.0 # cryptography<41 segfaults on pypy3.10

# Tools
build
black; implementation_name == "cpython"
mypy # Would use mypy[faster-cache], but orjson has build issues on pypy
orjson; implementation_name == "cpython"
Expand Down
17 changes: 13 additions & 4 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ babel==2.16.0
# via sphinx
black==24.10.0 ; implementation_name == 'cpython'
# via -r test-requirements.in
build==1.2.2.post1
# via -r test-requirements.in
certifi==2024.8.30
# via requests
cffi==1.17.1 ; platform_python_implementation != 'PyPy' or os_name == 'nt'
Expand All @@ -28,8 +30,9 @@ click==8.1.7 ; implementation_name == 'cpython'
# via black
codespell==2.3.0
# via -r test-requirements.in
colorama==0.4.6 ; (implementation_name != 'cpython' and sys_platform == 'win32') or (platform_system != 'Windows' and sys_platform == 'win32') or (implementation_name == 'cpython' and platform_system == 'Windows')
colorama==0.4.6 ; (implementation_name != 'cpython' and sys_platform == 'win32') or (platform_system != 'Windows' and sys_platform == 'win32') or (implementation_name == 'cpython' and platform_system == 'Windows') or os_name == 'nt'
# via
# build
# click
# pylint
# pytest
Expand Down Expand Up @@ -57,8 +60,10 @@ idna==3.10
# trustme
imagesize==1.4.1
# via sphinx
importlib-metadata==8.5.0 ; python_full_version < '3.10'
# via sphinx
importlib-metadata==8.5.0 ; python_full_version < '3.10.2'
# via
# build
# sphinx
iniconfig==2.0.0
# via pytest
isort==5.13.2
Expand Down Expand Up @@ -87,6 +92,7 @@ outcome==1.3.0.post0
packaging==24.2
# via
# black
# build
# pytest
# sphinx
parso==0.8.4 ; implementation_name == 'cpython'
Expand All @@ -107,6 +113,8 @@ pylint==3.3.1
# via -r test-requirements.in
pyopenssl==24.2.1
# via -r test-requirements.in
pyproject-hooks==1.2.0
# via build
pyright==1.1.389
# via -r test-requirements.in
pytest==8.3.3
Expand Down Expand Up @@ -138,6 +146,7 @@ sphinxcontrib-serializinghtml==2.0.0
tomli==2.2.1 ; python_full_version < '3.11'
# via
# black
# build
# mypy
# pylint
# pytest
Expand Down Expand Up @@ -168,5 +177,5 @@ urllib3==2.2.3
# via requests
uv==0.5.5
# via -r test-requirements.in
zipp==3.21.0 ; python_full_version < '3.10'
zipp==3.21.0 ; python_full_version < '3.10.2'
# via importlib-metadata

0 comments on commit fcbfe33

Please sign in to comment.