forked from mcmtroffaes/sphinxcontrib-bibtex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
56 lines (49 loc) · 1.8 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
# -*- coding: utf-8 -*-
import io
from setuptools import setup, find_packages
import sys
def readfile(filename):
with io.open(filename, encoding="utf-8") as stream:
return stream.read().split("\n")
readme = readfile("README.rst")[5:] # skip title and badges
requires = readfile("requirements.txt")
version = readfile("VERSION")[0].strip()
if sys.version_info < (2, 7):
requires.append('ordereddict>=1.1')
setup(
name='sphinxcontrib-bibtex',
version=version,
url='https://github.com/mcmtroffaes/sphinxcontrib-bibtex',
download_url='https://pypi.python.org/pypi/sphinxcontrib-bibtex',
license='BSD',
author='Matthias C. M. Troffaes',
author_email='[email protected]',
description=readme[0],
long_description="\n".join(readme[2:]),
zip_safe=False,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD 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.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Documentation',
'Topic :: Utilities',
],
platforms='any',
packages=find_packages(),
include_package_data=True,
install_requires=requires,
namespace_packages=['sphinxcontrib'],
)