-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
83 lines (77 loc) · 2.5 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# -*- coding: utf-8 -*-
import os
import subprocess # nosec
import sys
from setuptools import setup
os.chdir(os.path.dirname(os.path.realpath(__file__)))
with open('README.md', 'r', encoding='utf-8') as f:
long_description = f.read()
module_name = 'f2format'
version = subprocess.check_output([sys.executable, # nosec
os.path.join('scripts', 'find_version.py')],
universal_newlines=True).strip()
setup(
name='bpc-f2format',
version=version,
description='Back-port compiler for Python 3.6 formatted string (f-string) literals.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/pybpc/f2format',
author='Jarry Shaw',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development',
'Topic :: Utilities',
'Typing :: Typed',
],
keywords='fstring format conversion',
py_modules=[module_name],
python_requires='>=3.4',
install_requires=[
'parso>=0.6.0', # universal AST support
'tbtrim>=0.2.1', # traceback trim support
'bpc-utils~=0.10.1', # utility library
'typing;python_version<"3.5"',
'typing_extensions',
],
extras_require={
'lint': [
'flake8',
'pylint',
'mypy',
'bandit>=1.6.3',
'vermin>=1.1.0',
'colorlabels>=0.7.0',
'parso>=0.8.0',
],
'test': [
'pytest>=4.5.0',
'pytest-doctestplus>=0.5.0',
'coverage',
],
'docs': [
'Sphinx',
'sphinx-autodoc-typehints',
'sphinxemoji',
],
},
entry_points={
'console_scripts': [
# 'f2format = f2format.__main__:main',
'f2format = f2format:main',
]
},
)