-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsetup.py
54 lines (46 loc) · 1.71 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
import json
from setuptools import setup
with open("package.json") as f:
package = json.load(f)
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
def read_req_file(req_type):
with open(f"requires-{req_type}.txt", encoding="utf-8") as fp:
requires = (line.strip() for line in fp)
return [req for req in requires if req and not req.startswith("#")]
package_name = package["name"].replace(" ", "_").replace("-", "_")
setup(
name=package_name,
version=package["version"],
author=package["author"],
packages=[package_name],
include_package_data=True,
license=package["license"],
description=package.get("description", package_name),
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=read_req_file("install"),
extras_require={
"dev": read_req_file("dev"),
"docs": read_req_file("docs"),
},
python_requires=">=3.6",
url="https://dash.plotly.com/dash-ag-grid",
project_urls={
"Documentation": "https://dash.plotly.com/dash-ag-grid",
"Source": "https://github.com/plotly/dash-ag-grid",
"Issue Tracker": "https://github.com/plotly/dash-ag-grid/issues",
},
classifiers=[
"Framework :: Dash",
"License :: OSI Approved :: MIT License",
"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",
"Programming Language :: Python :: 3.11",
],
)