David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
python-robot-detection


Commits:
83a6f21c by David Runge at 2024-04-05T20:50:31+02:00
Add nvchecker integration

Signed-off-by: David Runge <[email protected]>

- - - - -
5992bec6 by David Runge at 2024-04-05T20:51:16+02:00
Update url to current project location

Signed-off-by: David Runge <[email protected]>

- - - - -
19a8d8bf by David Runge at 2024-04-05T20:51:39+02:00
Remove comment about sdist tarballs

Signed-off-by: David Runge <[email protected]>

- - - - -
17484a2a by David Runge at 2024-04-05T20:53:23+02:00
Remove unnecessary quotes and curly braces

Signed-off-by: David Runge <[email protected]>

- - - - -
c4f16e60 by David Runge at 2024-04-05T20:57:30+02:00
Switch to PEP517 and unnittest

Signed-off-by: David Runge <[email protected]>

- - - - -
b8be6a32 by David Runge at 2024-04-05T20:58:09+02:00
Switch to correct SPDX license identifier

Signed-off-by: David Runge <[email protected]>

- - - - -
4b151498 by David Runge at 2024-04-05T20:59:12+02:00
upgpkg: 0.4.0-8: Rebuild against Python 3.12

- - - - -


3 changed files:

- + .SRCINFO
- + .nvchecker.toml
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -0,0 +1,17 @@
+pkgbase = python-robot-detection
+       pkgdesc = Detect web crawlers using HTTP User Agent
+       pkgver = 0.4.0
+       pkgrel = 8
+       url = https://github.com/amandasaurus/robot-detection
+       arch = any
+       license = GPL-3.0-or-later
+       makedepends = python-build
+       makedepends = python-installer
+       makedepends = python-setuptools
+       makedepends = python-wheel
+       depends = python
+       depends = python-six
+       source = 
python-robot-detection-0.4.0.tar.gz::https://github.com/amandasaurus/robot-detection/archive/v0.4.0.tar.gz
+       sha512sums = 
10b1fbd2307c375e3cd067e43bee1bc0ff71f4b83ede9b92d2fb8d60edfd6d4a8d1a4d06d74e3c0653056f2e2b2cb81a7e997047093e925bd79bf4626d33d85f
+
+pkgname = python-robot-detection


=====================================
.nvchecker.toml
=====================================
@@ -0,0 +1,4 @@
+[python-robot-detection]
+source = "git"
+git = "https://github.com/amandasaurus/robot-detection";
+prefix = "v"


=====================================
PKGBUILD
=====================================
@@ -3,39 +3,36 @@
 _name=robot-detection
 pkgname=python-robot-detection
 pkgver=0.4.0
-pkgrel=7
+pkgrel=8
 pkgdesc="Detect web crawlers using HTTP User Agent"
-arch=('any')
-url="https://github.com/rory/robot-detection";
-license=('GPL3')
-depends=('python-six')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-# sdist doesn't contain tests:
-# https://github.com/rory/robot-detection/issues/2
-source=("$pkgname-$pkgver.tar.gz::https://github.com/rory/${_name}/archive/v${pkgver}.tar.gz";)
+arch=(any)
+url="https://github.com/amandasaurus/robot-detection";
+license=(GPL-3.0-or-later)
+depends=(
+  python
+  python-six
+)
+makedepends=(
+  python-build
+  python-installer
+  python-setuptools
+  python-wheel
+)
+source=($pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz)
 
sha512sums=('10b1fbd2307c375e3cd067e43bee1bc0ff71f4b83ede9b92d2fb8d60edfd6d4a8d1a4d06d74e3c0653056f2e2b2cb81a7e997047093e925bd79bf4626d33d85f')
 
-prepare() {
-  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
-}
-
 build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
 }
 
 check() {
-  cd "$pkgname-$pkgver"
-  export PYTHONPATH="${PWD}/build:${PYTHONPATH}"
-  python ./tests.py
+  cd $_name-$pkgver
+  python -m unittest discover -v
 }
 
 package() {
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-robot-detection/-/compare/ec2069349d47cc4768261c13c2d67790f5f6d03d...4b151498230afb52298655446b8736c4c40619f3

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-robot-detection/-/compare/ec2069349d47cc4768261c13c2d67790f5f6d03d...4b151498230afb52298655446b8736c4c40619f3
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to