a65c77a204
3.3.1: * Fix to work when pytest-xdist is not installed or active (``PluginValidationError: unknown hook 'pytest_configure_node'``). 3.3.0: * Add `pytest-xdist <https://pypi.org/project/pytest-xdist/>`__ support. Previously it only worked reliably when setting ``--randomly-seed`` explicitly. When not provided, the default seed generated in workers could differ and collection would fail. Now when it is not provided, all xdist worker processes shared the same default seed generated in the master process. 3.2.1: * Update ``MANIFEST.in`` so tests are included in the sdist tarball again. 3.2.0: * Converted setuptools metadata to configuration file. This meant removing the ``__version__`` attribute from the package. If you want to inspect the installed version, use ``importlib.metadata.version("pytest-randomly")`` (`docs <https://docs.python.org/3.8/library/importlib.metadata.html#distribution-versions>`__ / `backport <https://pypi.org/project/importlib-metadata/>`__). * Convert reading entrypoints to use ``importlib.metadata``. Depend on ``importlib-metadata`` on Python < 3.8. * Update Python support to 3.5-3.8.
28 lines
800 B
Makefile
28 lines
800 B
Makefile
# $NetBSD: Makefile,v 1.6 2020/05/16 16:42:52 adam Exp $
|
|
|
|
DISTNAME= pytest-randomly-3.3.1
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-randomly/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/pytest-dev/pytest-randomly
|
|
COMMENT= Pytest plugin to randomly order tests and control random.seed
|
|
LICENSE= modified-bsd
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
|
|
|
.include "../../lang/python/pyversion.mk"
|
|
.if ${_PYTHON_VERSION} < 38
|
|
DEPENDS+= ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
|
|
.endif
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|