forked from equinor/pyscal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
65 lines (57 loc) · 1.9 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
from pathlib import Path
from setuptools import find_packages, setup
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
LONG_DESCRIPTION = (Path(__file__).parent / "README.md").read_text()
REQUIREMENTS = [
"matplotlib",
"numpy",
"openpyxl",
"pandas",
"scipy",
"xlrd",
]
TEST_REQUIREMENTS = Path("test_requirements.txt").read_text().splitlines()
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.8",
"Programming Language :: Python :: 3.9",
],
packages=find_packages(),
package_data={"pyscal": ["py.typed"]},
zip_safe=False,
test_suite="tests",
install_requires=REQUIREMENTS,
setup_requires=SETUP_REQUIREMENTS,
extras_require=EXTRAS_REQUIRE,
)