diff --git a/.bumpversion.cfg b/.bumpversion.cfg new file mode 100644 index 000000000..760dc17ff --- /dev/null +++ b/.bumpversion.cfg @@ -0,0 +1,6 @@ +[bumpversion] +current_version = 0.0.3 +commit = True +tag = True + +[bumpversion:file:setup.py] diff --git a/.gitignore b/.gitignore index ddbbfe1dd..67258fdcd 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,6 @@ __pycache__ .coverage .vscode/ setup-local.sh + +.eggs/ +util.egg-info/ diff --git a/mypy.ini b/mypy.ini index a7b8f69f3..52a64209f 100644 --- a/mypy.ini +++ b/mypy.ini @@ -33,3 +33,6 @@ ignore_missing_imports = True [mypy-ecies.*] ignore_missing_imports = True + +[mypy-setuptools.*] +ignore_missing_imports = True diff --git a/requirements.txt b/requirements.txt index f93579ab8..aefbcb6d2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,14 +1 @@ -coverage -ccxt==3.0.84 -eciespy -eth-brownie -enforce_typing -gql -mypy -numpy -pandas -pylint -pytest -requests -scipy -types-requests +-e .[dev] diff --git a/setup.py b/setup.py new file mode 100644 index 000000000..099250984 --- /dev/null +++ b/setup.py @@ -0,0 +1,71 @@ +#!/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_packages, setup + +# Installed by pip install ocean-provider +# or pip install -e . +install_requirements = [ + "coverage", + "ccxt==3.0.84", + "eciespy", + "eth-brownie", + "enforce_typing", + "gql", + "mypy", + "numpy", + "pandas", + "pylint", + "pytest", + "requests", + "scipy", + "types-requests", + "bumpversion", +] + +# Required to run setup.py: +setup_requirements = ["pytest-runner"] + +setup( + author="oceanprotocol", + author_email="devops@oceanprotocol.com", + classifiers=[ + "Development Status :: 2 - Pre-Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Natural Language :: English", + "Programming Language :: Python :: 3.8", + ], + description="DF PY lib.", + install_requires=install_requirements, + license="Apache Software License 2.0", + include_package_data=True, + packages=find_packages( + include=[ + "util", + "build", + "contracts", + "data", + "interfaces", + "reports", + "scripts", + ] + ), + setup_requires=setup_requirements, + test_suite="tests", + url="https://github.com/oceanprotocol/provider-py", + # fmt: off + # bumpversion needs single quotes + version='0.0.3', + # fmt: on + zip_safe=False, +)