summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net>2020-08-05 06:34:30 +0000
committerLiguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net>2020-08-05 06:34:30 +0000
commitc64d690a72437a9d42456cef754add2436663d83 (patch)
tree02eb821c37863fa1e0ced24f52b9361fbc88de4a /dev-python
parenta6a99f66c0503d97545e9cb1884a61327c20d67d (diff)
downloadbaldeagleos-repo-c64d690a72437a9d42456cef754add2436663d83.tar.gz
baldeagleos-repo-c64d690a72437a9d42456cef754add2436663d83.tar.xz
baldeagleos-repo-c64d690a72437a9d42456cef754add2436663d83.zip
Updating liguros repo
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/authres/authres-1.2.0.ebuild2
-rw-r--r--dev-python/configobj/Manifest1
-rw-r--r--dev-python/configobj/configobj-5.0.6-r1.ebuild23
-rw-r--r--dev-python/configobj/files/configobj-5.0.6-fix-py2-tests.patch40
-rw-r--r--dev-python/dkimpy/dkimpy-1.0.4.ebuild2
-rw-r--r--dev-python/requests-cache/Manifest1
-rw-r--r--dev-python/requests-cache/requests-cache-0.5.2.ebuild70
7 files changed, 137 insertions, 2 deletions
diff --git a/dev-python/authres/authres-1.2.0.ebuild b/dev-python/authres/authres-1.2.0.ebuild
index 1433a2cc7112..5ab0caeceeda 100644
--- a/dev-python/authres/authres-1.2.0.ebuild
+++ b/dev-python/authres/authres-1.2.0.ebuild
@@ -12,7 +12,7 @@ HOMEPAGE="https://launchpad.net/authentication-results-python
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
-KEYWORDS="amd64 ~arm64 x86"
+KEYWORDS="amd64 arm64 x86"
SLOT="0"
IUSE=""
diff --git a/dev-python/configobj/Manifest b/dev-python/configobj/Manifest
index 09a7a68b3487..a606bd2e893c 100644
--- a/dev-python/configobj/Manifest
+++ b/dev-python/configobj/Manifest
@@ -1 +1,2 @@
+DIST configobj-5.0.6.gh.tar.gz 143664 BLAKE2B b554d0aec903aecb55387a0164cd6f8d442e9fc1ab231ce7f7123e7a5041e07a86f5f7bf70492ca93fcdc1bd3caa5b855c427f060842e3b4a7524afbcc417a76 SHA512 326eb86e362f281ebf07abcb1cf7616abb270c482eafe842371cda8708245ca5e8262f1644b7164664ecc10e9004ed061c9de18cd233a657d4697dbc3ba3c59d
DIST configobj-5.0.6.tar.gz 33248 BLAKE2B b58a22fdf247f1c3022108e24abb4de55620ce75f6aeb5f269f008a5668e07b8c1d0c49e4059d7f4c4c361d269ead39c3784377635c7718f92c2381e69c56cb5 SHA512 f253fdd0bc3fcd37f56c9ceb28f5c8c739b0861e099b07a3929645907c97b2261f0529850a95c1a42507846f72d88a0992fcd1e1d6fa8654dc713d120f769963
diff --git a/dev-python/configobj/configobj-5.0.6-r1.ebuild b/dev-python/configobj/configobj-5.0.6-r1.ebuild
new file mode 100644
index 000000000000..5534956f45c0
--- /dev/null
+++ b/dev-python/configobj/configobj-5.0.6-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{5,6,7,8,9} )
+DISTUTILS_USE_SETUPTOOLS=no
+
+inherit distutils-r1
+
+DESCRIPTION="Simple config file reader and writer"
+HOMEPAGE="https://www.voidspace.org.uk/python/configobj.html https://pypi.org/project/configobj/"
+SRC_URI="https://github.com/DiffSK/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
+
+PATCHES=( "${FILESDIR}/${P}-fix-py2-tests.patch" )
+
+distutils_enable_tests pytest
diff --git a/dev-python/configobj/files/configobj-5.0.6-fix-py2-tests.patch b/dev-python/configobj/files/configobj-5.0.6-fix-py2-tests.patch
new file mode 100644
index 000000000000..49576b4f43e7
--- /dev/null
+++ b/dev-python/configobj/files/configobj-5.0.6-fix-py2-tests.patch
@@ -0,0 +1,40 @@
+diff --git a/tests/test_validate.py b/tests/test_validate.py
+index bffb0dc..c7d57d3 100644
+--- a/tests/test_validate.py
++++ b/tests/test_validate.py
+@@ -2,7 +2,7 @@
+
+ from configobj import ConfigObj
+ import pytest
+-from validate import Validator, VdtValueTooSmallError
++from validate import Validator, VdtValueTooSmallError, dottedQuadToNum
+
+
+ class TestBasic(object):
+@@ -161,3 +161,26 @@ class TestBasic(object):
+ 'test3': 3,
+ 'test4': 6.0
+ }}}
++
++
++class TestDottedQuadToNum(object):
++
++ def test_stripped(self):
++ assert dottedQuadToNum('192.0.2.0') == 3221225984
++ assert dottedQuadToNum('192.0.2.1 ') == 3221225985
++ assert dottedQuadToNum(' 192.0.2.2') == 3221225986
++ assert dottedQuadToNum('\t\t192.0.2.3\n') == 3221225987
++ with pytest.raises(ValueError) as excinfo:
++ dottedQuadToNum('192. 0. 2. 4')
++ assert str(excinfo.value) == 'Not a good dotted-quad IP: 192. 0. 2. 4'
++
++ def test_boundaries(self):
++ assert dottedQuadToNum('0.0.0.0') == 0
++ assert dottedQuadToNum('255.255.255.255') == 4294967295
++ with pytest.raises(ValueError) as excinfo:
++ dottedQuadToNum('255.255.255.256')
++ assert str(excinfo.value) == (
++ 'Not a good dotted-quad IP: 255.255.255.256')
++ with pytest.raises(ValueError) as excinfo:
++ dottedQuadToNum('-1')
++ assert str(excinfo.value) == 'Not a good dotted-quad IP: -1'
diff --git a/dev-python/dkimpy/dkimpy-1.0.4.ebuild b/dev-python/dkimpy/dkimpy-1.0.4.ebuild
index 459673c351c6..edf55b0d7120 100644
--- a/dev-python/dkimpy/dkimpy-1.0.4.ebuild
+++ b/dev-python/dkimpy/dkimpy-1.0.4.ebuild
@@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="~amd64 arm64 ~x86"
IUSE=""
RDEPEND="
diff --git a/dev-python/requests-cache/Manifest b/dev-python/requests-cache/Manifest
index 06a5f924bc0e..fa46d4c925e8 100644
--- a/dev-python/requests-cache/Manifest
+++ b/dev-python/requests-cache/Manifest
@@ -1 +1,2 @@
DIST requests-cache-0.4.12.zip 44767 BLAKE2B f328d8ae8e3377af626030a6e3617c78e488024fa4ada9894576d339e571ba8ee6d905612ddc2802810bbeffbd8c94d90c743889e80fbf21418a7c67c5a005f6 SHA512 784d630eec99b607596d6ebcb7e51b0b4ed612b131437000391ecea6f3a684d1f61d169d57266ffc044a3939dcd4e7d6f85b9538165ae3613b1d3e55f18585fd
+DIST requests-cache-0.5.2.tar.gz 31159 BLAKE2B 4fca146a751064baf70954a71df64dbb7f8c9a4e27fec5dbea3620496ce78e7ccfb3785fb63705f513ff6fa938376b0c6acc4a2f584856060b1bc8388517df46 SHA512 355cc571a46b768615606a907a69ed065b3c4b5e74bb6c311abc7a28d9406f32fdea1db0dfd2b1c32dcdc82ed817ef7e0b30086c069de57307254617604c5177
diff --git a/dev-python/requests-cache/requests-cache-0.5.2.ebuild b/dev-python/requests-cache/requests-cache-0.5.2.ebuild
new file mode 100644
index 000000000000..b6d60d1a513b
--- /dev/null
+++ b/dev-python/requests-cache/requests-cache-0.5.2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8,9} )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1
+
+HOMEPAGE="https://pypi.org/project/requests-cache/"
+DESCRIPTION="Persistent cache for requests library"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/requests[${PYTHON_USEDEP}]"
+
+distutils_enable_sphinx docs
+distutils_enable_tests pytest
+
+src_prepare() {
+ # Ships with incorrect mock import
+ sed -e 's/import mock/import unittest.mock as mock/' -i tests/test_cache.py || die
+ default
+}
+
+python_test() {
+ local skipped_tests=(
+ # Slew of tests that violate network-sandbox
+ tests/test_cache.py::CacheTestCase::test_attr_from_cache_in_hook
+ tests/test_cache.py::CacheTestCase::test_cache_unpickle_errors
+ tests/test_cache.py::CacheTestCase::test_close_response
+ tests/test_cache.py::CacheTestCase::test_content_and_cookies
+ tests/test_cache.py::CacheTestCase::test_delete_urls
+ tests/test_cache.py::CacheTestCase::test_disabled
+ tests/test_cache.py::CacheTestCase::test_enabled
+ tests/test_cache.py::CacheTestCase::test_expire_cache
+ tests/test_cache.py::CacheTestCase::test_from_cache_attribute
+ tests/test_cache.py::CacheTestCase::test_get_parameters_normalization
+ tests/test_cache.py::CacheTestCase::test_get_params_as_argument
+ tests/test_cache.py::CacheTestCase::test_gzip_response
+ tests/test_cache.py::CacheTestCase::test_headers_in_get_query
+ tests/test_cache.py::CacheTestCase::test_hooks
+ tests/test_cache.py::CacheTestCase::test_https_support
+ tests/test_cache.py::CacheTestCase::test_ignore_parameters_get
+ tests/test_cache.py::CacheTestCase::test_ignore_parameters_post
+ tests/test_cache.py::CacheTestCase::test_ignore_parameters_post_json
+ tests/test_cache.py::CacheTestCase::test_ignore_parameters_post_raw
+ tests/test_cache.py::CacheTestCase::test_post
+ tests/test_cache.py::CacheTestCase::test_post_data
+ tests/test_cache.py::CacheTestCase::test_post_parameters_normalization
+ tests/test_cache.py::CacheTestCase::test_post_params
+ tests/test_cache.py::CacheTestCase::test_remove_expired_entries
+ tests/test_cache.py::CacheTestCase::test_response_history
+ tests/test_cache.py::CacheTestCase::test_response_history_simple
+ tests/test_cache.py::CacheTestCase::test_return_old_data_on_error
+ tests/test_cache.py::CacheTestCase::test_stream_requests_support
+ tests/test_monkey_patch.py::MonkeyPatchTestCase::test_requests_from_cache
+
+ # This throws many errors with network-sandbox, but doesn't fail the
+ # build
+ tests/test_thread_safety::test_thread_safety
+ )
+
+ # Redis tests need a redis server running
+ pytest -vv --ignore tests/test_redisdict.py ${skipped_tests[@]/#/--deselect } || die "Tests fail with ${EPYTHON}"
+}