This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #588 from locriandev/ART-3981-improve-version-hand…
…ling-for-elliott-and-doozer [ART-3981] Improve version handling for Doozer
- Loading branch information
Showing
4 changed files
with
7 additions
and
12 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import sys | ||
if sys.version_info < (3, 6): | ||
sys.exit('Sorry, Python < 3.6 is not supported.') | ||
import io | ||
|
||
from setuptools_scm import get_version | ||
|
||
from .runtime import Runtime | ||
from .pushd import Dir | ||
|
||
|
||
def version(): | ||
from os.path import abspath, dirname, join | ||
filename = join(dirname(abspath(__file__)), 'VERSION') | ||
return io.open(filename, encoding="utf-8").read().strip() | ||
return get_version() |
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 |
---|---|---|
|
@@ -15,3 +15,4 @@ wrapt | |
mysql-connector-python~=8.0.21 | ||
python-dateutil~=2.8.1 | ||
openshift-client~=1.0.12 | ||
setuptools-scm |
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