[arch-commits] Commit in python-dephell-versioning/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 15:23:33 UTC 2019
Date: Friday, October 25, 2019 @ 15:23:33
Author: felixonmars
Revision: 519010
archrelease: copy trunk to community-staging-any
Added:
python-dephell-versioning/repos/community-staging-any/
python-dephell-versioning/repos/community-staging-any/PKGBUILD
(from rev 519007, python-dephell-versioning/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-dephell-versioning/repos/community-staging-any/PKGBUILD (from rev 519007, python-dephell-versioning/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:23:33 UTC (rev 519010)
@@ -0,0 +1,42 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell_versioning
+pkgname=python-dephell-versioning
+pkgver=0.1.1
+pkgrel=2
+pkgdesc="Bump project version like a pro"
+arch=('any')
+url="https://github.com/dephell/${_pkgname}"
+license=('MIT')
+depends=('python-packaging')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('c438a39662fdf88b00196b56ece4e542db8fa9b16ee5c164a834451240026848')
+b2sums=('2574400f4638ef9d3c3484a821f6dfe17a430e4a4d03ba43c7e203012f18fd2bf066649527f72fbaab36c7fdbd9e5e262083dde0ca29699262520083878807d7')
+
+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
+}
More information about the arch-commits
mailing list