Skip to content

Commit a1a53ee

Browse files
authored
Merge pull request #2217 from jku/deps-pinning-changes
build: Change build dependency pinning strategy
2 parents 5cfde61 + b6c3b66 commit a1a53ee

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/_test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ jobs:
4646

4747
- name: Install dependencies
4848
run: |
49-
python3 -m pip install --upgrade pip
50-
python3 -m pip install --upgrade tox coveralls
49+
python3 -m pip install --constraint requirements-build.txt tox coveralls
5150
5251
- name: Run tox (${{ env.TOXENV }})
5352
# See TOXENV environment variable for the testenv to be executed here
@@ -90,8 +89,7 @@ jobs:
9089

9190
- name: Install dependencies
9291
run: |
93-
python3 -m pip install --upgrade pip
94-
python3 -m pip install --upgrade coveralls
92+
python3 -m pip install coveralls
9593
9694
- name: Finalize publishing on coveralls.io
9795
continue-on-error: true

.github/workflows/cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
python-version: '3.x'
2929

3030
- name: Install build dependency
31-
run: python3 -m pip install --upgrade pip build
31+
run: python3 -m pip install --constraint requirements-build.txt build
3232

3333
- name: Build binary wheel and source tarball
3434
run: python3 -m build --sdist --wheel --outdir dist/ .

.github/workflows/specification-version-check.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
python-version: "3.x"
2121
- id: get-version
2222
run: |
23-
python3 -m pip install --upgrade pip
2423
python3 -m pip install -e .
2524
script="from tuf.api.metadata import SPECIFICATION_VERSION; \
2625
print(f\"v{'.'.join(SPECIFICATION_VERSION)}\")"

requirements-build.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# The build and tox versions specified here are also used as constraints
2+
# during CI and CD Github workflows
3+
build==0.9.0
4+
tox==3.27.1

requirements-dev.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Install tuf in editable mode and requirements for local testing with tox,
2-
# and also for running test suite or individual tests manually
3-
build
4-
tox
5-
twine
6-
wheel
2+
# and also for running test suite or individual tests manually.
3+
# The build and tox versions specified here are also used as constraints
4+
# during CI and CD Github workflows
5+
-r requirements-build.txt
76
-r requirements-test.txt
87
-e .

0 commit comments

Comments
 (0)