Skip to content

Commit

Permalink
try to define correct versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
pgris committed Jul 15, 2020
1 parent b60f3cb commit f5c7812
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__='v1.0.0'
from .version import __version__
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
from setuptools import setup

# get the version here
pkg_vars = {}

with open("version.py") as fp:
exec(fp.read(), pkg_vars)

setup(
name='sn_tools',
version=__version__,
version= pkg_vars['__version__'],
description='Set of tools used to run SN pipeline',
url='http://github.com/lsstdesc/sn_tools',
author='Philippe Gris',
author_email='[email protected]',
license='BSD',
packages=['sn_tools'],
packages= ['sn_tools'],
python_requires='>=3.5',
zip_safe=False
)
1 change: 1 addition & 0 deletions sn_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .version import __version__
Binary file removed sn_tools/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file removed sn_tools/__pycache__/cadence_tools.cpython-36.pyc
Binary file not shown.
Binary file removed sn_tools/__pycache__/observations.cpython-36.pyc
Binary file not shown.
Binary file removed sn_tools/__pycache__/sn_analyze_simu.cpython-36.pyc
Binary file not shown.
Binary file removed sn_tools/__pycache__/sn_cadence_tools.cpython-36.pyc
Binary file not shown.
Binary file removed sn_tools/__pycache__/sn_rate.cpython-36.pyc
Binary file not shown.
Binary file removed sn_tools/__pycache__/sn_telescope.cpython-36.pyc
Binary file not shown.
Binary file removed sn_tools/__pycache__/sn_throughputs.cpython-36.pyc
Binary file not shown.
Binary file removed sn_tools/__pycache__/sn_utils.cpython-36.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions sn_tools/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__='v1.0.0'
1 change: 1 addition & 0 deletions version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__='v1.0.0'

0 comments on commit f5c7812

Please sign in to comment.