pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-setuptools-rust py-setuptools-rust: updated t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/31d1921adc84
branches:  trunk
changeset: 381354:31d1921adc84
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Jul 05 08:12:00 2022 +0000

description:
py-setuptools-rust: updated to 1.4.0

1.4.0 (2022-07-05)

Packaging
- Increase minimum `setuptools` version to 62.4.

Added
- Add `cargo_manifest_args` to support locked, frozen and offline builds.
- Add `RustBin` for packaging binaries in scripts data directory.

Changed
- `Exec` binding `RustExtension` with `script=True` is deprecated in favor of `RustBin`.
- Errors while calling `cargo metadata` are now reported back to the user
- `quiet` option will now suppress output of `cargo metadata`.
- `setuptools-rust` will now match `cargo` behavior of not setting `--target` when the selected target is the rust host.
- Deprecate `native` option of `RustExtension`.

Fixed
- If the sysconfig for `BLDSHARED` has no flags, `setuptools-rust` won't crash anymore.

diffstat:

 devel/py-setuptools-rust/Makefile                                      |   6 +-
 devel/py-setuptools-rust/PLIST                                         |  11 ++-
 devel/py-setuptools-rust/distinfo                                      |   9 +-
 devel/py-setuptools-rust/patches/patch-setuptools__rust_rustc__info.py |  26 ++++++++++
 4 files changed, 41 insertions(+), 11 deletions(-)

diffs (100 lines):

diff -r 9dfa73ea6247 -r 31d1921adc84 devel/py-setuptools-rust/Makefile
--- a/devel/py-setuptools-rust/Makefile Tue Jul 05 08:10:24 2022 +0000
+++ b/devel/py-setuptools-rust/Makefile Tue Jul 05 08:12:00 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2022/04/27 09:41:34 adam Exp $
+# $NetBSD: Makefile,v 1.7 2022/07/05 08:12:00 adam Exp $
 
-DISTNAME=      setuptools-rust-1.3.0
+DISTNAME=      setuptools-rust-1.4.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/setuptools-rust/}
@@ -11,7 +11,7 @@
 LICENSE=       mit
 
 DEPENDS+=      ${PYPKGPREFIX}-semantic_version>=2.8.2:../../devel/py-semantic_version
-DEPENDS+=      ${PYPKGPREFIX}-setuptools>=46.1:../../devel/py-setuptools
+DEPENDS+=      ${PYPKGPREFIX}-setuptools>=62.4:../../devel/py-setuptools
 DEPENDS+=      ${PYPKGPREFIX}-typing-extensions>=3.7.4.3:../../devel/py-typing-extensions
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm>=6.3.2:../../devel/py-setuptools_scm
 
diff -r 9dfa73ea6247 -r 31d1921adc84 devel/py-setuptools-rust/PLIST
--- a/devel/py-setuptools-rust/PLIST    Tue Jul 05 08:10:24 2022 +0000
+++ b/devel/py-setuptools-rust/PLIST    Tue Jul 05 08:12:00 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2022/02/23 08:22:46 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2022/07/05 08:12:00 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -9,6 +9,9 @@
 ${PYSITELIB}/setuptools_rust/__init__.py
 ${PYSITELIB}/setuptools_rust/__init__.pyc
 ${PYSITELIB}/setuptools_rust/__init__.pyo
+${PYSITELIB}/setuptools_rust/_utils.py
+${PYSITELIB}/setuptools_rust/_utils.pyc
+${PYSITELIB}/setuptools_rust/_utils.pyo
 ${PYSITELIB}/setuptools_rust/build.py
 ${PYSITELIB}/setuptools_rust/build.pyc
 ${PYSITELIB}/setuptools_rust/build.pyo
@@ -21,12 +24,12 @@
 ${PYSITELIB}/setuptools_rust/extension.py
 ${PYSITELIB}/setuptools_rust/extension.pyc
 ${PYSITELIB}/setuptools_rust/extension.pyo
+${PYSITELIB}/setuptools_rust/rustc_info.py
+${PYSITELIB}/setuptools_rust/rustc_info.pyc
+${PYSITELIB}/setuptools_rust/rustc_info.pyo
 ${PYSITELIB}/setuptools_rust/setuptools_ext.py
 ${PYSITELIB}/setuptools_rust/setuptools_ext.pyc
 ${PYSITELIB}/setuptools_rust/setuptools_ext.pyo
-${PYSITELIB}/setuptools_rust/utils.py
-${PYSITELIB}/setuptools_rust/utils.pyc
-${PYSITELIB}/setuptools_rust/utils.pyo
 ${PYSITELIB}/setuptools_rust/version.py
 ${PYSITELIB}/setuptools_rust/version.pyc
 ${PYSITELIB}/setuptools_rust/version.pyo
diff -r 9dfa73ea6247 -r 31d1921adc84 devel/py-setuptools-rust/distinfo
--- a/devel/py-setuptools-rust/distinfo Tue Jul 05 08:10:24 2022 +0000
+++ b/devel/py-setuptools-rust/distinfo Tue Jul 05 08:12:00 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2022/04/27 09:41:34 adam Exp $
+$NetBSD: distinfo,v 1.6 2022/07/05 08:12:00 adam Exp $
 
-BLAKE2s (setuptools-rust-1.3.0.tar.gz) = e88549ae67ee936904f8218e8c257b06fd600b32c416cc7f71ba6ee3ee3db40d
-SHA512 (setuptools-rust-1.3.0.tar.gz) = 5971413a9544ddd626671de74e9517fb20410e4838c5420ed31653d7fdf07b858ff4ef14ec2d5b51677e3402757da915a76858337d0c2b164682450bce35ba11
-Size (setuptools-rust-1.3.0.tar.gz) = 285698 bytes
+BLAKE2s (setuptools-rust-1.4.0.tar.gz) = 3e015202091ef8cee769561e81f47c27e94d9c75cb42021524d01d2c1d616fe6
+SHA512 (setuptools-rust-1.4.0.tar.gz) = e13ea85c682daa606d70544d1ddfe7e140854f3f01b9a3cecced7a2c8828678d1380b58ddcaebbd5f33183566149df1232b193aa24ce3dd7e89b1bcf5cc8b8c7
+Size (setuptools-rust-1.4.0.tar.gz) = 288808 bytes
+SHA1 (patch-setuptools__rust_rustc__info.py) = ec96ecef51cb0444db9a8724e57d4a7a2a84c739
diff -r 9dfa73ea6247 -r 31d1921adc84 devel/py-setuptools-rust/patches/patch-setuptools__rust_rustc__info.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-setuptools-rust/patches/patch-setuptools__rust_rustc__info.py    Tue Jul 05 08:12:00 2022 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-setuptools__rust_rustc__info.py,v 1.1 2022/07/05 08:12:00 adam Exp $
+
+https://github.com/PyO3/setuptools-rust/issues/262
+
+--- setuptools_rust/rustc_info.py.orig 2022-07-05 06:20:44.000000000 +0000
++++ setuptools_rust/rustc_info.py
+@@ -10,7 +10,7 @@ def get_rust_version() -> Optional[Versi
+     try:
+         # first line of rustc -Vv is something like
+         # rustc 1.61.0 (fe5b13d68 2022-05-18)
+-        return Version(_rust_version_verbose().split(" ")[1])
++        return Version(_rust_version().split(" ")[1])
+     except (subprocess.CalledProcessError, OSError):
+         return None
+ 
+@@ -59,5 +59,10 @@ def get_rust_target_list() -> List[str]:
+ 
+ 
+ @lru_cache()
++def _rust_version() -> str:
++    return subprocess.check_output(["rustc", "-V"], text=True)
++
++
++@lru_cache()
+ def _rust_version_verbose() -> str:
+     return subprocess.check_output(["rustc", "-Vv"], text=True)



Home | Main Index | Thread Index | Old Index