File tree 1 file changed +1
-16
lines changed
1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import setuptools
19
19
20
- # Disable version normalization performed by setuptools.setup()
21
- # Including this workaround for Python2.7 support
22
- try :
23
- # Try the approach of using sic(), added in setuptools 46.1.0
24
- from setuptools import sic
25
- except ImportError :
26
- # Try the approach of replacing packaging.version.Version
27
- sic = lambda v : v
28
- try :
29
- # setuptools >=39.0.0 uses packaging from setuptools.extern
30
- from setuptools .extern import packaging
31
- except ImportError :
32
- # setuptools <39.0.0 uses packaging from pkg_resources.extern
33
- from pkg_resources .extern import packaging
34
- packaging .version .Version = packaging .version .LegacyVersion
35
20
36
21
# Package metadata.
37
22
89
74
90
75
setuptools .setup (
91
76
name = name ,
92
- version = sic ( version ) ,
77
+ version = version ,
93
78
description = description ,
94
79
long_description = readme ,
95
80
author = "Google LLC" ,
You can’t perform that action at this time.
0 commit comments