Skip to content

Commit 70555f6

Browse files
committed
build: shorten requirements file names
Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent c6dfe0c commit 70555f6

12 files changed

Lines changed: 19 additions & 19 deletions

File tree

.github/workflows/_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ jobs:
4242
with:
4343
python-version: ${{ matrix.python-version }}
4444
cache: 'pip'
45-
cache-dependency-path: 'requirements/requirements*.txt'
45+
cache-dependency-path: 'requirements/*.txt'
4646

4747
- name: Install dependencies
4848
run: |
49-
python3 -m pip install --constraint requirements/requirements-build.txt tox coveralls
49+
python3 -m pip install --constraint requirements/build.txt tox coveralls
5050
5151
- name: Run tox (${{ env.TOXENV }})
5252
# See TOXENV environment variable for the testenv to be executed here

.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 --constraint requirements/requirements-build.txt 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/ .

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ formats: []
1717
# Optionally set the version of Python and requirements required to build your docs
1818
python:
1919
install:
20-
- requirements: requirements/requirements-docs.txt
20+
- requirements: requirements/docs.txt
2121
- method: pip
2222
path: .

docs/INSTALLATION.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ from GitHub, change into the project root directory, and install with pip
5151

5252
::
5353

54-
python3 -m pip install -r requirements/requirements-dev.txt
54+
python3 -m pip install -r requirements/dev.txt
5555

5656

5757
Verify release signatures
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# and also for running test suite or individual tests manually.
33
# The build and tox versions specified here are also used as constraints
44
# during CI and CD Github workflows
5-
-r requirements-build.txt
6-
-r requirements-test.txt
7-
-r requirements-lint.txt
5+
-r build.txt
6+
-r test.txt
7+
-r lint.txt
88
-e .
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Install documentation build requirements
22

33
# pinned tuf runtime dependencies (should auto-update and -trigger ci/cd)
4-
-r requirements-pinned.txt
4+
-r pinned.txt
55

66
# install sphinx and its extensions
77
sphinx
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Requirements needed in tox lint environment
22

33
# pinned tuf runtime dependencies
4-
-r requirements-pinned.txt
4+
-r pinned.txt
55

66
# Lint tools
77
# (We are not so interested in the specific versions of the tools: the versions
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This file together with 'pip-compile' is used to generate a pinned
44
# requirements file with all immediate and transitive dependencies.
55
#
6-
# 'requirements-pinned.txt' is updated on GitHub with Dependabot, which
6+
# 'pinned.txt' is updated on GitHub with Dependabot, which
77
# triggers CI/CD builds to automatically test against updated dependencies.
88
#
99
#
@@ -17,7 +17,7 @@
1717
# Python < 3 only.
1818
#
1919
#
20-
# Below instructions can be used to re-generate 'requirements-pinned.txt', e.g.
20+
# Below instructions can be used to re-generate 'pinned.txt', e.g.
2121
# if:
2222
# - requirements are added or removed from this file
2323
# - Python version support is changed
@@ -29,15 +29,15 @@
2929
# for v in 3.7 3.8 3.9 3.10 3.11; do
3030
# mkvirtualenv tuf-env-${v} -p python${v};
3131
# python3 -m pip install pip-tools;
32-
# pip-compile --no-header -o requirements-${v}.txt requirements.txt;
32+
# pip-compile --no-header -o requirements-${v}.txt main.txt;
3333
# deactivate;
3434
# rmvirtualenv tuf-env-${v};
3535
# done;
3636
#
3737
# ```
3838
# 2. Use this command to merge per-version files
39-
# `sort -o requirements-pinned.txt -u requirements-?.?.txt`
40-
# 2. Manually add environment markers to requirements-pinned.txt
39+
# `sort -o pinned.txt -u requirements-?.?.txt`
40+
# 2. Manually add environment markers to pinned.txt
4141
# 3. Use this command to remove per-version files
4242
# `rm requirements-?.?.txt`
4343
#

0 commit comments

Comments
 (0)