setup.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. extra_kwargs = {}
  2. try:
  3. from setuptools import setup
  4. extra_kwargs['install_requires'] = ['rope >= 0.9.4', 'ropemode >= 0.2']
  5. except ImportError:
  6. from distutils.core import setup
  7. classifiers=[
  8. 'Development Status :: 4 - Beta',
  9. 'Operating System :: OS Independent',
  10. 'Environment :: X11 Applications',
  11. 'Environment :: Win32 (MS Windows)',
  12. 'Environment :: MacOS X',
  13. 'Intended Audience :: Developers',
  14. 'License :: OSI Approved :: GNU General Public License (GPL)',
  15. 'Natural Language :: English',
  16. 'Programming Language :: Python',
  17. 'Topic :: Text Editors :: Emacs',
  18. 'Topic :: Software Development']
  19. def get_long_description():
  20. lines = open('README.txt').read().splitlines(False)
  21. end = lines.index('Setting Up')
  22. return '\n' + '\n'.join(lines[:end]) + '\n'
  23. setup(name='ropemacs',
  24. version='0.7',
  25. description='An emacs mode for using rope python refactoring library',
  26. long_description=get_long_description(),
  27. packages=['ropemacs'],
  28. author='Ali Gholami Rudi',
  29. author_email='aligrudi@users.sourceforge.net',
  30. url='http://rope.sf.net/ropemacs.html',
  31. license='GNU GPL',
  32. classifiers=classifiers,
  33. requires=['ropemode'],
  34. **extra_kwargs)