[arch-commits] Commit in python-watchgod/trunk (PKGBUILD)
Maxime Gauduin
alucryd at gemini.archlinux.org
Thu Aug 18 13:10:25 UTC 2022
Date: Thursday, August 18, 2022 @ 13:10:25
Author: alucryd
Revision: 1267342
FS#74650: package the actual last version of watchgod
Modified:
python-watchgod/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++--------------------
1 file changed, 13 insertions(+), 20 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-18 13:05:33 UTC (rev 1267341)
+++ PKGBUILD 2022-08-18 13:10:25 UTC (rev 1267342)
@@ -1,39 +1,32 @@
# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-_pkgname=watchgod
-pkgname=python-$_pkgname
-pkgver=0.13
+pkgname=python-watchgod
+pkgver=0.8.2
pkgrel=1
+epoch=1
pkgdesc='Simple, modern file watching and code reload in python'
arch=('any')
-url='https://github.com/samuelcolvin/watchgod'
+url='https://github.com/samuelcolvin/watchfiles'
license=('MIT')
-depends=('python')
-makedepends=('git' 'python-setuptools' 'python-setuptools-rust' 'rust')
-_tag=d12bfec6ed873d76e0f1d31f086b2c1a30790676
-source=("git+$url#tag=${_tag}")
-sha512sums=('SKIP')
+depends=('python' 'python-anyio')
+makedepends=('python-setuptools' 'python-setuptools-rust' 'rust')
+source=("watchgod-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
+sha512sums=('a44b831352ace03c450781bc815b1813c44c386d666a9b724b562ff69228705651bfc23e81b7344d0f79c62577d4f910b323c734298e2a609f85bbc4a0f0498e')
-pkgver() {
- cd $_pkgname
-
- _version=$(git describe --tags | sed 's/^v//')
- sed "s/0.0.dev0/${_version}/" -i watchfiles/version.py
- echo ${_version}
+prepare() {
+ cd watchfiles-$pkgver
+ sed "s/0.0.dev0/$pkgver/" -i watchgod/version.py
}
build() {
- cd $_pkgname
-
+ cd watchfiles-$pkgver
python setup.py build
}
package() {
- cd $_pkgname
-
+ cd watchfiles-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list