Skip to content

Commit 9461e86

Browse files
Move optional dependencies from dev_requirements to pyproject.toml (#39)
* Move optional dependencies from `dev_requirements` to `pyproject.toml` * demo * Test Python 3.10 in CI to mitigate the hatch python version problem * ci: use Python3.12 in hatch * Kick python 3.10 * Revert "Kick python 3.10" This reverts commit ff845c9. * test * add comment --------- Co-authored-by: konstantin <[email protected]>
1 parent f68aadd commit 9461e86

21 files changed

+52
-218
lines changed

.github/workflows/formatting.yml

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

.github/workflows/python-publish.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,28 @@ jobs:
3535
3636
build-n-publish:
3737
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
38-
runs-on: ubuntu-latest
39-
# Specifying a GitHub environment, # Specifying a GitHub environment, which is strongly recommended by PyPI: https://docs.pypi.org/trusted-publishers/adding-a-publisher/
40-
# you have to create an environment in your repository settings and add the environment name here
38+
runs-on: ${{ matrix.os }}
39+
strategy:
40+
matrix:
41+
python-version: [ "3.12" ]
42+
os: [ ubuntu-latest ]
43+
# Specifying a GitHub environment, # Specifying a GitHub environment, which is strongly recommended by
44+
#PyPI: https://docs.pypi.org/trusted-publishers/adding-a-publisher/
45+
# you have to create an environment in your repository settings and add the environment name here
4146
environment: release
4247
permissions:
43-
# IMPORTANT: this permission is mandatory for trusted publishing
4448
id-token: write
4549
needs: tests
4650
steps:
4751
- uses: actions/checkout@v4
48-
- name: Set up Python
52+
- name: Set up Python ${{ matrix.python-version }}
4953
uses: actions/setup-python@v5
5054
with:
5155
python-version: ${{ matrix.python-version }}
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

.github/workflows/unittests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
pip install tox
2525
- name: install pydantic if requested
2626
if: matrix.run_step == 'true'
27-
run: pip install -r dev_requirements/requirements-pydantic.txt
27+
run: pip install .[pydantic]
2828
- name: Run the Unit Tests via Tox
2929
run: |
3030
tox -e tests

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.

0 commit comments

Comments
 (0)