From 9a5f4c1ad331ca9d7dcb81c00f20c9e6901e0e08 Mon Sep 17 00:00:00 2001 From: Dan Lee <71398022+dandhlee@users.noreply.github.com> Date: Mon, 26 Apr 2021 14:23:19 -0400 Subject: [PATCH] chore(revert): revert preventing normalization (#53) --- packages/google-analytics-admin/setup.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/packages/google-analytics-admin/setup.py b/packages/google-analytics-admin/setup.py index 1d6088aa4e12..b0b68feb0cc9 100644 --- a/packages/google-analytics-admin/setup.py +++ b/packages/google-analytics-admin/setup.py @@ -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.0" package_root = os.path.abspath(os.path.dirname(__file__)) @@ -45,7 +30,7 @@ setuptools.setup( name="google-analytics-admin", - version=sic(version), + version=version, long_description=readme, author="Google LLC", author_email="googleapis-packages@google.com",