-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
65 lines (61 loc) · 2.02 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
# python imports
from setuptools import setup, find_packages
from codecs import open
# read from the VERSION file
with open('src/jsonparse/VERSION') as version_file:
version = version_file.read().strip()
# long description as readme
with open("README.md", "r", "utf-8") as f:
readme = f.read()
# Package meta-data.
NAME = 'jsonparse'
DESCRIPTION = 'Search through JSON data key:values'
URL = url = 'https://github.com/ctomkow/jsonparse'
EMAIL = '[email protected]'
AUTHOR = 'Craig Abt Tomkow'
REQUIRES_PYTHON = ">=2.7,!=3.0,!=3.1,!=3.2,!=3.3,!=3.4,!=3.5"
setup(
name=NAME,
version=version,
description=DESCRIPTION,
long_description=readme,
long_description_content_type="text/markdown",
url=URL,
author=AUTHOR,
author_email=EMAIL,
license='MIT',
classifiers=[
'Programming Language :: Python :: 2.7',
'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',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
],
extras_require={
'webapi': [
'flask==2.0.3',
'gunicorn==20.1.0',
'werkzeug==2.0.0',
],
},
entry_points={
'console_scripts': [
'jsonparse=jsonparse.cli:entrypoint',
'jp=jsonparse.cli:entrypoint',
],
},
packages=find_packages(where="src"),
package_dir={"": "src"},
package_data={
'jsonparse': ['VERSION'],
'jsonparse.static.css': ['*.css'],
'jsonparse.static.img': ['*.png'],
'jsonparse.static.js': ['*.js'],
'jsonparse.static': ['openapi.yaml'],
'jsonparse.templates': ['*.html'],
},
)