Skip to content

Commit 195bb97

Browse files
Move optional dependencies from dev_requirements to pyproject.toml; Introduce Hatchling Build (#268)
Co-authored-by: konstantin <konstantin.klein@hochfrequenz.de>
1 parent fa5f290 commit 195bb97

23 files changed

Lines changed: 127 additions & 266 deletions

.github/workflows/black.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install -r ./dev_requirements/requirements-formatting.txt
25+
pip install .[formatting]
2626
- name: Black Code Formatter
2727
run: |
2828
black . --check

.github/workflows/python-publish.yml

Lines changed: 7 additions & 3 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
@@ -45,14 +49,14 @@ jobs:
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-test_packaging.txt
59+
pip install .[test_packaging]
5660
- name: Build wheel and source distributions
5761
run: |
5862
python -m build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The framework
2121
- enforces users to adapt to structured and consistent patterns
2222
- and by doing so will lead to higher chances for maintainable and reusable code.
2323

24-
## Architeture / Overview
24+
## Architecture / Overview
2525
The overall setup for a migration from 1-n source systems (A, B, C...) to 1-m target systems (1,2, 3...) might look like this:
2626

2727
```mermaid

dev_requirements/requirements-coverage.in

Lines changed: 0 additions & 1 deletion
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 & 2 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 & 1 deletion
This file was deleted.

dev_requirements/requirements-linting.txt

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

dev_requirements/requirements-test_packaging.in

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

0 commit comments

Comments
 (0)