Date: Tue, 24 Dec 2019 05:24:04 +0000 (UTC) From: Ben Woods <woodsb02@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r520774 - in head/devel: . py-pytest-translations Message-ID: <201912240524.xBO5O4bQ049333@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: woodsb02 Date: Tue Dec 24 05:24:03 2019 New Revision: 520774 URL: https://svnweb.freebsd.org/changeset/ports/520774 Log: Add new port devel/py-pytest-translations A py.test plugin to check gettext po & mo files. WWW: https://github.com/Thermondo/pytest-translations PR: 242755 Submitted by: Goran Mekić <meka@tilda.center> Added: head/devel/py-pytest-translations/ head/devel/py-pytest-translations/Makefile (contents, props changed) head/devel/py-pytest-translations/distinfo (contents, props changed) head/devel/py-pytest-translations/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Tue Dec 24 04:40:19 2019 (r520773) +++ head/devel/Makefile Tue Dec 24 05:24:03 2019 (r520774) @@ -4914,6 +4914,7 @@ SUBDIR += py-pytest-sugar SUBDIR += py-pytest-timeout SUBDIR += py-pytest-tornado + SUBDIR += py-pytest-translations SUBDIR += py-pytest-virtualenv SUBDIR += py-pytest-xdist SUBDIR += py-pytest-xprocess Added: head/devel/py-pytest-translations/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-pytest-translations/Makefile Tue Dec 24 05:24:03 2019 (r520774) @@ -0,0 +1,44 @@ +# $FreeBSD$ + +PORTNAME= pytest-translations +PORTVERSION= 2.0.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= meka@tilda.center +COMMENT= Test translation files with pytest + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=0:devel/py-pbr@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}polib>=0:devel/py-polib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}enchant>=0:textproc/py-enchant@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}testscenarios>=0:devel/py-testscenarios@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}fixtures>=0:devel/py-fixtures@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}testresources>=0:devel/py-testresources@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}virtualenv>=0:devel/py-virtualenv@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python:3.5+ +USE_PYTHON= autoplist concurrent distutils + +TEST_ENV= PYTHONPATH=${WRKSRC}/src + +NO_ARCH= yes + +# Disable some of the tests. Upstream issue: +# https://github.com/Thermondo/pytest-translations/issues/44 +do-test: + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts= \ + -k 'not test_language_missing_in_po \ + and not test_language_catalog_missing \ + and not test_python_format_placeholders \ + and not test_pass \ + and not test_fail \ + and not test_wordlist' + +.include <bsd.port.mk> Added: head/devel/py-pytest-translations/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-pytest-translations/distinfo Tue Dec 24 05:24:03 2019 (r520774) @@ -0,0 +1,3 @@ +TIMESTAMP = 1576674845 +SHA256 (pytest-translations-2.0.0.tar.gz) = 8f5aa5e98746ccc5e400486ea2084fd71251ccb35c0c53e4e1026d8af380bc08 +SIZE (pytest-translations-2.0.0.tar.gz) = 8467 Added: head/devel/py-pytest-translations/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-pytest-translations/pkg-descr Tue Dec 24 05:24:03 2019 (r520774) @@ -0,0 +1,9 @@ +A py.test plugin to check gettext po & mo files. + +Test check for: + - Spelling (using enchant & aspell) + - Consistency of mo files + - Obsolete translations + - Fuzzy translations + +WWW: https://github.com/Thermondo/pytest-translations
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912240524.xBO5O4bQ049333>