-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·47 lines (41 loc) · 1.27 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
#!/usr/bin/env python3
import re
import setuptools
import sys
from pathlib import Path
HERE = Path(__file__).parent
with open(HERE / 'pythonpy_clone.py') as f:
VERSION = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE).group(1)
if not VERSION:
raise RuntimeError('version is not set')
with open(HERE / 'README.md') as f:
README = f.read()
setuptools.setup(
name='pythonpy-clone',
author='io mintz',
url='https://github.com/ioistired/pythonpy-clone',
version=VERSION,
py_modules=['pythonpy_clone'],
license='BlueOak-1.0.0',
description='rewrite of pythonpy using AST manipulations instead of regex',
long_description=README,
long_description_content_type='text/markdown; variant=GFM',
install_requires=['import-expression>=2.0.0,<3.0.0'],
python_requires='>=3.6.0',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: System Administrators',
'Topic :: Utilities',
'Natural Language :: English',
'Operating System :: OS Independent',
],
entry_points={
'console_scripts': list(map(
'py{} = pythonpy_clone:main'.format,
('', sys.version_info.major, '.'.join(map(str, sys.version_info[:2])))
)),
},
)