root/gaphor/tags/release-0.10.0/setup.py

Revision 1191, 3.0 kB (checked in by arj..@yirdis.nl, 2 years ago)

--

Line 
1 """
2 Setup script for Gaphor.
3
4 Run 'python setup.py develop' to set up a development environment, including
5 dependencies.
6
7 Run 'python setup.py run' to start Gaphor directly (without install).
8 """
9
10 VERSION = '0.10.0'
11
12 import sys
13 sys.path.insert(0, '.')
14
15 from ez_setup import use_setuptools
16
17 use_setuptools()
18
19 from setuptools import setup, find_packages
20
21 from utils.command.build_mo import build_mo
22 from utils.command.build_pot import build_pot
23 from utils.command.build_uml import build_uml
24 from utils.command.run import run
25
26 LINGUAS = [ 'ca', 'es', 'nl', 'sv' ]
27
28
29 setup(
30     name='gaphor',
31     version=VERSION,
32     url='http://gaphor.devjavu.com',
33     author='Arjan J. Molenaar',
34     author_email='arjanmol@users.sourceforge.net',
35     license='GNU General Public License',
36     description='Gaphor is a UML modeling tool',
37     long_description="Gaphor is a UML modeling tool written in Python. "
38                      "It uses the GTK+ environment for user interaction.",
39     classifiers = [
40         'Development Status :: 4 - Beta',
41         'Environment :: X11 Applications :: GTK',
42         'Intended Audience :: Developers',
43         'Intended Audience :: End Users/Desktop',
44         'Intended Audience :: Information Technology',
45         'License :: OSI Approved :: GNU General Public License (GPL)',
46         'Operating System :: MacOS :: MacOS X',
47         'Operating System :: Microsoft :: Windows',
48         'Operating System :: POSIX',
49         'Operating System :: Unix',
50         'Programming Language :: Python',
51         'Topic :: Multimedia :: Graphics :: Editors :: Vector-Based',
52         'Topic :: Software Development :: Documentation',
53     ],
54
55     keywords = 'model modeling modelling uml diagram python tool',
56
57     packages = find_packages(exclude=['ez_setup', 'utils*']),
58
59     include_package_data = True,
60
61     install_requires = [
62         # 'PyGTK >= 2.8.0', - Exclude, since it will not build anyway
63         'decorator >= 2.0.1',
64         'gaphas >= 0.1.3',
65         'zope.component >= 3.3.0', # - won't compile on windows.
66     ],
67
68     zip_safe = False,
69
70     #test_suite = 'nose.collector',
71
72     entry_points = {
73         'console_scripts': [
74             'gaphor = gaphor:main',
75         ],
76         'gaphor.services': [
77             'undo_manager = gaphor.services.undomanager:UndoManager',
78             'plugin_manager = gaphor.services.pluginmanager:PluginManager',
79         ],
80     },
81
82     cmdclass = {
83               'build_uml': build_uml,
84               'build_mo': build_mo,
85               'build_pot': build_pot,
86               'run': run,
87     },
88     options = dict(
89         py2app = dict(
90             includes=['atk', 'pango', 'cairo', 'pangocairo'],
91 #             CFBundleDisplayName='Gaphor',
92 #             CFBundleIdentifier='net.sourceforge.gaphor'
93         ),
94         build_pot = dict(
95             all_linguas = ','.join(LINGUAS),
96         ),
97         build_mo = dict(
98             all_linguas = ','.join(LINGUAS),
99         ),
100         install_mo = dict(
101             all_linguas = ','.join(LINGUAS),
102         ),
103     )
104 )
105      
Note: See TracBrowser for help on using the browser.