Fixed bug in version naming.
With git flow, the version is read by the tag (base_version) in setuptools_scm.
This commit is contained in:
		
							parent
							
								
									4890a9e1f9
								
							
						
					
					
						commit
						0f2a556aa2
					
				|  | @ -35,10 +35,11 @@ try: | |||
|     from setuptools_scm import get_version | ||||
|     v = get_version(root='../../../', relative_to=__file__, version_scheme="post-release") | ||||
|     v = parse_version(v) | ||||
|     if v._version.post[-1] == 0: | ||||
|     __version__ = v.base_version | ||||
|     else: | ||||
|         __version__ = v.public | ||||
|     # if v._version.post[-1] == 0: | ||||
|         # __version__ = v.base_version | ||||
|     # else: | ||||
|         # __version__ = v.public | ||||
| except Exception as err: | ||||
|     try: | ||||
|         __version__ = get_distribution(__name__.strip('.version')).version | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue