* [ptxdist] [PATCH 1/3] python3-semantic-version: new package
@ 2023-03-27 14:09 Artur Wiebe
2023-03-27 14:09 ` [ptxdist] [PATCH 2/3] host-python3-setuptools-rust: " Artur Wiebe
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Artur Wiebe @ 2023-03-27 14:09 UTC (permalink / raw)
To: ptxdist; +Cc: Artur Wiebe
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 :=
+
+# ----------------------------------------------------------------------------
+# 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ptxdist] [PATCH 2/3] host-python3-setuptools-rust: new package
2023-03-27 14:09 [ptxdist] [PATCH 1/3] python3-semantic-version: new package Artur Wiebe
@ 2023-03-27 14:09 ` 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-04-06 20:08 ` [ptxdist] [PATCH 1/3] python3-semantic-version: new package Roland Hieber
2 siblings, 0 replies; 6+ messages in thread
From: Artur Wiebe @ 2023-03-27 14:09 UTC (permalink / raw)
To: ptxdist; +Cc: Artur Wiebe
Signed-off-by: Artur Wiebe <artur@4wiebe.de>
---
patches/setuptools-rust-1.5.2/series | 1 +
.../use-Literal-from-typing.patch | 53 +++++++++++++++++++
rules/host-python3-setuptools-rust.in | 7 +++
rules/host-python3-setuptools-rust.make | 32 +++++++++++
4 files changed, 93 insertions(+)
create mode 100644 patches/setuptools-rust-1.5.2/series
create mode 100644 patches/setuptools-rust-1.5.2/use-Literal-from-typing.patch
create mode 100644 rules/host-python3-setuptools-rust.in
create mode 100644 rules/host-python3-setuptools-rust.make
diff --git a/patches/setuptools-rust-1.5.2/series b/patches/setuptools-rust-1.5.2/series
new file mode 100644
index 000000000..b69a0d2bb
--- /dev/null
+++ b/patches/setuptools-rust-1.5.2/series
@@ -0,0 +1 @@
+use-Literal-from-typing.patch
diff --git a/patches/setuptools-rust-1.5.2/use-Literal-from-typing.patch b/patches/setuptools-rust-1.5.2/use-Literal-from-typing.patch
new file mode 100644
index 000000000..186a0279e
--- /dev/null
+++ b/patches/setuptools-rust-1.5.2/use-Literal-from-typing.patch
@@ -0,0 +1,53 @@
+From b3ac96d620caae2834770f5a744db507846868c6 Mon Sep 17 00:00:00 2001
+From: Artur Wiebe <artur@4wiebe.de>
+Date: Mon, 27 Mar 2023 14:49:44 +0200
+Subject: [PATCH] use Literal from typing
+
+---
+ setuptools_rust/build.py | 2 +-
+ setuptools_rust/extension.py | 2 +-
+ setuptools_rust/setuptools_ext.py | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/setuptools_rust/build.py b/setuptools_rust/build.py
+index 21c1975..ff94cb0 100644
+--- a/setuptools_rust/build.py
++++ b/setuptools_rust/build.py
+@@ -23,7 +23,7 @@ import pkg_resources
+ from setuptools.command.build import build as CommandBuild # type: ignore[import]
+ from setuptools.command.build_ext import build_ext as CommandBuildExt
+ from setuptools.command.build_ext import get_abi3_suffix
+-from typing_extensions import Literal
++from typing import Literal
+
+ from ._utils import format_called_process_error
+ from .command import RustCommand
+diff --git a/setuptools_rust/extension.py b/setuptools_rust/extension.py
+index f7a09d1..537a8db 100644
+--- a/setuptools_rust/extension.py
++++ b/setuptools_rust/extension.py
+@@ -9,7 +9,7 @@ from functools import lru_cache
+ from typing import Any, Dict, List, NewType, Optional, Sequence, Union, cast
+
+ from semantic_version import SimpleSpec
+-from typing_extensions import Literal
++from typing import Literal
+
+ from ._utils import format_called_process_error
+
+diff --git a/setuptools_rust/setuptools_ext.py b/setuptools_rust/setuptools_ext.py
+index 8ce281e..943b2e9 100644
+--- a/setuptools_rust/setuptools_ext.py
++++ b/setuptools_rust/setuptools_ext.py
+@@ -11,7 +11,7 @@ from setuptools.command.install_lib import install_lib
+ from setuptools.command.install_scripts import install_scripts
+ from setuptools.command.sdist import sdist
+ from setuptools.dist import Distribution
+-from typing_extensions import Literal
++from typing import Literal
+
+ from .extension import RustBin, RustExtension
+
+--
+2.39.2
+
diff --git a/rules/host-python3-setuptools-rust.in b/rules/host-python3-setuptools-rust.in
new file mode 100644
index 000000000..37af602f3
--- /dev/null
+++ b/rules/host-python3-setuptools-rust.in
@@ -0,0 +1,7 @@
+## SECTION=hosttools_noprompt
+
+config HOST_PYTHON3_SETUPTOOLS_RUST
+ tristate
+ default y if ALLYES
+ select HOST_PYTHON3_SETUPTOOLS
+ select HOST_PYTHON3_SEMANTIC_VERSION
diff --git a/rules/host-python3-setuptools-rust.make b/rules/host-python3-setuptools-rust.make
new file mode 100644
index 000000000..b5863ce7c
--- /dev/null
+++ b/rules/host-python3-setuptools-rust.make
@@ -0,0 +1,32 @@
+# -*-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_SETUPTOOLS_RUST) += host-python3-setuptools-rust
+
+#
+# Paths and names
+#
+HOST_PYTHON3_SETUPTOOLS_RUST_VERSION := 1.5.2
+HOST_PYTHON3_SETUPTOOLS_RUST_MD5 := fd3412ca77ffd6e06e2e83d0e9636084
+HOST_PYTHON3_SETUPTOOLS_RUST := setuptools-rust-$(HOST_PYTHON3_SETUPTOOLS_RUST_VERSION)
+HOST_PYTHON3_SETUPTOOLS_RUST_SUFFIX := tar.gz
+HOST_PYTHON3_SETUPTOOLS_RUST_URL := $(call ptx/mirror-pypi, setuptools-rust, $(HOST_PYTHON3_SETUPTOOLS_RUST).$(HOST_PYTHON3_SETUPTOOLS_RUST_SUFFIX))
+HOST_PYTHON3_SETUPTOOLS_RUST_SOURCE := $(SRCDIR)/$(HOST_PYTHON3_SETUPTOOLS_RUST).$(HOST_PYTHON3_SETUPTOOLS_RUST_SUFFIX)
+HOST_PYTHON3_SETUPTOOLS_RUST_DIR := $(HOST_BUILDDIR)/$(HOST_PYTHON3_SETUPTOOLS_RUST)
+HOST_PYTHON3_SETUPTOOLS_RUST_LICENSE := MIT
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_PYTHON3_SETUPTOOLS_RUST_CONF_TOOL := python3
+
+# vim: syntax=make
--
2.39.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ptxdist] [PATCH 3/3] python3-cryptography: Python package that wants to compile with rust and cargo...
2023-03-27 14:09 [ptxdist] [PATCH 1/3] python3-semantic-version: new package Artur Wiebe
2023-03-27 14:09 ` [ptxdist] [PATCH 2/3] host-python3-setuptools-rust: " Artur Wiebe
@ 2023-03-27 14:09 ` Artur Wiebe
2023-03-27 14:28 ` Artur Wiebe
2023-04-06 20:09 ` Roland Hieber
2023-04-06 20:08 ` [ptxdist] [PATCH 1/3] python3-semantic-version: new package Roland Hieber
2 siblings, 2 replies; 6+ messages in thread
From: Artur Wiebe @ 2023-03-27 14:09 UTC (permalink / raw)
To: ptxdist; +Cc: Artur Wiebe
---
rules/python3-cryptography.in | 10 ++++++
rules/python3-cryptography.make | 56 +++++++++++++++++++++++++++++++++
2 files changed, 66 insertions(+)
create mode 100644 rules/python3-cryptography.in
create mode 100644 rules/python3-cryptography.make
diff --git a/rules/python3-cryptography.in b/rules/python3-cryptography.in
new file mode 100644
index 000000000..97187de02
--- /dev/null
+++ b/rules/python3-cryptography.in
@@ -0,0 +1,10 @@
+## SECTION=python3
+
+config PYTHON3_CRYPTOGRAPHY
+ tristate
+ select PYTHON3
+ select HOST_PYTHON3_SETUPTOOLS_RUST
+ prompt "cryptography"
+ help
+ Cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+ Our goal is for it to be your “cryptographic standard library”
diff --git a/rules/python3-cryptography.make b/rules/python3-cryptography.make
new file mode 100644
index 000000000..7c5ac9885
--- /dev/null
+++ b/rules/python3-cryptography.make
@@ -0,0 +1,56 @@
+# -*-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_CRYPTOGRAPHY) += python3-cryptography
+
+#
+# Paths and names
+#
+PYTHON3_CRYPTOGRAPHY_VERSION := 40.0.1
+PYTHON3_CRYPTOGRAPHY_MD5 := 24dec990fce1d4a614ad86076c8e347f
+PYTHON3_CRYPTOGRAPHY := cryptography-$(PYTHON3_CRYPTOGRAPHY_VERSION)
+PYTHON3_CRYPTOGRAPHY_SUFFIX := tar.gz
+PYTHON3_CRYPTOGRAPHY_URL := $(call ptx/mirror-pypi, cryptography, $(PYTHON3_CRYPTOGRAPHY).$(PYTHON3_CRYPTOGRAPHY_SUFFIX))
+PYTHON3_CRYPTOGRAPHY_SOURCE := $(SRCDIR)/$(PYTHON3_CRYPTOGRAPHY).$(PYTHON3_CRYPTOGRAPHY_SUFFIX)
+PYTHON3_CRYPTOGRAPHY_DIR := $(BUILDDIR)/$(PYTHON3_CRYPTOGRAPHY)
+PYTHON3_CRYPTOGRAPHY_LICENSE := Apache-2.0 OR BSD-3-Clause
+PYTHON3_CRYPTOGRAPHY_LICENSE_FILES :=
+
+PYTHON3_CRYPTOGRAPHY_CARGO_LOCK := $(PYTHON3_CRYPTOGRAPHY_DIR)/src/rust/Cargo.lock
+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_CRYPTOGRAPHY_CONF_TOOL := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-cryptography.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, python3-cryptography)
+ @$(call install_fixup, python3-cryptography,PRIORITY,optional)
+ @$(call install_fixup, python3-cryptography,SECTION,base)
+ @$(call install_fixup, python3-cryptography,AUTHOR,"Artur Wiebe <artur@4wiebe.de>")
+ @$(call install_fixup, python3-cryptography,DESCRIPTION,missing)
+
+ @$(call install_glob, python3-cryptography, 0, 0, -, \
+ $(PYTHON3_SITEPACKAGES),, *.py)
+
+ @$(call install_finish, python3-cryptography)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.39.2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] [PATCH 3/3] python3-cryptography: Python package that wants to compile with rust and cargo...
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
1 sibling, 0 replies; 6+ messages in thread
From: Artur Wiebe @ 2023-03-27 14:28 UTC (permalink / raw)
To: ptxdist
Hi,
cryptography is a python package that uses setuptools-rust to compile a module with rust/cargo.
This is the first one in PTXdist, but I think it will not be the last.
It is needed by python3-asyncua (OPC/UA) that I am trying to add.
While pure cargo packages already work well (I've tried few weeks ago), the python-setuptools scenario is not covered yet.
I am not that deep into PTXdist so I could send a patch. I hope someone can help.
My suggestion is to add a PKG_CARGO_LOCK variable that points to the Cargo.lock file.
If it exists ptxdist cargosync should use it and also CARGO_HOME should be set in env.
PYTHON3_CRYPTOGRAPHY_CARGO_LOCK := $(PYTHON3_CRYPTOGRAPHY_DIR)/src/rust/Cargo.lock
BR,
Artur
On Monday, 27 March, 2023 16:09 CEST, Artur Wiebe <artur@4wiebe.de> wrote:
> ---
> rules/python3-cryptography.in | 10 ++++++
> rules/python3-cryptography.make | 56 +++++++++++++++++++++++++++++++++
> 2 files changed, 66 insertions(+)
> create mode 100644 rules/python3-cryptography.in
> create mode 100644 rules/python3-cryptography.make
>
> diff --git a/rules/python3-cryptography.in b/rules/python3-cryptography.in
> new file mode 100644
> index 000000000..97187de02
> --- /dev/null
> +++ b/rules/python3-cryptography.in
> @@ -0,0 +1,10 @@
> +## SECTION=python3
> +
> +config PYTHON3_CRYPTOGRAPHY
> + tristate
> + select PYTHON3
> + select HOST_PYTHON3_SETUPTOOLS_RUST
> + prompt "cryptography"
> + help
> + Cryptography is a package which provides cryptographic recipes and primitives to Python developers.
> + Our goal is for it to be your “cryptographic standard library”
> diff --git a/rules/python3-cryptography.make b/rules/python3-cryptography.make
> new file mode 100644
> index 000000000..7c5ac9885
> --- /dev/null
> +++ b/rules/python3-cryptography.make
> @@ -0,0 +1,56 @@
> +# -*-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_CRYPTOGRAPHY) += python3-cryptography
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_CRYPTOGRAPHY_VERSION := 40.0.1
> +PYTHON3_CRYPTOGRAPHY_MD5 := 24dec990fce1d4a614ad86076c8e347f
> +PYTHON3_CRYPTOGRAPHY := cryptography-$(PYTHON3_CRYPTOGRAPHY_VERSION)
> +PYTHON3_CRYPTOGRAPHY_SUFFIX := tar.gz
> +PYTHON3_CRYPTOGRAPHY_URL := $(call ptx/mirror-pypi, cryptography, $(PYTHON3_CRYPTOGRAPHY).$(PYTHON3_CRYPTOGRAPHY_SUFFIX))
> +PYTHON3_CRYPTOGRAPHY_SOURCE := $(SRCDIR)/$(PYTHON3_CRYPTOGRAPHY).$(PYTHON3_CRYPTOGRAPHY_SUFFIX)
> +PYTHON3_CRYPTOGRAPHY_DIR := $(BUILDDIR)/$(PYTHON3_CRYPTOGRAPHY)
> +PYTHON3_CRYPTOGRAPHY_LICENSE := Apache-2.0 OR BSD-3-Clause
> +PYTHON3_CRYPTOGRAPHY_LICENSE_FILES :=
> +
> +PYTHON3_CRYPTOGRAPHY_CARGO_LOCK := $(PYTHON3_CRYPTOGRAPHY_DIR)/src/rust/Cargo.lock
> +
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_CRYPTOGRAPHY_CONF_TOOL := python3
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-cryptography.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, python3-cryptography)
> + @$(call install_fixup, python3-cryptography,PRIORITY,optional)
> + @$(call install_fixup, python3-cryptography,SECTION,base)
> + @$(call install_fixup, python3-cryptography,AUTHOR,"Artur Wiebe <artur@4wiebe.de>")
> + @$(call install_fixup, python3-cryptography,DESCRIPTION,missing)
> +
> + @$(call install_glob, python3-cryptography, 0, 0, -, \
> + $(PYTHON3_SITEPACKAGES),, *.py)
> +
> + @$(call install_finish, python3-cryptography)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> --
> 2.39.2
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] [PATCH 1/3] python3-semantic-version: new package
2023-03-27 14:09 [ptxdist] [PATCH 1/3] python3-semantic-version: new package 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-04-06 20:08 ` Roland Hieber
2 siblings, 0 replies; 6+ messages in thread
From: Roland Hieber @ 2023-04-06 20:08 UTC (permalink / raw)
To: Artur Wiebe; +Cc: ptxdist
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 |
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ptxdist] [PATCH 3/3] python3-cryptography: Python package that wants to compile with rust and cargo...
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
1 sibling, 0 replies; 6+ messages in thread
From: Roland Hieber @ 2023-04-06 20:09 UTC (permalink / raw)
To: Artur Wiebe; +Cc: ptxdist
On Mon, Mar 27, 2023 at 04:09:15PM +0200, Artur Wiebe wrote:
> ---
> rules/python3-cryptography.in | 10 ++++++
> rules/python3-cryptography.make | 56 +++++++++++++++++++++++++++++++++
> 2 files changed, 66 insertions(+)
> create mode 100644 rules/python3-cryptography.in
> create mode 100644 rules/python3-cryptography.make
>
> diff --git a/rules/python3-cryptography.in b/rules/python3-cryptography.in
> new file mode 100644
> index 000000000..97187de02
> --- /dev/null
> +++ b/rules/python3-cryptography.in
> @@ -0,0 +1,10 @@
> +## SECTION=python3
> +
> +config PYTHON3_CRYPTOGRAPHY
> + tristate
> + select PYTHON3
> + select HOST_PYTHON3_SETUPTOOLS_RUST
> + prompt "cryptography"
> + help
> + Cryptography is a package which provides cryptographic recipes and primitives to Python developers.
> + Our goal is for it to be your “cryptographic standard library”
> diff --git a/rules/python3-cryptography.make b/rules/python3-cryptography.make
> new file mode 100644
> index 000000000..7c5ac9885
> --- /dev/null
> +++ b/rules/python3-cryptography.make
> @@ -0,0 +1,56 @@
> +# -*-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_CRYPTOGRAPHY) += python3-cryptography
> +
> +#
> +# Paths and names
> +#
> +PYTHON3_CRYPTOGRAPHY_VERSION := 40.0.1
> +PYTHON3_CRYPTOGRAPHY_MD5 := 24dec990fce1d4a614ad86076c8e347f
> +PYTHON3_CRYPTOGRAPHY := cryptography-$(PYTHON3_CRYPTOGRAPHY_VERSION)
> +PYTHON3_CRYPTOGRAPHY_SUFFIX := tar.gz
> +PYTHON3_CRYPTOGRAPHY_URL := $(call ptx/mirror-pypi, cryptography, $(PYTHON3_CRYPTOGRAPHY).$(PYTHON3_CRYPTOGRAPHY_SUFFIX))
> +PYTHON3_CRYPTOGRAPHY_SOURCE := $(SRCDIR)/$(PYTHON3_CRYPTOGRAPHY).$(PYTHON3_CRYPTOGRAPHY_SUFFIX)
> +PYTHON3_CRYPTOGRAPHY_DIR := $(BUILDDIR)/$(PYTHON3_CRYPTOGRAPHY)
> +PYTHON3_CRYPTOGRAPHY_LICENSE := Apache-2.0 OR BSD-3-Clause
> +PYTHON3_CRYPTOGRAPHY_LICENSE_FILES :=
Same here.
- Roland
> +
> +PYTHON3_CRYPTOGRAPHY_CARGO_LOCK := $(PYTHON3_CRYPTOGRAPHY_DIR)/src/rust/Cargo.lock
> +
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +PYTHON3_CRYPTOGRAPHY_CONF_TOOL := python3
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/python3-cryptography.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, python3-cryptography)
> + @$(call install_fixup, python3-cryptography,PRIORITY,optional)
> + @$(call install_fixup, python3-cryptography,SECTION,base)
> + @$(call install_fixup, python3-cryptography,AUTHOR,"Artur Wiebe <artur@4wiebe.de>")
> + @$(call install_fixup, python3-cryptography,DESCRIPTION,missing)
> +
> + @$(call install_glob, python3-cryptography, 0, 0, -, \
> + $(PYTHON3_SITEPACKAGES),, *.py)
> +
> + @$(call install_finish, python3-cryptography)
> +
> + @$(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 |
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-04-06 20:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27 14:09 [ptxdist] [PATCH 1/3] python3-semantic-version: new package 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 ` [ptxdist] [PATCH 1/3] python3-semantic-version: new package Roland Hieber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox