-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(revert): revert preventing normalization (#44)
- Loading branch information
Showing
1 changed file
with
1 addition
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,21 +19,6 @@ | |
import os | ||
import setuptools # type: ignore | ||
|
||
# Disable version normalization performed by setuptools.setup() | ||
try: | ||
# Try the approach of using sic(), added in setuptools 46.1.0 | ||
from setuptools import sic | ||
except ImportError: | ||
# Try the approach of replacing packaging.version.Version | ||
sic = lambda v: v | ||
try: | ||
# setuptools >=39.0.0 uses packaging from setuptools.extern | ||
from setuptools.extern import packaging | ||
except ImportError: | ||
# setuptools <39.0.0 uses packaging from pkg_resources.extern | ||
from pkg_resources.extern import packaging | ||
packaging.version.Version = packaging.version.LegacyVersion | ||
|
||
version = "0.2.1" | ||
|
||
package_root = os.path.abspath(os.path.dirname(__file__)) | ||
|
@@ -44,7 +29,7 @@ | |
|
||
setuptools.setup( | ||
name="google-cloud-compute", | ||
version=sic(version), | ||
version=version, | ||
long_description=readme, | ||
author="Google LLC", | ||
author_email="[email protected]", | ||
|