[arch-commits] Commit in python-django-rest-framework/trunk (PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Mon Dec 13 19:40:46 UTC 2021
Date: Monday, December 13, 2021 @ 19:40:46
Author: dvzrv
Revision: 1072138
upgpkg: python-django-rest-framework 3.13.0-1: Upgrade to 3.13.0
Remove now included patch for problems with datetime mock.
Simplify prepare() by not moving files.
Modified:
python-django-rest-framework/trunk/PKGBUILD
----------+
PKGBUILD | 38 +++++++++++++++++---------------------
1 file changed, 17 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-13 19:40:45 UTC (rev 1072137)
+++ PKGBUILD 2021-12-13 19:40:46 UTC (rev 1072138)
@@ -2,56 +2,52 @@
_name=django-rest-framework
pkgname=python-django-rest-framework
-pkgver=3.12.4
-pkgrel=3
+pkgver=3.13.0
+pkgrel=1
pkgdesc="A powerful and flexible toolkit for building Web APIs."
arch=(any)
url="https://www.django-rest-framework.org/"
license=(BSD)
-depends=(python-django)
+depends=(python-django python-pytz)
makedepends=(python-setuptools)
checkdepends=(python-pytest python-pytest-django)
# bootstrap without python-django-filter, as it has a checkdepends on
# python-django-rest-framework
-optdepends=('python-django-filter: for dynamic queryset filters'
- 'python-django-guardian: for a per-object permission model'
- 'python-markdown: for markdown support'
- 'python-psycopg2: for PostgreSQL support'
- 'python-pygments: for syntax highlighting'
- 'python-yaml: for YAML support')
+optdepends=(
+ 'python-django-filter: for dynamic queryset filters'
+ 'python-django-guardian: for a per-object permission model'
+ 'python-markdown: for markdown support'
+ 'python-psycopg2: for PostgreSQL support'
+ 'python-pygments: for syntax highlighting'
+ 'python-yaml: for YAML support'
+)
# tests are not complete in pypi sdist:
# https://github.com/encode/django-rest-framework/issues/7141
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/encode/${_name}/archive/${pkgver}.tar.gz"
- "${pkgname}-3.12.4-datetime_mock.patch::https://github.com/encode/django-rest-framework/commit/a0a2c5cb370ff80a95deaa8d23f099acc4e5e0c5.patch"
)
-sha512sums=('406b5354809b94e371a2c7d4b62ce66c18a1f60bd02574cba603ad4c44faa4297bdbbd6ee50de63fe21d2aae18386e05d46983a506bddd17f06ce610d5b727c9'
- 'dee6e1e1b5b52d9b2c6856630e8002c64a98b16426705a565b32d9b5235913e81fdb17464a1fcd474a0e1804bf322757afe5f1f274182c0f1e5e1c8948727ddf')
-b2sums=('48150e8d966ddd169a2b58d90656efa8f9f549c9d2fdee6025254fba2a6221704fe6bcb246567c8acb963f76ea56046935d3190c7c391daf4773b100a641ba02'
- '8a607bc69d9b5fc7faf73e373286538c99e18148cfb0fb2093ca25a394ecc08a17826df762b826088e3f81ff43288e9b169be4c903e41d0c4b525a7a4fdcf9d3')
+sha512sums=('2368f382e6dd01490366443ad944f4a48ebbc4928ed45ff58c77a63deb251b148b9e4b13d89b0d2e27a8e257239d75f58f91a11604402683c1c36fac8ce27acc')
+b2sums=('8acd6bf386ef20302c8fe52b3a5f1926c03701b32b8c409d13771d632a62e0e01bd8c2efde079e923342a08e6a3d21b3ab13a66817567fe2372f7b8e63eee61a')
prepare() {
- mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
- cd "$pkgname-$pkgver"
+ cd "${_name}-$pkgver"
# we do not use coverage during testing
sed -e '/addopts/d' -i setup.cfg
- # fix problems with tests using datetime mock
- patch -Np1 -i ../"${pkgname}-3.12.4-datetime_mock.patch"
}
build() {
- cd "$pkgname-$pkgver"
+ cd "${_name}-$pkgver"
python setup.py build
}
check() {
- cd "$pkgname-$pkgver"
+ cd "${_name}-$pkgver"
export PYTHONPATH="${PWD}/build:${PYTHONPATH}"
pytest -v
}
package() {
- cd "$pkgname-$pkgver"
+ cd "${_name}-$pkgver"
python setup.py install --optimize=1 --root="${pkgdir}"
install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
install -vDm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
More information about the arch-commits
mailing list