forked from equinor/res2df
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (62 loc) · 2.07 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
# -*- coding: utf-8 -*-
from os import path
from setuptools import setup
try:
from sphinx.setup_command import BuildDoc
cmdclass = {"build_sphinx": BuildDoc}
except ImportError:
# Skip cmdclass when sphinx is not installed (yet)
cmdclass = {}
# Read the contents of README.md, for PyPI
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, "README.md")) as f_handle:
LONG_DESCRIPTION = f_handle.read()
SETUP_REQUIREMENTS = ["setuptools>=28", "setuptools_scm"]
REQUIREMENTS = ["libecl", "pandas", "pyyaml>=5.1", "treelib"]
TEST_REQUIREMENTS = [
"black; python_version >= '3'",
"networkx",
"pytest",
"sphinx",
"sphinx-argparse",
"sphinx_rtd_theme",
]
EXTRAS_REQUIRE = {"tests": TEST_REQUIREMENTS}
setup(
name="ecl2df",
use_scm_version={"write_to": "ecl2df/version.py"},
cmdclass=cmdclass,
description="Convert Eclipse 100 input and output to DataFrames",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="http://github.com/equinor/ecl2df",
author="Håvard Berland",
author_email="[email protected]",
license="GPLv3",
packages=["ecl2df"],
package_dir={"ecl2df": "ecl2df"},
package_data={"ecl2df": ["opmkeywords/*"]},
zip_safe=False,
entry_points={
"console_scripts": [
"compdat2csv=ecl2df.compdat:main",
"csv2ecl=ecl2df.csv2ecl:main",
"ecl2csv=ecl2df.ecl2csv:main",
"eclgrid2csv=ecl2df.grid:main",
"equil2csv=ecl2df.equil:main",
"faults2csv=ecl2df.faults:main",
"grid2csv=ecl2df.grid:main",
"gruptree2csv=ecl2df.gruptree:main",
"nnc2csv=ecl2df.nnc:main",
"pvt2csv=ecl2df.pvt:main",
"rft2csv=ecl2df.rft:main",
"satfunc2csv=ecl2df.satfunc:main",
"summary2csv=ecl2df.summary:main",
"wcon2csv=ecl2df.wcon:main",
]
},
test_suite="tests",
install_requires=REQUIREMENTS,
setup_requires=SETUP_REQUIREMENTS,
extras_require=EXTRAS_REQUIRE,
)