| 1 |
|
|---|
| 2 |
VERSION = '0.3.7' |
|---|
| 3 |
|
|---|
| 4 |
from ez_setup import use_setuptools |
|---|
| 5 |
|
|---|
| 6 |
use_setuptools() |
|---|
| 7 |
|
|---|
| 8 |
from setuptools import setup, find_packages |
|---|
| 9 |
from distutils.cmd import Command |
|---|
| 10 |
|
|---|
| 11 |
class build_doc(Command): |
|---|
| 12 |
description = 'Builds the documentation' |
|---|
| 13 |
user_options = [] |
|---|
| 14 |
|
|---|
| 15 |
def initialize_options(self): |
|---|
| 16 |
pass |
|---|
| 17 |
|
|---|
| 18 |
def finalize_options(self): |
|---|
| 19 |
pass |
|---|
| 20 |
|
|---|
| 21 |
def run(self): |
|---|
| 22 |
epydoc_conf = 'epydoc.conf' |
|---|
| 23 |
|
|---|
| 24 |
try: |
|---|
| 25 |
import sys |
|---|
| 26 |
from epydoc import cli |
|---|
| 27 |
old_argv = sys.argv[1:] |
|---|
| 28 |
sys.argv[1:] = [ |
|---|
| 29 |
'--config=%s' % epydoc_conf, |
|---|
| 30 |
'--no-private', |
|---|
| 31 |
'--simple-term', |
|---|
| 32 |
'--verbose' |
|---|
| 33 |
] |
|---|
| 34 |
cli.cli() |
|---|
| 35 |
sys.argv[1:] = old_argv |
|---|
| 36 |
|
|---|
| 37 |
except ImportError: |
|---|
| 38 |
print 'epydoc not installed, skipping API documentation.' |
|---|
| 39 |
|
|---|
| 40 |
setup( |
|---|
| 41 |
name='gaphas', |
|---|
| 42 |
version=VERSION, |
|---|
| 43 |
description='Gaphas is a GTK+ based diagramming widget', |
|---|
| 44 |
long_description="""\ |
|---|
| 45 |
Gaphas is a MVC canvas that uses Cairo_ for rendering. One of the nicer things |
|---|
| 46 |
of this widget is that the user (model) is not bothered with bounding box |
|---|
| 47 |
calculations: this is all done through Cairo. |
|---|
| 48 |
|
|---|
| 49 |
Some more features: |
|---|
| 50 |
|
|---|
| 51 |
- Each item has it's own separate coordinate space (easy when items are |
|---|
| 52 |
rotated). |
|---|
| 53 |
- Items on the canvas can be connected to each other. Connections are |
|---|
| 54 |
maintained by a linear constraint solver. |
|---|
| 55 |
- Multiple views on one Canvas. |
|---|
| 56 |
- What is drawn is determined by Painters. Multiple painters can be used and |
|---|
| 57 |
painters can be stacked. |
|---|
| 58 |
- User interaction is handled by Tools. Tools can be stacked. |
|---|
| 59 |
- Versatile undo/redo system |
|---|
| 60 |
|
|---|
| 61 |
GTK+ and PyGTK_ are required. |
|---|
| 62 |
|
|---|
| 63 |
.. _Cairo: http://cairographics.org/ |
|---|
| 64 |
.. _PyGTK: http://www.pygtk.org/ |
|---|
| 65 |
""", |
|---|
| 66 |
|
|---|
| 67 |
classifiers=[ |
|---|
| 68 |
'Development Status :: 4 - Beta', |
|---|
| 69 |
'Environment :: X11 Applications :: GTK', |
|---|
| 70 |
'Intended Audience :: Developers', |
|---|
| 71 |
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)', |
|---|
| 72 |
'Programming Language :: Python', |
|---|
| 73 |
'Topic :: Software Development :: Libraries :: Python Modules', |
|---|
| 74 |
], |
|---|
| 75 |
|
|---|
| 76 |
keywords='', |
|---|
| 77 |
|
|---|
| 78 |
author="Arjan J. Molenaar", |
|---|
| 79 |
author_email='arjanmol@users.sourceforge.net', |
|---|
| 80 |
|
|---|
| 81 |
url='http://gaphor.devjavu.com/wiki/Subprojects/Gaphas', |
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
license='GNU Library General Public License (LGPL, see COPYING)', |
|---|
| 86 |
|
|---|
| 87 |
packages=find_packages(exclude=['ez_setup']), |
|---|
| 88 |
|
|---|
| 89 |
setup_requires = 'nose >= 0.9.2', |
|---|
| 90 |
|
|---|
| 91 |
install_requires=[ |
|---|
| 92 |
'decorator >= 2.2.0', |
|---|
| 93 |
|
|---|
| 94 |
], |
|---|
| 95 |
|
|---|
| 96 |
zip_safe=False, |
|---|
| 97 |
|
|---|
| 98 |
package_data={ |
|---|
| 99 |
|
|---|
| 100 |
}, |
|---|
| 101 |
|
|---|
| 102 |
entry_points = { |
|---|
| 103 |
}, |
|---|
| 104 |
|
|---|
| 105 |
test_suite = 'nose.collector', |
|---|
| 106 |
|
|---|
| 107 |
cmdclass={'build_doc': build_doc }, |
|---|
| 108 |
) |
|---|
| 109 |
|
|---|