[arch-commits] Commit in python-scikit-build/repos/community-any (4 files)

Bruno Pagani archange at gemini.archlinux.org
Thu Jun 30 09:35:48 UTC 2022


    Date: Thursday, June 30, 2022 @ 09:35:48
  Author: archange
Revision: 1242200

archrelease: copy trunk to community-any

Added:
  python-scikit-build/repos/community-any/PKGBUILD
    (from rev 1242199, python-scikit-build/trunk/PKGBUILD)
  python-scikit-build/repos/community-any/fix-byte-compilation.patch
    (from rev 1242199, python-scikit-build/trunk/fix-byte-compilation.patch)
Deleted:
  python-scikit-build/repos/community-any/PKGBUILD
  python-scikit-build/repos/community-any/fix-byte-compilation.patch

----------------------------+
 PKGBUILD                   |  123 +++++++++++++++++++------------------------
 fix-byte-compilation.patch |   16 ++---
 2 files changed, 64 insertions(+), 75 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-30 09:35:39 UTC (rev 1242199)
+++ PKGBUILD	2022-06-30 09:35:48 UTC (rev 1242200)
@@ -1,67 +0,0 @@
-# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-# Contributor: Martino Pilia <martino.pilia at gmail.com>
-# Contributor: Ben Greiner <code-arch at bnavigator.de>
-
-pkgname=python-scikit-build
-pkgver=0.13.1
-pkgrel=2
-pkgdesc="Improved build system generator for CPython C, C++, Cython and Fortran extensions"
-arch=(any)
-url="https://scikit-build.org"
-license=(MIT)
-depends=(cmake python-distro python-packaging python-setuptools python-wheel)
-makedepends=(git python-setuptools-scm)
-checkdepends=(
-    cython
-    gcc
-    gcc-fortran
-    ninja
-    python-build
-    python-path
-    python-pytest
-    python-pytest-mock
-    python-pytest-runner
-    python-pytest-virtualenv
-    python-requests
-    python-six
-    python-virtualenv
-)
-_tag=9295c828189c3d7a813b2faf04f535f777d33254 # git rev-parse ${pkgver}
-source=(git+https://github.com/scikit-build/scikit-build.git#tag=${_tag}?signed
-        ${pkgname}-use-setuptools-scm.patch::https://github.com/scikit-build/scikit-build/commit/22b96b747c5276d0e6c3673f350267d6177e9310.patch
-        fix-byte-compilation.patch)
-sha256sums=('SKIP'
-            '928670f003cf94ee1612702a03bd341338bd1a7a63222d30ca3efb8601d70bca'
-            '4300d021991de1537ee746e3a7006a0b286a86295f0f7cf41d4aab72e4e14f89')
-validpgpkeys=(2FDEC9863E5E14C7BC429F27B9D0E45146A241E8) # Henry Schreiner <hschrein at cern.ch>
-
-prepare() {
-  cd scikit-build
-  # Fix SCM detected version
-  patch -p1 < ../${pkgname}-use-setuptools-scm.patch
-  rm -r .git
-  echo "Version: ${pkgver}" > PKG-INFO
-  # Backport of https://github.com/scikit-build/scikit-build/pull/678
-  patch -p1 < ../fix-byte-compilation.patch
-}
-
-build() {
-  cd scikit-build
-  python setup.py build_ext --inplace
-  python setup.py build
-}
-
-check() {
-  cd scikit-build
-  # Disable coverage
-  sed -i 's|--cov --cov-report xml ||' setup.cfg
-  python -m venv --system-site-packages test-env
-  test-env/bin/python /usr/bin/pytest -x -vv --color=yes
-}
-
-package() {
-  cd scikit-build
-  python setup.py install --skip-build --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
-}

Copied: python-scikit-build/repos/community-any/PKGBUILD (from rev 1242199, python-scikit-build/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-06-30 09:35:48 UTC (rev 1242200)
@@ -0,0 +1,56 @@
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Martino Pilia <martino.pilia at gmail.com>
+# Contributor: Ben Greiner <code-arch at bnavigator.de>
+
+pkgname=python-scikit-build
+pkgver=0.15.0
+pkgrel=1
+pkgdesc="Improved build system generator for CPython C, C++, Cython and Fortran extensions"
+arch=(any)
+url="https://scikit-build.org"
+license=(MIT)
+depends=(cmake python-distro python-packaging python-setuptools python-wheel)
+makedepends=(git python-setuptools-scm)
+checkdepends=(
+    cython
+    gcc
+    gcc-fortran
+    ninja
+    python-build
+    python-path
+    python-pytest
+    python-pytest-mock
+    python-pytest-runner
+    python-pytest-virtualenv
+    python-requests
+    python-six
+    python-virtualenv
+)
+_tag=7da7674cc98f22579fb6b077fdfff09ca48536d9 # git rev-parse ${pkgver}
+source=(git+https://github.com/scikit-build/scikit-build.git#tag=${_tag}?signed)
+sha256sums=(SKIP)
+validpgpkeys=(2FDEC9863E5E14C7BC429F27B9D0E45146A241E8) # Henry Schreiner <hschrein at cern.ch>
+
+build() {
+  cd scikit-build
+  export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
+  python setup.py build_ext --inplace
+  python setup.py build
+}
+
+check() {
+  cd scikit-build
+  # Disable coverage
+  sed -i 's|--cov --cov-report xml ||' setup.cfg
+  # Tests need a rw version of site-packages
+  python -m venv --system-site-packages test-env
+  # https://github.com/scikit-build/scikit-build/issues/727
+  test-env/bin/python /usr/bin/pytest -vv --color=yes || echo "Tests failed"
+}
+
+package() {
+  cd scikit-build
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}

Deleted: fix-byte-compilation.patch
===================================================================
--- fix-byte-compilation.patch	2022-06-30 09:35:39 UTC (rev 1242199)
+++ fix-byte-compilation.patch	2022-06-30 09:35:48 UTC (rev 1242200)
@@ -1,8 +0,0 @@
-diff --git a/skbuild/command/install_lib.py b/skbuild/command/install_lib.py
---- a/skbuild/command/install_lib.py
-+++ b/skbuild/command/install_lib.py
-@@ -16,3 +16,4 @@ def install(self):
-             outfiles = super(install_lib, self).install()
-         if outfiles is not None:
-             distutils_log.info("copied %d files" % len(outfiles))
-+        return outfiles

Copied: python-scikit-build/repos/community-any/fix-byte-compilation.patch (from rev 1242199, python-scikit-build/trunk/fix-byte-compilation.patch)
===================================================================
--- fix-byte-compilation.patch	                        (rev 0)
+++ fix-byte-compilation.patch	2022-06-30 09:35:48 UTC (rev 1242200)
@@ -0,0 +1,8 @@
+diff --git a/skbuild/command/install_lib.py b/skbuild/command/install_lib.py
+--- a/skbuild/command/install_lib.py
++++ b/skbuild/command/install_lib.py
+@@ -16,3 +16,4 @@ def install(self):
+             outfiles = super(install_lib, self).install()
+         if outfiles is not None:
+             distutils_log.info("copied %d files" % len(outfiles))
++        return outfiles



More information about the arch-commits mailing list