forked from equinor/webviz-subsurface-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (64 loc) · 2.01 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
66
67
68
69
70
71
72
73
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# Copyright (C) 2020 - Equinor ASA.
import os
import json
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
with open(os.path.join("webviz_subsurface_components", "package.json")) as f:
package = json.load(f)
package_name = (
package["name"]
.replace(" ", "_")
.replace("-", "_")
.replace("/", "_")
.replace("@", "")
)
INSTALL_REQUIRES = ["dash>=1.6"]
TESTS_REQUIRE = [
"bandit",
"black>=20.8b1",
"matplotlib>=3.0",
"numpy>=1.14",
"pandas>=0.25",
"Pillow>=6.0",
"pylint>=2.4",
"scipy>=1.2",
"selenium>=3.141",
"jsonpatch>=1.32",
"jsonpointer>=2.1",
]
# 'dash[testing]' to be added in TEST_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-subsurface-components",
install_requires=INSTALL_REQUIRES,
tests_require=TESTS_REQUIRE,
extras_require={"tests": TESTS_REQUIRE, "dependencies": INSTALL_REQUIRES},
setup_requires=["setuptools_scm>=3.2"],
python_requires="~=3.6",
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 :: Mozilla Public License 2.0 (MPL 2.0)",
],
)