Skip to content

Commit 1207490

Browse files
author
dslosky-usgs
committed
Grab version from file
1 parent 4376f2d commit 1207490

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@
1919
with open(path.join(here, 'requirements.txt'), 'r') as f:
2020
req_list = f.read().splitlines()
2121

22+
with open(path.join(here, 'shakecast/version'), 'r') as f:
23+
release_version = f.read()
24+
2225
setup(
2326
name='usgs-shakecast',
2427

2528
# Versions should comply with PEP440. For a discussion on single-sourcing
2629
# the version across setup.py and the project code, see
2730
# https://packaging.python.org/en/latest/single_source_version.html
28-
version='4.1.1',
31+
version=release_version,
2932

3033
description='Real time facility monitoring and notifications for earthquake impacts',
3134
long_description=long_description,

0 commit comments

Comments
 (0)