-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
61 lines (53 loc) · 1.65 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
import json
from setuptools import setup
with open("README.md", "r", encoding="utf8") as fh:
long_description = fh.read()
with open("webviz_core_components/package.json", encoding="utf8") as f:
package = json.load(f)
package_name = (
package["name"]
.replace(" ", "_")
.replace("-", "_")
.replace("/", "_")
.replace("@", "")
)
INSTALL_REQUIRES = ["dash>=2.0"]
TESTS_REQUIRE = [
"bandit",
"black>=22.12,<24",
"dash[testing]",
"flask<2.3",
"pylint",
"selenium>=3.141.0,<=4.2.0",
]
# 'dash[testing]' to be added in tests_require when
# https://github.com/pypa/pip/issues/4957 is closed.
setup(
name=package_name,
author=package["author"],
packages=[package_name],
include_package_data=True,
license=package["license"],
description=package["description"],
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/equinor/webviz-core-components",
install_requires=INSTALL_REQUIRES,
tests_require=TESTS_REQUIRE,
extras_require={"tests": TESTS_REQUIRE, "dependencies": INSTALL_REQUIRES},
setup_requires=["setuptools_scm~=7.0"],
python_requires="~=3.8",
use_scm_version=True,
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"Natural Language :: English",
"Environment :: Web Environment",
"Framework :: Dash",
"Framework :: Flask",
"Topic :: Multimedia :: Graphics",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Visualization",
"License :: OSI Approved :: MIT License",
],
)