-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
39 lines (33 loc) · 1 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
#!/usr/bin/env python
import ast
from os import path
import re
from setuptools import setup
_version_re = re.compile(r"__version__\s+=\s+(.*)")
with open("blocknative/__init__.py", "rb") as f:
print("version")
version = str(
ast.literal_eval(_version_re.search(f.read().decode("utf-8")).group(1))
)
with open("README.md") as readme_file:
README = readme_file.read()
# Read requirements.txt
with open(
path.join(path.abspath(path.dirname(__file__)), "requirements.txt"),
encoding="utf-8",
) as f:
requirements = f.read().split("\n")
setup(
name="blocknative-sdk",
version=version,
description="Blocknative's Python SDK.",
long_description=README,
long_description_content_type="text/markdown",
author="Taylor Dawson",
author_email="[email protected]",
url="https://github.com/blocknative/python-sdk",
keywords="ethereum,api,transactions,blocknative",
packages=["blocknative"],
python_requires=">=3.7",
install_requires=requirements,
)