pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-curtsies py-curtsies: do not require typing m...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a7422ad2909c
branches:  trunk
changeset: 395451:a7422ad2909c
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue May 07 09:42:33 2019 +0000

description:
py-curtsies: do not require typing module for Python >= 3.5

diffstat:

 devel/py-curtsies/Makefile               |   5 ++---
 devel/py-curtsies/distinfo               |   3 ++-
 devel/py-curtsies/patches/patch-setup.py |  15 +++++++++++++++
 3 files changed, 19 insertions(+), 4 deletions(-)

diffs (50 lines):

diff -r 4d056b46e1fc -r a7422ad2909c devel/py-curtsies/Makefile
--- a/devel/py-curtsies/Makefile        Tue May 07 09:33:13 2019 +0000
+++ b/devel/py-curtsies/Makefile        Tue May 07 09:42:33 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2018/02/26 08:38:53 adam Exp $
+# $NetBSD: Makefile,v 1.3 2019/05/07 09:42:33 adam Exp $
 
 DISTNAME=      curtsies-0.3.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -14,8 +14,7 @@
 DEPENDS+=      ${PYPKGPREFIX}-wcwidth-[0-9]*:../../devel/py-wcwidth
 
 .include "../../lang/python/pyversion.mk"
-
-.if "${PYPKGPREFIX}" == "py27"
+.if ${_PYTHON_VERSION} == 27
 DEPENDS+=      ${PYPKGPREFIX}-typing-[0-9]*:../../devel/py-typing
 .endif
 
diff -r 4d056b46e1fc -r a7422ad2909c devel/py-curtsies/distinfo
--- a/devel/py-curtsies/distinfo        Tue May 07 09:33:13 2019 +0000
+++ b/devel/py-curtsies/distinfo        Tue May 07 09:42:33 2019 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2018/02/26 08:38:53 adam Exp $
+$NetBSD: distinfo,v 1.3 2019/05/07 09:42:33 adam Exp $
 
 SHA1 (curtsies-0.3.0.tar.gz) = af02c5ded913a15a3e4ae85d2ad1e04b6ce91f75
 RMD160 (curtsies-0.3.0.tar.gz) = 39fd8eb76f8e38fec3a7803659e3ae1a7cbfce2a
 SHA512 (curtsies-0.3.0.tar.gz) = b1fc09a4e9aefe09b878a5c710ef86c90f93895a8ed40b40a3c13b24a2dfc1fe771ace11c20e3fed4fcdd0bed8b9615ee3c2bcf200fa34fbfb895a4a7b57b14c
 Size (curtsies-0.3.0.tar.gz) = 47120 bytes
+SHA1 (patch-setup.py) = e6c5baecf68287ab4aab53bccff0c1180bdb5acb
diff -r 4d056b46e1fc -r a7422ad2909c devel/py-curtsies/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-curtsies/patches/patch-setup.py  Tue May 07 09:42:33 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.py,v 1.1 2019/05/07 09:42:33 adam Exp $
+
+Conditionally require "typing" module.
+
+--- setup.py.orig      2019-05-07 09:34:30.000000000 +0000
++++ setup.py
+@@ -41,7 +41,7 @@ setup(name='curtsies',
+       install_requires = [
+           'blessings>=1.5',
+           'wcwidth>=0.1.4',
+-          'typing',
++          'typing;python_version<"3.5"',
+       ],
+       tests_require = [
+           'mock',



Home | Main Index | Thread Index | Old Index