diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3114dfa..2e95161 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,6 +5,7 @@ updates: exclude-paths: - "requirements-dev.txt" - "setup.py" + - "pyproject.toml" schedule: interval: weekly time: "01:30" diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 8e35fc9..3ccc384 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -17,12 +17,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install build twine - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist bdist_wheel - twine upload dist/*.tar.gz - twine upload dist/*.whl + python -m build + twine upload dist/* diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e35a0e..c0ae3a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - `IPv6ThreadLocalAdapter` class ### Changed - `Python 3.15` added to `test.yml` +- Build system modified ## [0.2] - 2026-09-14 ### Added - `IPForceAdapter` unified factory function diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..8f40f55 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools>=61.0.0", "wheel>=0.37.0"] +build-backend = "setuptools.build_meta" diff --git a/requirements-dev.txt b/requirements-dev.txt index 0b02ecd..6b7580d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,4 @@ -setuptools>=40.8.0 +setuptools>=61.0.0 vulture>=1.0 bandit>=1.5.1 pydocstyle>=6.3.0 diff --git a/setup.py b/setup.py index 15548ad..0ebba55 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,6 @@ def read_description() -> str: classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Natural Language :: English', - 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8',