[arch-commits] Commit in python-certifi/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Sat Sep 10 08:42:21 UTC 2022
Date: Saturday, September 10, 2022 @ 08:42:20
Author: dvzrv
Revision: 1298794
archrelease: copy trunk to community-any
Added:
python-certifi/repos/community-any/PKGBUILD
(from rev 1298793, python-certifi/trunk/PKGBUILD)
Deleted:
python-certifi/repos/community-any/PKGBUILD
----------+
PKGBUILD | 93 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 48 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-10 08:42:08 UTC (rev 1298793)
+++ PKGBUILD 2022-09-10 08:42:20 UTC (rev 1298794)
@@ -1,45 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-# Contributor: William J Bowman <bluephoenix47 at gmail.com>
-
-pkgname=python-certifi
-pkgver=2022.06.15
-pkgrel=1
-pkgdesc="Python package for providing Mozilla's CA Bundle (using system CA store)"
-arch=(any)
-url="https://github.com/certifi/python-certifi"
-license=('GPL')
-depends=('python' 'ca-certificates')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-source=("https://github.com/certifi/python-certifi/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('ffd2b2f38ff297cb49a6efe912d43b5b87bc028c8ee44f07276ac3a2a98186692e496b5579a544bfee2724214aa6e91397c679837ee856513cc8635e3470f34f')
-
-prepare() {
- cd python-certifi-$pkgver
- # Use system CA store. Replacing the copy in the source tree so the test suite is actually run against it.
- ln -sf /etc/ssl/certs/ca-certificates.crt certifi/cacert.pem
- # Our CA store has non-ASCII comments, but we are not packaging for JVM
- # https://github.com/certifi/python-certifi/issues/50
- sed -i 's/encoding="ascii"/encoding="utf-8"/' certifi/core.py
-}
-
-build() {
- cd python-certifi-$pkgver
- python setup.py build
-}
-
-check() {
- cd python-certifi-$pkgver
- pytest
-}
-
-package() {
- cd python-certifi-$pkgver
- python setup.py install --skip-build -O1 --root="$pkgdir"
-
- # Replace CA store here again because the symlink was installed as a file
- ln -sf /etc/ssl/certs/ca-certificates.crt "$pkgdir"/usr/lib/python3.10/site-packages/certifi/cacert.pem
-
- install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}
Copied: python-certifi/repos/community-any/PKGBUILD (from rev 1298793, python-certifi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-09-10 08:42:20 UTC (rev 1298794)
@@ -0,0 +1,48 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: William J Bowman <bluephoenix47 at gmail.com>
+
+pkgname=python-certifi
+pkgver=2022.06.15.1
+pkgrel=1
+pkgdesc="Python package for providing Mozilla's CA Bundle (using system CA store)"
+arch=(any)
+url="https://github.com/certifi/python-certifi"
+license=(MPL2)
+depends=('python' 'ca-certificates')
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=('python-pytest')
+source=("https://github.com/certifi/python-certifi/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('615c5f659f3b5da78770e84d663e5e548c0a68dd07d14194e2984bb9c1d6378a9fbfd829ab9eeba38788b56348396a36ee38cf3f9b8921f2edb52c5951889cd1')
+
+prepare() {
+ cd python-certifi-$pkgver
+ # Use system CA store. Replacing the copy in the source tree so the test suite is actually run against it.
+ ln -sf /etc/ssl/certs/ca-certificates.crt certifi/cacert.pem
+ # Our CA store has non-ASCII comments, but we are not packaging for JVM
+ # https://github.com/certifi/python-certifi/issues/50
+ sed -i 's/encoding="ascii"/encoding="utf-8"/' certifi/core.py
+}
+
+build() {
+ cd python-certifi-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd python-certifi-$pkgver
+ pytest
+}
+
+package() {
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+
+ cd python-certifi-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # Replace CA store here again because the symlink was installed as a file
+ ln -sf /etc/ssl/certs/ca-certificates.crt "$pkgdir"/$site_packages/certifi/cacert.pem
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
More information about the arch-commits
mailing list