Skip to content

Commit b63587a

Browse files
committed
use contraints file for build
1 parent c60dbfd commit b63587a

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
persist-credentials: false
4242

4343
- name: Install build
44-
run: python -Im pip install build
44+
run: python -Im pip install build -c test-requirements.txt
4545

4646
- name: Get the dist version
4747
id: dist-version

Diff for: ci.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ python -m pip install -U pip uv -c test-requirements.txt
4141
python -m pip --version
4242
python -m uv --version
4343

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

4646
python -m build
4747
wheel_package=$(ls dist/*.whl)

Diff for: test-requirements.in

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jedi; implementation_name == "cpython" # for jedi code completi
1010
cryptography>=41.0.0 # cryptography<41 segfaults on pypy3.10
1111

1212
# Tools
13+
build
1314
black; implementation_name == "cpython"
1415
mypy # Would use mypy[faster-cache], but orjson has build issues on pypy
1516
orjson; implementation_name == "cpython"

Diff for: test-requirements.txt

+13-4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ babel==2.16.0
1616
# via sphinx
1717
black==24.10.0 ; implementation_name == 'cpython'
1818
# via -r test-requirements.in
19+
build==1.2.2.post1
20+
# via -r test-requirements.in
1921
certifi==2024.8.30
2022
# via requests
2123
cffi==1.17.1 ; platform_python_implementation != 'PyPy' or os_name == 'nt'
@@ -28,8 +30,9 @@ click==8.1.7 ; implementation_name == 'cpython'
2830
# via black
2931
codespell==2.3.0
3032
# via -r test-requirements.in
31-
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')
33+
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'
3234
# via
35+
# build
3336
# click
3437
# pylint
3538
# pytest
@@ -57,8 +60,10 @@ idna==3.10
5760
# trustme
5861
imagesize==1.4.1
5962
# via sphinx
60-
importlib-metadata==8.5.0 ; python_full_version < '3.10'
61-
# via sphinx
63+
importlib-metadata==8.5.0 ; python_full_version < '3.10.2'
64+
# via
65+
# build
66+
# sphinx
6267
iniconfig==2.0.0
6368
# via pytest
6469
isort==5.13.2
@@ -87,6 +92,7 @@ outcome==1.3.0.post0
8792
packaging==24.2
8893
# via
8994
# black
95+
# build
9096
# pytest
9197
# sphinx
9298
parso==0.8.4 ; implementation_name == 'cpython'
@@ -107,6 +113,8 @@ pylint==3.3.1
107113
# via -r test-requirements.in
108114
pyopenssl==24.2.1
109115
# via -r test-requirements.in
116+
pyproject-hooks==1.2.0
117+
# via build
110118
pyright==1.1.389
111119
# via -r test-requirements.in
112120
pytest==8.3.3
@@ -138,6 +146,7 @@ sphinxcontrib-serializinghtml==2.0.0
138146
tomli==2.2.1 ; python_full_version < '3.11'
139147
# via
140148
# black
149+
# build
141150
# mypy
142151
# pylint
143152
# pytest
@@ -168,5 +177,5 @@ urllib3==2.2.3
168177
# via requests
169178
uv==0.5.5
170179
# via -r test-requirements.in
171-
zipp==3.21.0 ; python_full_version < '3.10'
180+
zipp==3.21.0 ; python_full_version < '3.10.2'
172181
# via importlib-metadata

0 commit comments

Comments
 (0)