-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.py
48 lines (40 loc) · 1.37 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
# -*- coding: utf-8 -*-
import sys
import setuptools
from pathlib import Path
if sys.version_info.major == 2:
sys.exit("Python 2 is not supported anymore. The last supported version is 3.10.0")
BASE_DIR = Path(__file__).resolve().parent
version = "{{VERSION_PLACEHOLDER}}"
with Path.open(BASE_DIR / "README.md") as fh:
long_description = fh.read()
def get_reqs(filename):
"""Read file per-line."""
with Path.open(BASE_DIR / filename) as reqs_file:
return reqs_file.readlines()
reqs = get_reqs("requirements.txt")
setuptools.setup(
name="json_translate",
version=version,
author="Saigesp",
author_email="saigesp@gmail.com",
description="CLI tool to translate json files using different external services",
long_description=long_description,
long_description_content_type="text/markdown",
python_requires=">=3.10",
install_requires=reqs,
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
],
entry_points={
"console_scripts": [
"json_translate=json_translate.commands:main",
],
},
)