Sunday, July 21, 2019

Update: py-fasteners 0.14.1 -> 0.15

This updates py-fasteners from 0.14.1 to 0.15. I added a missing
TEST_DEPENDS on devel/py-pbr. I also patched it to use Python 3.3+'s
time.monotonic rather than py-monotonic for the python3 flavor. I've
made a pull request upstream to integrate these patches.

Regression tests for sysutils/duplicity and mail/mailpile still pass
on amd64 the same as before the update.

OK?

--Kurt

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/py-fasteners/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- Makefile 12 Jul 2019 20:45:48 -0000 1.5
+++ Makefile 19 Jul 2019 05:49:50 -0000
@@ -2,10 +2,9 @@

COMMENT = python package that provides useful locks

-MODPY_EGG_VERSION = 0.14.1
+MODPY_EGG_VERSION = 0.15
DISTNAME = fasteners-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
-REVISION = 1

CATEGORIES = devel

@@ -22,13 +21,15 @@ MODPY_SETUPTOOLS = Yes
FLAVORS = python3
FLAVOR ?=

-RUN_DEPENDS = devel/py-monotonic${MODPY_FLAVOR} \
- devel/py-six${MODPY_FLAVOR}

-TEST_DEPENDS = devel/py-nose${MODPY_FLAVOR} \
+RUN_DEPENDS = devel/py-six${MODPY_FLAVOR}
+
+TEST_DEPENDS = devel/py-pbr${MODPY_FLAVOR} \
+ devel/py-nose${MODPY_FLAVOR} \
devel/py-testtools${MODPY_FLAVOR}

.if !${FLAVOR:Mpython3}
+RUN_DEPENDS += devel/py-monotonic
TEST_DEPENDS += devel/py-futures
.endif

Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/py-fasteners/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo 17 Jul 2017 00:22:09 -0000 1.1.1.1
+++ distinfo 19 Jul 2019 05:49:50 -0000
@@ -1,2 +1,2 @@
-SHA256 (fasteners-0.14.1.tar.gz) = Qnx2dz/gNt36QeV9iQhuoDERu6xXxV/FXzAG0CcQfhg=
-SIZE (fasteners-0.14.1.tar.gz) = 17749
+SHA256 (fasteners-0.15.tar.gz) = OhdtprcN+buISY4aGKnkqFee1bkUEgd2I2ihAXv49e8=
+SIZE (fasteners-0.15.tar.gz) = 17898
Index: patches/patch-fasteners__utils_py
===================================================================
RCS file: patches/patch-fasteners__utils_py
diff -N patches/patch-fasteners__utils_py
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-fasteners__utils_py 19 Jul 2019 05:49:50 -0000
@@ -0,0 +1,21 @@
+$OpenBSD$
+
+Patch to use native monotonic for Python 3.7+
+
+https://github.com/harlowja/fasteners/pull/40
+
+Index: fasteners/_utils.py
+--- fasteners/_utils.py.orig
++++ fasteners/_utils.py
+@@ -36,7 +36,10 @@ except (ImportError, AttributeError):
+
+ import six
+
+-from monotonic import monotonic as now # noqa
++try:
++ from time import monotonic as now
++except (ImportError, AttributeError):
++ from monotonic import monotonic as now # noqa
+
+ # log level for low-level debugging
+ BLATHER = 5
Index: patches/patch-setup_py
===================================================================
RCS file: patches/patch-setup_py
diff -N patches/patch-setup_py
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-setup_py 19 Jul 2019 05:49:50 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Tweak setup.py to not need py-monotonic for python3
+
+https://github.com/harlowja/fasteners/pull/40
+
+Index: setup.py
+--- setup.py.orig
++++ setup.py
+@@ -26,7 +26,7 @@ with open("README.rst", "r") as readme:
+
+ install_requires = [
+ 'six',
+- 'monotonic>=0.1',
++ 'monotonic>=0.1;python_version<"3.4"',
+ ]
+
+ setup(

No comments:

Post a Comment