Skip to content

Commit a82bf08

Browse files
Merge pull request #177 from packit/pyproject.toml
Switch from setup.py to pyproject.toml Reviewed-by: Tomas Tomecek <[email protected]> Reviewed-by: Nikola Forró <None>
2 parents bffd9f6 + 53b7ee0 commit a82bf08

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

.packit.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ actions:
3030
# LookupError: setuptools-scm was unable to detect version for '/builddir/build/BUILD/ogr-0.11.1'.
3131
# Make sure you're either building from a fully intact git repository or PyPI tarballs.
3232
create-archive:
33-
- python3 setup.py sdist --dist-dir ./fedora/
33+
- python3 -m build --sdist --outdir ./fedora/
3434
- bash -c "ls -1t ./fedora/*.tar.gz | head -n 1"
35-
get-current-version: python3 setup.py --version
35+
get-current-version: python3 -m setuptools_scm
3636
pre-sync:
3737
# FMF has to be installed on system where you are calling this tool.
3838
- python3 plans/git_reference.py
3939

4040
srpm_build_deps:
41-
- python3-pip # "python3 setup.py --version" needs it
41+
- python3-build
4242
- python3-setuptools_scm
4343

4444
jobs:

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=45",
4+
"setuptools_scm[toml]",
5+
"setuptools_scm_git_archive",
6+
]
7+
build-backend = "setuptools.build_meta"
8+
9+
[tool.setuptools_scm]
10+
version_scheme = "post-release"

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ install_requires =
3636
typing-extensions
3737
python_requires = >=3.9
3838
include_package_data = True
39-
setup_requires =
40-
setuptools_scm
41-
setuptools_scm_git_archive
4239

4340
[options.extras_require]
4441
testing =

setup.py

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

0 commit comments

Comments
 (0)