forked from oceanprotocol/ocean.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
95 lines (86 loc) · 2.58 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2023 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
"""The setup script."""
# Copyright 2018 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
from setuptools import find_namespace_packages, setup
with open("README.md", encoding="utf8") as readme_file:
readme = readme_file.read()
# Installed by pip install ocean-lib
# or pip install -e .
install_requirements = [
"ocean-contracts==2.0.3",
"coloredlogs==15.0.1",
"requests>=2.21.0",
"pytz", # used minimally and unlikely to change, common dependency
"enforce-typing==1.0.0.post1",
"eciespy==0.4.1",
"cryptography==41.0.7",
"web3==6.14.0",
# web3.py requires eth-abi, requests, and more,
# so those will be installed too.
# See https://github.com/ethereum/web3.py/blob/master/setup.py
]
# Required to run setup.py:
setup_requirements = ["pytest-runner"]
test_requirements = [
"codacy-coverage==1.3.11",
"coverage==7.4.1",
"mccabe==0.7.0",
"pytest==8.0.0",
"pytest-watch==4.2.0",
"pytest-env", # common dependency
"matplotlib", # just used in a readme test and unlikely to change, common dependency
"mkcodes==0.1.1",
"pytest-sugar==0.9.7",
]
# Possibly required by developers of ocean-lib:
dev_requirements = [
"bumpversion==0.6.0",
"pkginfo==1.9.6",
"twine==4.0.2",
"watchdog==3.0.0",
"isort",
"flake8",
"black",
"pre-commit",
"licenseheaders",
]
packages = find_namespace_packages(include=["ocean_lib*"], exclude=["*test*"])
setup(
author="ocean-core-team",
author_email="[email protected]",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3.8",
],
description="🐳 Ocean protocol library.",
extras_require={
"test": test_requirements,
"dev": dev_requirements + test_requirements,
},
install_requires=install_requirements,
license="Apache Software License 2.0",
long_description=readme,
long_description_content_type="text/markdown",
include_package_data=True,
keywords="ocean-lib",
name="ocean-lib",
packages=packages,
setup_requires=setup_requirements,
test_suite="tests",
tests_require=test_requirements,
url="https://github.com/oceanprotocol/ocean.py",
# fmt: off
# bumpversion.sh needs single-quotes
version='3.1.2',
# fmt: on
zip_safe=False,
)