Skip to content

Commit

Permalink
Merge pull request #7 from doronz88/feature/setuptools-scm
Browse files Browse the repository at this point in the history
pyproject: add `setuptools-scm`
  • Loading branch information
doronz88 committed Mar 11, 2024
2 parents c985ce6 + 71825ae commit 1724ade
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
python-version: [3.8, 3.9, "3.10", 3.11]
python-version: [3.8, 3.9, "3.10", 3.11, 3.12]

steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@
.DS_Store
*.egg-info
__pycache__
applecatalog/_version.py
10 changes: 7 additions & 3 deletions pyproject.toml
@@ -1,6 +1,5 @@
[project]
name = "applecatalog"
version = "2.0.2"
description = "AppleCatalog download agent"
readme = "README.md"
requires-python = ">=3.8"
Expand All @@ -20,9 +19,10 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
]
dynamic = ["dependencies"]
dynamic = ["dependencies", "version"]

[project.optional-dependencies]
test = ["pytest"]
Expand All @@ -39,7 +39,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 1724ade

Please sign in to comment.