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

Felix Yan felixonmars at archlinux.org
Fri Nov 1 20:23:48 UTC 2019


    Date: Friday, November 1, 2019 @ 20:23:48
  Author: felixonmars
Revision: 522090

archrelease: copy trunk to community-staging-any

Added:
  python-dephell-licenses/repos/community-staging-any/PKGBUILD
    (from rev 522089, python-dephell-licenses/trunk/PKGBUILD)
  python-dephell-licenses/repos/community-staging-any/dephell-licenses-fix-test.patch
    (from rev 522089, python-dephell-licenses/trunk/dephell-licenses-fix-test.patch)
Deleted:
  python-dephell-licenses/repos/community-staging-any/PKGBUILD

---------------------------------+
 PKGBUILD                        |   89 ++++++++++++++++++++------------------
 dephell-licenses-fix-test.patch |   10 ++++
 2 files changed, 57 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-01 20:23:32 UTC (rev 522089)
+++ PKGBUILD	2019-11-01 20:23:48 UTC (rev 522090)
@@ -1,42 +0,0 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-
-_pkgname=dephell-licenses
-pkgname=python-dephell-licenses
-pkgver=0.1.6
-pkgrel=2
-pkgdesc="Manage OSS licenses: retrieve information, generate"
-arch=('any')
-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')
-
-prepare() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    # pycache slipped into release tarballs
-    find . -name \*.pyc -delete
-}
-
-build(){
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python setup.py build
-}
-
-check() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python -m pytest
-}
-
-package() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python-dephell-licenses/repos/community-staging-any/PKGBUILD (from rev 522089, python-dephell-licenses/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-11-01 20:23:48 UTC (rev 522090)
@@ -0,0 +1,47 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell-licenses
+pkgname=python-dephell-licenses
+pkgver=0.1.6
+pkgrel=3
+pkgdesc="Manage OSS licenses: retrieve information, generate"
+arch=('any')
+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"
+         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
+}
+
+build(){
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py build
+}
+
+check() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python -m pytest
+}
+
+package() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}

Copied: python-dephell-licenses/repos/community-staging-any/dephell-licenses-fix-test.patch (from rev 522089, python-dephell-licenses/trunk/dephell-licenses-fix-test.patch)
===================================================================
--- dephell-licenses-fix-test.patch	                        (rev 0)
+++ dephell-licenses-fix-test.patch	2019-11-01 20:23:48 UTC (rev 522090)
@@ -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