Skip to content

Commit

Permalink
fix: Working on fixing setuptools_scm
Browse files Browse the repository at this point in the history
Added _version file and fallback_version entry
  • Loading branch information
mike-pisman committed Sep 3, 2023
1 parent 48caf98 commit 26b5ea4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "setuptools-scm", "build"]
requires = ["setuptools", "setuptools-scm[toml]", "build"]
# requires = ["setuptools", "build"]
build-backend = "setuptools.build_meta"

Expand Down Expand Up @@ -70,6 +70,9 @@ plugins = [
]

[tool.setuptools_scm]
version_file = "src/_version.py"
write_to = "src/_version.py"
fallback_version = "0.0.0-dev"

[tool.semantic_release]
version_source = "tag_only"
Expand Down
4 changes: 4 additions & 0 deletions src/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# file generated by setuptools_scm
# don't change, don't track in version control
__version__ = version = '0.6.2.dev38+g48caf98.d20230903'
__version_tuple__ = version_tuple = (0, 6, 2, 'dev38', 'g48caf98.d20230903')

0 comments on commit 26b5ea4

Please sign in to comment.