[arch-commits] Commit in python-dephell-licenses/trunk (2 files)

Antonio Rojas arojas at archlinux.org
Fri Nov 1 20:22:40 UTC 2019


    Date: Friday, November 1, 2019 @ 20:22:40
  Author: arojas
Revision: 522088

Fix wrong test, not sure how this could ever work

Added:
  python-dephell-licenses/trunk/dephell-licenses-fix-test.patch
Modified:
  python-dephell-licenses/trunk/PKGBUILD

---------------------------------+
 PKGBUILD                        |   13 +++++++++----
 dephell-licenses-fix-test.patch |   10 ++++++++++
 2 files changed, 19 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-01 20:07:29 UTC (rev 522087)
+++ PKGBUILD	2019-11-01 20:22:40 UTC (rev 522088)
@@ -6,18 +6,23 @@
 pkgrel=2
 pkgdesc="Manage OSS licenses: retrieve information, generate"
 arch=('any')
-url="https://github.com/dephell/${_pkgname}"
+url="https://github.com/dephell/${_pkgname/-/_}"
 license=('MIT')
 depends=('python-attrs' 'python-requests')
 makedepends=('python-setuptools')
 checkdepends=('python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-sha256sums=('e190c8c2bd63a1524943c734ead82877591356585c9fb4f85f80e156b68ca999')
-b2sums=('e04ecf71c05220e9b4891028fc7ef061debd3fdf7400366d26ab9bb4e2f4f3b271a150bb55e5073122f01c1223314fa0e57e60cdbe4361d257c5abfbd6d86e7c')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
+         dephell-licenses-fix-test.patch)
+sha256sums=('e190c8c2bd63a1524943c734ead82877591356585c9fb4f85f80e156b68ca999'
+            '74bcf5f1503485138f052ac3af2180da16bca7ebe629f16c049d5033756f271b')
+b2sums=('e04ecf71c05220e9b4891028fc7ef061debd3fdf7400366d26ab9bb4e2f4f3b271a150bb55e5073122f01c1223314fa0e57e60cdbe4361d257c5abfbd6d86e7c'
+        '8ca7ab788d9159ab03cfabb8673b18608fa5de5aab322ddd70d18558cd70f8d9030e0a60c3b2843f83b4c734805c3b4a77c97e9ffc2b131d5d3e152e79285105')
 
 prepare() {
     cd "${srcdir}"/${_pkgname}-${pkgver}
 
+    # fix wrong test
+    patch -p1 -i ../dephell-licenses-fix-test.patch
     # pycache slipped into release tarballs
     find . -name \*.pyc -delete
 }

Added: dephell-licenses-fix-test.patch
===================================================================
--- dephell-licenses-fix-test.patch	                        (rev 0)
+++ dephell-licenses-fix-test.patch	2019-11-01 20:22:40 UTC (rev 522088)
@@ -0,0 +1,10 @@
+diff --git a/tests/test_license.py b/tests/test_license.py
+index 093fa2c..340add7 100644
+--- a/tests/test_license.py
++++ b/tests/test_license.py
+@@ -8,4 +8,4 @@ def test_make_text():
+     assert 'beginOptional' not in license.make_text()
+     assert license.make_text().strip().startswith('MIT License')
+ 
+-    assert 'Copyright (c) 2018 Gram' in license.make_text(copyright='2018 Gram')
++    assert 'MIT License 2018 Gram' in license.make_text(copyright='2018 Gram')



More information about the arch-commits mailing list