Date: Wednesday, August 12, 2020 @ 06:55:46 Author: felixonmars Revision: 675579
upgpkg: python-iniconfig 1.0.1-1 Modified: python-iniconfig/trunk/PKGBUILD Deleted: python-iniconfig/trunk/pytest5.patch ---------------+ PKGBUILD | 15 ++++++--------- pytest5.patch | 54 ------------------------------------------------------ 2 files changed, 6 insertions(+), 63 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-08-12 06:55:07 UTC (rev 675578) +++ PKGBUILD 2020-08-12 06:55:46 UTC (rev 675579) @@ -2,8 +2,8 @@ pkgbase=python-iniconfig pkgname=(python-iniconfig python2-iniconfig) -pkgver=1.0.0 -pkgrel=4 +pkgver=1.0.1 +pkgrel=1 pkgdesc="brain-dead simple config-ini parsing" url="https://github.com/RonnyPfannschmidt/iniconfig" license=('MIT') @@ -11,16 +11,13 @@ makedepends=('python-setuptools' 'python2-setuptools' 'python-setuptools-scm' 'python2-setuptools-scm') checkdepends=('python-pytest-runner' 'python2-pytest-runner') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/RonnyPfannschmidt/iniconfig/archive/v$pkgver.tar.gz" - 'pytest5.patch') -sha512sums=('d8048af40145a5312784c5d1a9afaa052528ffdef56e47aa9be7f727d946426a43b8e934edce6b46024b83771c151ef544787e8422c74adeda2ccc8913aedd5c' - 'db500dcdbc358db130569c8f7a199e34b37a4f0693dc99064fdcc4f7968048f118f942bed84332c4399fea9f64d1d84ed5e3502ba26e48e7290d2ca31ea87638') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/RonnyPfannschmidt/iniconfig/archive/v$pkgver.tar.gz") +sha512sums=('64ad4be06bddd1c3cfbd5015317701eb30ca3da322d792b691646b97ac1adbe5b811bac7d7db5f0e48236176968360e825c17e433f3d6f67a519cf400ce8590a') +export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver + prepare() { - patch -Np1 -d iniconfig-$pkgver <pytest5.patch cp -a iniconfig-$pkgver{,-py2} - - export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver } build() { Deleted: pytest5.patch =================================================================== --- pytest5.patch 2020-08-12 06:55:07 UTC (rev 675578) +++ pytest5.patch 2020-08-12 06:55:46 UTC (rev 675579) @@ -1,54 +0,0 @@ -From 41076a67c333d96be14557ecbb29995f98744bd7 Mon Sep 17 00:00:00 2001 -From: Stanislav Levin <[email protected]> -Date: Thu, 8 Aug 2019 19:43:12 +0300 -Subject: [PATCH] Fix Pytest 5 errors - -This fixes -""" -pytest.PytestDeprecationWarning: raises(..., 'code(as_a_string)') -is deprecated, use the context manager form or use `exec()` directly. -""" - -Fixes: https://github.com/RonnyPfannschmidt/iniconfig/issues/6 -Signed-off-by: Stanislav Levin <[email protected]> ---- - test_iniconfig.py | 12 +++++------- - 1 file changed, 5 insertions(+), 7 deletions(-) - -diff --git a/test_iniconfig.py b/test_iniconfig.py -index 27fd53f..fe12421 100644 ---- a/test_iniconfig.py -+++ b/test_iniconfig.py -@@ -150,27 +150,25 @@ def test_iniconfig_from_file(tmpdir): - assert list(config.sections) == ['metadata'] - config = IniConfig(path, "[diff]") - assert list(config.sections) == ['diff'] -- py.test.raises(TypeError, "IniConfig(data=path.read())") -+ with pytest.raises(TypeError): -+ IniConfig(data=path.read()) - - - def test_iniconfig_section_first(tmpdir): -- excinfo = py.test.raises(ParseError, """ -+ with pytest.raises(ParseError) as excinfo: - IniConfig("x", data='name=1') -- """) - assert excinfo.value.msg == "no section header defined" - - - def test_iniconig_section_duplicate_fails(): -- excinfo = py.test.raises(ParseError, r""" -+ with pytest.raises(ParseError) as excinfo: - IniConfig("x", data='[section]\n[section]') -- """) - assert 'duplicate section' in str(excinfo.value) - - - def test_iniconfig_duplicate_key_fails(): -- excinfo = py.test.raises(ParseError, r""" -+ with pytest.raises(ParseError) as excinfo: - IniConfig("x", data='[section]\nname = Alice\nname = bob') -- """) - - assert 'duplicate name' in str(excinfo.value) -
