Skip to content

Commit

Permalink
Correct version for pip install. issue #39
Browse files Browse the repository at this point in the history
  • Loading branch information
ggomes76 committed May 21, 2021
1 parent d57a7d6 commit 841dbab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
11 changes: 4 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@

from setuptools import setup, find_packages, Command

from lisvap import __version__

current_dir = os.path.abspath(os.path.dirname(__file__))
sys.path.append(os.path.join(current_dir, './src/'))

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

version_file = os.path.join(current_dir, 'VERSION')

with open(version_file, 'r') as f:
version = f.read().strip()


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

self.print_console('Pushing git tags...')
os.system('git tag v{0}'.format(version))
os.system('git tag v{0}'.format(__version__))
os.system('git push --tags')

sys.exit()


setup(
name='lisflood-lisvap',
version=version,
version=__version__,
package_dir={'': 'src'},
py_modules=[os.path.splitext(os.path.basename(path))[0] for path in glob('src/*.py')],
include_package_data=True,
Expand Down
2 changes: 1 addition & 1 deletion src/lisvap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
__version__ = '.'.join(list(map(str, version)))
__date__ = "27/03/2020"
__copyright__ = "Copyright 2020, Lisflood Open Source"
__maintainers__ = "Domenico Nappo, Valerio Lorini, Lorenzo Mentaschi, Lorenzo Alfieri"
__maintainers__ = "Goncalo Gomes, Domenico Nappo, Valerio Lorini, Lorenzo Mentaschi, Lorenzo Alfieri"
__status__ = "Operation"

0 comments on commit 841dbab

Please sign in to comment.