Repository navigation
Expand file tree
/
Copy pathropeide_setup.py
More file actions
61 lines (54 loc) · 1.83 KB
/
Copy pathropeide_setup.py
File metadata and controls
61 lines (54 loc) · 1.83 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
import glob
import os
import shutil
from distutils.core import setup
import ropeide
def make_temps():
if not os.path.exists('scripts'):
os.mkdir('scripts')
shutil.copy('ropeide.py', 'scripts/ropeide')
# copying docs
if not os.path.exists('ropeide/docs'):
os.mkdir('ropeide/docs')
docs = ['README.txt', 'COPYING']
docs.extend(glob.glob('docs/*.txt'))
for name in docs:
shutil.copy(name, 'ropeide/docs/')
def remove_temps():
if os.path.exists('scripts'):
shutil.rmtree('scripts')
if os.path.exists('ropeide/docs'):
shutil.rmtree('ropeide/docs')
classifiers=[
'Development Status :: 4 - Beta',
'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)']
def get_long_description():
lines = open('README.txt').read().splitlines(False)
end = lines.index('Getting Started')
return '\n' + '\n'.join(lines[:end]) + '\n'
make_temps()
try:
setup(name='ropeide',
version=ropeide.VERSION,
description='a python refactoring IDE...',
long_description=get_long_description(),
author='Ali Gholami Rudi',
author_email='aligrudi@users.sourceforge.net',
url='http://rope.sf.net/',
packages=['ropeide'],
package_data={'ropeide': ['docs/COPYING', 'docs/*.txt']},
scripts=['scripts/ropeide'],
license='GNU GPL',
classifiers=classifiers)
finally:
remove_temps()