pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-setuptools-rust
Module Name: pkgsrc
Committed By: adam
Date: Tue Jul 5 08:12:00 UTC 2022
Modified Files:
pkgsrc/devel/py-setuptools-rust: Makefile PLIST distinfo
Added Files:
pkgsrc/devel/py-setuptools-rust/patches:
patch-setuptools__rust_rustc__info.py
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-setuptools-rust/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/py-setuptools-rust/PLIST
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/py-setuptools-rust/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/devel/py-setuptools-rust/patches/patch-setuptools__rust_rustc__info.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-setuptools-rust/Makefile
diff -u pkgsrc/devel/py-setuptools-rust/Makefile:1.6 pkgsrc/devel/py-setuptools-rust/Makefile:1.7
--- pkgsrc/devel/py-setuptools-rust/Makefile:1.6 Wed Apr 27 09:41:34 2022
+++ pkgsrc/devel/py-setuptools-rust/Makefile Tue Jul 5 08:12:00 2022
@@ -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 @@ COMMENT= Setuptools plugin for Rust supp
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
Index: pkgsrc/devel/py-setuptools-rust/PLIST
diff -u pkgsrc/devel/py-setuptools-rust/PLIST:1.2 pkgsrc/devel/py-setuptools-rust/PLIST:1.3
--- pkgsrc/devel/py-setuptools-rust/PLIST:1.2 Wed Feb 23 08:22:46 2022
+++ pkgsrc/devel/py-setuptools-rust/PLIST Tue Jul 5 08:12:00 2022
@@ -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}/${EGG_INFODIR}/zip-safe
${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/command.pyo
${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
Index: pkgsrc/devel/py-setuptools-rust/distinfo
diff -u pkgsrc/devel/py-setuptools-rust/distinfo:1.5 pkgsrc/devel/py-setuptools-rust/distinfo:1.6
--- pkgsrc/devel/py-setuptools-rust/distinfo:1.5 Wed Apr 27 09:41:34 2022
+++ pkgsrc/devel/py-setuptools-rust/distinfo Tue Jul 5 08:12:00 2022
@@ -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
Added files:
Index: pkgsrc/devel/py-setuptools-rust/patches/patch-setuptools__rust_rustc__info.py
diff -u /dev/null pkgsrc/devel/py-setuptools-rust/patches/patch-setuptools__rust_rustc__info.py:1.1
--- /dev/null Tue Jul 5 08:12:00 2022
+++ pkgsrc/devel/py-setuptools-rust/patches/patch-setuptools__rust_rustc__info.py Tue Jul 5 08:12:00 2022
@@ -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