-
Notifications
You must be signed in to change notification settings - Fork 34
/
setup.py
48 lines (43 loc) · 1.57 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
extra_kwargs = {}
try:
from setuptools import setup
extra_kwargs['install_requires'] = ['rope >= 0.9.3', 'ropemode']
extra_kwargs['zip_safe'] = False
except ImportError:
from distutils.core import setup
classifiers = [
'Development Status :: 6 - Mature',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'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',
'Topic :: Software Development']
def get_long_description():
lines = open('README.rst').read().splitlines(False)
end = lines.index('Installation')
return '\n' + '\n'.join(lines[:end]) + '\n'
setup(name='ropevim',
version='0.8.1',
description='A vim plugin for using rope python refactoring library',
long_description=get_long_description(),
py_modules=['ropevim', 'rope_omni'],
maintainer='Matej Cepl',
maintainer_email='[email protected]',
author='Ali Gholami Rudi',
author_email='[email protected]',
url='https://github.com/python-rope/ropevim',
license='GNU GPL',
classifiers=classifiers,
requires=['ropemode'],
**extra_kwargs
)