File tree 1 file changed +16
-1
lines changed
packages/google-cloud-appengine-admin
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 19
19
import os
20
20
import setuptools # type: ignore
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 = "google-cloud-appengine-admin"
23
38
version = "0.1.0"
24
39
description = "App Engine Admin API client library"
39
54
40
55
setuptools .setup (
41
56
name = name ,
42
- version = version ,
57
+ version = sic ( version ) ,
43
58
description = description ,
44
59
long_description = readme ,
45
60
author = "Google LLC" ,
You can’t perform that action at this time.
0 commit comments