Skip to content

Commit

Permalink
chore(revert): revert preventing normalization (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
dandhlee authored Apr 26, 2021
1 parent 8e065fe commit 49c1be2
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions packages/google-cloud-containeranalysis/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,6 @@

import setuptools

# 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

name = "google-cloud-containeranalysis"
description = "Container Analysis API API client library"
Expand Down Expand Up @@ -67,7 +53,7 @@

setuptools.setup(
name=name,
version=sic(version),
version=version,
description=description,
long_description=readme,
author="Google LLC",
Expand Down

0 comments on commit 49c1be2

Please sign in to comment.