forked from ikamensh/flynt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (44 loc) · 1.47 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
import re
from pathlib import Path
from setuptools import setup
_DIR = Path(__file__).parent
with (_DIR / "src/flynt/__init__.py").open() as f:
version = re.search('__version__ = "(.*?)"', f.read()).group(1)
def get_requirements():
with (_DIR / "requirements.txt").open() as f:
return f.read()
setup(
name="flynt",
packages=[
"flynt",
"flynt.transform",
"flynt.lexer",
"flynt.string_concat",
"flynt.linting",
],
package_dir={"": "src"},
version=version,
description="CLI tool to convert a python project's %-formatted strings "
"to f-strings.",
author="Ilya Kamenshchikov",
keywords=["utility", "strings"],
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
],
license="MIT",
long_description=(_DIR / "README.md").read_text().strip(),
long_description_content_type="text/markdown",
install_requires=get_requirements(),
python_requires=">=3.6",
entry_points={"console_scripts": ["flynt=flynt:main"]},
url="https://github.com/ikamensh/flynt",
include_package_data=True,
)