forked from equinor/fmu-ensemble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
86 lines (73 loc) · 2.08 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
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
try:
from sphinx.setup_command import BuildDoc
cmdclass = {"build_sphinx": BuildDoc}
except ImportError:
# sphinx not installed - do not provide build_sphinx cmd
cmdclass = {}
with open("README.rst") as readme_file:
readme = readme_file.read()
with open("HISTORY.rst", "rb") as history_file:
# Norwegian characters in HISTORY.rst
history = history_file.read().decode("UTF-8")
REQUIREMENTS = [
"ecl>=2.9",
"numpy",
"pandas",
"pyyaml>=5.1",
]
SETUP_REQUIREMENTS = ["setuptools>=28", "setuptools_scm"]
TEST_REQUIREMENTS = [
"black>=20.8b0",
"flake8>=2.6.0",
"pylint",
"pytest>=2.9.2",
"pyyaml>=5.1",
]
DOCS_REQUIREMENTS = [
"ipython",
"rstcheck",
"sphinx",
"sphinx-argparse",
"sphinx_rtd_theme",
]
EXTRAS_REQUIRE = {
"tests": TEST_REQUIREMENTS,
"docs": DOCS_REQUIREMENTS,
"parquet": ["pyarrow"],
}
setup(
name="fmu-ensemble",
use_scm_version={"write_to": "src/fmu/ensemble/version.py"},
cmdclass=cmdclass,
description="Python API to ensembles produced by ERT",
long_description=readme + "\n\n" + history,
author="Håvard Berland",
author_email="[email protected]",
url="https://github.com/equinor/fmu-ensemble",
license="GPLv3",
packages=find_packages("src"),
package_dir={"": "src"},
include_package_data=True,
install_requires=REQUIREMENTS,
zip_safe=False,
keywords="fmu, ensemble",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
test_suite="tests",
tests_require=TEST_REQUIREMENTS,
setup_requires=SETUP_REQUIREMENTS,
extras_require=EXTRAS_REQUIRE,
python_requires=">=3.6",
)