Update devel/py-testpath 0.3.1 -> 0.4.2
bring us up to date. Switch over to using MODPY_SETUPTOOLS and MODPY_PYTEST which removes the need for py-nose in TEST_DEPENDS. Drop the unnecessary MODPY_FLAVOR off of py-pathlib since that is in a conditional for Python 3 only. Moving to MODPY_SETUPTOOLS requires patching setup.py to use setuptools rather than the obsolete distutils. OK sthen
This commit is contained in:
parent
55a7e67142
commit
aaacf4ec0f
@ -1,11 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.13 2019/07/12 20:45:54 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.14 2019/09/23 13:38:23 kmos Exp $
|
||||
|
||||
COMMENT = test utilities working with files and commands
|
||||
|
||||
MODPY_EGG_VERSION = 0.3.1
|
||||
MODPY_EGG_VERSION = 0.4.2
|
||||
DISTNAME = testpath-${MODPY_EGG_VERSION}
|
||||
PKGNAME = py-${DISTNAME}
|
||||
REVISION = 2
|
||||
|
||||
CATEGORIES = devel
|
||||
|
||||
@ -17,20 +16,21 @@ PERMIT_PACKAGE = Yes
|
||||
MODULES = lang/python
|
||||
|
||||
MODPY_PI = Yes
|
||||
MODPY_SETUPTOOLS = Yes
|
||||
MODPY_PYTEST = Yes
|
||||
|
||||
FLAVORS = python3
|
||||
FLAVOR ?=
|
||||
|
||||
BUILD_DEPENDS = textproc/py-sphinx${MODPY_FLAVOR}
|
||||
TEST_DEPENDS = devel/py-nose${MODPY_FLAVOR}
|
||||
|
||||
.if !${FLAVOR:Mpython3}
|
||||
RUN_DEPENDS = devel/py-pathlib${MODPY_FLAVOR}
|
||||
RUN_DEPENDS = devel/py-pathlib
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
cd ${WRKSRC}/doc && PYTHONPATH=${WRKSRC} \
|
||||
${LOCALBASE}/bin/sphinx-build${MODPY_BIN_SUFFIX} -N . _build/html
|
||||
${LOCALBASE}/bin/sphinx-build${MODPY_BIN_SUFFIX} -N . _build/html
|
||||
|
||||
DOCDIR = ${PREFIX}/share/doc/${MODPY_PY_PREFIX}testpath
|
||||
post-install:
|
||||
@ -38,7 +38,4 @@ post-install:
|
||||
rm ${DOCDIR}/.buildinfo
|
||||
chown -R ${SHAREOWN}:${SHAREGRP} ${DOCDIR}
|
||||
|
||||
do-test:
|
||||
cd ${WRKSRC} && ${LOCALBASE}/bin/nosetests${MODPY_BIN_SUFFIX}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (testpath-0.3.1.tar.gz) = DVM3g5x4jaWQDfcPjgEBWuwUGqP+eTbLDQopU/esdgk=
|
||||
SIZE (testpath-0.3.1.tar.gz) = 91663
|
||||
SHA256 (testpath-0.4.2.tar.gz) = tpSz2SiNvYFoXF0ucUC4E2XUbCn120vGWd5aprmHgPg=
|
||||
SIZE (testpath-0.4.2.tar.gz) = 92850
|
||||
|
16
devel/py-testpath/patches/patch-setup_py
Normal file
16
devel/py-testpath/patches/patch-setup_py
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-setup_py,v 1.1 2019/09/23 13:38:23 kmos Exp $
|
||||
|
||||
Patch to use setuptools to allow --single-version-externally-managed
|
||||
|
||||
Index: setup.py
|
||||
--- setup.py.orig
|
||||
+++ setup.py
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
# setup.py generated by flit for tools that don't yet use PEP 517
|
||||
|
||||
-from distutils.core import setup
|
||||
+from setuptools import setup
|
||||
|
||||
packages = \
|
||||
['testpath']
|
@ -1,6 +1,11 @@
|
||||
@comment $OpenBSD: PLIST,v 1.5 2017/05/29 15:36:31 shadchin Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.6 2019/09/23 13:38:23 kmos Exp $
|
||||
lib/python${MODPY_VERSION}/site-packages/testpath/
|
||||
lib/python${MODPY_VERSION}/site-packages/testpath-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
|
||||
lib/python${MODPY_VERSION}/site-packages/testpath-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/testpath-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
|
||||
lib/python${MODPY_VERSION}/site-packages/testpath-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/testpath-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/testpath-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/testpath-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/testpath/__init__.py
|
||||
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/testpath/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/testpath/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
|
Loading…
Reference in New Issue
Block a user