Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages /
python-osprofiler
Commits:
91bc7aac by Jelle van der Waa at 2024-12-03T19:37:14+01:00
upgpkg: 3.4.3-6: Rebuild for Python 3.13
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- + elasticsearch-url-fix.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = python-osprofiler
pkgdesc = OpenStack Profiler Library
pkgver = 3.4.3
- pkgrel = 5
+ pkgrel = 6
url = https://docs.openstack.org/osprofiler/latest/
arch = any
license = Apache
@@ -22,6 +22,8 @@ pkgbase = python-osprofiler
depends = python-requests
depends = python-webob
source =
git+https://github.com/openstack/osprofiler.git#commit=32863011fe90aa283425b6347123c38e5c251ac3
- sha512sums = SKIP
+ source = elasticsearch-url-fix.patch
+ sha512sums =
809bffc0bc3ed560aa1fba32c1bf7d497b7f36c396e9a5f4b15ac64cf40a5e2bb95a6b6000483355dfd0d71fe689ece8782b4bb5661e38958444e31ad5714286
+ sha512sums =
0c420ff3e5d9a9357d14398e0768c6329277712da9f315c74f594ca8b8394ca34178de14dec7986111999a5d31b20ab2be83fc119481f745a30876311b12eb0d
pkgname = python-osprofiler
=====================================
PKGBUILD
=====================================
@@ -3,7 +3,7 @@
pkgname=python-osprofiler
pkgver=3.4.3
_commit=32863011fe90aa283425b6347123c38e5c251ac3
-pkgrel=5
+pkgrel=6
pkgdesc="OpenStack Profiler Library"
arch=('any')
url="https://docs.openstack.org/osprofiler/latest/"
@@ -13,8 +13,15 @@ depends=('python-netaddr' 'python-oslo-concurrency'
'python-oslo-serialization'
makedepends=('git' 'python-setuptools')
checkdepends=('python-ddt' 'python-stestr' 'python-testtools'
'python-docutils' 'python-pymongo'
'python-elasticsearch' 'python-redis')
-source=("git+https://github.com/openstack/osprofiler.git#commit=$_commit")
-sha512sums=('SKIP')
+source=("git+https://github.com/openstack/osprofiler.git#commit=$_commit"
+ "elasticsearch-url-fix.patch")
+sha512sums=('809bffc0bc3ed560aa1fba32c1bf7d497b7f36c396e9a5f4b15ac64cf40a5e2bb95a6b6000483355dfd0d71fe689ece8782b4bb5661e38958444e31ad5714286'
+
'0c420ff3e5d9a9357d14398e0768c6329277712da9f315c74f594ca8b8394ca34178de14dec7986111999a5d31b20ab2be83fc119481f745a30876311b12eb0d')
+
+prepare() {
+ cd osprofiler
+ patch -Np1 -i ${srcdir}/elasticsearch-url-fix.patch
+}
build() {
cd osprofiler
=====================================
elasticsearch-url-fix.patch
=====================================
@@ -0,0 +1,14 @@
+diff -aur osprofiler.old/osprofiler/drivers/elasticsearch_driver.py
osprofiler/osprofiler/drivers/elasticsearch_driver.py
+--- osprofiler.old/osprofiler/drivers/elasticsearch_driver.py 2024-12-03
18:35:40.404032789 +0100
++++ osprofiler/osprofiler/drivers/elasticsearch_driver.py 2024-12-03
19:35:22.955346490 +0100
+@@ -41,8 +41,8 @@
+ "please install `elasticsearch` library. "
+ "To install with pip:\n `pip install elasticsearch`.")
+
+- client_url = parser.urlunparse(parser.urlparse(self.connection_str)
+- ._replace(scheme="http"))
++ url = parser.urlparse(self.connection_str)
++ client_url = parser.urlunparse(("http", f"{host}{':' + str(9200 if
url.port is None else url.port)}", url.path, url.params, url.query,
url.fragment))
+ self.conf = conf
+ self.client = Elasticsearch(client_url)
+ self.index_name = index_name
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-osprofiler/-/commit/91bc7aac12485f80a5fa937f1fb4df462b0e712f
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-osprofiler/-/commit/91bc7aac12485f80a5fa937f1fb4df462b0e712f
You're receiving this email because of your account on gitlab.archlinux.org.