[arch-commits] Commit in python-flask-socketio/repos/community-any (PKGBUILD PKGBUILD)
Levente Polyak
anthraxx at gemini.archlinux.org
Thu Feb 24 22:34:55 UTC 2022
Date: Thursday, February 24, 2022 @ 22:34:55
Author: anthraxx
Revision: 1136518
archrelease: copy trunk to community-any
Added:
python-flask-socketio/repos/community-any/PKGBUILD
(from rev 1136517, python-flask-socketio/trunk/PKGBUILD)
Deleted:
python-flask-socketio/repos/community-any/PKGBUILD
----------+
PKGBUILD | 79 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 40 insertions(+), 39 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-24 22:34:50 UTC (rev 1136517)
+++ PKGBUILD 2022-02-24 22:34:55 UTC (rev 1136518)
@@ -1,39 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-
-pkgname=python-flask-socketio
-_pkgname=Flask-SocketIO
-pkgver=5.1.0
-pkgrel=3
-pkgdesc='Socket.IO integration for Flask applications'
-url='https://flask-socketio.readthedocs.org/'
-arch=('any')
-license=('MIT')
-depends=('python' 'python-flask' 'python-eventlet' 'python-socketio')
-makedepends=('python-setuptools' 'python-sphinx')
-checkdepends=('python-coverage' 'python-pytest')
-options=('!makeflags')
-source=(https://github.com/miguelgrinberg/Flask-SocketIO/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('701279d7cb98305e92a96950e9c91e06ba6528faea136c62bedd1882dfc39b9dad0b30b80c8138289933fed74d2b2949fb9236adb0ea8bf5d96ba7fd487c6a44')
-b2sums=('2306f1f886bbbec9b3dbe6ef6f93df7727adb3f486ea23c42b74949807439d738bc5523020e97a654bb23a19b648e10d26410edc6b767c3ae8f09441e3058b1c')
-
-build() {
- cd ${_pkgname}-${pkgver}
- python setup.py build
- make -C docs man text SPHINXBUILD=sphinx-build
-}
-
-check() {
- cd ${_pkgname}-${pkgver}
- py.test test_socketio.py
-}
-
-package() {
- cd ${_pkgname}-${pkgver}
- python setup.py install -O1 --root="${pkgdir}" --skip-build
- install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
- install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -Dm 644 docs/_build/text/index.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
- install -Dm 644 docs/_build/man/flask-socketio.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
-}
-
-# vim: ts=2 sw=2 et:
Copied: python-flask-socketio/repos/community-any/PKGBUILD (from rev 1136517, python-flask-socketio/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-02-24 22:34:55 UTC (rev 1136518)
@@ -0,0 +1,40 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-flask-socketio
+_pkgname=Flask-SocketIO
+pkgver=5.1.1
+pkgrel=1
+pkgdesc='Socket.IO integration for Flask applications'
+url='https://flask-socketio.readthedocs.org/'
+arch=('any')
+license=('MIT')
+depends=('python' 'python-flask' 'python-eventlet' 'python-socketio')
+makedepends=('python-setuptools' 'python-sphinx' 'python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-coverage' 'python-pytest' 'python-tox-current-env' 'flake8')
+options=('!makeflags')
+source=(https://github.com/miguelgrinberg/Flask-SocketIO/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('12510b0d853a03d613782a7ed23cf791a3c6c5f8c55e78308c3e635be22384ba7bb207811846d14252fcf4ff21ab42c27f6390382baabf393f1eba24b6a80861')
+b2sums=('4a6a8fffcf27b350616ee4017569b2d55cb352d4b3d71739aee4e872e016e6adc349bf3e79f3b3fcc20e63ab1bec4ebf08776fa32a8972a0d2769672cc448e5f')
+
+build() {
+ cd ${_pkgname}-${pkgver}
+ python -m build --wheel --no-isolation
+ make -C docs man text SPHINXBUILD=sphinx-build
+}
+
+check() {
+ cd ${_pkgname}-${pkgver}
+ PYTHONPATH="build/lib" pytest test_socketio.py
+}
+
+package() {
+ cd ${_pkgname}-${pkgver}
+ python -m installer --destdir="${pkgdir}" dist/*.whl
+
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 docs/_build/text/index.txt -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 docs/_build/man/flask-socketio.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list