Skip to content

Commit

Permalink
fix error in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lartpang committed Mar 31, 2021
1 parent db9bd84 commit f5ce652
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion py_sod_metrics/sod_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

_EPS = 1e-16
_TYPE = np.float64
__version__ = "1.2.4"


def _prepare_data(pred: np.ndarray, gt: np.ndarray) -> tuple:
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

from setuptools import find_packages, setup

from py_sod_metrics.sod_metrics import __version__
with open("./version.txt", encoding="utf-8", mode="r") as f:
version = f.readline().strip()

with open("readme.md", "r") as fh:
long_description = fh.read()

setup(
name="pysodmetrics",
packages=find_packages(),
version=__version__,
version=version,
license="MIT",
description="A simple and efficient implementation of SOD metrics.",
long_description=long_description,
Expand Down
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.2.4

0 comments on commit f5ce652

Please sign in to comment.