[arch-commits] Commit in python-wtforms/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Fri Nov 8 23:56:55 UTC 2019
Date: Friday, November 8, 2019 @ 23:56:55
Author: arojas
Revision: 524749
Drop python2
Modified:
python-wtforms/trunk/PKGBUILD
----------+
PKGBUILD | 35 +++++++----------------------------
1 file changed, 7 insertions(+), 28 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-08 23:56:07 UTC (rev 524748)
+++ PKGBUILD 2019-11-08 23:56:55 UTC (rev 524749)
@@ -4,8 +4,7 @@
# Contributor: mitsuse <mitsuse at gmail>
_pyname=wtforms
-pkgbase=python-wtforms
-pkgname=('python-wtforms' 'python2-wtforms')
+pkgname=python-wtforms
pkgver=2.2.1
pkgrel=6
pkgdesc='Flexible forms validation and rendering library for python web development'
@@ -12,28 +11,18 @@
url='https://wtforms.readthedocs.io/'
arch=('any')
license=('BSD')
-makedepends=('python-setuptools' 'python-babel' 'python-sphinx'
- 'python2-setuptools' 'python2-babel' 'python2-sphinx')
+depends=('python')
+makedepends=('python-setuptools' 'python-babel' 'python-sphinx')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/wtforms/wtforms/archive/${pkgver}.tar.gz)
sha512sums=('db989ff5352d6834fc51c0ed208de11c12a2c0ad90f73dfeaa8f9995edc7f840deb427f1ffc6167f1c24e44f2137ecbb27ee1113258a6c55ed256a603657ef97')
-prepare() {
- cp -a ${_pyname}-${pkgver}{,-py2}
-}
-
build() {
- (cd ${_pyname}-${pkgver}
- python setup.py compile_catalog build
- make -C docs html SPHINXBUILD=sphinx-build
- )
- (cd ${_pyname}-${pkgver}-py2
- python2 setup.py compile_catalog build
- make -C docs html SPHINXBUILD=sphinx-build2
- )
+ cd ${_pyname}-${pkgver}
+ python setup.py compile_catalog build
+ make -C docs html SPHINXBUILD=sphinx-build
}
-package_python-wtforms() {
- depends=('python')
+package() {
cd ${_pyname}-${pkgver}
python setup.py install --root="${pkgdir}" -O1
find "$pkgdir" -type f -name \*.po -delete
@@ -42,14 +31,4 @@
cp -r docs/_build/html "${pkgdir}/usr/share/doc/${pkgname}/html"
}
-package_python2-wtforms() {
- depends=('python2')
- cd ${_pyname}-${pkgver}-py2
- python2 setup.py install --root="${pkgdir}" -O1
- find "$pkgdir" -type f -name \*.po -delete
- install -Dm 644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}"
- install -Dm 644 CHANGES.rst README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
- cp -r docs/_build/html "${pkgdir}/usr/share/doc/${pkgname}/html"
-}
-
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list