-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.py
59 lines (55 loc) · 1.92 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env python
from setuptools import setup, find_packages
# PyPI only supports nicely-formatted README files in reStructuredText.
# GitHub and @dwillis prefer Markdown. Use a version of the pattern from
# https://coderwall.com/p/qawuyq/use-markdown-readme-s-in-python-modules
# to convert the Markdown README to rst if the pypandoc package is
# present.
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError, OSError):
long_description = open('README.md').read()
# Load the version from the clarify.version module
exec(open('clarify/version.py').read())
setup(
name='Clarify',
version=__version__,
author='OpenElections',
author_email='[email protected]',
url='http://openelections.net',
description=('A library for scraping and parsing election results from '
'jurisdictions using Clarity elections systems.'),
long_description=long_description,
packages=find_packages(),
include_package_data=True,
install_requires=[
'requests',
'lxml',
'cssselect',
'six',
'python-dateutil',
'requests-futures',
],
tests_require=[
'nose',
'responses',
"unittest2; python_version < '3.4'"
],
test_suite='nose.collector',
keywords=['elections', 'Clarity', 'results', 'parser', 'scraper'],
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Topic :: Internet',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Text Processing',
'Topic :: Text Processing :: Markup :: XML',
],
)