[arch-commits] Commit in python-cookiecutter/trunk (2 files)
David Runge
dvzrv at archlinux.org
Tue Apr 21 08:00:30 UTC 2020
Date: Tuesday, April 21, 2020 @ 08:00:29
Author: dvzrv
Revision: 617313
upgpkg: python-cookiecutter 1.7.2-1: Upgrading to 1.7.2.
Removing the (now upstreamed) patch for click output.
Modified:
python-cookiecutter/trunk/PKGBUILD
Deleted:
python-cookiecutter/trunk/python-cookiecutter-1.7.0-cli_tests.patch
-------------------------------------------+
PKGBUILD | 17 ++++++-----------
python-cookiecutter-1.7.0-cli_tests.patch | 24 ------------------------
2 files changed, 6 insertions(+), 35 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-21 05:29:04 UTC (rev 617312)
+++ PKGBUILD 2020-04-21 08:00:29 UTC (rev 617313)
@@ -2,28 +2,23 @@
_name=cookiecutter
pkgname=python-cookiecutter
-pkgver=1.7.0
-pkgrel=2
+pkgver=1.7.2
+pkgrel=1
pkgdesc="A command-line utility that creates projects from project templates"
arch=('any')
url="https://github.com/cookiecutter/cookiecutter"
license=('BSD')
depends=('python-binaryornot' 'python-click' 'python-future' 'python-jinja'
-'python-jinja-time' 'python-poyo' 'python-requests' 'python-whichcraft')
+'python-jinja-time' 'python-poyo' 'python-requests' 'python-slugify'
+'python-whichcraft')
makedepends=('python-setuptools')
checkdepends=('git' 'python-freezegun' 'python-pytest' 'python-pytest-cov'
'python-pytest-mock')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
- "${pkgname}-1.7.0-cli_tests.patch")
-sha512sums=('c57315251085ed55494d09564a43dd6348971f8b78e5755642cd64473a73b03c00a7c513f5dd05d098db9fd7a74aef90f115975386084f3df8abc08fd318922c'
- '6bac3de41862373593345f7f9face57385473784f6fff367585314bade2262c0b55564f817092f32f38b0b166a5fc2f65cfcbcca4a431719858e8e7b59637df2')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('8fb6db75703a2c6276d275817b81c0e5d5f15226236e8c5442fbda6198aaec19c3fd68c030f79f6bca55258c0c248660b32d1344f7d6b06ecf5563b43474d877')
prepare() {
mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
- cd "$pkgname-$pkgver"
- # fixing issues with click output:
- # https://github.com/cookiecutter/cookiecutter/issues/1327
- patch -Np1 -i "../${pkgname}-1.7.0-cli_tests.patch"
}
build() {
Deleted: python-cookiecutter-1.7.0-cli_tests.patch
===================================================================
--- python-cookiecutter-1.7.0-cli_tests.patch 2020-04-21 05:29:04 UTC (rev 617312)
+++ python-cookiecutter-1.7.0-cli_tests.patch 2020-04-21 08:00:29 UTC (rev 617313)
@@ -1,24 +0,0 @@
-diff -ruN a/tests/test_cli.py b/tests/test_cli.py
---- a/tests/test_cli.py 2019-12-21 19:29:52.000000000 +0100
-+++ b/tests/test_cli.py 2020-03-14 11:53:20.505357215 +0100
-@@ -390,7 +390,7 @@
- 'ExtraContextWithNoEqualsSoInvalid',
- )
- assert result.exit_code == 2
-- assert 'Error: Invalid value for "[EXTRA_CONTEXT]..."' in result.output
-+ assert "Error: Invalid value for '[EXTRA_CONTEXT]...'" in result.output
- assert 'should contain items of the form key=value' in result.output
-
-
-diff -ruN a/tests/test_cookiecutter_invocation.py b/tests/test_cookiecutter_invocation.py
---- a/tests/test_cookiecutter_invocation.py 2019-12-21 19:29:52.000000000 +0100
-+++ b/tests/test_cookiecutter_invocation.py 2020-03-14 11:52:17.332550458 +0100
-@@ -23,7 +23,7 @@
- subprocess.check_call([sys.executable, '-m', 'cookiecutter.cli'])
-
- _, err = capfd.readouterr()
-- exp_message = 'Error: Missing argument "TEMPLATE".'
-+ exp_message = "Error: Missing argument 'TEMPLATE'."
- assert exp_message in err
-
-
More information about the arch-commits
mailing list