forked from equinor/pyscal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
77 lines (70 loc) · 2.11 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
from os import path
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 = {}
# 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()
REQUIREMENTS = [
"matplotlib",
"numpy",
"openpyxl",
"pandas",
"scipy",
"xlrd",
]
TEST_REQUIREMENTS = [
"black>=20.8b0",
"flake8",
"hypothesis",
"pre-commit",
"pytest",
"pytest-cov",
"rstcheck",
"sphinx",
"sphinx-argparse",
"sphinx_rtd_theme",
]
SETUP_REQUIREMENTS = ["pytest-runner", "setuptools >=28", "setuptools_scm"]
EXTRAS_REQUIRE = {"tests": TEST_REQUIREMENTS}
setup(
name="pyscal",
use_scm_version={"write_to": "pyscal/version.py"},
cmdclass=cmdclass,
description=(
"Generate relative permeability include files for "
"Eclipse reservoir simulator"
),
entry_points={"console_scripts": ["pyscal = pyscal.pyscalcli:main"]},
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="http://github.com/equinor/pyscal",
author="Håvard Berland",
author_email="[email protected]",
license="LGPLv3",
keywords="relative permeability, capillary pressure, reservoir simulation",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
(
"License :: OSI Approved :: "
"GNU Lesser General Public License v3 or later (LGPLv3+)"
),
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
packages=find_packages(),
zip_safe=False,
test_suite="tests",
install_requires=REQUIREMENTS,
setup_requires=SETUP_REQUIREMENTS,
extras_require=EXTRAS_REQUIRE,
)