@@ -57,6 +57,20 @@ def create_extensions():
57
57
with open (os .path .abspath (_thisPath + "/README.md" )) as f :
58
58
long_description = f .read ()
59
59
60
+ def myversion ():
61
+ from setuptools_scm .version import SEMVER_MINOR , guess_next_simple_semver , release_branch_semver_version
62
+
63
+ def my_release_branch_semver_version (version ):
64
+ v = release_branch_semver_version (version )
65
+ if v == version .format_next_version (guess_next_simple_semver , retain = SEMVER_MINOR ):
66
+ # return version.format_next_version(guess_next_simple_semver, fmt="{guessed}") # , retain=SEMVER_MINOR)
67
+ return version .format_next_version (guess_next_simple_semver , fmt = "{guessed}" , retain = SEMVER_MINOR )
68
+ return v
69
+
70
+ return {
71
+ 'version_scheme' : my_release_branch_semver_version ,
72
+ 'local_scheme' : 'no-local-version' ,
73
+ }
60
74
setup (
61
75
name = "brightest-path-lib" ,
62
76
description = "A library of path-finding algorithms to find the brightest path between points in an image." ,
@@ -75,7 +89,7 @@ def create_extensions():
75
89
#packages=["brightest_path_lib"],
76
90
#packages=find_packages(),
77
91
packages = packages ,
78
- use_scm_version = True ,
92
+ use_scm_version = myversion , # True,
79
93
setup_requires = setup_requires ,
80
94
install_requires = ["numpy" , "transonic" ],
81
95
extras_require = {
0 commit comments