[arch-commits] Commit in python-crashtest/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 21:12:28 UTC 2021
Date: Tuesday, November 30, 2021 @ 21:12:27
Author: felixonmars
Revision: 1058848
archrelease: copy trunk to community-staging-any
Added:
python-crashtest/repos/community-staging-any/
python-crashtest/repos/community-staging-any/PKGBUILD
(from rev 1058844, python-crashtest/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-crashtest/repos/community-staging-any/PKGBUILD (from rev 1058844, python-crashtest/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 21:12:27 UTC (rev 1058848)
@@ -0,0 +1,41 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=crashtest
+pkgname=python-crashtest
+pkgver=0.3.1
+pkgrel=4
+pkgdesc="supposedly makes exceptions handling and inspection easier"
+arch=('any')
+url="https://github.com/sdispater/${_pkgname}"
+license=('MIT')
+depends=('python')
+makedepends=('python-dephell' 'python-setuptools')
+checkdepends=('python-pytest')
+source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('8070032b432b523ff7a6d03251f0553da1d0f7643a27cedc4cd7652e67e3b19e')
+b2sums=('b90465ee736ec0d9c378ed16327fe5bbddf19066a64a2a9d1c454f38eac5321235cafeb20756b2018e1dfea0e07726696084b8965a2543edc5e9fe0d79c33db1')
+
+prepare() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+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