summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Moch2018-12-20 05:15:57 -0500
committerDaniel Moch2018-12-20 05:15:57 -0500
commit53eb9870ab554930316a1e5fab703f364f1ebae7 (patch)
treef9c51f032a86a4e03dc3db94a2439d77df694e78
parentb40b3dbfd237a140a4079f8709f2508c54fe629d (diff)
downloadaur-53eb9870ab554930316a1e5fab703f364f1ebae7.tar.gz
upgpkg: python-hookmeup 1.0.4-2
Remove unnecessary python2 build
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD39
2 files changed, 10 insertions, 43 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f8af99f6fd0..97c17358c9d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-hookmeup
pkgdesc = A Git hook to automate your Pipenv and Django workflow
pkgver = 1.0.4
- pkgrel = 1
+ pkgrel = 2
url = https://git.danielmoch.com/hookmeup
arch = any
license = MIT
@@ -9,21 +9,13 @@ 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
source = hookmeup-1.0.4.tar.gz::https://files.pythonhosted.org/packages/source/h/hookmeup/hookmeup-1.0.4.tar.gz
- source = hookmeup-1.0.4.tar.gz.asc::https://files.pythonhosted.org/packages/source/h/hookmeup/hookmeup-1.0.4.tar.gz.asc
+ source = hookmeup-1.0.4.tar.gz::https://files.pythonhosted.org/packages/source/h/hookmeup/hookmeup-1.0.4.tar.gz.asc
validpgpkeys = 72A97F7072DDCE28058DEF30323C9F1784BDDD43
sha256sums = 4a7f1be5b0ab20e1209235cebe14b18f08b2239abd56a7b94566fc1c9ab94d8a
sha256sums = SKIP
pkgname = python-hookmeup
- depends = python
-
-pkgname = python2-hookmeup
- depends = python2
diff --git a/PKGBUILD b/PKGBUILD
index be497a32665..184879f2da0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,65 +1,40 @@
# Maintainer: Daniel Moch <daniel@danielmoch.com>
-pkgbase=python-hookmeup
-pkgname=('python-hookmeup' 'python2-hookmeup')
+pkgname=python-hookmeup
_name=${pkgname#python-}
pkgver=1.0.4
-pkgrel=1
+pkgrel=2
pkgdesc='A Git hook to automate your Pipenv and Django workflow'
arch=('any')
url='https://git.danielmoch.com/hookmeup'
license=('MIT')
-makedepends=('python-pip' 'python2-pip' 'flit')
+depends=('python')
+makedepends=('python-pip' 'flit')
checkdepends=('python-pytest'
'python-pytest-cov'
'python-pytest-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")
+ 'python-mock')
+source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc})
validpgpkeys=('72A97F7072DDCE28058DEF30323C9F1784BDDD43')
sha256sums=('4a7f1be5b0ab20e1209235cebe14b18f08b2239abd56a7b94566fc1c9ab94d8a'
'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_python-hookmeup()
+package()
{
- 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