forked from newsdev/elex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (39 loc) · 1.4 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import os.path
from pip.download import PipSession
from pip.req import parse_requirements
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
install_reqs = parse_requirements('requirements.txt', session=PipSession())
reqs = [str(ir.req) for ir in install_reqs]
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
setup(
name='elex',
version='1.2.1b1',
author='Jeremy Bowers, David Eads',
author_email='[email protected], [email protected]',
url='https://github.com/newsdev/elex',
description='Client for parsing the Associated Press\'s elections API',
long_description=read('README.rst'),
packages=('elex', 'elex.cli', 'elex.api', 'tests'),
entry_points={
'console_scripts': (
'elex = elex.cli:main',
),
},
license="Apache License 2.0",
keywords='election race candidate democracy news associated press',
install_requires=reqs,
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
)
)