Skip to content

Commit

Permalink
Replace [dev] optional dependencies with requirements-dev.txt
Browse files Browse the repository at this point in the history
Fixes #519
  • Loading branch information
mhostetter committed Nov 4, 2023
1 parent 21e2f71 commit e1a4941
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 20 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ jobs:
- name: Upgrade pip
run: python3 -m pip install --upgrade pip

- name: Install the `galois` package with [dev]
run: python3 -m pip install .[dev]
- name: Install the dev requirements
run: python3 -m pip install -r requirements-dev.txt

- name: Install the `galois` package
run: python3 -m pip install .

- name: Lint with ruff
run: python3 -m ruff check --output-format=github .
Expand All @@ -48,8 +51,11 @@ jobs:
- name: Upgrade pip
run: python3 -m pip install --upgrade pip

- name: Install the `galois` package with [dev]
run: python3 -m pip install .[dev]
- name: Install the dev requirements
run: python3 -m pip install -r requirements-dev.txt

- name: Install the `galois` package
run: python3 -m pip install .

- name: Format with ruff
run: python3 -m ruff format --check .
21 changes: 15 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ jobs:
files: galois-*.whl
working-directory: dist/

- name: Install the `galois` package wheel with upgraded [dev]
run: python3 -m pip install --upgrade dist/${{ steps.glob.outputs.paths }}[dev]
- name: Install the dev dependencies
run: python3 -m pip install -r requirements-dev.txt

- name: Install the `galois` package wheel with upgraded dependencies
run: python3 -m pip install --upgrade dist/${{ steps.glob.outputs.paths }}

- name: Test with pytest
run: python3 -m pytest -n auto --cov=galois --cov-report=xml tests/
Expand Down Expand Up @@ -109,8 +112,11 @@ jobs:
- name: Install minimum package dependencies
run: python3 -m pip install -r requirements-min.txt

- name: Install the `galois` package wheel with [dev]
run: python3 -m pip install dist/${{ steps.glob.outputs.paths }}[dev]
- name: Install the dev dependencies
run: python3 -m pip install -r requirements-dev.txt

- name: Install the `galois` package wheel
run: python3 -m pip install dist/${{ steps.glob.outputs.paths }}

- name: Test with pytest
run: python3 -m pytest -n auto tests/
Expand Down Expand Up @@ -156,8 +162,11 @@ jobs:
files: galois-*.whl
working-directory: dist/

- name: Install the `galois` package wheel with upgraded [dev]
run: python3 -m pip install --upgrade dist/${{ steps.glob.outputs.paths }}[dev]
- name: Install the dev dependencies
run: python3 -m pip install -r requirements-dev.txt

- name: Install the `galois` package wheel with upgraded dependencies
run: python3 -m pip install --upgrade dist/${{ steps.glob.outputs.paths }}

- name: Test with pytest
run: python3 -m pytest -n auto tests/
Expand Down
11 changes: 1 addition & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,7 @@ dependencies = [
]
dynamic = ["version"]

[project.optional-dependencies]
dev = [
"ruff == 0.1.4",
"pytest",
"pytest-cov[toml]",
"pytest-xdist",
"pytest-benchmark >= 4.0.0",
"requests",
"pdfminer.six",
]
# [project.optional-dependencies]

[project.urls]
Homepage = "https://github.com/mhostetter/galois"
Expand Down
7 changes: 7 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ruff == 0.1.4
pytest
pytest-cov[toml]
pytest-xdist
pytest-benchmark >= 4.0.0
requests
pdfminer.six

0 comments on commit e1a4941

Please sign in to comment.