File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 19
19
20
20
import setuptools
21
21
22
+ # Disable version normalization performed by setuptools.setup()
23
+ try :
24
+ # Try the approach of using sic(), added in setuptools 46.1.0
25
+ from setuptools import sic
26
+ except ImportError :
27
+ # Try the approach of replacing packaging.version.Version
28
+ sic = lambda v : v
29
+ try :
30
+ # setuptools >=39.0.0 uses packaging from setuptools.extern
31
+ from setuptools .extern import packaging
32
+ except ImportError :
33
+ # setuptools <39.0.0 uses packaging from pkg_resources.extern
34
+ from pkg_resources .extern import packaging
35
+ packaging .version .Version = packaging .version .LegacyVersion
36
+
22
37
name = "grafeas"
23
38
description = "Grafeas API client library"
24
39
version = "1.0.1"
45
60
46
61
setuptools .setup (
47
62
name = name ,
48
- version = version ,
63
+ version = sic ( version ) ,
49
64
description = description ,
50
65
long_description = readme ,
51
66
author = "Google LLC" ,
You can’t perform that action at this time.
0 commit comments