root/gaphor/tags/gaphor-0.9.2/esetup.py

Revision 1143, 4.1 kB (checked in by arjanmol, 2 years ago)

version bumped to 0.9.2

Line 
1
2 import sys
3 sys.path.insert(0, '.')
4
5 from ez_setup import use_setuptools
6
7 use_setuptools()
8
9 from setuptools import setup, find_packages
10
11 from utils.command.build_mo import build_mo
12 from utils.command.build_pot import build_pot
13 from utils.command.install_mo import install_mo
14 from utils.command.build_uml import build_uml
15 from utils.command.build_version import build_version
16 from utils.command.install_version import install_version
17 from utils.command.run import run
18
19 LINGUAS = [ 'ca', 'es', 'nl', 'sv' ]
20
21 from glob import glob
22 def plugin_data(name):
23     return 'plugins/%s' % name, glob('data/plugins/%s/*.*' % name)
24
25 setup(
26     name='gaphor',
27     version='0.9.2',
28     url='http://gaphor.sourceforge.net',
29     author='Arjan J. Molenaar',
30     author_email='arjanmol@users.sourceforge.net',
31     license='GNU General Public License',
32     description='Gaphor is a UML modeling tool',
33     long_description="Gaphor is a UML modeling tool written in Python. "
34                      "It uses the GTK+ environment for user interaction.",
35     classifiers = [
36         'Development Status :: 4 - Beta',
37         'Environment :: X11 Applications :: GTK',
38         'Intended Audience :: Developers',
39         'Intended Audience :: End Users/Desktop',
40         'Intended Audience :: Information Technology',
41         'License :: OSI Approved :: GNU General Public License (GPL)',
42         'Operating System :: MacOS :: MacOS X',
43         'Operating System :: Microsoft :: Windows',
44         'Operating System :: POSIX',
45         'Operating System :: Unix',
46         'Programming Language :: Python',
47         'Topic :: Multimedia :: Graphics :: Editors :: Vector-Based',
48         'Topic :: Software Development :: Documentation',
49     ],
50
51     keywords = 'model modeling modelling uml diagram python',
52
53     packages = find_packages(exclude=['ez_setup', 'gaphas', 'utils*', 'zope_old*']),
54
55     package_data = {
56         'data': [ 'icons.xml' ],
57         'data/pixmaps': [ '*.png' ],
58         'data/plugins': [ '*/plugin.xml', '*/*.txt', '*/*.py' ]
59     },
60     data_files=[('', ['data/icons.xml']),
61                 ('pixmaps', glob('data/pixmaps/*.png')),
62                 plugin_data('plugineditor'),
63                 plugin_data('alignment'),
64                 plugin_data('checkmetamodel'),
65                 plugin_data('diagramlayout'),
66                 plugin_data('liveobjectbrowser'),
67                 plugin_data('pngexport'),
68                 plugin_data('pynsource'),
69                 plugin_data('svgexport'),
70                 plugin_data('pdfexport'),
71                 plugin_data('xmiexport')
72     ],
73
74     install_requires = [
75         # 'PyGTK >= 2.8.0', - Exclude, since it will not build anyway
76         'gaphas >= 0.1.0',
77         'zope.component >= 3.3.0', # - won't compile on windows.
78     ],
79
80     zip_safe = False,
81
82     #test_suite = 'nose.collector',
83
84     entry_points = {
85 #        'distutils.commands': [
86 #            'build_uml = utils.command.build_uml:build_uml',
87 #            'build_pot = utils.command.build_pot:build_pot',
88 #            'build_mo = utils.command.build_mo:build_mo',
89 #            'install_mo = utils.command.install_mo:install_mo',
90 #            'build_version = utils.command.build_version:build_version',
91 #            'install_version = utils.command.install_version:install_version',
92 #            'run  = utils.command.run :run ',
93 #        ],
94         'console_scripts': [
95             'gaphor = gaphor:main',
96         ],
97     },
98
99     cmdclass = {
100               'build_uml': build_uml,
101               'build_version': build_version,
102               'install_version': install_version,
103               'build_mo': build_mo,
104               'build_pot': build_pot,
105               'install_mo': install_mo,
106               'run': run,
107     },
108     options = dict(
109         py2app = dict(
110             includes=['atk', 'pango', 'cairo', 'pangocairo'],
111 #             CFBundleDisplayName='Gaphor',
112 #             CFBundleIdentifier='net.sourceforge.gaphor'
113         ),
114         build_pot = dict(
115             all_linguas = ','.join(LINGUAS),
116         ),
117         build_mo = dict(
118             all_linguas = ','.join(LINGUAS),
119         ),
120         install_mo = dict(
121             all_linguas = ','.join(LINGUAS),
122         ),
123     )
124 )
125      
Note: See TracBrowser for help on using the browser.