View | Details | Raw Unified | Return to bug 279329
Collapse All | Expand All

(-)b/devel/py-noseofyeti/Makefile (-5 / +4 lines)
Lines 1-12 Link Here
1
PORTNAME=	noseofyeti
1
PORTNAME=	noseofyeti
2
DISTVERSIONPREFIX=release-
2
DISTVERSIONPREFIX=release-
3
DISTVERSION=	2.4.8
3
DISTVERSION=	2.4.9
4
CATEGORIES=	devel python
4
CATEGORIES=	devel python
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
6
7
MAINTAINER=	arrowd@FreeBSD.org
7
MAINTAINER=	arrowd@FreeBSD.org
8
COMMENT=	Python codec that provides an RSpec style DSL for Python
8
COMMENT=	Python codec that provides an RSpec style DSL for Python
9
WWW=		https://github.com/delfick/nose-of-yeti
9
WWW=		https://github.com/delfick/nose-of-yeti/
10
10
11
LICENSE=	MIT
11
LICENSE=	MIT
12
LICENSE_FILE=	${WRKSRC}/LICENSE
12
LICENSE_FILE=	${WRKSRC}/LICENSE
Lines 17-29 TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ Link Here
17
17
18
USES=		python
18
USES=		python
19
USE_GITHUB=	yes
19
USE_GITHUB=	yes
20
GH_ACCOUNT=	delfick
21
GH_PROJECT=	nose-of-yeti
20
USE_PYTHON=	autoplist concurrent pep517
22
USE_PYTHON=	autoplist concurrent pep517
21
23
22
NO_ARCH=	yes
24
NO_ARCH=	yes
23
25
24
GH_ACCOUNT=	delfick
25
GH_PROJECT=	nose-of-yeti
26
27
do-test:
26
do-test:
28
	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts= \
27
	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts= \
29
	-k 'not test_registering_codec_doesnt_lead_to_error'
28
	-k 'not test_registering_codec_doesnt_lead_to_error'
(-)b/devel/py-noseofyeti/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1710051985
1
TIMESTAMP = 1716743966
2
SHA256 (delfick-nose-of-yeti-release-2.4.8_GH0.tar.gz) = f58afa46db5a830ec6a4cea4f3991e116b2453209283ca542db80e4adbcdcc08
2
SHA256 (delfick-nose-of-yeti-release-2.4.9_GH0.tar.gz) = 687f9bd446bf4c027fac7e7ec0f02c26312b7d976802f30cefebb23840243d08
3
SIZE (delfick-nose-of-yeti-release-2.4.8_GH0.tar.gz) = 45310
3
SIZE (delfick-nose-of-yeti-release-2.4.9_GH0.tar.gz) = 45338
(-)b/devel/py-noseofyeti/pkg-descr (-9 / +9 lines)
Lines 1-10 Link Here
1
noseOfYeti creates a custom Python codec that lets you write your tests using an
1
noseOfYeti creates a custom Python codec that lets you write your tests
2
RSpec inspired DSL (i.e. `describe` and `it` blocks). It uses the fact that you
2
using an RSpec inspired DSL (i.e. `describe` and `it` blocks). It uses the
3
can register a codec that is able to modify a Python file before executing it.
3
fact that you can register a codec that is able to modify a Python file
4
Using this we can make it so that when Python imports a file with a particular
4
before executing it.  Using this we can make it so that when Python imports
5
encoding as the first line of the file it will be intercepted and potentially
5
a file with a particular encoding as the first line of the file it will be
6
rewritten into something else before the import continues.
6
intercepted and potentially rewritten into something else before the import
7
continues.
7
8
8
noseOfYeti uses this technique to translate from the DSL it defines, into
9
noseOfYeti uses this technique to translate from the DSL it defines, into
9
Python classes and functions that then will be executed by your test framework
10
Python classes and functions that then will be executed by your test
10
of choice.
11
framework of choice.
11
- 

Return to bug 279329