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

Felix Yan felixonmars at archlinux.org
Fri Nov 15 05:38:23 UTC 2019


    Date: Friday, November 15, 2019 @ 05:38:22
  Author: felixonmars
Revision: 528785

archrelease: copy trunk to community-any

Added:
  python-logilab-common/repos/community-any/PKGBUILD
    (from rev 528784, python-logilab-common/trunk/PKGBUILD)
  python-logilab-common/repos/community-any/py38.patch
    (from rev 528784, python-logilab-common/trunk/py38.patch)
Deleted:
  python-logilab-common/repos/community-any/PKGBUILD
  python-logilab-common/repos/community-any/py38.patch

------------+
 PKGBUILD   |   84 +++++++++++++++---------------
 py38.patch |  162 +++++++++++++++++++++++++++++------------------------------
 2 files changed, 123 insertions(+), 123 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-15 05:37:59 UTC (rev 528784)
+++ PKGBUILD	2019-11-15 05:38:22 UTC (rev 528785)
@@ -1,42 +0,0 @@
-# Maintainer: Angel Velasquez <angvp at archlinux.org>
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
-# Contributor: Alexander Fehr <pizzapunk gmail com>
-
-pkgname=python-logilab-common
-pkgver=1.4.3
-pkgrel=2
-pkgdesc="Useful miscellaneous modules used by Logilab projects"
-arch=('any')
-url="https://www.logilab.org/project/logilab-common"
-license=('LGPL')
-depends=('python')
-optdepends=('python-six: for logilab.common.testlib')
-makedepends=('python-setuptools')
-checkdepends=('python-six' 'python-pytz')
-source=("https://pypi.io/packages/source/l/logilab-common/logilab-common-$pkgver.tar.gz"
-        py38.patch)
-sha512sums=('6546df2f78e09ec7e02e12c8cb6e6f85b34be1dc5f79cc24351b0eb354c943c17410d22cb283a30b3912c48e7c93e0b04c648ae7620a6b4158e9b7240218e719'
-            'bcd1ad3a7a80edfe12e6b595d915476a6506713c5d9cc03a95305a9bacfdfa135b1f95e84a252555a4844ee5bbf6b8e4c0ca0cfc3743836e24e618d64b1578d2')
-
-prepare() {
-  patch -d logilab-common-$pkgver -p1 -i ../py38.patch
-  cp -a logilab-common-$pkgver{,-py2}
-
-  sed -i 's/from cgi import escape/from html import escape/' logilab-common-$pkgver/logilab/common/ureports/html_writer.py
-}
-
-build() {
-  cd logilab-common-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd logilab-common-$pkgver
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python bin/logilab-pytest
-}
-
-package() {
-  cd logilab-common-$pkgver
-  python setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir"
-}

Copied: python-logilab-common/repos/community-any/PKGBUILD (from rev 528784, python-logilab-common/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-11-15 05:38:22 UTC (rev 528785)
@@ -0,0 +1,42 @@
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Alexander Fehr <pizzapunk gmail com>
+
+pkgname=python-logilab-common
+pkgver=1.4.4
+pkgrel=1
+pkgdesc="Useful miscellaneous modules used by Logilab projects"
+arch=('any')
+url="https://www.logilab.org/project/logilab-common"
+license=('LGPL')
+depends=('python')
+optdepends=('python-six: for logilab.common.testlib')
+makedepends=('python-setuptools')
+checkdepends=('python-six' 'python-pytz')
+source=("https://pypi.io/packages/source/l/logilab-common/logilab-common-$pkgver.tar.gz"
+        py38.patch)
+sha512sums=('a6b52e135748687958649f2cb50449fa1f5af4cea0c398f09dff10821f402ec1be51850843e2393614802014c2f94c14e6b593cb570f4487756b406152943367'
+            'bcd1ad3a7a80edfe12e6b595d915476a6506713c5d9cc03a95305a9bacfdfa135b1f95e84a252555a4844ee5bbf6b8e4c0ca0cfc3743836e24e618d64b1578d2')
+
+prepare() {
+  patch -d logilab-common-$pkgver -p1 -i ../py38.patch
+  cp -a logilab-common-$pkgver{,-py2}
+
+  sed -i 's/from cgi import escape/from html import escape/' logilab-common-$pkgver/logilab/common/ureports/html_writer.py
+}
+
+build() {
+  cd logilab-common-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd logilab-common-$pkgver
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python bin/logilab-pytest
+}
+
+package() {
+  cd logilab-common-$pkgver
+  python setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir"
+}

Deleted: py38.patch
===================================================================
--- py38.patch	2019-11-15 05:37:59 UTC (rev 528784)
+++ py38.patch	2019-11-15 05:38:22 UTC (rev 528785)
@@ -1,81 +0,0 @@
-
-# HG changeset patch
-# User Simon Chabot <simon.chabot at logilab.fr>
-# Date 1571921749 -7200
-# Node ID c8b3f9dee096a39cf37c429e296b2b408ce836d1
-# Parent  5bfba850fddf7f63508c74e40afa8ec9d0ba468b
-Use time.process_time instead of time.clock (deprecated)
-
-time.clock is deprecated since python 3.3 and will be removed in python 3.8
-
-this patch breaks backward compatibility with python < 3.3.
-
-diff -r 5bfba850fddf -r c8b3f9dee096 logilab/common/decorators.py
---- a/logilab/common/decorators.py	Thu Sep 12 16:25:16 2019 +0200
-+++ b/logilab/common/decorators.py	Thu Oct 24 14:55:49 2019 +0200
-@@ -23,7 +23,7 @@
- 
- import sys
- import types
--from time import clock, time
-+from time import process_time, time
- from inspect import isgeneratorfunction
- 
- import six
-@@ -232,10 +232,10 @@
- def timed(f):
-     def wrap(*args, **kwargs):
-         t = time()
--        c = clock()
-+        c = process_time()
-         res = f(*args, **kwargs)
-         print('%s clock: %.9f / time: %.9f' % (f.__name__,
--                                               clock() - c, time() - t))
-+                                               process_time() - c, time() - t))
-         return res
-     return wrap
- 
-diff -r 5bfba850fddf -r c8b3f9dee096 logilab/common/pytest.py
---- a/logilab/common/pytest.py	Thu Sep 12 16:25:16 2019 +0200
-+++ b/logilab/common/pytest.py	Thu Oct 24 14:55:49 2019 +0200
-@@ -115,7 +115,7 @@
- 
- import os, sys, re
- import os.path as osp
--from time import time, clock
-+from time import process_time, time
- import warnings
- import types
- import inspect
-@@ -385,7 +385,7 @@
-         print(('  %s  ' % osp.basename(filename)).center(70, '='),
-               file=sys.__stderr__)
-         try:
--            tstart, cstart = time(), clock()
-+            tstart, cstart = time(), process_time()
-             try:
-                 testprog = SkipAwareTestProgram(modname, batchmode=batchmode, cvg=self.cvg,
-                                                  options=self.options, outstream=sys.stderr)
-@@ -406,7 +406,7 @@
-                 traceback.print_exc(file=sys.stderr)
-                 return None
- 
--            tend, cend = time(), clock()
-+            tend, cend = time(), process_time()
-             ttime, ctime = (tend - tstart), (cend - cstart)
-             self.report.feed(filename, testprog.result, ttime, ctime)
-             return testprog
-@@ -515,10 +515,10 @@
-               file=sys.stderr)
-         try:
-             try:
--                tstart, cstart = time(), clock()
-+                tstart, cstart = time(), process_time()
-                 self.before_testfile()
-                 testprog = SkipAwareTestProgram(modname, batchmode=batchmode, cvg=self.cvg)
--                tend, cend = time(), clock()
-+                tend, cend = time(), process_time()
-                 ttime, ctime = (tend - tstart), (cend - cstart)
-                 self.report.feed(filename, testprog.result, ttime, ctime)
-                 return testprog
-

Copied: python-logilab-common/repos/community-any/py38.patch (from rev 528784, python-logilab-common/trunk/py38.patch)
===================================================================
--- py38.patch	                        (rev 0)
+++ py38.patch	2019-11-15 05:38:22 UTC (rev 528785)
@@ -0,0 +1,81 @@
+
+# HG changeset patch
+# User Simon Chabot <simon.chabot at logilab.fr>
+# Date 1571921749 -7200
+# Node ID c8b3f9dee096a39cf37c429e296b2b408ce836d1
+# Parent  5bfba850fddf7f63508c74e40afa8ec9d0ba468b
+Use time.process_time instead of time.clock (deprecated)
+
+time.clock is deprecated since python 3.3 and will be removed in python 3.8
+
+this patch breaks backward compatibility with python < 3.3.
+
+diff -r 5bfba850fddf -r c8b3f9dee096 logilab/common/decorators.py
+--- a/logilab/common/decorators.py	Thu Sep 12 16:25:16 2019 +0200
++++ b/logilab/common/decorators.py	Thu Oct 24 14:55:49 2019 +0200
+@@ -23,7 +23,7 @@
+ 
+ import sys
+ import types
+-from time import clock, time
++from time import process_time, time
+ from inspect import isgeneratorfunction
+ 
+ import six
+@@ -232,10 +232,10 @@
+ def timed(f):
+     def wrap(*args, **kwargs):
+         t = time()
+-        c = clock()
++        c = process_time()
+         res = f(*args, **kwargs)
+         print('%s clock: %.9f / time: %.9f' % (f.__name__,
+-                                               clock() - c, time() - t))
++                                               process_time() - c, time() - t))
+         return res
+     return wrap
+ 
+diff -r 5bfba850fddf -r c8b3f9dee096 logilab/common/pytest.py
+--- a/logilab/common/pytest.py	Thu Sep 12 16:25:16 2019 +0200
++++ b/logilab/common/pytest.py	Thu Oct 24 14:55:49 2019 +0200
+@@ -115,7 +115,7 @@
+ 
+ import os, sys, re
+ import os.path as osp
+-from time import time, clock
++from time import process_time, time
+ import warnings
+ import types
+ import inspect
+@@ -385,7 +385,7 @@
+         print(('  %s  ' % osp.basename(filename)).center(70, '='),
+               file=sys.__stderr__)
+         try:
+-            tstart, cstart = time(), clock()
++            tstart, cstart = time(), process_time()
+             try:
+                 testprog = SkipAwareTestProgram(modname, batchmode=batchmode, cvg=self.cvg,
+                                                  options=self.options, outstream=sys.stderr)
+@@ -406,7 +406,7 @@
+                 traceback.print_exc(file=sys.stderr)
+                 return None
+ 
+-            tend, cend = time(), clock()
++            tend, cend = time(), process_time()
+             ttime, ctime = (tend - tstart), (cend - cstart)
+             self.report.feed(filename, testprog.result, ttime, ctime)
+             return testprog
+@@ -515,10 +515,10 @@
+               file=sys.stderr)
+         try:
+             try:
+-                tstart, cstart = time(), clock()
++                tstart, cstart = time(), process_time()
+                 self.before_testfile()
+                 testprog = SkipAwareTestProgram(modname, batchmode=batchmode, cvg=self.cvg)
+-                tend, cend = time(), clock()
++                tend, cend = time(), process_time()
+                 ttime, ctime = (tend - tstart), (cend - cstart)
+                 self.report.feed(filename, testprog.result, ttime, ctime)
+                 return testprog
+



More information about the arch-commits mailing list