Skip to content

Commit

Permalink
pyproject: add setuptools-scm
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Mar 11, 2024
1 parent e5dca9f commit 94b9c72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.DS_Store
*.egg-info
__pycache__
applecatalog/_version.py
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[project]
name = "applecatalog"
version = "2.0.2"
description = "AppleCatalog download agent"
readme = "README.md"
requires-python = ">=3.8"
Expand All @@ -22,7 +21,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3 :: Only",
]
dynamic = ["dependencies"]
dynamic = ["dependencies", "version"]

[project.optional-dependencies]
test = ["pytest"]
Expand All @@ -39,7 +38,11 @@ exclude = ["docs*", "tests*"]

[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }
version = {attr = "applecatalog._version.__version__"}

[tool.setuptools_scm]
version_file = "applecatalog/_version.py"

[build-system]
requires = ["setuptools>=43.0.0", "wheel"]
requires = ["setuptools>=43.0.0", "setuptools_scm>=8", "wheel"]
build-backend = "setuptools.build_meta"

0 comments on commit 94b9c72

Please sign in to comment.