Skip to content

Commit 1b04e58

Browse files
migrated from setup.py to pyproject.toml
1 parent d09eff1 commit 1b04e58

File tree

7 files changed

+50
-53
lines changed

7 files changed

+50
-53
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: |
2222
python -m pip install --upgrade pip
2323
pip install -U coveralls
24-
pip install -r requirements.txt
24+
pip install -e .[dev]
2525
- name: Run tests
2626
run: |
2727
coverage run --branch pedantic/tests/tests_main.py
@@ -33,21 +33,23 @@ jobs:
3333
deploy:
3434
needs: test
3535
runs-on: ubuntu-latest
36-
if: github.ref == 'refs/heads/master' # only on master
36+
if: github.ref == 'refs/heads/master'
3737
environment:
3838
name: pypi-deployment
3939
steps:
4040
- uses: actions/checkout@v4
4141
- name: Set up Python
4242
uses: actions/setup-python@v5
4343
with:
44-
python-version: 3.12 # Specify the Python version you want to use for deployment
44+
python-version: 3.12
45+
- name: Install Build Tools
46+
run: |
47+
pip install -U build twine
4548
- name: Set Twine Environment Variables
4649
run: |
4750
echo "TWINE_USERNAME=${{ secrets.PYPI_USERNAME }}" >> $GITHUB_ENV
4851
echo "TWINE_PASSWORD=${{ secrets.PYPI_PASSWORD }}" >> $GITHUB_ENV
4952
- name: Build and Upload to PyPI
5053
run: |
51-
pip install -U setuptools twine wheel
52-
python setup.py bdist_wheel
53-
twine upload dist/*.whl # Uploads the wheel file to PyPI
54+
python -m build
55+
twine upload dist/*

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## Pedantic 2.2.0
3+
- migrated from `setup.py` to `pyproject.toml`
4+
25
## Pedantic 2.1.11
36
- improve `GenericMixin` such that it also find bound type variables in parent classes
47

create_pdoc.bat

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

create_requirements.bat

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "pedantic"
7+
version = "2.2.0"
8+
description = "Some useful Python decorators for cleaner software development."
9+
readme = "README.md"
10+
requires-python = ">=3.11"
11+
license = {text = "Apache-2.0 License"}
12+
authors = [
13+
{name = "Willi Sontopski", email = "[email protected]"},
14+
]
15+
maintainers = [
16+
{name = "Willi Sontopski", email = "[email protected]"},
17+
]
18+
keywords = ["decorators", "tools", "helpers", "type-checking", "pedantic", "type annotations"]
19+
classifiers = [
20+
"Programming Language :: Python :: 3",
21+
"License :: OSI Approved :: Apache Software License",
22+
"Operating System :: OS Independent",
23+
]
24+
25+
[project.urls]
26+
"Bug Tracker" = "https://github.com/LostInDarkMath/pedantic-python-decorators/issues"
27+
"Documentation" = "https://lostindarkmath.github.io/pedantic-python-decorators/pedantic/"
28+
"Source Code" = "https://github.com/LostInDarkMath/pedantic-python-decorators"
29+
30+
[project.optional-dependencies]
31+
dev = [
32+
"docstring-parser==0.17",
33+
"Flask[async]==3.1.1",
34+
"multiprocess==0.70.18",
35+
"Werkzeug==3.1.3",
36+
]
37+
38+
[tool.setuptools.packages.find]
39+
where = ["."]

requirements.txt

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

setup.py

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

0 commit comments

Comments
 (0)