Skip to content

Commit 841dbab

Browse files
committed
Correct version for pip install. issue #39
1 parent d57a7d6 commit 841dbab

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.0.1

setup.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545

4646
from setuptools import setup, find_packages, Command
4747

48+
from lisvap import __version__
49+
4850
current_dir = os.path.abspath(os.path.dirname(__file__))
4951
sys.path.append(os.path.join(current_dir, './src/'))
5052

@@ -53,11 +55,6 @@
5355
with open(readme_file, 'r') as f:
5456
long_description = f.read()
5557

56-
version_file = os.path.join(current_dir, 'VERSION')
57-
58-
with open(version_file, 'r') as f:
59-
version = f.read().strip()
60-
6158

6259
class UploadCommand(Command):
6360
"""Support setup.py upload."""
@@ -89,15 +86,15 @@ def run(self):
8986
os.system('twine upload dist/*')
9087

9188
self.print_console('Pushing git tags...')
92-
os.system('git tag v{0}'.format(version))
89+
os.system('git tag v{0}'.format(__version__))
9390
os.system('git push --tags')
9491

9592
sys.exit()
9693

9794

9895
setup(
9996
name='lisflood-lisvap',
100-
version=version,
97+
version=__version__,
10198
package_dir={'': 'src'},
10299
py_modules=[os.path.splitext(os.path.basename(path))[0] for path in glob('src/*.py')],
103100
include_package_data=True,

src/lisvap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
__version__ = '.'.join(list(map(str, version)))
44
__date__ = "27/03/2020"
55
__copyright__ = "Copyright 2020, Lisflood Open Source"
6-
__maintainers__ = "Domenico Nappo, Valerio Lorini, Lorenzo Mentaschi, Lorenzo Alfieri"
6+
__maintainers__ = "Goncalo Gomes, Domenico Nappo, Valerio Lorini, Lorenzo Mentaschi, Lorenzo Alfieri"
77
__status__ = "Operation"

0 commit comments

Comments
 (0)