rope_py3k / setup.py

import glob
import os
import shutil
from distutils.core import setup

import rope

def make_temps():
    if not os.path.exists('scripts'):
        os.mkdir('scripts')
    shutil.copy('rope.py', 'scripts/rope')
    # copying docs
    if not os.path.exists('rope/docs'):
        os.mkdir('rope/docs')
    docs = ['README.txt', 'COPYING']
    docs.extend(glob.glob('docs/user/*.txt'))
    docs.extend(glob.glob('docs/dev/*.txt'))
    docs.extend(glob.glob('docs/*.txt'))
    for name in docs:
        shutil.copy(name, 'rope/docs/')

def remove_temps():
    if os.path.exists('scripts'):
        shutil.rmtree('scripts')
    if os.path.exists('rope/docs'):
        shutil.rmtree('rope/docs')

make_temps()

classifiers=['Development Status :: 3 - Alpha',
             'Operating System :: OS Independent',
             'Environment :: X11 Applications',
             'Environment :: Win32 (MS Windows)',
             # Have not been tested on MacOS
             # 'Environment :: MacOS X',
             'Intended Audience :: Developers',
             'License :: OSI Approved :: GNU General Public License (GPL)',
             'Natural Language :: English',
             'Programming Language :: Python',
             'Topic :: Software Development',
             'Topic :: Text Editors :: Integrated Development Environments (IDE)']

long_description = """
Rope is a python refactoring IDE and library.
"""

setup(name='rope',
      version=rope.VERSION,
      description='a python refactoring IDE and library...',
      long_description=long_description,
      author='Ali Gholami Rudi',
      author_email='aligrudi@users.sourceforge.net',
      url='http://rope.sf.net/',
      packages=['rope', 'rope.base', 'rope.base.oi', 'rope.refactor',
                'rope.ide', 'rope.ui'],
      package_data={'rope': ['docs/COPYING', 'docs/*.txt']},
      scripts=['scripts/rope'],
      classifiers=classifiers)

remove_temps()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.