Skip to content

Commit

Permalink
pyproject: use setuptools-scm
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Jun 18, 2024
1 parent 525fd4d commit d3f54f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ debug/
*.DS_Store
tickets
.idea

cfprefsmon/_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 = "cfprefsmon"
version = "1.0.0"
description = "Search for interesting internal preferences inside a connected iDevice"
readme = "README.md"
requires-python = ">=3.8"
Expand All @@ -23,7 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
]
dynamic = ["dependencies"]
dynamic = ["dependencies", "version"]

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

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

[tool.setuptools_scm]
version_file = "cfprefsmon/_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 d3f54f8

Please sign in to comment.