diff --git a/.travis.yml b/.travis.yml index c4c740e..8fb2ef3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,5 +9,8 @@ before_script: script: - nosetests --with-coverage --cover-package=ogn + - pip install . --upgrade + - python -c 'import ogn' + after_success: - coveralls diff --git a/ogn/gateway/settings.py b/ogn/gateway/settings.py index ccd9f4f..11c3cf6 100644 --- a/ogn/gateway/settings.py +++ b/ogn/gateway/settings.py @@ -3,6 +3,8 @@ APRS_SERVER_PORT_FULL_FEED = 10152 APRS_SERVER_PORT_CLIENT_DEFINED_FILTERS = 14580 APRS_APP_NAME = 'ogn-gateway-python' -APRS_APP_VER = '0.2' + +PACKAGE_VERSION = '0.2.0' +APRS_APP_VER = PACKAGE_VERSION[:3] APRS_KEEPALIVE_TIME = 240 diff --git a/requirements.txt b/requirements.txt index 25060bf..550191a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,5 @@ -nose==1.3.7 -coveralls==0.4.4 -flake8==2.5.0 -SQLAlchemy==1.0.8 -geopy==1.11.0 -manage.py==0.2.10 -celery[redis]>=3.1,<3.2 -alembic==0.8.3 +# Install ogn-python +-e . + +# Install development requirements +-e .[dev] diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..3fe39f3 --- /dev/null +++ b/setup.py @@ -0,0 +1,56 @@ +#!/usr/bin/env python3 + +from os import path +from setuptools import setup, find_packages + +from ogn.gateway.settings import PACKAGE_VERSION + + +here = path.abspath(path.dirname(__file__)) + +# Get the long description from the README file +with open(path.join(here, 'README.md'), encoding='utf-8') as f: + long_description = f.read() + +setup( + name='ogn-python', + version=PACKAGE_VERSION, + description='A python framework for the Open Glider Network (OGN)', + long_description=long_description, + url='https://github.com/glidernet/ogn-python', + + author='Konstantin Gründger aka Meisterschueler, Fabian P. Schmidt aka kerel', + author_email='kerel-fs@gmx.de', + + license='AGPLv3', + + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Intended Audience :: Science/Research', + 'Topic :: Scientific/Engineering :: GIS', + 'License :: OSI Approved :: GNU Affero General Public License v3', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + ], + keywords='gliding ogn', + + packages=find_packages(exclude=['tests', 'tests.*']), + install_requires=[ + 'SQLAlchemy==1.0.8', + 'geopy==1.11.0', + 'manage.py==0.2.10', + 'celery[redis]>=3.1,<3.2', + 'alembic==0.8.3' + ], + + extras_require={ + 'dev': [ + 'nose==1.3.7', + 'coveralls==0.4.4', + 'flake8==2.5.0' + ], + }, + zip_safe=False +)