Skip to content

Commit 6996e05

Browse files
authored
Merge pull request #57 from agronholm/packaging-ci
Migrated requirements.txt files to dependency groups
2 parents 95190ad + a8c1af2 commit 6996e05

File tree

7 files changed

+22
-21
lines changed

7 files changed

+22
-21
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
python-version: ${{ matrix.python }}
2121
allow-prereleases: true
2222
cache: pip
23-
cache-dependency-path: test-requirements.txt
23+
cache-dependency-path: pyproject.toml
2424
- name: Run tests
2525
run: ./ci.sh
2626
shell: bash
@@ -51,7 +51,7 @@ jobs:
5151
python-version: ${{ matrix.python }}
5252
allow-prereleases: true
5353
cache: pip
54-
cache-dependency-path: test-requirements.txt
54+
cache-dependency-path: pyproject.toml
5555
- name: Run tests
5656
run: ./ci.sh
5757
env:
@@ -76,7 +76,7 @@ jobs:
7676
python-version: ${{ matrix.python }}
7777
allow-prereleases: true
7878
cache: pip
79-
cache-dependency-path: test-requirements.txt
79+
cache-dependency-path: pyproject.toml
8080
- name: Set PYTHON_GIL
8181
if: endsWith(matrix.python-version, 't')
8282
run: |

.readthedocs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
version: 2
33

44
build:
5-
os: ubuntu-22.04
5+
os: ubuntu-24.04
66
tools:
7-
python: "3.8"
7+
python: "3.12"
8+
jobs:
9+
install:
10+
- python -m pip install --no-cache-dir "pip >= 25.1"
11+
- python -m pip install --upgrade --upgrade-strategy only-if-needed --no-cache-dir --group rtd .
812

913
formats:
1014
- htmlzip
1115
- epub
1216

13-
python:
14-
install:
15-
- requirements: ci/rtd-requirements.txt
16-
1717
sphinx:
1818
configuration: docs/source/conf.py

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
include README.rst CHEATSHEET.rst LICENSE* CODE_OF_CONDUCT* CONTRIBUTING*
22
include .coveragerc .style.yapf
3-
include test-requirements.txt
43
recursive-include docs *
54
prune docs/build

ci.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ EOF
4343
exit 0
4444
fi
4545

46-
pip install .
47-
48-
# Actual tests
49-
pip install -Ur test-requirements.txt
46+
pip install --upgrade --group test .
5047

5148
mkdir empty
5249
cd empty

ci/rtd-requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ Homepage = "https://github.com/python-trio/sniffio"
3434
Documentation = "https://sniffio.readthedocs.io/"
3535
Changelog = "https://sniffio.readthedocs.io/en/latest/history.html"
3636

37+
[dependency-groups]
38+
test = [
39+
"pytest",
40+
"pytest-cov",
41+
"curio",
42+
]
43+
rtd = [
44+
"sphinx >= 1.6.1",
45+
"sphinx_rtd_theme",
46+
"sphinxcontrib-trio",
47+
]
48+
3749
[tool.setuptools.dynamic]
3850
version = {attr = "sniffio._version.__version__"}
3951

test-requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)