File tree Expand file tree Collapse file tree 2 files changed +4
-32
lines changed
Expand file tree Collapse file tree 2 files changed +4
-32
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
2+ import os
23import pathlib
34import subprocess
45import sys
1011here = pathlib .Path ().absolute ()
1112
1213
14+ ENV_LINODE_CLI_VERSION = "LINODE_CLI_VERSION"
15+
1316# get the long description from the README.md
1417with open (here / "README.md" , encoding = "utf-8" ) as f :
1518 long_description = f .read ()
@@ -31,16 +34,6 @@ def get_baked_files():
3134 return data_files
3235
3336
34- def get_version ():
35- """
36- Uses the version file to calculate this package's version
37- """
38- return (
39- subprocess .check_output ([sys .executable , "./version" ])
40- .decode ("utf-8" )
41- .rstrip ()
42- )
43-
4437
4538def get_baked_version ():
4639 """
@@ -71,7 +64,7 @@ def bake_version(v):
7164 version = get_baked_version ()
7265else :
7366 # Otherwise, retrieve and bake the version as normal
74- version = get_version ()
67+ version = os . getenv ( ENV_LINODE_CLI_VERSION ) or "0.0.0"
7568 bake_version (version )
7669
7770with open ("requirements.txt" ) as f :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments