Skip to content

Commit

Permalink
use setuptools_scm for version management
Browse files Browse the repository at this point in the history
  • Loading branch information
johntruckenbrodt committed Oct 17, 2019
1 parent 727839a commit 9478b85
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
9 changes: 8 additions & 1 deletion sentinel_api/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
from .sentinel_api import SentinelDownloader
from .sentinel_api import SentinelDownloader

from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass
2 changes: 0 additions & 2 deletions sentinel_api/sentinel_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
- Documentation
"""

__version__ = '0.5.1'

###########################################################
# imports
###########################################################
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
setup(name='sentinel_api',
packages=find_packages(),
include_package_data=True,
version='0.5.2',
setup_requires=['setuptools_scm'],
use_scm_version=True,
description='ESA Sentinel Search & Download API',
classifiers=[
'Programming Language :: Python',
Expand Down

0 comments on commit 9478b85

Please sign in to comment.