summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Moch2018-11-01 05:10:37 -0400
committerDaniel Moch2018-11-01 05:10:37 -0400
commit18006913f074ab3e31b6615ffeb49659678cb3e5 (patch)
treed5ef075c709b85105059876dcb14fd4404a8e9cc
parentf01d31309b5f2a1e4660f569b79e3c0444533a46 (diff)
downloadaur-18006913f074ab3e31b6615ffeb49659678cb3e5.tar.gz
upgpkg: python-hookmeup 1.0.3-1
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD39
2 files changed, 44 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 921f25ba3e4..271cf6e0337 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = python-hookmeup
pkgdesc = A Git hook to automate your Pipenv and Django workflow
- pkgver = 1.0.2
+ pkgver = 1.0.3
pkgrel = 1
url = https://github.com/djmoch/hookmeup
arch = any
@@ -9,14 +9,21 @@ pkgbase = python-hookmeup
checkdepends = python-pytest-cov
checkdepends = python-pytest-mock
checkdepends = python-mock
+ checkdepends = python2-pytest
+ checkdepends = python2-pytest-cov
+ checkdepends = python2-pytest-mock
+ checkdepends = python2-mock
makedepends = python-pip
+ makedepends = python2-pip
makedepends = flit
- depends = python
- provides = python-hookmeup
- source = hookmeup-1.0.2.tar.gz::https://files.pythonhosted.org/packages/source/h/hookmeup/hookmeup-1.0.2.tar.gz
- source = hookmeup-1.0.2.tar.gz.asc::https://files.pythonhosted.org/packages/source/h/hookmeup/hookmeup-1.0.2.tar.gz.asc
+ source = hookmeup-1.0.3.tar.gz::https://files.pythonhosted.org/packages/source/h/hookmeup/hookmeup-1.0.3.tar.gz
+ source = hookmeup-1.0.3.tar.gz.asc::https://files.pythonhosted.org/packages/source/h/hookmeup/hookmeup-1.0.3.tar.gz.asc
validpgpkeys = 72A97F7072DDCE28058DEF30323C9F1784BDDD43
- sha256sums = cd20f4a73db367849a73d4b5a712e7d066d1875a6d21fda4e826bf55146f81ec
+ sha256sums = 4dab750646c6d99fe65f85d9468a267210ffb843dc39bca119fec25bff01de87
sha256sums = SKIP
pkgname = python-hookmeup
+ depends = python
+
+pkgname = python2-hookmeup
+ depends = python2
diff --git a/PKGBUILD b/PKGBUILD
index af48f7adeeb..8758fa8dc09 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,42 +1,65 @@
# Maintainer: Daniel Moch <daniel@danielmoch.com>
-pkgname=python-hookmeup
+pkgbase=python-hookmeup
+pkgname=('python-hookmeup' 'python2-hookmeup')
_name=${pkgname#python-}
-pkgver=1.0.2
+pkgver=1.0.3
pkgrel=1
pkgdesc='A Git hook to automate your Pipenv and Django workflow'
-provides=('python-hookmeup')
arch=('any')
url='https://github.com/djmoch/hookmeup'
license=('MIT')
-depends=('python')
-makedepends=('python-pip' 'flit')
+makedepends=('python-pip' 'python2-pip' 'flit')
checkdepends=('python-pytest'
'python-pytest-cov'
'python-pytest-mock'
- 'python-mock')
+ 'python-mock'
+ 'python2-pytest'
+ 'python2-pytest-cov'
+ 'python2-pytest-mock'
+ 'python2-mock')
source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
"${_name}-${pkgver}.tar.gz.asc::https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz.asc")
validpgpkeys=('72A97F7072DDCE28058DEF30323C9F1784BDDD43')
-sha256sums=('cd20f4a73db367849a73d4b5a712e7d066d1875a6d21fda4e826bf55146f81ec'
+sha256sums=('4dab750646c6d99fe65f85d9468a267210ffb843dc39bca119fec25bff01de87'
'SKIP')
+prepare() {
+ cp -a ${_name}-$pkgver{,-py2}
+}
+
build()
{
cd "${srcdir}/${_name}-${pkgver}"
flit build --format wheel
+
+ cd "${srcdir}/${_name}-${pkgver}-py2"
+ flit build --format wheel
}
check()
{
cd "${srcdir}/${_name}-${pkgver}"
python -m pytest
+
+ cd "${srcdir}/${_name}-${pkgver}-py2"
+ python2 -m pytest
}
-package()
+package_python-hookmeup()
{
+ depends=('python')
cd "${srcdir}/${_name}-${pkgver}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
pip install -I --no-warn-script-location --isolated --no-deps --compile --root="${pkgdir}" dist/${_name}-${pkgver}-py2.py3-none-any.whl
}
+package_python2-hookmeup()
+{
+ depends=('python2')
+ cd "${srcdir}/${_name}-${pkgver}-py2"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ pip2 install -I --no-warn-script-location --isolated --no-deps --compile --root="${pkgdir}" dist/${_name}-${pkgver}-py2.py3-none-any.whl
+ mv "${pkgdir}/usr/bin/hookmeup" "${pkgdir}/usr/bin/hookmeup2"
+}
+
# vim: ft=PKGBUILD sts=2 sw=2 et