-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use setuptools_scm to generate package version - Merge pull request #14…
… from gotmax23/setuptools-scm Use setuptools_scm to generate package version
- Loading branch information
Showing
4 changed files
with
18 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
requires = ["setuptools>=61.0", "setuptools_scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "clipman" | ||
version = "!!{PLACEHOLDER}!!" # PLEASE RUN tags_marker.py BEFORE PACKAGING | ||
dynamic = ["version"] # setuptools_scm | ||
authors = [ | ||
{name="NikitaBeloglazov", email="[email protected]"}, | ||
] | ||
|
@@ -28,3 +28,13 @@ classifiers = [ | |
[project.urls] | ||
"Homepage" = "https://github.com/NikitaBeloglazov/clipman" | ||
"Bug Tracker" = "https://github.com/NikitaBeloglazov/clipman/issues" | ||
|
||
[tool.setuptools_scm] | ||
# DO NOT add numbers to version. I decide which version I need to post | ||
version_scheme = "release-branch-semver" | ||
|
||
# get only tag, 3.2.0, not an 3.2.0.dev17+g2868326.d20240223abcdefghijklmnopqrstuvwxyz | ||
git_describe_command = "git describe --tags main" | ||
|
||
# overwrites an fallback template | ||
version_file = "src/clipman/__version__.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
""" | ||
Created for storing version number. | ||
The version number will be placed here based on the tag in Github using the tags_marker.py script. | ||
The version number will be placed here based on the tag in Github using the setuptools_scm. | ||
This file must be overwritten | ||
Having "!!{PLACEHOLDER}!!" in final releases is NOT allowed. | ||
Having 0.0.0 in final releases is NOT allowed. | ||
If you see this comment, setuptools_scm was not started | ||
""" | ||
__version__="!!{PLACEHOLDER}!!" | ||
__version__ = version = '0.0.0' | ||
__version_tuple__ = version_tuple = (0, 0, 0) |
This file was deleted.
Oops, something went wrong.