update onvif-zeep-async-1.2.11,

update zeep-4.2.1
This commit is contained in:
Andreas Billmeier 2023-05-01 16:50:15 +02:00 committed by Andreas Billmeier
parent 09f2ba525e
commit 74c0fbb8b1
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
8 changed files with 273 additions and 2 deletions

View File

@ -576,11 +576,11 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
## Licenses
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
There are 1861 Ebuilds in total, 1850 of them have in total 1871 (39 different) licenses assigned.
There are 1863 Ebuilds in total, 1852 of them have in total 1873 (39 different) licenses assigned.
|License| Ebuilds using it|
|-------|-----|
|MIT|1092|
|MIT|1094|
|Apache-2.0|397|
|GPL-3|118|
|BSD|99|

View File

@ -1,5 +1,7 @@
DIST onvif-zeep-async-1.2.1.tar.gz 165927 BLAKE2B d5b2652ccdac3061d932c3a3424b2353541dd8a2c7cb14c9764745974a0c251c5cf6834b7d1f56f88b710be69ae3bc66a8fbcb128396613199762e3979589418 SHA512 f347545bc85cf45bb53f43ddcb57e74b51a0a282ede498826d0f111b22c6193fc843bfe404b386f4a6de419f358ddeca7e2d39cd2b2411f3d453f6145125059d
DIST onvif-zeep-async-1.2.11.tar.gz 173962 BLAKE2B b47f8614d71d26418b98ca646b5c19a43f6e03959b4e5769594fba5e0f7e3b3a19845c2be4122b41659bce0df8417f5e834a4c99a332b84b82b7494151b807ac SHA512 2dea61c35f7881ab5121d4674efe879f2ec9e6f4f53d441ebc2c73c15a5b40049ff7d20420acf46d13ab36d2a6daadb318ffef94c5a0e54d51bde47940a3864b
DIST onvif-zeep-async-1.2.3.tar.gz 166502 BLAKE2B c3f85258a13bc9949640a86184f4ded9a26098162f9ddb13f8060388235a542fdaaab0f5b08eb197a8aa0d0ecbb99eabf96f329ce4d9ba72d3bc0d3042025e50 SHA512 6d010dd12783e2d18411c399836ef12d4bafe503bb40dd9769ad7736a8d391d0e74112a9d1961070c40e7a063ce6c8cafd924e1189a628870bb2dbf9dd57078e
EBUILD onvif-zeep-async-1.2.1.ebuild 733 BLAKE2B e5dc917c5aab3a5903e86cb5bd170e424e985c44e7b3de1081afc4867a1b198d2f49ff09894d039d4c8061a5e90a8eeb8577a987ab3bbebb6b61043b6c36b9d7 SHA512 cbb7fe81901a375c7df8262a61530ee30cab024d7dadf068036f975e1a9b852eebc7b55eb675438974c5eb36edfa091632f1062867630ef8e35f3fbe4822ac27
EBUILD onvif-zeep-async-1.2.11.ebuild 733 BLAKE2B ff1bd0838c48ae85ea390ea0084b2728c2a1b382c55d25241e32375f8917c48d6aadbddfc6e2b61ea1c7b5f3e5e2933b801dd788fc014a21827eed2f04244a5a SHA512 5d0fbd997fe189d0515f92a7b3c23c33027afb434b0e6c256772fb862e11af1717d4e3cb837c9214490706d636061e1023d1a530d3bdc70712da4cb5f76bae2c
EBUILD onvif-zeep-async-1.2.3.ebuild 733 BLAKE2B e5dc917c5aab3a5903e86cb5bd170e424e985c44e7b3de1081afc4867a1b198d2f49ff09894d039d4c8061a5e90a8eeb8577a987ab3bbebb6b61043b6c36b9d7 SHA512 cbb7fe81901a375c7df8262a61530ee30cab024d7dadf068036f975e1a9b852eebc7b55eb675438974c5eb36edfa091632f1062867630ef8e35f3fbe4822ac27
MISC metadata.xml 528 BLAKE2B 92452b59b7110b6432311a90854e0e7a2d52e090c06da8f0d766baec564570ee51bb739880a967ca434c8c3af33c0c5b4033e9a89ce9cd7652ad0926dad8583b SHA512 9bc916436aed5a7eaa75b161ae2faa7e99587081fd843a9e0d2161f6076c0d433711e94359f48a440e3cf4073d561322234d5e11a5dbe7eb79eb722fb1739251

View File

@ -0,0 +1,33 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
inherit distutils-r1 pypi
DESCRIPTION="Async Python Client for ONVIF Camera"
HOMEPAGE="https://github.com/hunterjm/python-onvif-zeep-async https://pypi.org/project/onvif-zeep-async/"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS="README.rst"
RDEPEND=">=dev-python/httpx-0.19.0[${PYTHON_USEDEP}]
>=dev-python/zeep-4.2.1[async,${PYTHON_USEDEP}]"
BDEPEND="
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
py.test -v -v || die
}
distutils_enable_tests pytest

6
dev-python/zeep/Manifest Normal file
View File

@ -0,0 +1,6 @@
AUX zeep-4.1.0-cached-prop.patch 3247 BLAKE2B 2ecbafe7bd1dae935dcb6dc0596e68a4d709b04e205cbc58c736fd235e7dc69f66ce5fad86893f1af1d3d77187de92f9f12a7055f8dbbc01c56b273ff500a56c SHA512 36971cc3ab540392cd702edc6cfb8c5db5812f05bcb9e28308c53514e18de2dfd1a29dbac3d6bd53f38f1d315f1a447d974e1a61fb59664bec18567879e080e0
DIST zeep-4.1.0.tar.gz 160333 BLAKE2B d29db92efe048ba854ff14cde062993c3f334cab6cfc122f6db9aa7a1a490c82f93a50ca5028a5f86e316d9ecf567ac40aef10f3e7d8db89376c7d8dea2a2e23 SHA512 acc54f99d21fe401e06418223591bcf8e7f8819e225f892beb0f6e2a1ee359a0da6f9d0aa4212899197c084af37cc56126879b93a22cdad2458e57674bf66ed5
DIST zeep-4.2.1.tar.gz 161072 BLAKE2B 01e3ec848bc4a98b301b7d091a0740f4a69057f3bb56e884a31b1d73ed51b0c62b4e0e148b2a59ebb6f01469aa949cb4079c0147dae7b3d8e7c8a2f66e5b31f8 SHA512 08de88c1e4cd1787137ea18f12bf343c5c9bb7b353ecd8781c58c7c1acf1b6ee8a0483b47d9a78eb24c79d8ecc347eb8595d460d9f75ca0428963f36a76dff5d
EBUILD zeep-4.1.0-r2.ebuild 1596 BLAKE2B ed737937745ea603e60febdf0bf0da28e0e8bb5899c21b4dce29bc5807d5bfece48a9a5b00f1e4f0b58ba91be98803b5d6a664931d9d561da34c59d05480733e SHA512 3692bb65f3a77e68c31d0fa9d93bf81ffaeb7c70b4c17168c620b374072eab1256d411475e50001f6eb50b187fc15c926806b5b86c1a58a0c65e943816e87a01
EBUILD zeep-4.2.1.ebuild 1597 BLAKE2B ce000dfe250d724255f2374095fb1d34c78598ea543e16bbc0cd1a8a66bdb01637ff6961b2c0367b62ef589fa9af4c7083edce07f3d9b233c3e791f28d0245ac SHA512 410ae55931d397252f8e537d8749ee9daed899a6859ec5b9a0193fd435443d1b1a7895deeba106dab681fdd331bd09cda26d4f686a703aeade9fb6fbb034d422
MISC metadata.xml 534 BLAKE2B f109342e8c08a5960fac99e2e4f750ab9c5ba0f1704413e2dd067a8ab6ebc8c7e57c1c54d15c2236b337d36684b38b269c3f9fdcfcf3ae02d8ff2a1b31d7acc1 SHA512 cc29c0be1cd9faad9648b1d11564c9c5ef1721f59d0bab6d762deedb8881f77a7951a2f4fa91c6b1e50688cac9ef03bb05ee00bb48d105bde89d84816d6825f8

View File

@ -0,0 +1,100 @@
From 25701f0b69ee46914179070b7e8906ea3e521480 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Thu, 11 Nov 2021 08:55:41 +0100
Subject: [PATCH] Use stdlib functools.cached_property if available
Python 3.8+ provides a functools.cached_property in the stdlib that is
thread-safe, i.e. equivalent to threaded_cached_property. Use it
instead of adding third-party dependencies whenever available.
---
setup.py | 2 +-
src/zeep/wsdl/attachments.py | 6 +++++-
src/zeep/xsd/elements/indicators.py | 6 +++++-
src/zeep/xsd/types/any.py | 6 +++++-
src/zeep/xsd/types/complex.py | 6 +++++-
5 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/setup.py b/setup.py
index cb51ac4..8ef81b6 100755
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup
install_requires = [
"attrs>=17.2.0",
- "cached-property>=1.3.0",
+ "cached-property>=1.3.0; python_version<'3.8'",
"isodate>=0.5.4",
"lxml>=4.6.0",
"platformdirs>=1.4.0",
diff --git a/src/zeep/wsdl/attachments.py b/src/zeep/wsdl/attachments.py
index 037e439..075bee5 100644
--- a/src/zeep/wsdl/attachments.py
+++ b/src/zeep/wsdl/attachments.py
@@ -6,7 +6,11 @@ See https://www.w3.org/TR/SOAP-attachments
import base64
-from cached_property import cached_property
+try:
+ from functools import cached_property
+except ImportError:
+ from cached_property import cached_property
+
from requests.structures import CaseInsensitiveDict
diff --git a/src/zeep/xsd/elements/indicators.py b/src/zeep/xsd/elements/indicators.py
index 40325da..e9ef2c4 100644
--- a/src/zeep/xsd/elements/indicators.py
+++ b/src/zeep/xsd/elements/indicators.py
@@ -16,7 +16,11 @@ import operator
import typing
from collections import OrderedDict, defaultdict, deque
-from cached_property import threaded_cached_property
+try:
+ from functools import cached_property as threaded_cached_property
+except ImportError:
+ from cached_property import threaded_cached_property
+
from lxml import etree
from zeep.exceptions import UnexpectedElementError, ValidationError
diff --git a/src/zeep/xsd/types/any.py b/src/zeep/xsd/types/any.py
index b4525e4..17f244e 100644
--- a/src/zeep/xsd/types/any.py
+++ b/src/zeep/xsd/types/any.py
@@ -1,7 +1,11 @@
import logging
import typing
-from cached_property import threaded_cached_property
+try:
+ from functools import cached_property as threaded_cached_property
+except ImportError:
+ from cached_property import threaded_cached_property
+
from lxml import etree
from zeep.utils import qname_attr
diff --git a/src/zeep/xsd/types/complex.py b/src/zeep/xsd/types/complex.py
index 8141bc1..b2ed9bf 100644
--- a/src/zeep/xsd/types/complex.py
+++ b/src/zeep/xsd/types/complex.py
@@ -4,7 +4,11 @@ import typing
from collections import OrderedDict, deque
from itertools import chain
-from cached_property import threaded_cached_property
+try:
+ from functools import cached_property as threaded_cached_property
+except ImportError:
+ from cached_property import threaded_cached_property
+
from lxml import etree
from zeep.exceptions import UnexpectedElementError, XMLParseError
--
2.33.1

View File

@ -0,0 +1,16 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">zeep</remote-id>
<remote-id type="github">mvantellingen/python-zeep</remote-id>
<maintainer status="unknown">
<email>michaelvantellingen@gmail.com</email>
<name>Michael van Tellingen</name>
</maintainer>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,57 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="A modern/fast Python SOAP client based on lxml / requests"
HOMEPAGE="https://docs.python-zeep.org/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="async"
RDEPEND="
>=dev-python/attrs-17.2.0[${PYTHON_USEDEP}]
>=dev-python/isodate-0.5.4[${PYTHON_USEDEP}]
>=dev-python/lxml-4.6.0[${PYTHON_USEDEP}]
>=dev-python/platformdirs-1.4.0[${PYTHON_USEDEP}]
>=dev-python/requests-file-1.5.1[${PYTHON_USEDEP}]
>=dev-python/requests-2.7.0[${PYTHON_USEDEP}]
>=dev-python/requests-toolbelt-0.7.1[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
async? ( >=dev-python/aiohttp-1.0[${PYTHON_USEDEP}] )
"
BDEPEND="
test? (
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/aioresponses[${PYTHON_USEDEP}]
dev-python/freezegun[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pretend[${PYTHON_USEDEP}]
dev-python/python-xmlsec[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-httpx[${PYTHON_USEDEP}]
dev-python/requests-mock[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
PATCHES=(
"${FILESDIR}"/${P}-cached-prop.patch
)
EPYTEST_DESELECT=(
# broken by new pytest-httpx?
tests/test_async_transport.py::test_load
tests/test_async_transport.py::test_load_cache
tests/test_async_transport.py::test_post
tests/test_async_transport.py::test_http_error
)

View File

@ -0,0 +1,57 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="A modern/fast Python SOAP client based on lxml / requests"
HOMEPAGE="https://docs.python-zeep.org/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="async"
RDEPEND="
>=dev-python/attrs-17.2.0[${PYTHON_USEDEP}]
>=dev-python/isodate-0.5.4[${PYTHON_USEDEP}]
>=dev-python/lxml-4.6.0[${PYTHON_USEDEP}]
>=dev-python/platformdirs-1.4.0[${PYTHON_USEDEP}]
>=dev-python/requests-file-1.5.1[${PYTHON_USEDEP}]
>=dev-python/requests-2.7.0[${PYTHON_USEDEP}]
>=dev-python/requests-toolbelt-0.7.1[${PYTHON_USEDEP}]
dev-python/pytz[${PYTHON_USEDEP}]
async? ( >=dev-python/httpx-0.15.0[${PYTHON_USEDEP}] )
"
BDEPEND="
test? (
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/aioresponses[${PYTHON_USEDEP}]
dev-python/freezegun[${PYTHON_USEDEP}]
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pretend[${PYTHON_USEDEP}]
dev-python/python-xmlsec[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-httpx[${PYTHON_USEDEP}]
dev-python/requests-mock[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
PATCHES=(
"${FILESDIR}"/${P}-cached-prop.patch
)
EPYTEST_DESELECT=(
# broken by new pytest-httpx?
tests/test_async_transport.py::test_load
tests/test_async_transport.py::test_load_cache
tests/test_async_transport.py::test_post
tests/test_async_transport.py::test_http_error
)