Skip to content

Commit

Permalink
chore(revert): revert preventing normalization (#66)
Browse files Browse the repository at this point in the history
reverts previous commit for preventing normalization of versioning
  • Loading branch information
dandhlee authored Apr 27, 2021
1 parent 3174f12 commit 6ff1cf0
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions packages/google-analytics-data/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.5.0"

package_root = os.path.abspath(os.path.dirname(__file__))
Expand All @@ -45,7 +30,7 @@

setuptools.setup(
name="google-analytics-data",
version=sic(version),
version=version,
long_description=readme,
author="Google LLC",
author_email="googleapis-packages@google.com",
Expand Down

0 comments on commit 6ff1cf0

Please sign in to comment.