Content-Length: 312836 | pFad | http://github.com/googleapis/google-cloud-python/commit/d01ab0a59d9ee38e9fd7f5c8328b6e3eb1d91323

7C chore: prevent normalization of semver versioning (#67) · googleapis/google-cloud-python@d01ab0a · GitHub
Skip to content

Commit d01ab0a

Browse files
authored
chore: prevent normalization of semver versioning (#67)
* chore: prevent normalization of semver versioning * chore: update workaround to make sic work
1 parent de0f579 commit d01ab0a

File tree

1 file changed

+16
-1
lines changed
  • packages/google-cloud-access-approval

1 file changed

+16
-1
lines changed

packages/google-cloud-access-approval/setup.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@
1919

2020
import setuptools
2121

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+
2237

2338
name = "google-cloud-access-approval"
2439
description = "Access Approval API client library"
@@ -50,7 +65,7 @@
5065

5166
setuptools.setup(
5267
name=name,
53-
version=version,
68+
version=sic(version),
5469
description=description,
5570
long_description=readme,
5671
author="Google LLC",

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/google-cloud-python/commit/d01ab0a59d9ee38e9fd7f5c8328b6e3eb1d91323

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy