-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathsetup.py
47 lines (43 loc) · 1.67 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
# Copyright (c) The Diem Core Contributors
# SPDX-License-Identifier: Apache-2.0
import os
import re
from setuptools import setup
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Regex the file directly as we can not import it due to
# src/diem/__init__.py importing from external repo not in requirements.txt
with open(os.path.join(this_directory, "src", "diem", "__VERSION__.py"), encoding='utf-8') as f:
version = re.search(r'VERSION = "(.*?)"', f.read(), re.MULTILINE).group(1)
setup(
name="diem",
version=version,
description="The Python Client SDK for Diem",
long_description=long_description,
long_description_content_type='text/markdown',
license="Apache-2.0",
url="https://github.com/diem/client-sdk-python",
author="The Diem Core Contributors",
author_email="[email protected]",
py_modules=["diem.testing.cli"],
entry_points='''
[console_scripts]
dmw=diem.testing.cli:main
''',
python_requires=">=3.8", # requires dataclasses
packages=["diem"],
# package_data={"": ["src/diem/jsonrpc/*.pyi"]},
package_dir={"": "src"},
include_package_data=True, # see MANIFEST.in
zip_safe=True,
install_requires=["requests>=2.20.0", "cryptography>=2.8", "numpy>=1.18", "protobuf>=3.12.4", "aiohttp>=3.7.4.post0"],
extras_require={
"all": ["pytest>=6.2.1", "click>=7.1", "pytest-asyncio>=0.14.0"]
},
classifiers=[
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9'
]
)