From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: In-Reply-To: <20200703115710.30041-10-p.zabel@pengutronix.de> MIME-Version: 1.0 Message-Id: From: Michael Olbrich Date: Mon, 06 Jul 2020 08:32:07 +0200 Subject: Re: [ptxdist] [APPLIED] python3-pytest: new package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Philipp Zabel Thanks, applied as 00faf9d84fb1565803472a053a9c237da2e82faa. Michael [sent from post-receive hook] On Mon, 06 Jul 2020 08:32:07 +0200, Philipp Zabel wrote: > Signed-off-by: Philipp Zabel > Message-Id: <20200703115710.30041-10-p.zabel@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/rules/python3-pytest.in b/rules/python3-pytest.in > new file mode 100644 > index 000000000000..e92a6eeba7de > --- /dev/null > +++ b/rules/python3-pytest.in > @@ -0,0 +1,15 @@ > +## SECTION=python3 > + > +config PYTHON3_PYTEST > + tristate > + select PYTHON3 > + select PYTHON3_ATTRS if RUNTIME > + select PYTHON3_MORE_ITERTOOLS if RUNTIME > + select PYTHON3_PACKAGING if RUNTIME > + select PYTHON3_PLUGGY if RUNTIME > + select PYTHON3_PY if RUNTIME > + select PYTHON3_SETUPTOOLS if RUNTIME # for pkg_resources > + select PYTHON3_WCWIDTH if RUNTIME > + prompt "pytest" > + help > + pytest: simple powerful testing with Python > diff --git a/rules/python3-pytest.make b/rules/python3-pytest.make > new file mode 100644 > index 000000000000..34aea11ffce0 > --- /dev/null > +++ b/rules/python3-pytest.make > @@ -0,0 +1,67 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2020 by Philipp Zabel > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_PYTHON3_PYTEST) += python3-pytest > + > +# > +# Paths and names > +# > +PYTHON3_PYTEST_VERSION := 5.4.3 > +PYTHON3_PYTEST_MD5 := 4b6b06b2818516c7c400d4cafe3b9257 > +PYTHON3_PYTEST := pytest-$(PYTHON3_PYTEST_VERSION) > +PYTHON3_PYTEST_SUFFIX := tar.gz > +PYTHON3_PYTEST_URL := https://pypi.python.org/packages/source/p/pytest/$(PYTHON3_PYTEST).$(PYTHON3_PYTEST_SUFFIX) > +PYTHON3_PYTEST_SOURCE := $(SRCDIR)/$(PYTHON3_PYTEST).$(PYTHON3_PYTEST_SUFFIX) > +PYTHON3_PYTEST_DIR := $(BUILDDIR)/$(PYTHON3_PYTEST) > +PYTHON3_PYTEST_LICENSE := MIT > +PYTHON3_PYTEST_LICENSE_FILES := \ > + file://LICENSE;md5=81eb9f71d006c6b268cf4388e3c98f7b > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +PYTHON3_PYTEST_CONF_TOOL := python3 > + > +# ---------------------------------------------------------------------------- > +# Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/python3-pytest.install: > + @$(call targetinfo) > + @$(call world/install, PYTHON3_PYTEST) > + @sed -i 's;#!/.*;#!/usr/bin/python$(PYTHON3_MAJORMINOR);' \ > + $(PYTHON3_PYTEST_PKGDIR)/usr/bin/* > + @$(call touch) > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/python3-pytest.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, python3-pytest) > + @$(call install_fixup, python3-pytest, PRIORITY, optional) > + @$(call install_fixup, python3-pytest, SECTION, base) > + @$(call install_fixup, python3-pytest, AUTHOR, "Philipp Zabel ") > + @$(call install_fixup, python3-pytest, DESCRIPTION, missing) > + > + @$(call install_glob, python3-pytest, 0, 0, -, \ > + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/,, *.py) > + @$(call install_copy, python3-pytest, 0, 0, 0755, -, /usr/bin/pytest) > + @$(call install_link, python3-pytest, pytest, /usr/bin/py.test) > + > + @$(call install_finish, python3-pytest) > + > + @$(call touch) > + > +# vim: syntax=make _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de