-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
41 lines (32 loc) · 1.13 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
import pathlib
import re
from setuptools import setup
HERE = pathlib.Path(__file__).parent
with open(HERE / "jsoneditor/__init__.py", encoding="utf-8") as f:
version = re.findall(r"__version__ = \"(.+)\"", f.read())[0]
with open(HERE / "README.md", encoding="utf-8") as f:
readme = f.read()
with open(HERE / "requirements.txt", encoding="utf-8") as f:
requirements = [r.strip() for r in f]
setup(
name="jsoneditor",
version=version,
packages=["jsoneditor"],
include_package_data=True,
url="https://github.com/dermasmid/py-jsoneditor",
license="MIT",
long_description=readme,
long_description_content_type="text/markdown",
author="Cheskel Twersky",
author_email="[email protected]",
description="Visualize and edit JSON",
keywords="python3 json jsoneditor api gui editor csv",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=requirements,
python_requires=">=3.6",
entry_points={"console_scripts": ["jsoneditor = jsoneditor:main"]},
)