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

Antonio Rojas arojas at gemini.archlinux.org
Sat Dec 25 13:55:59 UTC 2021


    Date: Saturday, December 25, 2021 @ 13:55:58
  Author: arojas
Revision: 1083638

archrelease: copy trunk to community-any

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

----------------------+
 PKGBUILD             |   65 +++++++++++++++++++++----------------------------
 apipkg-pytest5.patch |   42 -------------------------------
 2 files changed, 29 insertions(+), 78 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-25 13:55:49 UTC (rev 1083637)
+++ PKGBUILD	2021-12-25 13:55:58 UTC (rev 1083638)
@@ -1,36 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-apipkg
-pkgver=1.5
-pkgrel=9
-pkgdesc="Namespace control and lazy-import mechanism"
-arch=('any')
-license=('MIT')
-url="https://github.com/pytest-dev/apipkg"
-makedepends=('python-setuptools' 'python-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
-}
-
-check() {
-  cd apipkg-$pkgver
-  python setup.py pytest
-}
-
-package() {
-  cd apipkg-$pkgver
-  python 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 1083637, python-apipkg/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-25 13:55:58 UTC (rev 1083638)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-apipkg
+pkgver=2.1.0
+pkgrel=1
+pkgdesc="Namespace control and lazy-import mechanism"
+arch=('any')
+license=('MIT')
+url="https://github.com/pytest-dev/apipkg"
+makedepends=('python-setuptools' 'python-setuptools-scm')
+checkdepends=('python-pytest-runner')
+source=("https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-$pkgver.tar.gz")
+sha512sums=('2281ffc999feddcc6073edcbb8512ded4240aaa1b472a81bbbd942da1601319ab6038387e08a2a14c962995ce94bab2e99f5a7747f8744e6af8d97abd076203b')
+
+build() {
+  cd apipkg-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd apipkg-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd apipkg-$pkgver
+  python 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-25 13:55:49 UTC (rev 1083637)
+++ apipkg-pytest5.patch	2021-12-25 13:55:58 UTC (rev 1083638)
@@ -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



More information about the arch-commits mailing list