Skip to content

Commit

Permalink
Adding setup script.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcustodio committed Oct 12, 2014
1 parent bf4eb20 commit 8cdabbc
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include LICENSE
include README.rst
include requirements/base.txt
include requirements/test.txt
1 change: 0 additions & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
-r base.txt
flake8==2.2.4
nose==1.3.4
52 changes: 52 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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='[email protected]',
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',
),
)

0 comments on commit 8cdabbc

Please sign in to comment.