-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
64 lines (55 loc) · 1.9 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
57
58
59
60
61
62
63
64
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from glob import glob
from setuptools import setup
import io
import os.path
from ast import parse
name = 'jonga'
# See http://stackoverflow.com/questions/2058802
with open('jonga.py') as f:
version = parse(next(filter(
lambda line: line.startswith('__version__'),
f))).body[0].value.s
py_modules = ['jonga']
docdirbase = 'share/doc/%s-%s' % (name, version)
data = [(docdirbase, glob(os.path.join("examples" ,"*.py")) +
glob(os.path.join("examples" ,"*.ipynb")))]
longdesc = \
"""
Jonga is a Python package that generates a directed graph representing
function calls within a block of Python code, intended for inclusion
in Sphinx package documentation.
"""
setup(
name = name,
version = version,
py_modules = py_modules,
description = 'Jonga: Python function call graph visualization',
long_description = longdesc,
keywords = ['Function call graph', 'Module documentation'],
platforms = 'Any',
license = 'GPLv2+',
url = 'https://github.com/bwohlberg/jonga',
author = 'Brendt Wohlberg',
author_email = 'brendt@ieee.org',
data_files = data,
python_requires = '>= 3.3',
setup_requires = [],
tests_require = ['pytest', 'pytest-runner'],
install_requires = ['pygraphviz'],
extras_require = {
'tests': ['pytest', 'pytest-runner'],
'docs': [ 'sphinx', 'numpydoc', 'sphinx_bootstrap_theme']},
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Utilities',
'Topic :: Software Development :: Documentation'
],
zip_safe = True
)