-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
56 lines (48 loc) · 1.97 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
"""Installation file for the ansys-api-edb 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 = "edb"
library = ""
package_info = ["ansys", "api", product, library, "v1"]
with open(os.path.join(HERE, "ansys", "api", product, library, "VERSION"), encoding="utf-8") as f:
version = f.read().strip()
package_name = "ansys-api-edb"
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.7",
install_requires=["grpcio>=1.44", "protobuf>=3.19.3,<5"],
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-edb/#readme',
'Source': 'https://github.com/ansys/ansys-api-edb/',
'Tracker': 'https://github.com/ansys/ansys-api-edb/issues/',
},
)