/
setup.py
45 lines (42 loc) · 1.5 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
from setuptools import setup, find_packages
def read(fname):
with open(fname) as fhandle:
return fhandle.read()
def readMD(fname):
# Utility function to read the README file.
full_fname = os.path.join(os.path.dirname(__file__), fname)
if 'PANDOC_PATH' in os.environ:
import pandoc
pandoc.core.PANDOC_PATH = os.environ['PANDOC_PATH']
doc = pandoc.Document()
with open(full_fname) as fhandle:
doc.markdown = fhandle.read()
return doc.rst
else:
return read(fname)
version = '0.0.5'
packages = find_packages(exclude=['*.tests', '*.tests.*', 'tests.*', 'tests', 'data'])
required = [req.strip() for req in read('requirements.txt').splitlines() if req.strip()]
setup(
name='og-utils',
version=version,
author='Matthew Seal',
author_email='mseal@opengov.com',
description='A batch of python utilities shared by python repositories at OpenGov',
long_description=readMD('README.md'),
install_requires=required,
license='MIT',
packages=packages,
test_suite='tests',
zip_safe=False,
url='https://github.com/OpenGov/og-python-utils',
download_url='https://github.com/OpenGov/og-python-utils/tarball/v' + version,
classifiers=[
'Development Status :: 4 - Beta',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 2 :: Only'
]
)