From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jrHrI-000882-8o for ptxdist@pengutronix.de; Fri, 03 Jul 2020 11:19:48 +0200 Received: from mol by dude02.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1jrHrI-0001H7-0n for ptxdist@pengutronix.de; Fri, 03 Jul 2020 11:19:48 +0200 Date: Fri, 3 Jul 2020 11:19:48 +0200 From: Michael Olbrich Message-ID: <20200703091948.GC24749@pengutronix.de> References: <20200702130518.26953-1-p.zabel@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200702130518.26953-1-p.zabel@pengutronix.de> Subject: Re: [ptxdist] [PATCH 01/10] python3-attrs: 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 On Thu, Jul 02, 2020 at 03:05:09PM +0200, Philipp Zabel wrote: > Signed-off-by: Philipp Zabel > --- > rules/python3-attrs.in | 8 ++++++ > rules/python3-attrs.make | 54 ++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 62 insertions(+) > create mode 100644 rules/python3-attrs.in > create mode 100644 rules/python3-attrs.make > > diff --git a/rules/python3-attrs.in b/rules/python3-attrs.in > new file mode 100644 > index 000000000000..98ff9134a306 > --- /dev/null > +++ b/rules/python3-attrs.in > @@ -0,0 +1,8 @@ > +## SECTION=python3 > + > +config PYTHON3_ATTRS > + tristate > + select PYTHON3 > + prompt "attrs" > + help > + attrs: Classes Without Boilerplate > diff --git a/rules/python3-attrs.make b/rules/python3-attrs.make > new file mode 100644 > index 000000000000..3683cda801fa > --- /dev/null > +++ b/rules/python3-attrs.make > @@ -0,0 +1,54 @@ > +# -*-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_ATTRS) += python3-attrs > + > +# > +# Paths and names > +# > +PYTHON3_ATTRS_VERSION := 19.3.0 > +PYTHON3_ATTRS_MD5 := 5b2db50fcc31be34d32798183c9bd062 > +PYTHON3_ATTRS := attrs-$(PYTHON3_ATTRS_VERSION) > +PYTHON3_ATTRS_SUFFIX := tar.gz > +PYTHON3_ATTRS_URL := https://pypi.python.org/packages/98/c3/2c227e66b5e896e15ccdae2e00bbc69aa46e9a8ce8869cc5fa96310bf612/$(PYTHON3_ATTRS).$(PYTHON3_ATTRS_SUFFIX) So where did you get this URL from? When I look for the package on pypi I get: https://files.pythonhosted.org/packages/98/c3/... And we need to change the URL with each new versions. That's not so good. This should work as well: https://pypi.python.org/packages/source/a/attrs/$(PYTHON3_ATTRS).$(PYTHON3_ATTRS_SUFFIX) Please update all packages like this. Michael > +PYTHON3_ATTRS_SOURCE := $(SRCDIR)/$(PYTHON3_ATTRS).$(PYTHON3_ATTRS_SUFFIX) > +PYTHON3_ATTRS_DIR := $(BUILDDIR)/$(PYTHON3_ATTRS) > +PYTHON3_ATTRS_LICENSE := MIT > +PYTHON3_ATTRS_LICENSE_FILES := \ > + file://LICENSE;md5=d4ab25949a73fe7d4fdee93bcbdbf8ff > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +PYTHON3_ATTRS_CONF_TOOL := python3 > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/python3-attrs.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, python3-attrs) > + @$(call install_fixup, python3-attrs, PRIORITY, optional) > + @$(call install_fixup, python3-attrs, SECTION, base) > + @$(call install_fixup, python3-attrs, AUTHOR, "Philipp Zabel ") > + @$(call install_fixup, python3-attrs, DESCRIPTION, missing) > + > + @$(call install_glob, python3-attrs, 0, 0, -, \ > + /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages,, *.py) > + > + @$(call install_finish, python3-attrs) > + > + @$(call touch) > + > +# vim: syntax=make > -- > 2.20.1 > > > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de > To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de