Skip to content

Commit

Permalink
Towards #597 - Df-py Versioning (#603)
Browse files Browse the repository at this point in the history
* Adds bumpversion to requirements.

* Replace with bumpversion.cfg

* Bump version: 0.0.0 → 0.0.1

* Move to setup.py.

* Bump version: 0.0.1 → 0.0.2

* Add to bumpversion config.

* Bump version: 0.0.2 → 0.0.3

* Fix black and mypy.
  • Loading branch information
calina-c authored May 19, 2023
1 parent 030df30 commit 1fac332
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 14 deletions.
6 changes: 6 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[bumpversion]
current_version = 0.0.3
commit = True
tag = True

[bumpversion:file:setup.py]
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ __pycache__
.coverage
.vscode/
setup-local.sh

.eggs/
util.egg-info/
3 changes: 3 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ ignore_missing_imports = True

[mypy-ecies.*]
ignore_missing_imports = True

[mypy-setuptools.*]
ignore_missing_imports = True
15 changes: 1 addition & 14 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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]
71 changes: 71 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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="[email protected]",
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,
)

0 comments on commit 1fac332

Please sign in to comment.