-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
35 lines (32 loc) · 1.15 KB
/
setup.py
File metadata and controls
35 lines (32 loc) · 1.15 KB
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
import os
import setuptools
import xml.etree.ElementTree as ET
pom = ET.parse("./src/hedera_proto/pom.xml")
version_element = pom.getroot().find('{http://maven.apache.org/POM/4.0.0}version')
version = version_element.text.split('-')[0]
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="hedera-proto",
version=version,
author="Wensheng Wang",
author_email="wenshengwang@gmail.com",
description="Hedera Protobufs",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/HbarStudio/hedera-protobufs-python",
project_urls={
"Bug Tracker": "https://github.com/HbarStudio/hedera-protobufs-python/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
install_requires=['grpcio>=1.59.3'],
python_requires=">=3.8",
include_package_data=True,
package_data={ "hedera_proto": ["*.xml"]},
)