Thanks, applied as 1a9f2fc033cd248fe9fa23340b93f9dc834b35ea. Michael
[sent from post-receive hook] On Tue, 02 May 2023 09:06:00 +0200, Artur Wiebe <ar...@4wiebe.de> wrote: > Signed-off-by: Artur Wiebe <ar...@4wiebe.de> > Message-Id: <20230416093643.3983478-8-ar...@4wiebe.de> > Signed-off-by: Michael Olbrich <m.olbr...@pengutronix.de> > > diff --git a/rules/host-python3-semantic-version.in > b/rules/host-python3-semantic-version.in > new file mode 100644 > index 000000000000..57561f0548df > --- /dev/null > +++ b/rules/host-python3-semantic-version.in > @@ -0,0 +1,6 @@ > +## SECTION=hosttools_noprompt > + > +config HOST_PYTHON3_SEMANTIC_VERSION > + tristate > + default y if ALLYES > + select HOST_PYTHON3_SETUPTOOLS > diff --git a/rules/host-python3-semantic-version.make > b/rules/host-python3-semantic-version.make > new file mode 100644 > index 000000000000..4b8dee89b229 > --- /dev/null > +++ b/rules/host-python3-semantic-version.make > @@ -0,0 +1,20 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2023 by Artur Wiebe <ar...@4wiebe.de> > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +HOST_PACKAGES-$(PTXCONF_HOST_PYTHON3_SEMANTIC_VERSION) += > host-python3-semantic-version > + > +# > ---------------------------------------------------------------------------- > +# Prepare > +# > ---------------------------------------------------------------------------- > + > +HOST_PYTHON3_SEMANTIC_VERSION_CONF_TOOL := python3 > + > +# vim: syntax=make > diff --git a/rules/python3-semantic-version.in > b/rules/python3-semantic-version.in > new file mode 100644 > index 000000000000..0bb578534c9d > --- /dev/null > +++ b/rules/python3-semantic-version.in > @@ -0,0 +1,9 @@ > +## SECTION=python3 > + > +config PYTHON3_SEMANTIC_VERSION > + tristate > + select PYTHON3 > + prompt "semantic-version" > + help > + This small python library provides a few tools to handle SemVer in > Python. > + It follows strictly the 2.0.0 version of the SemVer scheme. > diff --git a/rules/python3-semantic-version.make > b/rules/python3-semantic-version.make > new file mode 100644 > index 000000000000..8ace780bbf07 > --- /dev/null > +++ b/rules/python3-semantic-version.make > @@ -0,0 +1,53 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2023 by Artur Wiebe <ar...@4wiebe.de> > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_PYTHON3_SEMANTIC_VERSION) += python3-semantic-version > + > +# > +# Paths and names > +# > +PYTHON3_SEMANTIC_VERSION_VERSION := 2.10.0 > +PYTHON3_SEMANTIC_VERSION_MD5 := e48abef93ba69abcd4eaf4640edfc38b > +PYTHON3_SEMANTIC_VERSION := > semantic_version-$(PYTHON3_SEMANTIC_VERSION_VERSION) > +PYTHON3_SEMANTIC_VERSION_SUFFIX := tar.gz > +PYTHON3_SEMANTIC_VERSION_URL := $(call ptx/mirror-pypi, > semantic_version, > $(PYTHON3_SEMANTIC_VERSION).$(PYTHON3_SEMANTIC_VERSION_SUFFIX)) > +PYTHON3_SEMANTIC_VERSION_SOURCE := > $(SRCDIR)/$(PYTHON3_SEMANTIC_VERSION).$(PYTHON3_SEMANTIC_VERSION_SUFFIX) > +PYTHON3_SEMANTIC_VERSION_DIR := > $(BUILDDIR)/$(PYTHON3_SEMANTIC_VERSION) > +PYTHON3_SEMANTIC_VERSION_LICENSE := BSD > +PYTHON3_SEMANTIC_VERSION_LICENSE_FILES := > file://LICENSE;md5=4fb31e3c1c7eeb8b5e8c07657cdd54e2 > + > +# > ---------------------------------------------------------------------------- > +# Prepare > +# > ---------------------------------------------------------------------------- > + > +PYTHON3_SEMANTIC_VERSION_CONF_TOOL := python3 > + > +# > ---------------------------------------------------------------------------- > +# Target-Install > +# > ---------------------------------------------------------------------------- > + > +$(STATEDIR)/python3-semantic-version.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, python3-semantic-version) > + @$(call install_fixup, python3-semantic-version,PRIORITY,optional) > + @$(call install_fixup, python3-semantic-version,SECTION,base) > + @$(call install_fixup, python3-semantic-version,AUTHOR,"Artur Wiebe > <ar...@4wiebe.de>") > + @$(call install_fixup, python3-semantic-version,DESCRIPTION,missing) > + > + @$(call install_glob, python3-semantic-version, 0, 0, -, \ > + $(PYTHON3_SITEPACKAGES)/semantic_version,, *.py) > + > + @$(call install_finish, python3-semantic-version) > + > + @$(call touch) > + > +# vim: syntax=make