From 8cdabbc19584a681069b5fa1d6a6f6818ee4973c Mon Sep 17 00:00:00 2001 From: bmcustodio Date: Sat, 11 Oct 2014 10:41:13 +0100 Subject: [PATCH] Adding setup script. --- MANIFEST.in | 4 ++++ requirements/test.txt | 1 - setup.py | 52 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in create mode 100644 setup.py diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..232e11f --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,4 @@ +include LICENSE +include README.rst +include requirements/base.txt +include requirements/test.txt diff --git a/requirements/test.txt b/requirements/test.txt index ed4f226..9ce02c5 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -1,3 +1,2 @@ --r base.txt flake8==2.2.4 nose==1.3.4 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c58c160 --- /dev/null +++ b/setup.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- + +import os + +from codecs import open + +try: + from setuptools import setup +except ImportError: + from distutils.core import setup + +import polyline + +desc = "A Python implementation of Google's Encoded Polyline Algorithm Format." + +with open('README.rst', 'r') as f: + long_desc = f.read() +with open(os.path.join('requirements', 'base.txt'), 'r') as f: + base_reqs = f.readlines() +with open(os.path.join('requirements', 'test.txt'), 'r') as f: + test_reqs = f.readlines() + +setup( + name='polyline', + version=polyline.__version__, + description=desc, + long_description=long_desc, + author='Bruno M. Custódio', + author_email='bruno@brunomcustodio.com', + url='http://pypi.python.org/pypi/polyline/', + packages=['polyline'], + install_requires=base_reqs, + tests_require=test_reqs, + test_suite='nose.collector', + license='MIT', + zip_safe=False, + classifiers=( + 'Development Status :: 2 - Pre-Alpha', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: MIT License', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.2', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Topic :: Software Development :: Libraries', + 'Topic :: Utilities', + ), +)