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

Felix Yan felixonmars at archlinux.org
Fri Nov 29 17:59:16 UTC 2019


    Date: Friday, November 29, 2019 @ 17:59:15
  Author: felixonmars
Revision: 534507

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-29 17:59:02 UTC (rev 534506)
+++ PKGBUILD	2019-11-29 17:59:15 UTC (rev 534507)
@@ -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.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"
-}

Copied: python-logilab-common/repos/community-any/PKGBUILD (from rev 534506, python-logilab-common/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-11-29 17:59:15 UTC (rev 534507)
@@ -0,0 +1,39 @@
+# 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.5.1
+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")
+sha512sums=('2cea358f58d17b96931d6812d794d6df2deb833fd62dd2f20c14b084c15c9496636e532c2aa4bca48742859be421dec0f5f94e4a5c383ec93e088efc7b074204')
+
+prepare() {
+  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-29 17:59:02 UTC (rev 534506)
+++ py38.patch	2019-11-29 17:59:15 UTC (rev 534507)
@@ -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
-



More information about the arch-commits mailing list