forked from ansys/pyfluent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
68 lines (61 loc) · 1.94 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
"""Setup file for ansys-fluent-core."""
import os
import shutil
from setuptools import find_namespace_packages, setup
# Get version from version info
__version__ = None
_THIS_FILE = os.path.dirname(__file__)
_VERSION_FILE = os.path.join(
_THIS_FILE, "src", "ansys", "fluent", "core", "_version.py"
)
with open(_VERSION_FILE, mode="r", encoding="utf8") as fd:
# execute file from raw string
exec(fd.read())
# Copy README.rst file to docs folder in ansys.fluent.core
_README_FILE = os.path.join(_THIS_FILE, "README.rst")
_DOCS_FILE = os.path.join(
_THIS_FILE, "src", "ansys", "fluent", "core", "docs", "README.rst"
)
shutil.copy2(_README_FILE, _DOCS_FILE)
install_requires = [
"ansys-api-fluent>=0.3.15",
"ansys-platform-instancemanagement~=1.0",
"grpcio>=1.30.0",
"grpcio-health-checking>=1.30.0",
"numpy>=1.21.5",
"platformdirs>=3.5.1",
"pandas>=1.1.5",
"h5py>=3.8.0",
"lxml>=4.9.2",
"pyyaml>=6.0",
"docker>=6.1.3",
"psutil>=5.9.5",
]
packages = []
for package in find_namespace_packages(where="src", include="ansys*"):
if package.startswith("ansys.fluent"):
packages.append(package)
setup(
name="ansys-fluent-core",
packages=packages,
package_dir={"": "src"},
include_package_data=True,
version=__version__,
description="Pythonic interface to Ansys Fluent",
long_description=open(_README_FILE, encoding="utf8").read(),
long_description_content_type="text/x-rst",
license="MIT",
author="ANSYS, Inc.",
author_email="[email protected]",
maintainer="PyAnsys developers",
maintainer_email="[email protected]",
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
url="https://github.com/ansys/pyfluent",
python_requires=">=3.8",
install_requires=install_requires,
)