Update devel/py-fasteners to 0.15
Added a missing TEST_DEPENDS on devel/py-pbr Patched to use built-in time.monotonic rather than py-monotonic for the python3 flavor. A pull request has been made with upstream to integrate this change. ok sthen@
This commit is contained in:
parent
b3b9bec518
commit
b2e7a78dba
@ -1,11 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.5 2019/07/12 20:45:48 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.6 2019/07/22 13:00:01 kmos Exp $
|
||||
|
||||
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
|
||||
|
||||
|
@ -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
|
||||
|
21
devel/py-fasteners/patches/patch-fasteners__utils_py
Normal file
21
devel/py-fasteners/patches/patch-fasteners__utils_py
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-fasteners__utils_py,v 1.1 2019/07/22 13:00:01 kmos Exp $
|
||||
|
||||
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
|
18
devel/py-fasteners/patches/patch-setup_py
Normal file
18
devel/py-fasteners/patches/patch-setup_py
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-setup_py,v 1.1 2019/07/22 13:00:01 kmos Exp $
|
||||
|
||||
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(
|
0
devel/py-fasteners/patches/patch-setup_py.orig
Normal file
0
devel/py-fasteners/patches/patch-setup_py.orig
Normal file
Loading…
Reference in New Issue
Block a user