Skip to content

Commit 33829fd

Browse files
committed
build: Move requirements file to a directory
We already have 6 files and I'm planning to add another one: maybe it's time to move these out of the top level directory. Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent ed74563 commit 33829fd

12 files changed

Lines changed: 8 additions & 8 deletions

.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*.txt'
45+
cache-dependency-path: 'requirements/requirements*.txt'
4646

4747
- name: Install dependencies
4848
run: |
49-
python3 -m pip install --constraint requirements-build.txt tox coveralls
49+
python3 -m pip install --constraint requirements/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-build.txt build
31+
run: python3 -m pip install --constraint requirements/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-docs.txt
20+
- requirements: 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-dev.txt
54+
python3 -m pip install -r requirements/requirements-dev.txt
5555

5656

5757
Verify release signatures

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ include = [
6363
"/examples",
6464
"/tests",
6565
"/tuf",
66-
"/requirements*.txt",
66+
"/requirements",
6767
"/tox.ini",
6868
"/setup.py",
6969
]

0 commit comments

Comments
 (0)