Skip to content

Commit 75f3f45

Browse files
authored
Move optional dependencies from dev_requirements to pyproject.toml (#86)
1 parent 15bdd34 commit 75f3f45

18 files changed

+50
-190
lines changed

.github/workflows/formatting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip
21-
pip install -r dev_requirements/requirements-formatting.txt
21+
pip install .[formatting]
2222
- name: ${{ matrix.tool }} Code Formatter
2323
run: |
2424
${{ matrix.tool }} . --check

.github/workflows/python-publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ jobs:
5151
5252
build-n-publish:
5353
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
54-
runs-on: ubuntu-latest
54+
runs-on: ${{ matrix.os }}
55+
strategy:
56+
matrix:
57+
python-version: [ "3.12" ]
58+
os: [ ubuntu-latest ]
5559
# Specifying a GitHub environment, # Specifying a GitHub environment, which PyPI strongly recommends: https://docs.pypi.org/trusted-publishers/adding-a-publisher/
5660
# you have to create an environment in your repository settings and add the environment name here
5761
environment: release
@@ -62,14 +66,14 @@ jobs:
6266
# Once your downstream code relies on a broken but released version of a library, you're in trouble.
6367
steps:
6468
- uses: actions/checkout@v4
65-
- name: Set up Python
69+
- name: Set up Python ${{ matrix.python-version }}
6670
uses: actions/setup-python@v5
6771
with:
6872
python-version: ${{ matrix.python-version }}
6973
- name: Install dependencies
7074
run: |
7175
python -m pip install --upgrade pip
72-
pip install -r dev_requirements/requirements-packaging.txt
76+
pip install .[packaging]
7377
- name: Build wheel and source distributions
7478
run: |
7579
python -m build

dev_requirements/requirements-coverage.in

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

dev_requirements/requirements-coverage.txt

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

dev_requirements/requirements-formatting.in

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

dev_requirements/requirements-formatting.txt

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

dev_requirements/requirements-linting.in

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

dev_requirements/requirements-linting.txt

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

dev_requirements/requirements-packaging.in

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

dev_requirements/requirements-packaging.txt

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

0 commit comments

Comments
 (0)