Skip to content

Commit 676f819

Browse files
sthapaBenGalewsky
authored andcommitted
Get version from environment
1 parent 150772d commit 676f819

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

setup.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,24 @@
2626
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2727
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
# setuptools loads some plugins necessary for use here.
29+
import os
30+
2931
from setuptools import find_packages # noqa: F401
3032
from distutils.core import setup
3133

34+
35+
version = os.getenv('servicex_version')
36+
if version is None:
37+
version = '0.1a1'
38+
else:
39+
version = version.split('/')[-1]
40+
3241
# Use the readme as the long description.
3342
with open("README.md", "r") as fh:
3443
long_description = fh.read()
3544

3645
setup(name="servicex-cli",
37-
version='1.0.0',
46+
version=version,
3847
packages=find_packages('src'),
3948
package_dir={'': 'src'},
4049
scripts=[],

0 commit comments

Comments
 (0)