Skip to content

Commit

Permalink
Adds scm version support
Browse files Browse the repository at this point in the history
  • Loading branch information
EiffL committed Aug 10, 2020
1 parent 27ebcc6 commit 3f5d0d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions galsim_hub/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
from pkg_resources import DistributionNotFound
from pkg_resources import get_distribution

try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass

from .input_generative import *
from .generative_model import *
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

setup(
name='galsim_hub',
version='0.0.1rc2',
description='Support for Tensorflow Hub modules in GalSim',
long_description=long_description,
long_description_content_type='text/markdown',
Expand All @@ -23,11 +22,13 @@
'Topic :: Scientific/Engineering :: Astronomy',
# Pick your license as you wish
'License :: OSI Approved :: MIT License',

'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
packages=['galsim_hub'],
use_scm_version=True,
setup_requires=["setuptools_scm"],
install_requires=['galsim', 'tensorflow_hub']
)

0 comments on commit 3f5d0d1

Please sign in to comment.