Skip to content

Commit 235ac12

Browse files
committed
Switch to dependency groups
1 parent 9862b6a commit 235ac12

File tree

10 files changed

+7
-73
lines changed

10 files changed

+7
-73
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
python3 -m venv venv
2121
source venv/bin/activate
2222
python -m pip install --upgrade pip wheel setuptools
23-
python -m pip install --upgrade -r requirements/doc.txt
23+
python -m pip install --upgrade --group doc
2424
python -m pip list
2525
- save_cache:
2626
key: pip-cache

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
4444
- name: Install
4545
run: |
46-
python -m pip install .[test,doc]
46+
python -m pip install . --group test --group doc
4747
pip list
4848
4949
- name: Run test suite
@@ -95,7 +95,7 @@ jobs:
9595
9696
- name: Install
9797
run: |
98-
python -m pip install .[test,doc]
98+
python -m pip install . --group test --group doc
9999
pip list
100100
101101
- name: Run test suite

.pre-commit-config.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ repos:
3131
args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"]
3232
- id: ruff-format
3333

34-
- repo: local
35-
hooks:
36-
- id: generate_requirements.py
37-
name: generate_requirements.py
38-
language: system
39-
entry: python tools/generate_requirements.py
40-
files: "pyproject.toml|requirements/.*\\.txt|tools/generate_requirements.py"
41-
4234
ci:
4335
autofix_prs: false
4436
autofix_commit_msg: |

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ include MANIFEST.in
22
include *.txt
33
include *.rst
44
recursive-include doc *
5-
recursive-include requirements *
65
recursive-include numpydoc *
76

87
# Exclude what we don't want to include

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,12 @@ file = 'LICENSE.txt'
4343
Homepage = 'https://numpydoc.readthedocs.io'
4444
Source = 'https://github.com/numpy/numpydoc/'
4545

46-
[project.optional-dependencies]
47-
developer = [
46+
[dependency-groups]
47+
dev = [
4848
'pre-commit>=3.3',
4949
"tomli; python_version < '3.11'",
50+
{ include-group = "doc" },
51+
{ include-group = "test" }
5052
]
5153
doc = [
5254
'numpy>=1.22',

requirements/default.txt

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

requirements/developer.txt

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

requirements/doc.txt

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

requirements/test.txt

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

tools/generate_requirements.py

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

0 commit comments

Comments
 (0)