Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -U coveralls
pip install -r requirements.txt
pip install -e .[dev]
- name: Run tests
run: |
coverage run --branch pedantic/tests/tests_main.py
Expand All @@ -33,21 +33,23 @@ jobs:
deploy:
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' # only on master
if: github.ref == 'refs/heads/master'
environment:
name: pypi-deployment
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12 # Specify the Python version you want to use for deployment
python-version: 3.12
- name: Install Build Tools
run: |
pip install -U build twine
- name: Set Twine Environment Variables
run: |
echo "TWINE_USERNAME=${{ secrets.PYPI_USERNAME }}" >> $GITHUB_ENV
echo "TWINE_PASSWORD=${{ secrets.PYPI_PASSWORD }}" >> $GITHUB_ENV
- name: Build and Upload to PyPI
run: |
pip install -U setuptools twine wheel
python setup.py bdist_wheel
twine upload dist/*.whl # Uploads the wheel file to PyPI
python -m build
twine upload dist/*
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## Pedantic 2.2.0
- migrated from `setup.py` to `pyproject.toml`

## Pedantic 2.1.11
- improve `GenericMixin` such that it also find bound type variables in parent classes

Expand Down
4 changes: 0 additions & 4 deletions create_pdoc.bat

This file was deleted.

1 change: 0 additions & 1 deletion create_requirements.bat

This file was deleted.

39 changes: 39 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "pedantic"
version = "2.2.0"
description = "Some useful Python decorators for cleaner software development."
readme = "README.md"
requires-python = ">=3.11"
license = {text = "Apache-2.0 License"}
authors = [
{name = "Willi Sontopski", email = "[email protected]"},
]
maintainers = [
{name = "Willi Sontopski", email = "[email protected]"},
]
keywords = ["decorators", "tools", "helpers", "type-checking", "pedantic", "type annotations"]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]

[project.urls]
"Bug Tracker" = "https://github.com/LostInDarkMath/pedantic-python-decorators/issues"
"Documentation" = "https://lostindarkmath.github.io/pedantic-python-decorators/pedantic/"
"Source Code" = "https://github.com/LostInDarkMath/pedantic-python-decorators"

[project.optional-dependencies]
dev = [
"docstring-parser==0.17",
"Flask[async]==3.1.1",
"multiprocess==0.70.18",
"Werkzeug==3.1.3",
]

[tool.setuptools.packages.find]
where = ["."]
4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

38 changes: 0 additions & 38 deletions setup.py

This file was deleted.