forked from chapel-lang/sphinxcontrib-chapeldomain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (47 loc) · 1.7 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
import os.path
import re
from setuptools import setup, find_packages
with open('README.rst', 'r') as fp:
long_desc = fp.read()
# Grab the version from chapeldomain module.
with open(os.path.join('sphinxcontrib', 'chapeldomain.py'), 'r') as fp:
version_pattern = re.compile(r'^VERSION\s*=\s*\'(?P<version>\d+\.\d+\.\d+)\'$', re.MULTILINE)
version = version_pattern.search(fp.read()).group('version')
setup(
name='sphinxcontrib-chapeldomain',
version=version,
url='https://github.com/chapel-lang/sphinxcontrib-chapeldomain',
download_url='https://pypi.python.org/pypi/sphinxcontrib-chapeldomain',
license='Apache License v2.0',
author='Chapel Team',
author_email='chapel-developers@lists.sourceforge.net',
description='Chapel domain for Sphinx',
long_description=long_desc,
zip_safe=False,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Framework :: Sphinx :: Extension',
'Topic :: Documentation',
'Topic :: Documentation :: Sphinx',
'Topic :: Text Processing',
'Topic :: Utilities',
],
platforms='any',
packages=find_packages(exclude=('test',)),
include_package_data=True,
install_requires=[
'docutils',
'six',
'Sphinx>=1.2.0,<1.2.999',
],
namespace_packages=['sphinxcontrib']
)