Skip to content

Commit

Permalink
Correct version handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfrax committed Aug 4, 2017
1 parent f53af5f commit 2a126c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion radar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from pkg_resources import get_distribution, DistributionNotFound
import os.path

VERSION = "2.1"

try:
_dist = get_distribution('spots')
Expand All @@ -9,6 +10,6 @@
if not here.startswith(os.path.join(dist_loc, 'spots')):
raise DistributionNotFound
except DistributionNotFound:
__version__ = "Please install this project with setup.py"
__version__ = VERSION
else:
__version__ = _dist.version
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from setuptools import setup, find_packages
from .radar import __version__

with open('README') as f:
long_description = f.read()

setup(
name='spots',
version='2.1',
version=__version__,
packages=find_packages(),
data_files=[('', ['adsb-packet.png', 'spots.png', 'LICENSE.txt', 'README.md', 'README']),
('client', ['map.html', 'spots.html', 'spots.js']),
Expand Down

0 comments on commit 2a126c3

Please sign in to comment.