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

Antonio Rojas arojas at gemini.archlinux.org
Wed Dec 15 08:09:07 UTC 2021


    Date: Wednesday, December 15, 2021 @ 08:09:06
  Author: arojas
Revision: 1072927

archrelease: copy trunk to community-any

Added:
  python-apipkg/repos/community-any/PKGBUILD
    (from rev 1072926, python-apipkg/trunk/PKGBUILD)
  python-apipkg/repos/community-any/apipkg-pytest5.patch
    (from rev 1072926, python-apipkg/trunk/apipkg-pytest5.patch)
Deleted:
  python-apipkg/repos/community-any/PKGBUILD
  python-apipkg/repos/community-any/apipkg-pytest5.patch

----------------------+
 PKGBUILD             |   99 ++++++++++++++++++++++++-------------------------
 apipkg-pytest5.patch |   84 ++++++++++++++++++++---------------------
 2 files changed, 91 insertions(+), 92 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-15 08:08:49 UTC (rev 1072926)
+++ PKGBUILD	2021-12-15 08:09:06 UTC (rev 1072927)
@@ -1,50 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-apipkg
-pkgname=('python-apipkg' 'python2-apipkg')
-pkgver=1.5
-pkgrel=7
-pkgdesc="Namespace control and lazy-import mechanism"
-arch=('any')
-license=('MIT')
-url="https://github.com/pytest-dev/apipkg"
-makedepends=('python-setuptools' 'python-setuptools-scm'
-             'python2-setuptools' 'python2-setuptools-scm')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-$pkgver.tar.gz"
-         apipkg-pytest5.patch)
-sha512sums=('828937ca5e203915248fac54db8e7c13f941e006403f2a415c27fa4d1aa114790be3d7b5dd892f528611e5e6dfe75114ee80f4f4589a03c3f789ae6ddfcae0bf'
-            '1228d7c8c79ea1a0d136585bfe236bc8c22a4053c044602082d9f88006ba2893dd615399e3bae0bbf7f94c719cc9d61d578bc8c8c956cb6f3ff3de3e0c00f7d6')
-
-prepare() {
-  cd apipkg-$pkgver
-  patch -p1 -i ../apipkg-pytest5.patch # port away from removed pytest api
-}
-
-build() {
-  cd apipkg-$pkgver
-  python setup.py build
-  python2 setup.py build
-}
-
-check() {
-  cd apipkg-$pkgver
-  python setup.py pytest
-  python2 setup.py pytest
-}
-
-package_python-apipkg() {
-  depends=('python')
-
-  cd apipkg-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-apipkg() {
-  depends=('python2')
-
-  cd apipkg-$pkgver
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-apipkg/repos/community-any/PKGBUILD (from rev 1072926, python-apipkg/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-15 08:09:06 UTC (rev 1072927)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-apipkg
+pkgname=('python-apipkg' 'python2-apipkg')
+pkgver=1.5
+pkgrel=8
+pkgdesc="Namespace control and lazy-import mechanism"
+arch=('any')
+license=('MIT')
+url="https://github.com/pytest-dev/apipkg"
+makedepends=('python-setuptools' 'python-setuptools-scm'
+             'python2-setuptools' 'python2-setuptools-scm')
+checkdepends=('python-pytest-runner')
+source=("https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-$pkgver.tar.gz"
+         apipkg-pytest5.patch)
+sha512sums=('828937ca5e203915248fac54db8e7c13f941e006403f2a415c27fa4d1aa114790be3d7b5dd892f528611e5e6dfe75114ee80f4f4589a03c3f789ae6ddfcae0bf'
+            '1228d7c8c79ea1a0d136585bfe236bc8c22a4053c044602082d9f88006ba2893dd615399e3bae0bbf7f94c719cc9d61d578bc8c8c956cb6f3ff3de3e0c00f7d6')
+
+prepare() {
+  cd apipkg-$pkgver
+  patch -p1 -i ../apipkg-pytest5.patch # port away from removed pytest api
+}
+
+build() {
+  cd apipkg-$pkgver
+  python setup.py build
+  python2 setup.py build
+}
+
+check() {
+  cd apipkg-$pkgver
+  python setup.py pytest
+}
+
+package_python-apipkg() {
+  depends=('python')
+
+  cd apipkg-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-apipkg() {
+  depends=('python2')
+
+  cd apipkg-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Deleted: apipkg-pytest5.patch
===================================================================
--- apipkg-pytest5.patch	2021-12-15 08:08:49 UTC (rev 1072926)
+++ apipkg-pytest5.patch	2021-12-15 08:09:06 UTC (rev 1072927)
@@ -1,42 +0,0 @@
-diff --git a/test_apipkg.py b/test_apipkg.py
-index 2b7ca1b..ce75aee 100644
---- a/test_apipkg.py
-+++ b/test_apipkg.py
-@@ -13,7 +13,7 @@ ModuleType = types.ModuleType
- class TestRealModule:
- 
-     def setup_class(cls):
--        cls.tmpdir = py.test.ensuretemp('test_apipkg')
-+        cls.tmpdir = py.path.local('test_apipkg')
-         sys.path = [str(cls.tmpdir)] + sys.path
-         pkgdir = cls.tmpdir.ensure('realtest', dir=1)
- 
-@@ -319,10 +319,12 @@ def test_error_loading_one_element(monkeypatch, tmpdir):
-     import errorloading1
-     assert isinstance(errorloading1, apipkg.ApiModule)
-     assert errorloading1.y == 0
--    py.test.raises(ImportError, 'errorloading1.x')
--    py.test.raises(ImportError, 'errorloading1.x')
--
--
-+    try:
-+        errorloading1.x
-+    except ImportError:
-+        pass
-+        
-+        
- def test_onfirstaccess(tmpdir, monkeypatch):
-     pkgdir = tmpdir.mkdir("firstaccess")
-     pkgdir.join('__init__.py').write(py.code.Source("""
-@@ -493,7 +495,10 @@ def test_aliasmodule_proxy_methods(tmpdir, monkeypatch):
-     assert doit is orig.doit
- 
-     del proxy.doit
--    py.test.raises(AttributeError, "orig.doit")
-+    try:
-+        orig.doit
-+    except AttributeError:
-+        pass
- 
-     proxy.doit = doit
-     assert orig.doit is doit

Copied: python-apipkg/repos/community-any/apipkg-pytest5.patch (from rev 1072926, python-apipkg/trunk/apipkg-pytest5.patch)
===================================================================
--- apipkg-pytest5.patch	                        (rev 0)
+++ apipkg-pytest5.patch	2021-12-15 08:09:06 UTC (rev 1072927)
@@ -0,0 +1,42 @@
+diff --git a/test_apipkg.py b/test_apipkg.py
+index 2b7ca1b..ce75aee 100644
+--- a/test_apipkg.py
++++ b/test_apipkg.py
+@@ -13,7 +13,7 @@ ModuleType = types.ModuleType
+ class TestRealModule:
+ 
+     def setup_class(cls):
+-        cls.tmpdir = py.test.ensuretemp('test_apipkg')
++        cls.tmpdir = py.path.local('test_apipkg')
+         sys.path = [str(cls.tmpdir)] + sys.path
+         pkgdir = cls.tmpdir.ensure('realtest', dir=1)
+ 
+@@ -319,10 +319,12 @@ def test_error_loading_one_element(monkeypatch, tmpdir):
+     import errorloading1
+     assert isinstance(errorloading1, apipkg.ApiModule)
+     assert errorloading1.y == 0
+-    py.test.raises(ImportError, 'errorloading1.x')
+-    py.test.raises(ImportError, 'errorloading1.x')
+-
+-
++    try:
++        errorloading1.x
++    except ImportError:
++        pass
++        
++        
+ def test_onfirstaccess(tmpdir, monkeypatch):
+     pkgdir = tmpdir.mkdir("firstaccess")
+     pkgdir.join('__init__.py').write(py.code.Source("""
+@@ -493,7 +495,10 @@ def test_aliasmodule_proxy_methods(tmpdir, monkeypatch):
+     assert doit is orig.doit
+ 
+     del proxy.doit
+-    py.test.raises(AttributeError, "orig.doit")
++    try:
++        orig.doit
++    except AttributeError:
++        pass
+ 
+     proxy.doit = doit
+     assert orig.doit is doit



More information about the arch-commits mailing list