Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / python-django-csp
Commits: 3869c4d7 by Jelle van der Waa at 2024-03-19T21:27:56+01:00 upgpkg: 3.8-1 - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,20 @@ +pkgbase = python-django-csp + pkgdesc = Django-CSP adds Content-Security-Policy headers to Django + pkgver = 3.8 + pkgrel = 1 + url = https://github.com/mozilla/django-csp + arch = any + license = BSD-3-Clause + checkdepends = python-pytest + checkdepends = python-pytest-django + checkdepends = python-six + makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + depends = python-django + depends = python-jinja + source = python-django-csp-3.8.tar.gz::https://github.com/mozilla/django-csp/archive/refs/tags/3.8.tar.gz + sha512sums = 11eb783b2caf41b67e0a00ab4b011c4ead84a142630f511163335be98390ac52fb86960230ff0afd7fc774af11a79e28dcd5b7647d47459ba0cce3a7e26ec082 + +pkgname = python-django-csp ===================================== PKGBUILD ===================================== @@ -1,41 +1,36 @@ # Maintainer: Jelle van der Waa <je...@archlinux.org> pkgname=python-django-csp -pkgver=3.7 -pkgrel=3 +pkgver=3.8 +pkgrel=1 pkgdesc="Django-CSP adds Content-Security-Policy headers to Django" arch=('any') url="https://github.com/mozilla/django-csp" -license=('BSD') -makedepends=('python-setuptools') +license=('BSD-3-Clause') +makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') checkdepends=('python-pytest' 'python-pytest-django' 'python-six') depends=('python-django' 'python-jinja') -source=($pkgname-$pkgver.tar.gz::https://github.com/mozilla/django-csp/archive/refs/tags/${pkgver}.tar.gz - tests-add-get_response-arg-to-middlware-init.patch) -sha512sums=('d15ecae2a59e47151f3b04d78138fbe5c22967e0366595324b41fdd3b3f8af2bf7a44606f329b853c6ebb14a590e63d54d02fb26a7248e04789d1c54410fb5ee' - '0329d0dd64341936ab10e8966f8a37be2bd2058e20fbda7bada0a536565ba6a583b8ea8ca734b76b28fd593d5709988fb14fcf434af65aed0fe7d23687d3db86') +source=($pkgname-$pkgver.tar.gz::https://github.com/mozilla/django-csp/archive/refs/tags/${pkgver}.tar.gz) +sha512sums=('11eb783b2caf41b67e0a00ab4b011c4ead84a142630f511163335be98390ac52fb86960230ff0afd7fc774af11a79e28dcd5b7647d47459ba0cce3a7e26ec082') prepare() { cd "django-csp-$pkgver" - sed -i 's/--pep8 --flakes//' setup.cfg - - patch -Np1 -i ${srcdir}/tests-add-get_response-arg-to-middlware-init.patch } build() { cd "django-csp-$pkgver" - python setup.py build + python -m build --wheel --no-isolation } check() { cd "django-csp-$pkgver" - PYTHONPATH=. pytest csp/tests + # Override addopts so we don't need pytest-ruff + PYTHONPATH=. pytest -o addopts='' csp/tests } package() { cd "django-csp-$pkgver" - python setup.py install --skip-build \ - --optimize=1 \ - --root="${pkgdir}" + python -m installer --destdir="$pkgdir" dist/*.whl + install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-django-csp/-/commit/3869c4d764af7f05c0dafe728f26858e1827238f -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-django-csp/-/commit/3869c4d764af7f05c0dafe728f26858e1827238f You're receiving this email because of your account on gitlab.archlinux.org.