-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathsetup.py
More file actions
71 lines (63 loc) · 2.07 KB
/
setup.py
File metadata and controls
71 lines (63 loc) · 2.07 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
long_desc = '''
sphinxcontrib-serializinghtml is a sphinx extension which outputs
"serialized" HTML files (json and pickle).
'''
extras_require = {
'test': [
'pytest',
],
'lint': [
'flake8',
'mypy',
'docutils-stubs',
],
}
def get_version():
"""Get version number of the package from version.py without importing core module."""
package_dir = os.path.abspath(os.path.dirname(__file__))
version_file = os.path.join(package_dir, 'sphinxcontrib/serializinghtml/version.py')
namespace = {}
with open(version_file, 'rt') as f:
exec(f.read(), namespace)
return namespace['__version__']
setup(
name='sphinxcontrib-serializinghtml',
version=get_version(),
url='http://sphinx-doc.org/',
download_url='https://pypi.org/project/sphinxcontrib-serializinghtml/',
license='BSD',
author='Georg Brandl',
author_email='[email protected]',
description=long_desc.strip().replace('\n', ' '),
long_description=long_desc,
zip_safe=False,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Framework :: Sphinx',
'Framework :: Sphinx :: Extension',
'Topic :: Documentation',
'Topic :: Documentation :: Sphinx',
'Topic :: Text Processing',
'Topic :: Utilities',
],
platforms='any',
python_requires=">=3.5",
packages=find_packages(exclude=['tests']),
include_package_data=True,
extras_require=extras_require,
namespace_packages=['sphinxcontrib'],
)