Changeset 1141

Show
Ignore:
Timestamp:
02/28/07 11:39:39 (2 years ago)
Author:
arjanmol
Message:

esetup.py works as good as.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphor/trunk/MANIFEST.in

    r1139 r1141  
    1414global-exclude */CVS/* 
    1515global-exclude */.xvpics/* 
     16global-exclude */.svn/* 
  • gaphor/trunk/TODO

    r1137 r1141  
    22For 0.10.0 and later: 
    33--------------------- 
     4 
     5 === zope.component-3.4dev_r72749-py2.4.egg === 
     6 - bug in zope.component package: in zope.component.globalregistry.py zope.testing is included.  This package is only a dependency for the [test] setting. zope.testing is not mandatory. 
     7 
    48 
    59 - Undo functionality 
     
    711 - use easysetup tools, move gaphas to a separate package and use 
    812   zope.interface in stead of our included zope tree. 
     13   current implementation in esetup.py. 
     14   open issues: 
     15    - can't build a proper egg (where to put images) 
     16    - how should plugins be handles? Added to code base and initiated through 
     17      pkg_resources (egg_info) 
     18    - installing locales 
     19    - sdist target includes too much files (strip MANIFEST.in?) 
     20    - remove zope/ folders 
     21    - remove gaphas xref. upload a development snapshot 
    922 
    1023 - Load / save regression testing 
  • gaphor/trunk/esetup.py

    r1139 r1141  
    99from setuptools import setup, find_packages 
    1010 
     11from utils.command.build_mo import build_mo 
     12from utils.command.build_pot import build_pot 
     13from utils.command.install_mo import install_mo 
     14from utils.command.build_uml import build_uml 
     15from utils.command.build_version import build_version 
     16from utils.command.install_version import install_version 
     17from utils.command.run import run 
     18 
     19LINGUAS = [ 'ca', 'es', 'nl', 'sv' ] 
     20 
     21from glob import glob 
     22def plugin_data(name): 
     23    return 'plugins/%s' % name, glob('data/plugins/%s/*.*' % name) 
    1124 
    1225setup( 
    1326    name='gaphor', 
    14     version='0.9.0', 
     27    version='0.9.1', 
    1528    url='http://gaphor.sourceforge.net', 
    1629    author='Arjan J. Molenaar', 
     
    2033    long_description="Gaphor is a UML modeling tool written in Python. " 
    2134                     "It uses the GTK+ environment for user interaction.", 
    22     classifiers=
     35    classifiers =
    2336        'Development Status :: 4 - Beta', 
    2437        'Environment :: X11 Applications :: GTK', 
     
    3649    ], 
    3750 
    38     keywords='', 
     51    keywords = 'model modeling modelling uml diagram python', 
    3952 
    40     packages=find_packages(exclude=['ez_setup', 'utils']), 
     53    packages = find_packages(exclude=['ez_setup', 'gaphas', 'utils*', 'zope_old*']), 
    4154 
    42     install_requires=[ 
     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 = [ 
    4375        # 'PyGTK >= 2.8.0', - Exclude, since it will not build anyway 
    4476        'gaphas >= 0.1.0', 
     
    4678    ], 
    4779 
    48     zip_safe=False, 
    49  
    50     package_data={ 
    51         'data': [ 'icons.xml' ], 
    52         'data/pixmaps': [ '*.png' ], 
    53         'data/plugins': [ '*/plugin.xml', '*/*.txt', '*/*.py' ] 
    54     }, 
     80    zip_safe = False, 
    5581 
    5682    #test_suite = 'nose.collector', 
    5783 
    5884    entry_points = { 
    59         'distutils.commands': [ 
    60             #'build_pot = utils.build_pot:build_pot', 
    61             'build_mo = utils.build_mo:build_mo', 
    62             #'install_mo = utils.install_mo:install_mo', 
    63         ], 
     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#        ], 
    6494        'console_scripts': [ 
    6595            'gaphor = gaphor:main', 
    6696        ], 
    67     } 
     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    ) 
    68124) 
    69125       
  • gaphor/trunk/utils/command/build_mo.py

    r1140 r1141  
    55""" 
    66 
    7 try: 
    8     from setuptools import Command 
    9 except ImportError: 
    10     from distutils.core import Command 
     7from distutils.core import Command 
    118from distutils.dep_util import newer 
    129import os.path 
  • gaphor/trunk/utils/command/build_pot.py

    r1140 r1141  
    66""" 
    77 
    8 try: 
    9     from setuptools import Command 
    10 except ImportError: 
    11     from distutils.core import Command 
     8from distutils.core import Command 
    129from commands import getstatus 
    1310import sys, os.path 
  • gaphor/trunk/utils/command/install_mo.py

    r1140 r1141  
    1010""" 
    1111 
    12 try: 
    13     from setuptools import Command 
    14 except ImportError: 
    15     from distutils.core import Command 
     12from distutils.core import Command 
    1613#from distutils.util import change_root 
    1714import os.path