mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: Artur Wiebe <artur@4wiebe.de>
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 1/3] python3-semantic-version: new package
Date: Thu, 6 Apr 2023 22:08:27 +0200	[thread overview]
Message-ID: <20230406200827.3cwqi2bklgy3umlf@pengutronix.de> (raw)
In-Reply-To: <20230327140915.3253285-1-artur@4wiebe.de>

On Mon, Mar 27, 2023 at 04:09:13PM +0200, Artur Wiebe wrote:
> Signed-off-by: Artur Wiebe <artur@4wiebe.de>
> ---
>  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 <artur@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 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..edbda8c2e
> --- /dev/null
> +++ b/rules/python3-semantic-version.make
> @@ -0,0 +1,53 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2023 by Artur Wiebe <artur@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	:=

This variable should not be empty. See
<https://www.ptxdist.org/doc/dev_licenses.html>. You can verify it by
running "ptxdist licensecheck <packagename>".

 - Roland

> +
> +# ----------------------------------------------------------------------------
> +# 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 <artur@4wiebe.de>")
> +	@$(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.39.2
> 
> 
> 

-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |



      parent reply	other threads:[~2023-04-06 20:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-27 14:09 Artur Wiebe
2023-03-27 14:09 ` [ptxdist] [PATCH 2/3] host-python3-setuptools-rust: " Artur Wiebe
2023-03-27 14:09 ` [ptxdist] [PATCH 3/3] python3-cryptography: Python package that wants to compile with rust and cargo Artur Wiebe
2023-03-27 14:28   ` Artur Wiebe
2023-04-06 20:09   ` Roland Hieber
2023-04-06 20:08 ` Roland Hieber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230406200827.3cwqi2bklgy3umlf@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=artur@4wiebe.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox