Skip to content

Commit

Permalink
feat: add support for setuptools_scm
Browse files Browse the repository at this point in the history
  • Loading branch information
qdelamea-aneo committed Nov 2, 2024
1 parent f312dd1 commit 304a977
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Auto-generated version file
**/_version.py

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[build-system]
requires = ["setuptools",
requires = ["setuptools>=64",
"setuptools-scm>=8",
"wheel"]
build-backend = "setuptools.build_meta"

Expand Down Expand Up @@ -36,7 +37,6 @@ dependencies = [

[tool.setuptools]
include-package-data = true
dynamic = {version = {attr = "armonik_cli.__version__"}}

[tool.setuptools.packages.find]
where= ["src"]
Expand All @@ -58,3 +58,8 @@ dev = [

[project.scripts]
armonik = "armonik_cli.cli:cli"

[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "no-local-version"
version_file = "src/armonik_cli/_version.py"
2 changes: 1 addition & 1 deletion src/armonik_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from armonik_cli.version import __version__
from armonik_cli._version import __version__


__all__ = ["__version__"]
1 change: 0 additions & 1 deletion src/armonik_cli/version.py

This file was deleted.

0 comments on commit 304a977

Please sign in to comment.