mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Artur Wiebe <artur@4wiebe.de>
Subject: Re: [ptxdist] [APPLIED] host-python3-setuptools-rust: new package
Date: Tue,  2 May 2023 09:06:00 +0200	[thread overview]
Message-ID: <20230502070600.315910-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20230416093643.3983478-9-artur@4wiebe.de>

Thanks, applied as 83abe7f83c631eb35a34ac68c0726f3f7b46903a.

Michael

[sent from post-receive hook]

On Tue, 02 May 2023 09:06:00 +0200, Artur Wiebe <artur@4wiebe.de> wrote:
> Signed-off-by: Artur Wiebe <artur@4wiebe.de>
> Message-Id: <20230416093643.3983478-9-artur@4wiebe.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/patches/setuptools-rust-1.5.2/series b/patches/setuptools-rust-1.5.2/series
> new file mode 100644
> index 000000000000..b69a0d2bba4f
> --- /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 000000000000..186a0279ec97
> --- /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 000000000000..37af602f363f
> --- /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 000000000000..6414ac062423
> --- /dev/null
> +++ b/rules/host-python3-setuptools-rust.make
> @@ -0,0 +1,33 @@
> +# -*-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
> +HOST_PYTHON3_SETUPTOOLS_RUST_LICENSE_FILES	:= file://LICENSE;md5=011cd92e702dd9e6b1a26157b6fd53f5
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +HOST_PYTHON3_SETUPTOOLS_RUST_CONF_TOOL	:= python3
> +
> +# vim: syntax=make



  reply	other threads:[~2023-05-02  7:07 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-16  9:36 [ptxdist] [PATCH 01/11] python3-dateutil: version bump 2.7.3 -> 2.8.2 Artur Wiebe
2023-04-16  9:36 ` [ptxdist] [PATCH 02/11] python3-pytz: version bump 2020.1 -> 2023.3 Artur Wiebe
2023-05-02  7:05   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-04-16  9:36 ` [ptxdist] [PATCH 03/11] python3-aiofiles: version bump 0.8.0 -> 23.1.0 Artur Wiebe
2023-05-02  7:05   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-04-16  9:36 ` [ptxdist] [PATCH 04/11] python3-sortedcontainers: new package Artur Wiebe
2023-05-02  7:05   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-04-16  9:36 ` [ptxdist] [PATCH 05/11] python3-aiosqlite: " Artur Wiebe
2023-05-02  7:05   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-04-16  9:36 ` [ptxdist] [PATCH 06/11] host-python3-pycparser: new package (from python3-pycparser) Artur Wiebe
2023-05-02  7:05   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-04-16  9:36 ` [ptxdist] [PATCH 07/11] python3-cffi: add dependency to pycparser Artur Wiebe
2023-05-02  7:05   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-04-16  9:36 ` [ptxdist] [PATCH 08/11] python3-semantic-version: new package Artur Wiebe
2023-05-02  7:06   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-04-16  9:36 ` [ptxdist] [PATCH 09/11] host-python3-setuptools-rust: " Artur Wiebe
2023-05-02  7:06   ` Michael Olbrich [this message]
2023-04-16  9:36 ` [ptxdist] [PATCH 10/11] python3-asyncua: " Artur Wiebe
2023-04-16  9:52   ` [ptxdist] ?==?utf-8?q? " Artur Wiebe
2023-04-21 13:49     ` Michael Olbrich
2023-05-02  7:06   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-04-16  9:36 ` [ptxdist] [PATCH 11/11] python3-cryptography: " Artur Wiebe
2023-05-02  7:06   ` [ptxdist] [APPLIED] " Michael Olbrich
2023-05-02  7:05 ` [ptxdist] [APPLIED] python3-dateutil: version bump 2.7.3 -> 2.8.2 Michael Olbrich

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=20230502070600.315910-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@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