-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (50 loc) · 2.03 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
"""Installation file for the ansys-api-geometry package"""
import os
from datetime import datetime
import setuptools
from ansys.tools.protoc_helper import CMDCLASS_OVERRIDE
# Get the long description from the README file
HERE = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(HERE, "README.md"), encoding="utf-8") as f:
long_description = f.read()
product = "geometry"
library = ""
package_info = ["ansys", "api", product, library, "v0"]
with open(
os.path.join(HERE, "ansys", "api", product, library, "VERSION"), encoding="utf-8"
) as f:
version = f.read().strip()
package_name = "ansys-api-geometry"
dot_package_name = ".".join(filter(None, package_info))
description = f"Autogenerated Python gRPC interface package for {package_name}, built on {datetime.now().strftime('%H:%M:%S on %d %B %Y')}"
if __name__ == "__main__":
setuptools.setup(
name=package_name,
version=version,
author="ANSYS, Inc.",
author_email="[email protected]",
maintainer="ANSYS, Inc.",
maintainer_email="[email protected]",
description=description,
long_description=long_description,
long_description_content_type="text/markdown",
url=f"https://github.com/ansys/{package_name}",
license="MIT",
python_requires=">=3.10",
install_requires=["grpcio~=1.44", "protobuf>=3.19,<6", "ansys-api-dbu==0.3.8"],
packages=setuptools.find_namespace_packages(".", include=("ansys.*",)),
package_data={
"": ["*.proto", "*.pyi", "py.typed", "VERSION"],
},
entry_points={
"ansys.tools.protoc_helper.proto_provider": [
f"{dot_package_name}={dot_package_name}"
],
},
cmdclass=CMDCLASS_OVERRIDE,
project_urls={
"Documentation": "https://github.com/ansys/ansys-api-geometry/#readme",
"Source": "https://github.com/ansys/ansys-api-geometry/",
"Tracker": "https://github.com/ansys/ansys-api-geometry/issues/",
},
)