2007-04-03 06:10:36 +00:00
"""
Setup script for Gaphor .
Run ' python setup.py develop ' to set up a development environment , including
dependencies .
Run ' python setup.py run ' to start Gaphor directly ( without install ) .
"""
2003-03-04 05:08:40 +00:00
2007-04-10 08:52:50 +00:00
VERSION = ' 0.10.3 '
2007-04-03 07:17:35 +00:00
2007-03-15 13:41:24 +00:00
import sys
sys . path . insert ( 0 , ' . ' )
2003-03-04 05:08:40 +00:00
2007-03-15 13:41:24 +00:00
from ez_setup import use_setuptools
2003-03-04 05:08:40 +00:00
2007-03-15 13:41:24 +00:00
use_setuptools ( )
2006-06-02 09:37:25 +00:00
2007-03-15 13:41:24 +00:00
from setuptools import setup , find_packages
2006-05-29 12:49:01 +00:00
2007-02-28 14:09:17 +00:00
from utils . command . build_mo import build_mo
from utils . command . build_pot import build_pot
from utils . command . build_uml import build_uml
2007-04-05 07:49:30 +00:00
from utils . command . install_lib import install_lib
2007-02-28 14:09:17 +00:00
from utils . command . run import run
2003-03-04 05:08:40 +00:00
2007-03-15 13:41:24 +00:00
LINGUAS = [ ' ca ' , ' es ' , ' nl ' , ' sv ' ]
2004-03-22 15:15:14 +00:00
2004-09-27 06:37:00 +00:00
2007-03-15 13:41:24 +00:00
setup (
name = ' gaphor ' ,
2007-04-03 07:17:35 +00:00
version = VERSION ,
2007-04-04 06:56:22 +00:00
url = ' http://gaphor.devjavu.com ' ,
2007-03-15 13:41:24 +00:00
author = ' Arjan J. Molenaar ' ,
author_email = ' arjanmol@users.sourceforge.net ' ,
license = ' GNU General Public License ' ,
description = ' Gaphor is a UML modeling tool ' ,
long_description = " Gaphor is a UML modeling tool written in Python. "
" It uses the GTK+ environment for user interaction. " ,
classifiers = [
' Development Status :: 4 - Beta ' ,
' Environment :: X11 Applications :: GTK ' ,
' Intended Audience :: Developers ' ,
' Intended Audience :: End Users/Desktop ' ,
' Intended Audience :: Information Technology ' ,
' License :: OSI Approved :: GNU General Public License (GPL) ' ,
' Operating System :: MacOS :: MacOS X ' ,
' Operating System :: Microsoft :: Windows ' ,
' Operating System :: POSIX ' ,
' Operating System :: Unix ' ,
' Programming Language :: Python ' ,
' Topic :: Multimedia :: Graphics :: Editors :: Vector-Based ' ,
' Topic :: Software Development :: Documentation ' ,
] ,
2007-04-04 06:56:22 +00:00
keywords = ' model modeling modelling uml diagram python tool ' ,
2007-03-15 13:41:24 +00:00
2007-04-04 06:56:22 +00:00
packages = find_packages ( exclude = [ ' ez_setup ' , ' utils* ' ] ) ,
2007-03-15 13:41:24 +00:00
2007-04-04 06:56:22 +00:00
include_package_data = True ,
2007-03-15 13:41:24 +00:00
install_requires = [
# 'PyGTK >= 2.8.0', - Exclude, since it will not build anyway
' decorator >= 2.0.1 ' ,
2007-04-05 08:28:35 +00:00
' gaphas >= 0.1.4 ' ,
2007-03-15 13:41:24 +00:00
' zope.component >= 3.3.0 ' , # - won't compile on windows.
] ,
zip_safe = False ,
#test_suite = 'nose.collector',
entry_points = {
' console_scripts ' : [
' gaphor = gaphor:main ' ,
] ,
2007-04-03 06:10:36 +00:00
' gaphor.services ' : [
' undo_manager = gaphor.services.undomanager:UndoManager ' ,
' plugin_manager = gaphor.services.pluginmanager:PluginManager ' ,
] ,
2007-03-15 13:41:24 +00:00
} ,
cmdclass = {
' build_uml ' : build_uml ,
' build_mo ' : build_mo ,
' build_pot ' : build_pot ,
2007-04-05 07:49:30 +00:00
' install_lib ' : install_lib ,
2007-03-15 13:41:24 +00:00
' run ' : run ,
} ,
options = dict (
py2app = dict (
includes = [ ' atk ' , ' pango ' , ' cairo ' , ' pangocairo ' ] ,
2006-06-02 09:37:25 +00:00
# CFBundleDisplayName='Gaphor',
# CFBundleIdentifier='net.sourceforge.gaphor'
2007-03-15 13:41:24 +00:00
) ,
build_pot = dict (
all_linguas = ' , ' . join ( LINGUAS ) ,
) ,
build_mo = dict (
all_linguas = ' , ' . join ( LINGUAS ) ,
) ,
install_mo = dict (
all_linguas = ' , ' . join ( LINGUAS ) ,
) ,
)
2003-03-04 05:08:40 +00:00
)
2007-03-15 13:41:24 +00:00