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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 14:45:41 UTC 2021


    Date: Tuesday, November 30, 2021 @ 14:45:41
  Author: felixonmars
Revision: 1057716

archrelease: copy trunk to community-staging-any

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

---------------------------------+
 PKGBUILD                        |   35 +++++++++++++++++++++++++++++++++++
 dephell-licenses-fix-test.patch |   10 ++++++++++
 2 files changed, 45 insertions(+)

Copied: python-dephell-licenses/repos/community-staging-any/PKGBUILD (from rev 1057715, python-dephell-licenses/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 14:45:41 UTC (rev 1057716)
@@ -0,0 +1,35 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell-licenses
+pkgname=python-dephell-licenses
+pkgver=0.1.7
+pkgrel=5
+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
+}

Copied: python-dephell-licenses/repos/community-staging-any/dephell-licenses-fix-test.patch (from rev 1057715, python-dephell-licenses/trunk/dephell-licenses-fix-test.patch)
===================================================================
--- community-staging-any/dephell-licenses-fix-test.patch	                        (rev 0)
+++ community-staging-any/dephell-licenses-fix-test.patch	2021-11-30 14:45:41 UTC (rev 1057716)
@@ -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