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

Eli Schwartz eschwartz at archlinux.org
Mon May 18 04:45:01 UTC 2020


    Date: Monday, May 18, 2020 @ 04:44:59
  Author: eschwartz
Revision: 629162

archrelease: copy trunk to community-any

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

---------------------------------+
 PKGBUILD                        |   82 ++++++++++++++++----------------------
 dephell-licenses-fix-test.patch |   20 ++++-----
 2 files changed, 45 insertions(+), 57 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-18 04:44:16 UTC (rev 629161)
+++ PKGBUILD	2020-05-18 04:44:59 UTC (rev 629162)
@@ -1,47 +0,0 @@
-# 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-any/PKGBUILD (from rev 629161, python-dephell-licenses/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-18 04:44:59 UTC (rev 629162)
@@ -0,0 +1,35 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell-licenses
+pkgname=python-dephell-licenses
+pkgver=0.1.7
+pkgrel=1
+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=('f175cec822a32bda5b56442f48dae39efbb5c3851275ecd41cfd7e849ddd2ea6')
+b2sums=('954daf4a725dd1061ae60c35a86295b9bcc835eb9f219f3a9fe0e19a710a11ed0fa94ff324b5a4171cf09566abc39c113a96226c71f21a54eae459cf0e10cc18')
+
+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
+}

Deleted: dephell-licenses-fix-test.patch
===================================================================
--- dephell-licenses-fix-test.patch	2020-05-18 04:44:16 UTC (rev 629161)
+++ dephell-licenses-fix-test.patch	2020-05-18 04:44:59 UTC (rev 629162)
@@ -1,10 +0,0 @@
-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')

Copied: python-dephell-licenses/repos/community-any/dephell-licenses-fix-test.patch (from rev 629161, python-dephell-licenses/trunk/dephell-licenses-fix-test.patch)
===================================================================
--- dephell-licenses-fix-test.patch	                        (rev 0)
+++ dephell-licenses-fix-test.patch	2020-05-18 04:44:59 UTC (rev 629162)
@@ -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