forked from ponty/sphinxcontrib-gtkwave
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (52 loc) · 1.61 KB
/
Copy pathsetup.py
File metadata and controls
59 lines (52 loc) · 1.61 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
from setuptools import find_packages, setup
import os.path
import sys
def read_project_version(*py):
py = os.path.join(*py)
__version__ = None
for line in open(py).read().splitlines():
if '__version__' in line:
exec(line)
break
return __version__
NAME = 'sphinxcontrib-gtkwave'
URL = 'https://github.com/ponty/sphinxcontrib-gtkwave'
DESCRIPTION = 'Sphinx extension to include screenshot of GTKWave'
VERSION = read_project_version('sphinxcontrib', 'gtkwave.py')
extra = {}
if sys.version_info >= (3,):
extra['use_2to3'] = True
classifiers = [
# Get more strings from
# http://www.python.org/pypi?%3Aaction=list_classifiers
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Topic :: Documentation',
'Topic :: Utilities',
]
install_requires = open('requirements.txt').read().split('\n')
# compatible with distutils of python 2.3+ or later
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=open('README.rst', 'r').read(),
classifiers=classifiers,
keywords='sphinx screenshot gtkwave vcd',
author='ponty',
# author_email='',
url=URL,
license='BSD',
packages=find_packages(exclude=['bootstrap', 'pavement', ]),
include_package_data=True,
test_suite='nose.collector',
zip_safe=False,
install_requires=install_requires,
namespace_packages=['sphinxcontrib'],
**extra
)