[arch-commits] Commit in absl-py/repos/community-any (3 files)
Konstantin Gizdov
kgizdov at archlinux.org
Wed Dec 18 00:26:09 UTC 2019
Date: Wednesday, December 18, 2019 @ 00:26:08
Author: kgizdov
Revision: 538004
archrelease: copy trunk to community-any
Added:
absl-py/repos/community-any/PKGBUILD
(from rev 538003, absl-py/trunk/PKGBUILD)
absl-py/repos/community-any/fix_for_Python_3.8_BC_breaking_logging_API.patch
(from rev 538003, absl-py/trunk/fix_for_Python_3.8_BC_breaking_logging_API.patch)
Deleted:
absl-py/repos/community-any/PKGBUILD
--------------------------------------------------+
PKGBUILD | 61 +++++++++++----------
fix_for_Python_3.8_BC_breaking_logging_API.patch | 25 ++++++++
2 files changed, 59 insertions(+), 27 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-12-18 00:26:00 UTC (rev 538003)
+++ PKGBUILD 2019-12-18 00:26:08 UTC (rev 538004)
@@ -1,27 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
-
-pkgname=absl-py
-pkgver=0.8.1
-pkgrel=3
-pkgdesc="Abseil Python Common Libraries"
-arch=(any)
-url="https://github.com/abseil/abseil-py"
-license=(APACHE)
-makedepends=(python-setuptools)
-source=(https://pypi.io/packages/source/a/absl-py/absl-py-$pkgver.tar.gz)
-sha512sums=('fbf1f601021850686fa6430001ea370a26490f3c8c841ba2e34048c69ca382a6f6baf9480e989edddfff69c15a5ea5bbc6d4afa83b3f2b1512dfee40ba940096')
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
-
- python setup.py build
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
-
- python setup.py install -O1 --root="${pkgdir}" --skip-build
- chmod -R +r "${pkgdir}"/usr/lib
-}
-
-# vim:set ts=2 sw=2 et:
Copied: absl-py/repos/community-any/PKGBUILD (from rev 538003, absl-py/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-12-18 00:26:08 UTC (rev 538004)
@@ -0,0 +1,34 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+
+pkgname=absl-py
+pkgver=0.8.1
+pkgrel=4
+pkgdesc="Abseil Python Common Libraries"
+arch=(any)
+url="https://github.com/abseil/abseil-py"
+license=(APACHE)
+makedepends=(python-setuptools)
+source=(https://pypi.io/packages/source/a/absl-py/absl-py-$pkgver.tar.gz
+ fix_for_Python_3.8_BC_breaking_logging_API.patch)
+sha512sums=('fbf1f601021850686fa6430001ea370a26490f3c8c841ba2e34048c69ca382a6f6baf9480e989edddfff69c15a5ea5bbc6d4afa83b3f2b1512dfee40ba940096'
+ 'f6463aa595e572e2bf5dd2684ed9088f5f85676ac6c99ac92d35849b08cf6c1a72671812898f3bb3eb31d19751530b8a0e127fc0e77bb9f2cef88938e92dd54a')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -Np1 -i "${srcdir}"/fix_for_Python_3.8_BC_breaking_logging_API.patch
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ python setup.py install -O1 --root="${pkgdir}" --skip-build
+ chmod -R +r "${pkgdir}"/usr/lib
+}
+
+# vim:set ts=2 sw=2 et:
Copied: absl-py/repos/community-any/fix_for_Python_3.8_BC_breaking_logging_API.patch (from rev 538003, absl-py/trunk/fix_for_Python_3.8_BC_breaking_logging_API.patch)
===================================================================
--- fix_for_Python_3.8_BC_breaking_logging_API.patch (rev 0)
+++ fix_for_Python_3.8_BC_breaking_logging_API.patch 2019-12-18 00:26:08 UTC (rev 538004)
@@ -0,0 +1,25 @@
+From 0daab405bf6e3448d46e054e07550db16199f185 Mon Sep 17 00:00:00 2001
+From: Roman Ring <inoryy at gmail.com>
+Date: Wed, 11 Dec 2019 20:25:11 +0200
+Subject: [PATCH] fix for Python 3.8 BC breaking logging API change
+
+Relevant issues:
+* https://github.com/tensorflow/tensorflow/issues/35027
+* https://github.com/deepmind/pysc2/issues/286
+---
+ absl/logging/__init__.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/absl/logging/__init__.py b/absl/logging/__init__.py
+index 47adfe2..c4ce102 100644
+--- a/absl/logging/__init__.py
++++ b/absl/logging/__init__.py
+@@ -952,7 +952,7 @@ class ABSLLogger(logging.getLoggerClass()):
+ """
+ _frames_to_skip = set()
+
+- def findCaller(self, stack_info=False):
++ def findCaller(self, stack_info=False, stacklevel=1):
+ """Finds the frame of the calling method on the stack.
+
+ This method skips any frames registered with the
More information about the arch-commits
mailing list