File tree 1 file changed +16
-1
lines changed
packages/google-cloud-access-approval
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
23
38
name = "google-cloud-access-approval"
24
39
description = "Access Approval API client library"
50
65
51
66
setuptools .setup (
52
67
name = name ,
53
- version = version ,
68
+ version = sic ( version ) ,
54
69
description = description ,
55
70
long_description = readme ,
56
71
author = "Google LLC" ,
You can’t perform that action at this time.
0 commit comments