From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 13 Apr 2023 12:57:20 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pmudj-00280q-Ii for lore@lore.pengutronix.de; Thu, 13 Apr 2023 12:57:20 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pmudj-00012n-Nw; Thu, 13 Apr 2023 12:57:19 +0200 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.23]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pmudG-00012M-B2 for ptxdist@pengutronix.de; Thu, 13 Apr 2023 12:56:50 +0200 ARC-Seal: i=1; a=rsa-sha256; t=1681383409; cv=none; d=strato.com; s=strato-dkim-0002; b=nuGHN0wQH+6hOyPsKWdXVGcFUZlq7F3C9GpwcDpzbQlQJKrNWSWdvEsPeFmUmNyGFo tI7vqguv+nQWZ1Gy4qIo6A69JOK2kxYQ1DuabrbD/Oj/kBIz6FJ4Rrmg+riX0485wEpB X7j49tA79afaahLk27Amhy76qkjNX1ZSYd5ufc2A/aIfAKmZ897xDp2QLYuoSMT7SCwn gSjD97rBcIeaIIY8gPLFLjBINT9pXdef9sHF4yHS+Q/JHL9TcIw/3o8EUbgF8jC5sNp9 cC21N/fgpVRF9Y3gDS1l31Sp87VnIZiNGIVDR9VT2CFpt3R5OP/nStneykzS6rOcZNsF hhtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1681383409; s=strato-dkim-0002; d=strato.com; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=C9egyfGliJ4TwmE4T5Ag5PoJkQBjTjxii8AvCs25bvU=; b=qmzEO8Nnel8APfoMD36OPzJ7I4lxoKiCH9kG2KCraVD1vnnq67hGAUQ2YLwMduWpAc fC+Otv/slYEmlNh/PCtnpVMcLI5dklv9UNA9TJ2JfxthCG+xavwAQ/y9DwsXHS4g5R/F zMRA/F3VgDaNfBtSCtFq4IXMApP/rNXNw20JhrgN02Mrln5xbr8Dut8XvpfzHrV67juK AsuwJGvb1xFf4rVqajMucPNnTGNntXlYqX5gB5A3vpq2yaA/ecFSNsvKQ/3bb+0qBKTg h/I5eqqsQ89YnB56UNwMqBiUI+tqL8dd6oZjUMrP2GRd92U/+C6XXW3nVc8P952wOHU7 YGUw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1681383409; s=strato-dkim-0002; d=4wiebe.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=C9egyfGliJ4TwmE4T5Ag5PoJkQBjTjxii8AvCs25bvU=; b=IOI+fJh7MwscG4c6MBz6NmUiLCss/r4cq5Al/ShLa517EK2iK1+3mcuJduOdLi9WX8 4iSqq00/Vi82ha6BIuAoEdEQOhcAEBYjPRAQ9yHEYhjcj1m9W6Jx3F7N7QeJuufF9826 pKu1fvALw1QySHGfEws8MreiTiYX9tZRt4Pvn29cnNTZE/ABcoSthJqY0e7EjtM9C/Dy gpUyPwrPLMNLUeQ96vmYr98pSrc5t0AtPu2IDBhL02ldsNovowCAAP4kccZxAK8CE4Br lgeLPHkOOn3Os1k0b1xHjAStcyEExwsmkpF4RVOyIN4ZaoXuhv1gSGknWj1lEuVvhX3S 4ufA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1681383409; s=strato-dkim-0003; d=4wiebe.de; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=C9egyfGliJ4TwmE4T5Ag5PoJkQBjTjxii8AvCs25bvU=; b=FvC5QYta1dHBCgV2H9mTavGYgGaeDFxxHhVQvexpy9QnZUZavNe7+KmbtUVJNPA9IX LsdQp0sJr3C9kNpFFPBA== X-RZG-AUTH: ":Km0JfEyhft8wzIIhFLJpRLyPODuSc5X4exbBROmid4/wfXDMnRC7+FnMrvP0Z5i9Y6KNNDKR" Received: from home by smtp.strato.de (RZmta 49.4.0 DYNA|AUTH) with ESMTPSA id h05573z3DAunPFu (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 13 Apr 2023 12:56:49 +0200 (CEST) Received: from tuxedo.. (localhost.localdomain [127.0.0.1]) by home (Postfix) with ESMTP id 23A281A04CD; Thu, 13 Apr 2023 12:56:49 +0200 (CEST) From: Artur Wiebe To: ptxdist@pengutronix.de Date: Thu, 13 Apr 2023 12:56:17 +0200 Message-Id: <20230413105617.13485-1-artur@4wiebe.de> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="us-ascii" X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] python3-semantic-version: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Artur Wiebe Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Signed-off-by: Artur Wiebe --- rules/host-python3-semantic-version.in | 6 +++ rules/host-python3-semantic-version.make | 20 +++++++++ rules/python3-semantic-version.in | 9 ++++ rules/python3-semantic-version.make | 53 ++++++++++++++++++++++++ 4 files changed, 88 insertions(+) create mode 100644 rules/host-python3-semantic-version.in create mode 100644 rules/host-python3-semantic-version.make create mode 100644 rules/python3-semantic-version.in create mode 100644 rules/python3-semantic-version.make diff --git a/rules/host-python3-semantic-version.in b/rules/host-python3-semantic-version.in new file mode 100644 index 000000000..c2dc91487 --- /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 diff --git a/rules/host-python3-semantic-version.make b/rules/host-python3-semantic-version.make new file mode 100644 index 000000000..4b8dee89b --- /dev/null +++ b/rules/host-python3-semantic-version.make @@ -0,0 +1,20 @@ +# -*-makefile-*- +# +# Copyright (C) 2023 by Artur Wiebe +# +# 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 000000000..0bb578534 --- /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 000000000..edde01fbf --- /dev/null +++ b/rules/python3-semantic-version.make @@ -0,0 +1,53 @@ +# -*-makefile-*- +# +# Copyright (C) 2023 by Artur Wiebe +# +# 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 ") + @$(call install_fixup, python3-semantic-version,DESCRIPTION,missing) + + @$(call install_glob, python3-semantic-version, 0, 0, -, \ + $(PYTHON3_SITEPACKAGES),, *.py) + + @$(call install_finish, python3-semantic-version) + + @$(call touch) + +# vim: syntax=make -- 2.40.0