-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (48 loc) · 1.79 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
49
50
51
52
53
import os
import sys
import shutil
import setuptools
keys = ['readme', 'license', 'todo', 'version']
os.makedirs('idlealib/docs', exist_ok=True)
for file in os.listdir():
if any(file.lower().startswith(k) for k in keys):
shutil.copy(file, 'idlealib/docs/' + file.lower())
with open('VERSION.txt') as f:
version = f.read().strip()
with open('README.md', encoding='u8') as f:
long_description = f.read().replace('[x]', chr(9989)).replace('[ ]', chr(10062)) # ✅❎
setuptools.setup(
name='idlea',
version=version,
author='Shixian Li (znsoooo)',
author_email='[email protected]',
description='IDLE-Advance',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/znsoooo/IDLE-Advance',
project_urls={
'Bug Tracker': 'https://github.com/znsoooo/IDLE-Advance/issues',
},
classifiers=[
'Programming Language :: Python :: 3',
'Operating System :: OS Independent',
'Framework :: IDLE',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Topic :: Text Editors :: Integrated Development Environments (IDE)',
],
packages=['idlealib', 'idlealib.docs', 'idlealib.nouse', 'idlealib.scripts'],
python_requires='>=3.4',
# install_requires=['windnd'], # for drag-open file feature
# extras_requires={'windnd': ['windnd']},
license='MIT License',
entry_points={
'console_scripts': [
'idlea=idlealib:run',
'idlea%d%d=idlealib:run' % sys.version_info[:2],
'idlea%d%d%d=idlealib:run' % (sys.version_info[:2] + (sys.maxsize.bit_length() + 1,)),
]
},
package_data={'': ['*.*']},
keywords='IDLE-Advance IDLE IDLEA IDLEX extension idlelib idlexlib idlealib',
)