Skip to content

Commit 6c175a5

Browse files
authored
Move optional dependencies from dev_requirements to pyproject.toml (#113)
1 parent d1c88c6 commit 6c175a5

16 files changed

+40
-188
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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ jobs:
3535
3636
build-n-publish:
3737
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
38-
runs-on: ubuntu-latest
38+
runs-on: ${{ matrix.os }}
39+
strategy:
40+
matrix:
41+
python-version: [ "3.12" ]
42+
os: [ ubuntu-latest ]
3943
# Specifying a GitHub environment, # Specifying a GitHub environment, which is strongly recommended by PyPI: https://docs.pypi.org/trusted-publishers/adding-a-publisher/
4044
# you have to create an environment in your repository settings and add the environment name here
4145
environment: release
@@ -52,7 +56,7 @@ jobs:
5256
- name: Install dependencies
5357
run: |
5458
python -m pip install --upgrade pip
55-
pip install -r dev_requirements/requirements-packaging.txt
59+
pip install .[test_packaging]
5660
- name: Build wheel and source distributions
5761
run: |
5862
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 & 9 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 & 21 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 & 21 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)