root/gaphas/tags/gaphas-0.3.2/setup.py

Revision 1827, 2.8 kB (checked in by arj..@yirdis.nl, 1 year ago)

development version bumped to 0.3.2

Line 
1
2 VERSION = '0.3.2'
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', # epydoc bug, not read from config
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 GTK+ based diagramming widget written in Python.
46
47 Gaphas is a MVC canvas that uses Cairo_ for rendering. One of the nicer things
48 of this widget is that the user (model) is not bothered with bounding box
49 calculations: this is all done through Cairo.
50
51 Some more features:
52
53 - Each item has it's own separate coordinate space (easy when items are
54   rotated).
55 - Items on the canvas can be connected to each other. Connections are
56   maintained by a linear constraint solver.
57 - Multiple views on one Canvas.
58 - What is drawn is determined by Painters. Multiple painters can be used and
59   painters can be stacked.
60 - User interaction is handled by Tools. Tools can be stacked.
61 - Versatile undo/redo system
62
63 GTK+ and PyGTK_ are required.
64
65 .. _Cairo: http://cairographics.org/
66 .. _PyGTK: http://www.pygtk.org/
67 """,
68
69     classifiers=[
70     'Development Status :: 4 - Beta',
71     'Environment :: X11 Applications :: GTK',
72     'Intended Audience :: Developers',
73     'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
74     'Programming Language :: Python',
75     'Topic :: Software Development :: Libraries :: Python Modules',
76     ],
77
78     keywords='',
79
80     author="Arjan J. Molenaar",
81     author_email='arjanmol@users.sourceforge.net',
82
83     url='http://gaphor.devjavu.com/wiki/Subprojects/Gaphas',
84
85     #download_url='http://cheeseshop.python.org/',
86
87     license='GNU Library General Public License (LGPL, see COPYING)',
88
89     packages=find_packages(exclude=['ez_setup']),
90
91     setup_requires = 'nose >= 0.9.2',
92
93     install_requires=[
94      'decorator >= 2.2.0',
95 #    'PyGTK >= 2.8.0',
96     ],
97
98     zip_safe=False,
99
100     package_data={
101     # -*- package_data: -*-
102     },
103
104     entry_points = {
105     "distutils.commands": [ "nosetests = nose.commands:nosetests", ],
106     },
107
108     test_suite = 'nose.collector',
109
110     cmdclass={'build_doc': build_doc },
111     )
112      
Note: See TracBrowser for help on using the browser.