|
3 | 3 | from os import path
|
4 | 4 | from setuptools import setup
|
5 | 5 |
|
6 |
| -# TODO: Have the version in only one place |
7 |
| -__version__ = '1.0.0' |
| 6 | +import pycallgraph as pycg |
8 | 7 |
|
9 | 8 | # Only install the man page if the correct directory exists
|
10 | 9 | # XXX: Commented because easy_install doesn't like it
|
|
18 | 17 |
|
19 | 18 | setup(
|
20 | 19 | name='pycallgraph',
|
21 |
| - version=__version__, |
22 |
| - description='Python Call Graph uses GraphViz to generate call graphs ' \ |
23 |
| - 'from one execution of your Python code.', |
24 |
| - author='Gerald Kaszuba', |
25 |
| - |
26 |
| - url='http://pycallgraph.slowchop.com/', |
| 20 | + version=pycg.__version__, |
| 21 | + description=pycg.__doc__.strip().replace('\n', ' '), |
| 22 | + long_description=open('README.md').read(), |
| 23 | + author=pycg.__author__, |
| 24 | + author_email=pycg.__email__, |
| 25 | + license=open('LICENSE').read(), |
| 26 | + url=pycg.__url__, |
27 | 27 | packages=['pycallgraph', 'pycallgraph.output'],
|
28 | 28 | scripts=['scripts/pycallgraph'],
|
29 | 29 | data_files=data_files,
|
|
32 | 32 | # TODO: Update download_url
|
33 | 33 | download_url =
|
34 | 34 | 'http://pycallgraph.slowchop.com/files/download/pycallgraph-%s.tar.gz' % \
|
35 |
| - __version__, |
| 35 | + pycg.__version__, |
36 | 36 |
|
37 | 37 | classifiers = [
|
38 | 38 | 'Development Status :: 4 - Beta',
|
|
41 | 41 | 'Natural Language :: English',
|
42 | 42 | 'Operating System :: OS Independent',
|
43 | 43 | 'Programming Language :: Python',
|
| 44 | + 'Programming Language :: Python :: 2.7', |
44 | 45 | 'Programming Language :: Python :: 3',
|
| 46 | + 'Programming Language :: Python :: 3.3', |
45 | 47 | 'Topic :: Software Development :: Libraries :: Python Modules',
|
46 | 48 | 'Topic :: Software Development :: Testing',
|
47 | 49 | 'Topic :: Software Development :: Debuggers',
|
|
0 commit comments