Import py-test-expect 1.1.0, ok danj@
DESCR: A py.test plugin that stores test expectations by saving the set of failing tests, allowing them to be marked as xfail when running them in future. The tests expectations are stored such that they can be distributed alongside the tests. However, note that test expectations can only be reliably shared between Python 2 and Python 3 if they only use ASCII characters in their node ids: this likely isn't a limitati n if tests are using the normal Python format, as Python 2 only allows ASCII characters in identifiers.
This commit is contained in:
parent
fcf8680d5c
commit
e20359c887
30
devel/py-test-expect/Makefile
Normal file
30
devel/py-test-expect/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2017/06/28 18:00:36 shadchin Exp $
|
||||
|
||||
COMMENT = py.test plugin to store test expectations
|
||||
|
||||
MODPY_EGG_VERSION = 1.1.0
|
||||
DISTNAME = pytest-expect-${MODPY_EGG_VERSION}
|
||||
PKGNAME = ${DISTNAME:S/py/py-/}
|
||||
CATEGORIES = devel
|
||||
|
||||
HOMEPAGE = https://github.com/gsnedders/pytest-expect
|
||||
|
||||
MAINTAINER = Alexandr Shadchin <shadchin@openbsd.org>
|
||||
|
||||
# MIT
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
MODULES = lang/python
|
||||
|
||||
MODPY_PI = Yes
|
||||
MODPY_SETUPTOOLS = Yes
|
||||
|
||||
FLAVORS = python3
|
||||
FLAVOR ?=
|
||||
|
||||
RUN_DEPENDS = devel/py-test${MODPY_FLAVOR} \
|
||||
net/py-msgpack${MODPY_FLAVOR}
|
||||
|
||||
NO_TEST = Yes
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/py-test-expect/distinfo
Normal file
2
devel/py-test-expect/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (pytest-expect-1.1.0.tar.gz) = NrRGJwRFB5gZfQkICaBfThNknZy6ms3FV86VF9of2Ec=
|
||||
SIZE (pytest-expect-1.1.0.tar.gz) = 3595
|
23
devel/py-test-expect/patches/patch-pytest_expect_expect_py
Normal file
23
devel/py-test-expect/patches/patch-pytest_expect_expect_py
Normal file
@ -0,0 +1,23 @@
|
||||
$OpenBSD: patch-pytest_expect_expect_py,v 1.1.1.1 2017/06/28 18:00:36 shadchin Exp $
|
||||
|
||||
Index: pytest_expect/expect.py
|
||||
--- pytest_expect/expect.py.orig
|
||||
+++ pytest_expect/expect.py
|
||||
@@ -15,7 +15,7 @@ import os.path
|
||||
import sys
|
||||
|
||||
import pytest
|
||||
-import umsgpack
|
||||
+import msgpack
|
||||
from six import PY2, PY3, text_type, binary_type
|
||||
|
||||
_magic_file_line = b"pytest-expect file v"
|
||||
@@ -142,7 +142,7 @@ class ExpectationPlugin(object):
|
||||
fp.write(line)
|
||||
|
||||
def _parse_legacy_file(self, fp):
|
||||
- state = umsgpack.unpack(fp)
|
||||
+ state = msgpack.unpack(fp)
|
||||
|
||||
if PY3 and b'py_version' in state:
|
||||
for key in list(state.keys()):
|
14
devel/py-test-expect/patches/patch-setup_py
Normal file
14
devel/py-test-expect/patches/patch-setup_py
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-setup_py,v 1.1.1.1 2017/06/28 18:00:36 shadchin Exp $
|
||||
|
||||
Index: setup.py
|
||||
--- setup.py.orig
|
||||
+++ setup.py
|
||||
@@ -28,7 +28,7 @@ setup(
|
||||
|
||||
install_requires=[
|
||||
"pytest",
|
||||
- "u-msgpack-python"
|
||||
+ "msgpack-python"
|
||||
],
|
||||
|
||||
packages=["pytest_expect"],
|
8
devel/py-test-expect/pkg/DESCR
Normal file
8
devel/py-test-expect/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
A py.test plugin that stores test expectations by saving the set of
|
||||
failing tests, allowing them to be marked as xfail when running them
|
||||
in future. The tests expectations are stored such that they can be
|
||||
distributed alongside the tests. However, note that test expectations
|
||||
can only be reliably shared between Python 2 and Python 3 if they only
|
||||
use ASCII characters in their node ids: this likely isn't a limitati
|
||||
n if tests are using the normal Python format, as Python 2 only allows
|
||||
ASCII characters in identifiers.
|
14
devel/py-test-expect/pkg/PLIST
Normal file
14
devel/py-test-expect/pkg/PLIST
Normal file
@ -0,0 +1,14 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/06/28 18:00:36 shadchin Exp $
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_expect/
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_expect-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_expect-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_expect-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_expect-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_expect-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_expect-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_expect-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_expect/__init__.py
|
||||
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pytest_expect/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_expect/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_expect/${MODPY_PYCACHE}expect.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/pytest_expect/expect.py
|
Loading…
x
Reference in New Issue
Block a user