diff options
| author | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-07-20 06:31:24 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-07-20 06:31:24 +0000 |
| commit | 59d1a0f46b0e5e214e0f4053558d83de0bf910c0 (patch) | |
| tree | 853851d4d20a01aeda7712e20224b3d4d4e6b0aa /dev-python | |
| parent | 152ddf08d62e2efbe595731d16bd7ba0e69fd415 (diff) | |
| download | baldeagleos-repo-59d1a0f46b0e5e214e0f4053558d83de0bf910c0.tar.gz baldeagleos-repo-59d1a0f46b0e5e214e0f4053558d83de0bf910c0.tar.xz baldeagleos-repo-59d1a0f46b0e5e214e0f4053558d83de0bf910c0.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/aiohttp/aiohttp-3.6.2.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/apsw/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/apsw/apsw-3.32.2_p1.ebuild | 42 | ||||
| -rw-r--r-- | dev-python/async_generator/async_generator-1.10.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/autobahn/autobahn-20.4.3.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/cbor/cbor-1.0.0-r1.ebuild | 40 | ||||
| -rw-r--r-- | dev-python/cbor/cbor-1.0.0.ebuild | 22 | ||||
| -rw-r--r-- | dev-python/cbor/files/cbor-1.0.0.Fix-broken-test_sortkeys.patch | 43 | ||||
| -rw-r--r-- | dev-python/cbor/files/cbor-1.0.0.Replace-deprecated-logger.warn.patch | 98 | ||||
| -rw-r--r-- | dev-python/cbor/files/cbor-1.0.0.zero-length-bytes.patch | 10 | ||||
| -rw-r--r-- | dev-python/cbor/metadata.xml | 2 | ||||
| -rw-r--r-- | dev-python/geventhttpclient/geventhttpclient-1.4.2.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/pytest-asyncio/pytest-asyncio-0.12.0.ebuild | 2 |
13 files changed, 240 insertions, 28 deletions
diff --git a/dev-python/aiohttp/aiohttp-3.6.2.ebuild b/dev-python/aiohttp/aiohttp-3.6.2.ebuild index 26d663b8a5e0..f6ad41c6db81 100644 --- a/dev-python/aiohttp/aiohttp-3.6.2.ebuild +++ b/dev-python/aiohttp/aiohttp-3.6.2.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~x86" +KEYWORDS="amd64 ~arm ~arm64 x86" IUSE="doc test" RESTRICT="!test? ( test )" diff --git a/dev-python/apsw/Manifest b/dev-python/apsw/Manifest index fb007b559fff..be30ab3b14f3 100644 --- a/dev-python/apsw/Manifest +++ b/dev-python/apsw/Manifest @@ -1 +1,2 @@ DIST apsw-3.25.2_p1.zip 682975 BLAKE2B f9f471378cddd7da1c06158b7a041d9377da4d4123846318c0cfc24167734bc1813f667e64c4c6bf643c6a618c9cabf58301dfbaad0998082d764212ea369fff SHA512 073b2fe9170fb00ac6f2ba52eb638d64d79875ba74b09f0307fa2c075e714bb91465fd2edd46341dac5cedc0bee0a1099888b6c1cee706fc04fa6b9ad99c47d7 +DIST apsw-3.32.2_p1.zip 679785 BLAKE2B fb58a60f95a677a805b0347a0d8876e49c657092deeadb60a057f4afc62031313faf5a86b600d1d306e42f305c9af599d2439a7051e400cbba2d9185c213d5d1 SHA512 718de699c43eec139747f63c3c26da206aa20f104ec1c478009d29cedff7a432138726131b2458ecd3a67675254af77e94e50e8e96a208600fe2a94aa9d924c7 diff --git a/dev-python/apsw/apsw-3.32.2_p1.ebuild b/dev-python/apsw/apsw-3.32.2_p1.ebuild new file mode 100644 index 000000000000..83032725e3f2 --- /dev/null +++ b/dev-python/apsw/apsw-3.32.2_p1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{5,6,7,8,9} ) + +inherit distutils-r1 flag-o-matic + +MY_PV=${PV/_p/-r} +MY_P=${PN}-${MY_PV} + +DESCRIPTION="APSW - Another Python SQLite Wrapper" +HOMEPAGE="https://github.com/rogerbinns/apsw/" +SRC_URI="https://github.com/rogerbinns/apsw/releases/download/${MY_PV}/${MY_P}.zip -> ${P}.zip" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc64 ~x86" +IUSE="doc" + +RDEPEND=">=dev-db/sqlite-${PV%_p*}" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/${MY_P} + +PATCHES=( "${FILESDIR}/${PN}-3.6.20.1-fix_tests.patch" ) + +python_compile() { + python_is_python3 || append-cflags -fno-strict-aliasing + distutils-r1_python_compile --enable=load_extension +} + +python_test() { + "${PYTHON}" setup.py build_test_extension || die "Building of test loadable extension failed" + "${PYTHON}" tests.py -v || die "Tests failed under ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/async_generator/async_generator-1.10.ebuild b/dev-python/async_generator/async_generator-1.10.ebuild index 011b3f239fe2..d41a9eab059d 100644 --- a/dev-python/async_generator/async_generator-1.10.ebuild +++ b/dev-python/async_generator/async_generator-1.10.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="|| ( MIT Apache-2.0 )" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86" +KEYWORDS="amd64 arm ~arm64 ~ppc ~ppc64 x86" DOCS=( README.rst ) diff --git a/dev-python/autobahn/autobahn-20.4.3.ebuild b/dev-python/autobahn/autobahn-20.4.3.ebuild index 5899ab9f4a31..49e5212c71bc 100644 --- a/dev-python/autobahn/autobahn-20.4.3.ebuild +++ b/dev-python/autobahn/autobahn-20.4.3.ebuild @@ -17,7 +17,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" SLOT="0" LICENSE="MIT" -KEYWORDS="amd64 ~arm ~arm64 x86" +KEYWORDS="amd64 arm ~arm64 x86" IUSE="crypt test" RESTRICT="!test? ( test )" diff --git a/dev-python/cbor/cbor-1.0.0-r1.ebuild b/dev-python/cbor/cbor-1.0.0-r1.ebuild new file mode 100644 index 000000000000..84dfbf37555e --- /dev/null +++ b/dev-python/cbor/cbor-1.0.0-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{5,6,7,8,9} ) + +inherit distutils-r1 + +EGIT_COMMIT="b3af679e7cf3e12d50acb83c3c591fc5db9a658d" +DESCRIPTION="RFC 7049 - Concise Binary Object Representation" +HOMEPAGE="https://github.com/brianolson/cbor_py + https://pypi.org/project/cbor/" +SRC_URI=" + https://github.com/brianolson/cbor_py/archive/${EGIT_COMMIT}.tar.gz + -> ${P}.gh.tar.gz" +S=${WORKDIR}/cbor_py-${EGIT_COMMIT} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 arm ~arm64 x86 ~amd64-linux ~x86-linux" + +# upstream PR: https://github.com/brianolson/cbor_py/pull/19 +# upstream PR: https://github.com/brianolson/cbor_py/pull/11 +PATCHES=( + "${FILESDIR}/cbor-1.0.0.zero-length-bytes.patch" + "${FILESDIR}/cbor-1.0.0.Fix-broken-test_sortkeys.patch" + "${FILESDIR}/cbor-1.0.0.Replace-deprecated-logger.warn.patch" +) + +python_test() { + distutils_install_for_testing + PYTHONPATH="${BUILD_DIR}/lib" \ + "${PYTHON:-python}" cbor/tests/test_cbor.py || die "Testsuite failed under ${EPYTHON}" + PYTHONPATH="${BUILD_DIR}/lib" \ + "${PYTHON:-python}" cbor/tests/test_objects.py || die "Testsuite failed under ${EPYTHON}" + PYTHONPATH="${BUILD_DIR}/lib" \ + "${PYTHON:-python}" cbor/tests/test_usage.py || die "Testsuite failed under ${EPYTHON}" + PYTHONPATH="${BUILD_DIR}/lib" \ + "${PYTHON:-python}" cbor/tests/test_vectors.py || die "Testsuite failed under ${EPYTHON}" +} diff --git a/dev-python/cbor/cbor-1.0.0.ebuild b/dev-python/cbor/cbor-1.0.0.ebuild deleted file mode 100644 index 38679c194498..000000000000 --- a/dev-python/cbor/cbor-1.0.0.ebuild +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_{5,6,7,8,9} ) - -inherit distutils-r1 - -EGIT_COMMIT="b3af679e7cf3e12d50acb83c3c591fc5db9a658d" -DESCRIPTION="RFC 7049 - Concise Binary Object Representation" -HOMEPAGE="https://github.com/brianolson/cbor_py - https://pypi.org/project/cbor/" -SRC_URI=" - https://github.com/brianolson/cbor_py/archive/${EGIT_COMMIT}.tar.gz - -> ${P}.gh.tar.gz" -S=${WORKDIR}/cbor_py-${EGIT_COMMIT} - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 arm ~arm64 x86 ~amd64-linux ~x86-linux" - -distutils_enable_tests unittest diff --git a/dev-python/cbor/files/cbor-1.0.0.Fix-broken-test_sortkeys.patch b/dev-python/cbor/files/cbor-1.0.0.Fix-broken-test_sortkeys.patch new file mode 100644 index 000000000000..e7867d12cc29 --- /dev/null +++ b/dev-python/cbor/files/cbor-1.0.0.Fix-broken-test_sortkeys.patch @@ -0,0 +1,43 @@ +From 348041c3ff7104ca5b30e518beb2d2b86bf7bd73 Mon Sep 17 00:00:00 2001 +From: Brian Dolbec <dolsen@gentoo.org> +Date: Sun, 19 Jul 2020 16:31:42 -0700 +Subject: [PATCH] Fix issue #6 broken test_sortkeys() + +Newer python dictionaries are keeping the order the keys were added in. +As a result since both lists were pre-sorted and identicle so the later +test failed to find any differences causing the failure. +This change introduces 3 entries that are out of sorted order for both +the obytes and xbytes lists. This ensures a valid test of sorting. +--- + cbor/tests/test_cbor.py | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/cbor/tests/test_cbor.py b/cbor/tests/test_cbor.py +index 78b3ddb..6ce068b 100644 +--- a/cbor/tests/test_cbor.py ++++ b/cbor/tests/test_cbor.py +@@ -281,6 +281,10 @@ class XTestCBOR(object): + xbytes = [] + for n in _range(2, 27): + ob = {u'{:02x}'.format(x):x for x in _range(n)} ++ # ensure some "ob" have unsorted key:value entries ++ if n in [4, 6, 9]: ++ ob.pop('01') ++ ob["01"] = 1 + obytes.append(self.dumps(ob, sort_keys=True)) + xbytes.append(self.dumps(ob, sort_keys=False)) + allOGood = True +--- a/setup.py 2016-02-09 15:10:34.000000000 -0800 ++++ b/setup.py 2020-07-19 13:46:18.586936516 -0700 +@@ -75,7 +75,7 @@ + author='Brian Olson', + author_email='bolson@bolson.org', + url='https://bitbucket.org/bodhisnarkva/cbor', +- packages=['cbor'], ++ packages=['cbor', 'cbor/tests'], + package_dir={'cbor':'cbor'}, + ext_modules=[ + Extension( +-- +libgit2 1.0.1 + diff --git a/dev-python/cbor/files/cbor-1.0.0.Replace-deprecated-logger.warn.patch b/dev-python/cbor/files/cbor-1.0.0.Replace-deprecated-logger.warn.patch new file mode 100644 index 000000000000..66b712b0e40d --- /dev/null +++ b/dev-python/cbor/files/cbor-1.0.0.Replace-deprecated-logger.warn.patch @@ -0,0 +1,98 @@ +From eea2e6c35c0962ca559a96f37ab4eada126da5de Mon Sep 17 00:00:00 2001 +From: Brian Dolbec <dolsen@gentoo.org> +Date: Sun, 19 Jul 2020 17:56:19 -0700 +Subject: [PATCH] Replace deprecated logger.warn() with logger.warning() + +--- + cbor/tests/test_cbor.py | 4 ++-- + cbor/tests/test_usage.py | 10 +++++----- + cbor/tests/test_vectors.py | 2 +- + 4 files changed, 10 insertions(+), 10 deletions(-) + +diff --git a/cbor/tests/test_cbor.py b/cbor/tests/test_cbor.py +index 78b3ddb..14ddf69 100644 +--- a/cbor/tests/test_cbor.py ++++ b/cbor/tests/test_cbor.py +@@ -27,7 +27,7 @@ try: + from cbor._cbor import load as cload + except ImportError: + # still test what we can without C fast mode +- logger.warn('testing without C accelerated CBOR', exc_info=True) ++ logger.warning('testing without C accelerated CBOR', exc_info=True) + cdumps, cloads, cdump, cload = None, None, None, None + + +@@ -62,7 +62,7 @@ class TestRoot(object): + def testable(cls): + ok = (cls._ld[0] is not None) and (cls._ld[1] is not None) and (cls._ld[3] is not None) and (cls._ld[4] is not None) + if not ok: +- logger.warn('non-testable case %s skipped', cls.__name__) ++ logger.warning('non-testable case %s skipped', cls.__name__) + return ok + + # Can't set class level function pointers, because then they expect a +diff --git a/cbor/tests/test_usage.py b/cbor/tests/test_usage.py +index d72f2e8..9d7e6a1 100644 +--- a/cbor/tests/test_usage.py ++++ b/cbor/tests/test_usage.py +@@ -22,7 +22,7 @@ try: + from cbor._cbor import load as cload + except ImportError: + # still test what we can without C fast mode +- logger.warn('testing without C accelerated CBOR', exc_info=True) ++ logger.warning('testing without C accelerated CBOR', exc_info=True) + cdumps, cloads, cdump, cload = None, None, None, None + + +@@ -48,7 +48,7 @@ class TestUsage(unittest.TestCase): + repeatedly serialize, check that usage doesn't go up + ''' + if cdumps is None: +- logger.warn('no C dumps(), skipping test_dumps_usage') ++ logger.warning('no C dumps(), skipping test_dumps_usage') + return + start_usage = resource.getrusage(resource.RUSAGE_SELF) + usage_history = [start_usage] +@@ -76,7 +76,7 @@ class TestUsage(unittest.TestCase): + repeatedly serialize, check that usage doesn't go up + ''' + if (cdumps is None) or (cloads is None): +- logger.warn('no C fast CBOR, skipping test_loads_usage') ++ logger.warning('no C fast CBOR, skipping test_loads_usage') + return + ## Just a string passes! + #ob = 'sntaoheusnatoheusnaotehuasnoetuhaosentuhaoesnth' +@@ -113,7 +113,7 @@ class TestUsage(unittest.TestCase): + it, checking usage all along the way. + ''' + if cdump is None: +- logger.warn('no C dump(), skipping test_tempfile') ++ logger.warning('no C dump(), skipping test_tempfile') + return + with tempfile.NamedTemporaryFile() as ntf: + # first, write a bunch to temp file +@@ -168,7 +168,7 @@ class TestUsage(unittest.TestCase): + def test_stringio_usage(self): + '''serialize data to StringIO, read it back''' + if cdump is None: +- logger.warn('no C dump(), skipping test_tempfile') ++ logger.warning('no C dump(), skipping test_tempfile') + return + + # warmup the rusage, allocate everything! +diff --git a/cbor/tests/test_vectors.py b/cbor/tests/test_vectors.py +index f4d8ca9..afed311 100644 +--- a/cbor/tests/test_vectors.py ++++ b/cbor/tests/test_vectors.py +@@ -27,7 +27,7 @@ try: + from cbor._cbor import loads as cloads + except ImportError: + # still test what we can without C fast mode +- logger.warn('testing without C accelerated CBOR', exc_info=True) ++ logger.warning('testing without C accelerated CBOR', exc_info=True) + #cdumps, cloads = None, None + cloads = None + from cbor import Tag +-- +libgit2 1.0.1 + diff --git a/dev-python/cbor/files/cbor-1.0.0.zero-length-bytes.patch b/dev-python/cbor/files/cbor-1.0.0.zero-length-bytes.patch new file mode 100644 index 000000000000..f508b86a0668 --- /dev/null +++ b/dev-python/cbor/files/cbor-1.0.0.zero-length-bytes.patch @@ -0,0 +1,10 @@ +--- a/cbor/cbor.py 2020-07-19 13:24:39.497775767 -0700 ++++ b/cbor/cbor.py 2020-07-19 13:24:39.497775767 -0700 +@@ -260,6 +260,8 @@ + """ + if data is None: + raise ValueError("got None for buffer to decode in loads") ++ elif data == b'': ++ raise ValueError("got zero length string loads") + fp = StringIO(data) + return _loads(fp)[0] diff --git a/dev-python/cbor/metadata.xml b/dev-python/cbor/metadata.xml index 11f34c1a6f86..c78808b61a81 100644 --- a/dev-python/cbor/metadata.xml +++ b/dev-python/cbor/metadata.xml @@ -11,7 +11,7 @@ <name>Brian Olson</name> </maintainer> <remote-id type="pypi">cbor</remote-id> - <remote-id type="bitbucket">bodhisnarkva/cbor</remote-id> + <remote-id type="github">brianolson/cbor_py</remote-id> </upstream> <longdescription>An implementation of RFC 7049 - Concise Binary Object Representation (CBOR). CBOR is comparable to JSON, has a superset of diff --git a/dev-python/geventhttpclient/geventhttpclient-1.4.2.ebuild b/dev-python/geventhttpclient/geventhttpclient-1.4.2.ebuild index d5920d1efd4d..91ccc69f33c4 100644 --- a/dev-python/geventhttpclient/geventhttpclient-1.4.2.ebuild +++ b/dev-python/geventhttpclient/geventhttpclient-1.4.2.ebuild @@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha ~amd64 arm64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +KEYWORDS="~alpha amd64 arm64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="test" RESTRICT="!test? ( test )" diff --git a/dev-python/pytest-asyncio/pytest-asyncio-0.12.0.ebuild b/dev-python/pytest-asyncio/pytest-asyncio-0.12.0.ebuild index 5f33316dfdf7..81ffcc1b3375 100644 --- a/dev-python/pytest-asyncio/pytest-asyncio-0.12.0.ebuild +++ b/dev-python/pytest-asyncio/pytest-asyncio-0.12.0.ebuild @@ -15,7 +15,7 @@ SRC_URI="https://github.com/pytest-dev/pytest-asyncio/archive/v${PV}.tar.gz -> $ LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86" +KEYWORDS="amd64 arm ~arm64 ~ppc ~ppc64 x86" RDEPEND=" >=dev-python/pytest-5.4.0" |
