[arch-commits] Commit in python-dephell-changelogs/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 16:50:14 UTC 2020


    Date: Monday, November 9, 2020 @ 16:50:13
  Author: felixonmars
Revision: 747588

archrelease: copy trunk to community-staging-any

Added:
  python-dephell-changelogs/repos/community-staging-any/
  python-dephell-changelogs/repos/community-staging-any/PKGBUILD
    (from rev 747584, python-dephell-changelogs/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: python-dephell-changelogs/repos/community-staging-any/PKGBUILD (from rev 747584, python-dephell-changelogs/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:50:13 UTC (rev 747588)
@@ -0,0 +1,35 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell_changelogs
+pkgname=python-dephell-changelogs
+pkgver=0.0.1
+pkgrel=2
+pkgdesc="Find changelog for github repository, local dir, parse changelog"
+arch=('any')
+url="https://github.com/dephell/${_pkgname}"
+license=('MIT')
+depends=('python-requests')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('e639a3d08d389e22fbac0cc64181dbe93c4b4ba9f0134e273e6dd3e26ae70b21')
+b2sums=('6ec5383ff411e944ea90ae1a47061fdbd3f8bb5cfe9342936a3bebe8fc1e1791f7a5b7dfdb6d2d25bcee3ab1bf28d8bbf9101bb5d317afb5705e909964c49f68')
+
+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
+}



More information about the arch-commits mailing list