Hi, This diff updates to the latest release. Tested on amd64 and i386. Add python3 flavor.
Need py-setuptools_scm, py-appdirs and py-test-runner (on ports@) Comments ? OK ? -- Alexandr Shadchin Index: Makefile =================================================================== RCS file: /cvs/ports/devel/py-path.py/Makefile,v retrieving revision 1.2 diff -u -p -r1.2 Makefile --- Makefile 29 Sep 2015 10:52:11 -0000 1.2 +++ Makefile 10 Jan 2016 12:13:24 -0000 @@ -2,29 +2,29 @@ COMMENT = os.path wrapper for Python -MODPY_EGG_VERSION = 7.6 +MODPY_EGG_VERSION = 8.1.2 DISTNAME = path.py-${MODPY_EGG_VERSION} PKGNAME = py-${DISTNAME} -REVISION = 0 CATEGORIES = devel HOMEPAGE = https://github.com/jaraco/path.py -TEST_DEPENDS += devel/py-test \ - ${FULLPKGNAME}:${FULLPKGPATH} - # MIT PERMIT_PACKAGE_CDROM = Yes +PKG_ARCH = * MODULES = lang/python MODPY_PI = Yes MODPY_SETUPTOOLS = Yes -pre-configure: - ${SUBST_CMD} ${WRKSRC}/setup.py +BUILD_DEPENDS = devel/py-setuptools_scm${MODPY_FLAVOR} +RUN_DEPENDS = devel/py-appdirs${MODPY_FLAVOR} +TEST_DEPENDS = ${RUN_DEPENDS} \ + devel/py-test${MODPY_FLAVOR} \ + devel/py-test-runner${MODPY_FLAVOR} -do-test: - ${LOCALBASE}/bin/py.test ${MODPY_LIBDIR}/site-packages/test_path.py +FLAVORS = python3 +FLAVOR ?= .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/devel/py-path.py/distinfo,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 distinfo --- distinfo 20 Aug 2015 12:56:32 -0000 1.1.1.1 +++ distinfo 10 Jan 2016 12:13:24 -0000 @@ -1,2 +1,2 @@ -SHA256 (path.py-7.6.tar.gz) = XN9g81nxrdGPhVbJoYVcvR1RfweA49OGwlZRX2mLoOA= -SIZE (path.py-7.6.tar.gz) = 30978 +SHA256 (path.py-8.1.2.tar.gz) = raldEXxFWavmQICWHa9brdpoVhr900wnj4yiDy+kZtI= +SIZE (path.py-8.1.2.tar.gz) = 33437 Index: patches/patch-pytest_ini =================================================================== RCS file: patches/patch-pytest_ini diff -N patches/patch-pytest_ini --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-pytest_ini 10 Jan 2016 12:13:24 -0000 @@ -0,0 +1,7 @@ +$OpenBSD$ +--- pytest.ini.orig Sun Jan 10 15:35:27 2016 ++++ pytest.ini Sun Jan 10 15:34:28 2016 +@@ -1,2 +1,2 @@ + [pytest] +-addopts=--doctest-modules --ignore=build ++addopts=--doctest-modules --ignore=lib Index: patches/patch-setup_py =================================================================== RCS file: patches/patch-setup_py diff -N patches/patch-setup_py --- patches/patch-setup_py 20 Aug 2015 12:56:32 -0000 1.1.1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,23 +0,0 @@ -$OpenBSD: patch-setup_py,v 1.1.1.1 2015/08/20 12:56:32 edd Exp $ - -Patch away use of setuptools_scm. It's broken. - ---- setup.py.orig Mon Aug 17 22:03:36 2015 -+++ setup.py Mon Aug 17 22:05:10 2015 -@@ -14,7 +14,7 @@ pytest_runner = ['pytest-runner>=2.6'] if needs_pytest - - setup_params = dict( - name="path.py", -- use_scm_version=True, -+ version ="${MODPY_EGG_VERSION}", - description="A module wrapper for os.path", - long_description=long_description, - author="Jason Orendorff", -@@ -36,7 +36,6 @@ setup_params = dict( - 'Topic :: Software Development :: Libraries :: Python Modules' - ], - setup_requires=[ -- 'setuptools_scm', - ] + sphinx_req + pytest_runner, - tests_require=['pytest'], - extras_require={ Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/devel/py-path.py/pkg/PLIST,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 PLIST --- pkg/PLIST 20 Aug 2015 12:56:32 -0000 1.1.1.1 +++ pkg/PLIST 10 Jan 2016 12:13:24 -0000 @@ -1,4 +1,6 @@ @comment $OpenBSD: PLIST,v 1.1.1.1 2015/08/20 12:56:32 edd Exp $ +lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}path.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}test_path.${MODPY_PYC_MAGIC_TAG}pyc lib/python${MODPY_VERSION}/site-packages/path.py lib/python${MODPY_VERSION}/site-packages/path.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ lib/python${MODPY_VERSION}/site-packages/path.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO @@ -6,6 +8,4 @@ lib/python${MODPY_VERSION}/site-packages lib/python${MODPY_VERSION}/site-packages/path.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt lib/python${MODPY_VERSION}/site-packages/path.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt lib/python${MODPY_VERSION}/site-packages/path.py-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt -lib/python${MODPY_VERSION}/site-packages/path.pyc lib/python${MODPY_VERSION}/site-packages/test_path.py -lib/python${MODPY_VERSION}/site-packages/test_path.pyc