From 3329ad4438e8adc52442c40520423dd1cb239aef Mon Sep 17 00:00:00 2001 From: "Andreas Billmeier (@Home/mbp)" Date: Sun, 6 Sep 2020 18:16:38 +0200 Subject: [PATCH] patch locationsharinglib against pinned versions --- CHANGELOG.txt | 1 + dev-python/locationsharinglib/Manifest | 5 ++- .../locationsharinglib-4.1.0.ebuild | 19 +++++++-- .../locationsharinglib-4.1.1.ebuild | 41 +++++++++++++++++++ dev-python/locationsharinglib/x | 30 ++++++++++++++ 5 files changed, 91 insertions(+), 5 deletions(-) create mode 100644 dev-python/locationsharinglib/locationsharinglib-4.1.1.ebuild create mode 100644 dev-python/locationsharinglib/x diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 202ee0783..bc9d420d9 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -58,6 +58,7 @@ * fix lupupy-0.0.1* pathlib DEPS * fix pyalmond test DEPS * add pytest-tornasync-0.6.0 + * patch locationsharinglib against pinned versions 2020-09-05 * repair iglo-1.2.7, drop iglo-1.2.5, abondoned anyway: https://github.com/jesserockz/python-iglo/issues/1#issuecomment-558479023 diff --git a/dev-python/locationsharinglib/Manifest b/dev-python/locationsharinglib/Manifest index 23a6159a2..34f49d133 100644 --- a/dev-python/locationsharinglib/Manifest +++ b/dev-python/locationsharinglib/Manifest @@ -1,7 +1,10 @@ DIST locationsharinglib-3.0.11.tar.gz 27876 BLAKE2B d39f79393fba635be43658fe68608680766260100b3f53d6bd3b94609def014338c488ac3f2d7c6a899943619452b852cc8cb7d42fc23a862891d9ed9abfe753 SHA512 026b901c7c47c2818f30c0a817cdcd21465d2d7cb67c12610d660ff13ef5a98de9ac34593552117cd25e45768ba70391b8716b28823e3faf502cd5a5e9d9a545 DIST locationsharinglib-4.0.2.tar.gz 41947 BLAKE2B 4c4959d1b01aa9798fd7e5a0a61dc22c20d316c8a21008e43342a1483cee804d76df77c72deee3f9cee4b2ef2ecd7810fc2a36e5af69b1f421a36d3e741e69cf SHA512 37b1ace61064d3e60a9cfde5a98913a4a30b13bb7e615b86575c6d579c1eb34e7d808b18678abf1411ff1ab7544c137f92e865a52e8b66efd3bbc9e78c636f8c DIST locationsharinglib-4.1.0.tar.gz 50404 BLAKE2B 5f28794de501a0344c6ab0eba9727486592c465c309eef68de0fc326ecddb7312c83c114e68dcfdc00f17f83b8a30d901a28dfbf3309f2ba2f366cf1ceb3f067 SHA512 029a8c3acf1ae83b958398663ca16a62e30ff7841e673e72cc9ec580b49e9a273e43eff4cc038901e652d50e45d5d9bd85b54f5dd6848a94c86b3c44a867ead7 +DIST locationsharinglib-4.1.1.tar.gz 53355 BLAKE2B cf8040e45eeaddf03e0c6c2b28abd187871c30d4f17fa443c8eb540e0088c0203b2113a03935c136750ff73641ef12d551c88d3a0b042e3140de6c1824404d9b SHA512 bb3af91ac9be840f1b665359e627d676253ece36d16465e7ffd2eeb20c89f739742ebba05a84716570a2fbf8a1e028ee81f5a67310175e3f1d9b949017ed3fbc EBUILD locationsharinglib-3.0.11.ebuild 731 BLAKE2B 52b497eccdc1aba477431aa09ec1b61adc1a0676f982651635c0ddb96e774082bde75d15e587f34a946e672e57b49ccab2f92e0be20d3ca3845b9f692f686756 SHA512 204970718996f24ae6286ec2c2eb3fbc3df16acb970288469f9c1058fcb7c2ffb2185993c1286849903da4fb0bc83a4a0a7132b639548eed47312752bbd473d3 EBUILD locationsharinglib-4.0.2.ebuild 731 BLAKE2B 52b497eccdc1aba477431aa09ec1b61adc1a0676f982651635c0ddb96e774082bde75d15e587f34a946e672e57b49ccab2f92e0be20d3ca3845b9f692f686756 SHA512 204970718996f24ae6286ec2c2eb3fbc3df16acb970288469f9c1058fcb7c2ffb2185993c1286849903da4fb0bc83a4a0a7132b639548eed47312752bbd473d3 -EBUILD locationsharinglib-4.1.0.ebuild 738 BLAKE2B ad35a34270202a6d83eafd3b84c40049392e1a6cd3e09be5c2e6781806a9409dd700444adcb8ded2cb5fbcf1d90c01b3b973f9375647b9263b57a1ae0af57287 SHA512 c0638208075aff74f1b809aa68b4c6419edac64b9ee26c32a28f04bc929b894b291b48673d1d4f60a35b9d1d97f089e8b569660c3396c72204093eaf29a849ab +EBUILD locationsharinglib-4.1.0.ebuild 1148 BLAKE2B 105d93bf484fbc82976962380c53a5b5328510227fac7592a6a598fc475c3464e59a2420e5e989783e7977882b0363a3b32b501458068655cf6d8da13af6cfa9 SHA512 8b800cd1b2983975b4699dd09ac4dfc18e3614608fe2af0462080532a2bf3cee00075b7243e602a1b0798fc39d084d16261aa1f4ac058c66b45a7a1ac51fcf6b +EBUILD locationsharinglib-4.1.1.ebuild 1148 BLAKE2B 105d93bf484fbc82976962380c53a5b5328510227fac7592a6a598fc475c3464e59a2420e5e989783e7977882b0363a3b32b501458068655cf6d8da13af6cfa9 SHA512 8b800cd1b2983975b4699dd09ac4dfc18e3614608fe2af0462080532a2bf3cee00075b7243e602a1b0798fc39d084d16261aa1f4ac058c66b45a7a1ac51fcf6b MISC metadata.xml 467 BLAKE2B 433692ab1e732670b7a091d607f1e6b0d86ab62135307b18adb6cae58d39cc2920e205f96ec90b45fe2a805bac914c19699793d4275c4fcb13b790f9b82d9990 SHA512 78583d1e038014fce08956d044944638ff56c0cee155c9975c40a59a0b79123e5e807622d8a72516403779abdf19cac5342671a4320f69a4d5321ffb24636d49 +MISC x 738 BLAKE2B ad35a34270202a6d83eafd3b84c40049392e1a6cd3e09be5c2e6781806a9409dd700444adcb8ded2cb5fbcf1d90c01b3b973f9375647b9263b57a1ae0af57287 SHA512 c0638208075aff74f1b809aa68b4c6419edac64b9ee26c32a28f04bc929b894b291b48673d1d4f60a35b9d1d97f089e8b569660c3396c72204093eaf29a849ab diff --git a/dev-python/locationsharinglib/locationsharinglib-4.1.0.ebuild b/dev-python/locationsharinglib/locationsharinglib-4.1.0.ebuild index 30e43e1dc..9d8130b4b 100644 --- a/dev-python/locationsharinglib/locationsharinglib-4.1.0.ebuild +++ b/dev-python/locationsharinglib/locationsharinglib-4.1.0.ebuild @@ -3,11 +3,11 @@ EAPI="7" -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{6..8} ) inherit distutils-r1 -DESCRIPTION="Retrieve coordinates from Google." +DESCRIPTION="A library to retrieve coordinates from an google account that has been shared locations of other accounts." HOMEPAGE="https://github.com/costastf/locationsharinglib https://pypi.org/project/locationsharinglib/" SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" @@ -16,14 +16,25 @@ SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" IUSE="test" -RDEPEND="~dev-pathon/requests-2.21.0[${PYTHON_USEDEP}]" -DEPEND="${REDEPEND} +RDEPEND="dev-python/coloredlogs + dev-python/requests + dev-python/cachetools + dev-python/pytz" +BDEPEND="${REDEPEND} dev-python/setuptools[${PYTHON_USEDEP}] test? ( dev-python/nose[${PYTHON_USEDEP}] dev-python/pytest[${PYTHON_USEDEP}] )" +src_prepare() { + sed -i "s/coloredlogs~=10.0/coloredlogs/g" -i requirements.txt || die + sed -i "s/requests~=2.21.0/requests/g" -i requirements.txt || die + sed -i "s/cachetools~=2.0.1/cachetools/g" -i requirements.txt || die + sed -i "s/pytz~=2019.2/pytz/g" -i requirements.txt || die + eapply_user +} + python_test() { nosetests --verbose || die py.test -v -v || die diff --git a/dev-python/locationsharinglib/locationsharinglib-4.1.1.ebuild b/dev-python/locationsharinglib/locationsharinglib-4.1.1.ebuild new file mode 100644 index 000000000..9d8130b4b --- /dev/null +++ b/dev-python/locationsharinglib/locationsharinglib-4.1.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{6..8} ) + +inherit distutils-r1 + +DESCRIPTION="A library to retrieve coordinates from an google account that has been shared locations of other accounts." +HOMEPAGE="https://github.com/costastf/locationsharinglib https://pypi.org/project/locationsharinglib/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +RDEPEND="dev-python/coloredlogs + dev-python/requests + dev-python/cachetools + dev-python/pytz" +BDEPEND="${REDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + )" + +src_prepare() { + sed -i "s/coloredlogs~=10.0/coloredlogs/g" -i requirements.txt || die + sed -i "s/requests~=2.21.0/requests/g" -i requirements.txt || die + sed -i "s/cachetools~=2.0.1/cachetools/g" -i requirements.txt || die + sed -i "s/pytz~=2019.2/pytz/g" -i requirements.txt || die + eapply_user +} + +python_test() { + nosetests --verbose || die + py.test -v -v || die +} diff --git a/dev-python/locationsharinglib/x b/dev-python/locationsharinglib/x new file mode 100644 index 000000000..30e43e1dc --- /dev/null +++ b/dev-python/locationsharinglib/x @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit distutils-r1 + +DESCRIPTION="Retrieve coordinates from Google." +HOMEPAGE="https://github.com/costastf/locationsharinglib https://pypi.org/project/locationsharinglib/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +RDEPEND="~dev-pathon/requests-2.21.0[${PYTHON_USEDEP}]" +DEPEND="${REDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + )" + +python_test() { + nosetests --verbose || die + py.test -v -v || die +}