[arch-commits] Commit in python-lazy-object-proxy/trunk (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 21:28:29 UTC 2021


    Date: Tuesday, November 30, 2021 @ 21:28:29
  Author: foutrelis
Revision: 429825

Fix build with setuptools_scm 6.0+

Added:
  python-lazy-object-proxy/trunk/remove-setuptools-scm-upper-constraint.patch
Modified:
  python-lazy-object-proxy/trunk/PKGBUILD

----------------------------------------------+
 PKGBUILD                                     |   12 ++++++++++--
 remove-setuptools-scm-upper-constraint.patch |   11 +++++++++++
 2 files changed, 21 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-30 21:18:56 UTC (rev 429824)
+++ PKGBUILD	2021-11-30 21:28:29 UTC (rev 429825)
@@ -10,11 +10,19 @@
 depends=("python")
 makedepends=('python-setuptools-scm')
 checkdepends=('python-pytest-benchmark' 'python-pytest-runner')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/ionelmc/python-lazy-object-proxy/archive/v$pkgver.tar.gz")
-sha512sums=('08fd5e76a6e892a9390ae3bc3025c2fe9255437823fba9aa804f2c7cac09c5f9b57c791d3c9b137aa96c4c78fc2c494eca629cc60d21d23d59713f7a418491a1')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ionelmc/python-lazy-object-proxy/archive/v$pkgver.tar.gz"
+        remove-setuptools-scm-upper-constraint.patch)
+sha512sums=('08fd5e76a6e892a9390ae3bc3025c2fe9255437823fba9aa804f2c7cac09c5f9b57c791d3c9b137aa96c4c78fc2c494eca629cc60d21d23d59713f7a418491a1'
+            '7add9cf4111f7ce335501e33444ca9c7b3e8996322a0f372a4fa9022fb128594f8120a99e6796c55f5d1088d571cac462bdb9284731852ab392cc6f68ba935b9')
 
 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 
+prepare() {
+  cd python-lazy-object-proxy-$pkgver
+  # https://github.com/ionelmc/python-lazy-object-proxy/issues/54
+  patch -Np1 -i ../remove-setuptools-scm-upper-constraint.patch
+}
+
 build() {
   cd python-lazy-object-proxy-$pkgver
   python setup.py build

Added: remove-setuptools-scm-upper-constraint.patch
===================================================================
--- remove-setuptools-scm-upper-constraint.patch	                        (rev 0)
+++ remove-setuptools-scm-upper-constraint.patch	2021-11-30 21:28:29 UTC (rev 429825)
@@ -0,0 +1,11 @@
+diff -upr python-lazy-object-proxy-1.6.0.orig/setup.cfg python-lazy-object-proxy-1.6.0/setup.cfg
+--- python-lazy-object-proxy-1.6.0.orig/setup.cfg	2021-03-22 17:06:24.000000000 +0200
++++ python-lazy-object-proxy-1.6.0/setup.cfg	2021-11-30 23:26:47.178944992 +0200
+@@ -1,6 +1,6 @@
+ [options]
+ setup_requires =
+-  setuptools_scm>=3.3.1,<6.0
++  setuptools_scm>=3.3.1
+ 
+ [flake8]
+ max-line-length = 140



More information about the arch-commits mailing list