Skip to content

Commit

Permalink
Configure setuptools_scm via pyproject.toml
Browse files Browse the repository at this point in the history
Configuring it via `setup.py` is deprecated. Use `python -m
setuptools_scm` to get the version of the current checkout.
  • Loading branch information
Hugo Osvaldo Barrera committed Jul 11, 2022
1 parent b002415 commit 72ad412
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]

[tool.setuptools_scm]
write_to = "barcode/version.py"
version_scheme = "post-release"
4 changes: 0 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
"Topic :: Software Development :: Libraries :: Python Modules",
],
entry_points={"console_scripts": ["python-barcode = barcode.pybarcode:main"]},
use_scm_version={
"version_scheme": "post-release",
"write_to": "barcode/version.py",
},
setup_requires=["setuptools_scm"],
extras_require={"images": ["pillow"]},
include_package_data=True,
Expand Down

0 comments on commit 72ad412

Please sign in to comment.