-
Notifications
You must be signed in to change notification settings - Fork 30
/
setup.py
50 lines (46 loc) · 1.62 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
import json
from setuptools import setup
with open("package.json") as f:
package = json.load(f)
with open("docs/README-PyPi.md", encoding="utf-8") as f:
long_description = f.read()
package_name = package["name"].replace(" ", "_").replace("-", "_")
setup(
name=package_name,
version=package["version"],
author=package["author"],
author_email="[email protected]",
url=package["homepage"],
packages=[
package_name,
package_name + "._build",
],
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=["dash>=1.1.0", "packaging>= 21.0"],
extras_require={
"dev": [
"pyyaml~=6.0", # building with dash-generate-components
# Packages needed to run the tests.
"black", # code formatting
"pytest", # running tests
"selenium~=4.1.0", # running tests
# Switch into a virtual environment
# pip install -r requirements.txt
"dash[testing]>=1.1.0",
# Automatically get the latest ChromeDriver. If Chrome is of
# different version, use
# pip install --upgrade --force-reinstall chromedriver-binary==<version>.*
# to update/downgrade the chromedriver binary.
# Needs: import chromedriver_binary to the top of your test script.
"chromedriver-binary",
"Werkzeug~=2.0.3",
]
},
classifiers=[
"Framework :: Dash",
],
)