Skip to content

Commit

Permalink
Fix current version logic
Browse files Browse the repository at this point in the history
If you are releasing a package from inside a docker container where the package is already install, it will throw off your versioning
  • Loading branch information
Kyle Rockman committed Nov 12, 2015
1 parent 692c56c commit 9291287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions version/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ def get_version_from_pypi(package):

@staticmethod
def get_version(package):
version = VersionUtils.get_version_from_pkg_resources(package)
version = VersionUtils.get_version_from_pip(package)
if not version:
version = VersionUtils.get_version_from_pip(package)
version = VersionUtils.get_version_from_pkg_resources(package)
if not version:
version = VersionUtils.get_version_from_pypi(package)
# probably could add a few more methods here to try
Expand Down

0 comments on commit 9291287

Please sign in to comment.