[arch-commits] Commit in python-apipkg/repos/community-staging-any (4 files)
Felix Yan
felixonmars at archlinux.org
Wed Nov 11 10:35:28 UTC 2020
Date: Wednesday, November 11, 2020 @ 10:35:28
Author: felixonmars
Revision: 750141
archrelease: copy trunk to community-staging-any
Added:
python-apipkg/repos/community-staging-any/PKGBUILD
(from rev 750137, python-apipkg/trunk/PKGBUILD)
python-apipkg/repos/community-staging-any/apipkg-pytest5.patch
(from rev 750138, python-apipkg/trunk/apipkg-pytest5.patch)
Deleted:
python-apipkg/repos/community-staging-any/PKGBUILD
python-apipkg/repos/community-staging-any/apipkg-pytest5.patch
----------------------+
PKGBUILD | 98 ++++++++++++++++++++++++-------------------------
apipkg-pytest5.patch | 84 +++++++++++++++++++++---------------------
2 files changed, 91 insertions(+), 91 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-11 10:35:27 UTC (rev 750140)
+++ PKGBUILD 2020-11-11 10:35:28 UTC (rev 750141)
@@ -1,49 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-apipkg
-pkgname=('python-apipkg' 'python2-apipkg')
-pkgver=1.5
-pkgrel=4
-pkgdesc="Namespace control and lazy-import mechanism"
-arch=('any')
-license=('MIT')
-url="https://github.com/pytest-dev/apipkg"
-makedepends=('python-setuptools' 'python2-setuptools')
-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-staging-any/PKGBUILD (from rev 750137, python-apipkg/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-11 10:35:28 UTC (rev 750141)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-apipkg
+pkgname=('python-apipkg' 'python2-apipkg')
+pkgver=1.5
+pkgrel=5
+pkgdesc="Namespace control and lazy-import mechanism"
+arch=('any')
+license=('MIT')
+url="https://github.com/pytest-dev/apipkg"
+makedepends=('python-setuptools' 'python2-setuptools')
+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
+}
Deleted: apipkg-pytest5.patch
===================================================================
--- apipkg-pytest5.patch 2020-11-11 10:35:27 UTC (rev 750140)
+++ apipkg-pytest5.patch 2020-11-11 10:35:28 UTC (rev 750141)
@@ -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-staging-any/apipkg-pytest5.patch (from rev 750138, python-apipkg/trunk/apipkg-pytest5.patch)
===================================================================
--- apipkg-pytest5.patch (rev 0)
+++ apipkg-pytest5.patch 2020-11-11 10:35:28 UTC (rev 750141)
@@ -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