| 1 |
|
|---|
| 2 |
from ez_setup import use_setuptools |
|---|
| 3 |
|
|---|
| 4 |
use_setuptools() |
|---|
| 5 |
|
|---|
| 6 |
from setuptools import setup, find_packages |
|---|
| 7 |
from distutils.cmd import Command |
|---|
| 8 |
|
|---|
| 9 |
class build_doc(Command): |
|---|
| 10 |
description = 'Builds the documentation' |
|---|
| 11 |
user_options = [] |
|---|
| 12 |
|
|---|
| 13 |
def initialize_options(self): |
|---|
| 14 |
pass |
|---|
| 15 |
|
|---|
| 16 |
def finalize_options(self): |
|---|
| 17 |
pass |
|---|
| 18 |
|
|---|
| 19 |
def run(self): |
|---|
| 20 |
epydoc_conf = 'epydoc.conf' |
|---|
| 21 |
|
|---|
| 22 |
try: |
|---|
| 23 |
import sys |
|---|
| 24 |
from epydoc import cli |
|---|
| 25 |
old_argv = sys.argv[1:] |
|---|
| 26 |
sys.argv[1:] = [ |
|---|
| 27 |
'--config=%s' % epydoc_conf, |
|---|
| 28 |
'--no-private', |
|---|
| 29 |
'--simple-term', |
|---|
| 30 |
'--verbose' |
|---|
| 31 |
] |
|---|
| 32 |
cli.cli() |
|---|
| 33 |
sys.argv[1:] = old_argv |
|---|
| 34 |
|
|---|
| 35 |
except ImportError: |
|---|
| 36 |
print 'epydoc not installed, skipping API documentation.' |
|---|
| 37 |
|
|---|
| 38 |
setup( |
|---|
| 39 |
name='gaphas', |
|---|
| 40 |
version='0.2.0', |
|---|
| 41 |
description='Gaphas is a GTK+ based diagramming widget', |
|---|
| 42 |
long_description="""\ |
|---|
| 43 |
Gaphas is a GTK+ based diagramming widget written in Python. |
|---|
| 44 |
It is the logical successor of the DiaCanvas library. |
|---|
| 45 |
|
|---|
| 46 |
GTK+ and PyGTK is required. |
|---|
| 47 |
""", |
|---|
| 48 |
|
|---|
| 49 |
classifiers=[ |
|---|
| 50 |
'Development Status :: 4 - Beta', |
|---|
| 51 |
'Environment :: X11 Applications :: GTK', |
|---|
| 52 |
'Intended Audience :: Developers', |
|---|
| 53 |
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)', |
|---|
| 54 |
'Programming Language :: Python', |
|---|
| 55 |
'Topic :: Software Development :: Libraries :: Python Modules', |
|---|
| 56 |
], |
|---|
| 57 |
|
|---|
| 58 |
keywords='', |
|---|
| 59 |
|
|---|
| 60 |
author="Arjan J. Molenaar", |
|---|
| 61 |
author_email='arjanmol@users.sourceforge.net', |
|---|
| 62 |
|
|---|
| 63 |
url='http://gaphor.devjavu.com/wiki/Subprojects/Gaphas', |
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 |
|
|---|
| 67 |
license='GNU Library General Public License (LGPL, see COPYING)', |
|---|
| 68 |
|
|---|
| 69 |
packages=find_packages(exclude=['ez_setup']), |
|---|
| 70 |
|
|---|
| 71 |
setup_requires = 'nose >= 0.9.2', |
|---|
| 72 |
|
|---|
| 73 |
install_requires=[ |
|---|
| 74 |
'decorator >= 2.0.1', |
|---|
| 75 |
|
|---|
| 76 |
], |
|---|
| 77 |
|
|---|
| 78 |
zip_safe=False, |
|---|
| 79 |
|
|---|
| 80 |
package_data={ |
|---|
| 81 |
|
|---|
| 82 |
}, |
|---|
| 83 |
|
|---|
| 84 |
entry_points = { |
|---|
| 85 |
"distutils.commands": [ "nosetests = nose.commands:nosetests", ], |
|---|
| 86 |
}, |
|---|
| 87 |
|
|---|
| 88 |
test_suite = 'nose.collector', |
|---|
| 89 |
|
|---|
| 90 |
cmdclass={'build_doc': build_doc }, |
|---|
| 91 |
) |
|---|
| 92 |
|
|---|