Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages / 
python-rangehttpserver


Commits:
765f37a3 by Carl Smedstad at 2024-08-28T11:11:28+02:00
upgpkg: 1.4.0-1: Upstream release

https://github.com/danvk/RangeHTTPServer/releases/tag/1.4.0

Allows migrating off of the python-pytest7 dependency.
Todo: https://archlinux.org/todo/pytest7-removal/

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,17 +1,19 @@
 pkgbase = python-rangehttpserver
        pkgdesc = SimpleHTTPServer with support for Range requests
-       pkgver = 1.3.3
-       pkgrel = 2
+       pkgver = 1.4.0
+       pkgrel = 1
        url = https://github.com/danvk/RangeHTTPServer/
        arch = any
-       license = Apache
-       checkdepends = python-pytest7
+       license = Apache-2.0
+       checkdepends = python-pytest
        checkdepends = python-requests
-       makedepends = python
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
+       makedepends = python-wheel
        depends = python
-       source = 
python-rangehttpserver-1.3.3.tar.gz::https://github.com/danvk/RangeHTTPServer//archive/1.3.3.tar.gz
-       sha256sums = 
5232af4db9a87d0ee84b6d242b58c48c874062de74bf723a1205b7fdae1e872f
-       sha512sums = 
5d179766640bd408d70f083c9fbd7822cdc14a3205d8134f5e20e3c2e22a9e360d1c458b07b028f5f2242e1aa94e623e3ac0f7453e83beabd67477d0f8c027c3
+       source = 
python-rangehttpserver-1.4.0.tar.gz::https://github.com/danvk/RangeHTTPServer//archive/1.4.0.tar.gz
+       sha256sums = 
7ec021ebe26e0849cc7efa40ce231c0d9cc46027d37a80d728b3854c2149bfb4
+       sha512sums = 
180a0b1bfd029f03dd6878d4b3edc7dc6b54126cabce3ba640fc5123b0b6eb62a17f5fdc93753565ac4f60ba0638ed27e007b237ee8e1330b0779d49952348bb
 
 pkgname = python-rangehttpserver


=====================================
PKGBUILD
=====================================
@@ -1,23 +1,32 @@
 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Carl Smedstad <[email protected]>
 
 _pkgname=RangeHTTPServer
 pkgname=python-rangehttpserver
-pkgver=1.3.3
-pkgrel=2
+pkgver=1.4.0
+pkgrel=1
 pkgdesc='SimpleHTTPServer with support for Range requests'
-url='https://github.com/danvk/RangeHTTPServer/'
 arch=('any')
-license=('Apache')
+url='https://github.com/danvk/RangeHTTPServer/'
+license=('Apache-2.0')
 depends=('python')
-makedepends=('python' 'python-setuptools')
-checkdepends=('python-pytest7' 'python-requests')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/danvk/RangeHTTPServer//archive/${pkgver}.tar.gz)
-sha256sums=('5232af4db9a87d0ee84b6d242b58c48c874062de74bf723a1205b7fdae1e872f')
-sha512sums=('5d179766640bd408d70f083c9fbd7822cdc14a3205d8134f5e20e3c2e22a9e360d1c458b07b028f5f2242e1aa94e623e3ac0f7453e83beabd67477d0f8c027c3')
+makedepends=(
+  'python-build'
+  'python-installer'
+  'python-setuptools'
+  'python-wheel'
+)
+checkdepends=(
+  'python-pytest'
+  'python-requests'
+)
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('7ec021ebe26e0849cc7efa40ce231c0d9cc46027d37a80d728b3854c2149bfb4')
+sha512sums=('180a0b1bfd029f03dd6878d4b3edc7dc6b54126cabce3ba640fc5123b0b6eb62a17f5fdc93753565ac4f60ba0638ed27e007b237ee8e1330b0779d49952348bb')
 
 build() {
   cd ${_pkgname}-${pkgver}
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -27,6 +36,6 @@ check() {
 
 package() {
   cd ${_pkgname}-${pkgver}
-  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm 644 README -t "${pkgdir}/usr/share/doc/${pkgname}"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-rangehttpserver/-/commit/765f37a3f9852b01d610855b3e1d75a9a763487e

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-rangehttpserver/-/commit/765f37a3f9852b01d610855b3e1d75a9a763487e
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to