-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (52 loc) · 1.74 KB
/
setup.py
File metadata and controls
61 lines (52 loc) · 1.74 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
import os
from typing import Dict
from setuptools import find_packages, setup
def get_long_description():
"""Get long description of the package from README."""
with open('README.rst') as f:
return f.read()
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/details/directive/version.py')
namespace: Dict = {}
with open(version_file) as f:
exec(f.read(), namespace)
return namespace['__version__']
setup(
name='sphinxcontrib-details-directive',
version=get_version(),
url='https://github.com/tk0miya/sphinxcontrib-details-directive/',
author='Takeshi KOMIYA',
author_email='i.tkomiya@gmail.com',
description='"details" directive for Sphinx',
long_description=get_long_description(),
long_description_content_type='text/x-rst',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Framework :: Sphinx :: Extension',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.7',
'Topic :: Documentation',
'Topic :: Documentation :: Sphinx',
'Topic :: Utilities',
],
packages=find_packages(),
install_requires=[
'Sphinx>=2.0',
],
extras_require={
'test': [
'tox',
'flake8',
'flake8-import-order',
'pytest',
'mypy',
],
},
namespace_packages=['sphinxcontrib'],
)