Skip to content

Commit

Permalink
Add setup.py to create a package
Browse files Browse the repository at this point in the history
Fixes #16.
  • Loading branch information
kerel-fs committed Jan 12, 2016
1 parent 2febeb1 commit 3a0a915
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -9,5 +9,8 @@ before_script:
script:
- nosetests --with-coverage --cover-package=ogn

- pip install . --upgrade
- python -c 'import ogn'

after_success:
- coveralls
4 changes: 3 additions & 1 deletion ogn/gateway/settings.py
Expand Up @@ -3,6 +3,8 @@
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
13 changes: 5 additions & 8 deletions 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]
56 changes: 56 additions & 0 deletions 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
)

0 comments on commit 3a0a915

Please sign in to comment.