-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
83 lines (77 loc) · 2.54 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
import setuptools
import sysconfig
# Try to download NuGet packages if the download script is present
try:
from scripts.nuget_retriever import NuGetRetriever
NuGetRetriever.install()
except Exception as e:
print("NuGetRetriever failed with an ERROR:")
print(e)
print("NuGetRetriever did not succeed: packages are not installed.")
# Try to build DHI.Mike1D.MikeIO C# project
try:
from scripts.util_builder import UtilBuilder
UtilBuilder.build_and_install()
except Exception as e:
print("UtilBuilder failed with an ERROR:")
print(e)
print("UtilBuilder did not succeed: packages are not installed.")
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="mikeio1d",
version="0.6.1",
install_requires=[
"pythonnet>=3.0.0",
"numpy",
"pandas",
'mikecore; platform_system=="Linux"',
],
extras_require={
"dev": [
"pytest",
"black",
"matplotlib",
"jupyterlab",
"geopandas",
],
"docs": [
"sphinx",
"sphinx-rtd-theme",
"sphinx-autobuild",
"sphinx-copybutton",
"myst-parser",
],
"test": ["pytest", "matplotlib", "pyarrow", "nbformat", "nbconvert"],
"all": ["matplotlib", "geopandas"],
},
options={
"bdist_wheel": {
"plat_name": sysconfig.get_platform().replace("linux-x86_64", "manylinux2010_x86_64")
}
},
author="Gediminas Kirsanskas",
author_email="geki@dhigroup.com",
description="A package that uses the DHI MIKE1D .NET libraries to read res1d and xns11 files.",
license="MIT",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/DHI/mikeio1d",
packages=setuptools.find_packages(),
include_package_data=True,
classifiers=[
"License :: OSI Approved :: MIT License",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Topic :: Scientific/Engineering",
],
)