diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-07-15 13:14:13 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-07-15 13:14:13 +0000 |
| commit | 6af3ec79119578addebd4b60ff068d2ba0adae8d (patch) | |
| tree | d7bd55b7bee63c5acb5281c70824ad704aab2f51 /dev-python | |
| parent | 607b561bf0505a750e3947c833178f02cce32b50 (diff) | |
| download | baldeagleos-repo-6af3ec79119578addebd4b60ff068d2ba0adae8d.tar.gz baldeagleos-repo-6af3ec79119578addebd4b60ff068d2ba0adae8d.tar.xz baldeagleos-repo-6af3ec79119578addebd4b60ff068d2ba0adae8d.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
4 files changed, 81 insertions, 0 deletions
diff --git a/dev-python/html2text/html2text-2020.1.16-r2.ebuild b/dev-python/html2text/html2text-2020.1.16-r2.ebuild new file mode 100644 index 000000000000..99847c5bdede --- /dev/null +++ b/dev-python/html2text/html2text-2020.1.16-r2.ebuild @@ -0,0 +1,27 @@ +# 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_{7,8,9,10} pypy3 ) +inherit distutils-r1 + +DESCRIPTION="Turn HTML into equivalent Markdown-structured text" +HOMEPAGE="https://github.com/Alir3z4/html2text + https://pypi.org/project/html2text/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" + +DOCS=( AUTHORS.rst ChangeLog.rst README.md ) + +distutils_enable_tests pytest + +src_prepare() { + # naming conflict with app-text/html2text, bug 421647 + sed -e 's/html2text = html2text.cli:main/py\0/' -i setup.cfg || die + distutils-r1_src_prepare +} diff --git a/dev-python/netifaces/netifaces-0.11.0-r1.ebuild b/dev-python/netifaces/netifaces-0.11.0-r1.ebuild new file mode 100644 index 000000000000..0e454b9c9141 --- /dev/null +++ b/dev-python/netifaces/netifaces-0.11.0-r1.ebuild @@ -0,0 +1,27 @@ +# 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_{7,8,9,10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Portable network interface information" +HOMEPAGE=" + https://pypi.org/project/netifaces/ + https://alastairs-place.net/projects/netifaces/ + https://github.com/al45tair/netifaces +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" + +PATCHES=( "${FILESDIR}"/${PN}-0.10.4-remove-osx-fix.patch ) + +python_test() { + "${EPYTHON}" test.py || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/oslo-i18n/files/oslo-i18n-5.1.0-fix-py3.11.patch b/dev-python/oslo-i18n/files/oslo-i18n-5.1.0-fix-py3.11.patch new file mode 100644 index 000000000000..d684cf2ed294 --- /dev/null +++ b/dev-python/oslo-i18n/files/oslo-i18n-5.1.0-fix-py3.11.patch @@ -0,0 +1,23 @@ +On python 3.11, we have some more warnings (deprecation warnings), +so the count is >=1 + +--- a/oslo_i18n/tests/test_message.py ++++ b/oslo_i18n/tests/test_message.py +@@ -386,7 +386,7 @@ class MessageTestCase(test_base.BaseTestCase): + + self.assertEqual(default_translation, msg.translation('es')) + +- self.assertEqual(1, len(w)) ++ self.assertLessEqual(1, len(w)) + # Note(gibi): in python 3.4 str.__repr__ does not put the unicode + # marker 'u' in front of the string representations so the test + # removes that to have the same result in python 2.7 and 3.4 +@@ -394,7 +394,7 @@ class MessageTestCase(test_base.BaseTestCase): + "translated message A message in Spanish: %s %s " + "(Original: 'A message: %s'): " + "not enough arguments for format string", +- str(w[0].message).replace("u'", "'")) ++ str(w[-1].message).replace("u'", "'")) + + mock_log.debug.assert_called_with(('Failed to insert replacement ' + 'values into translated message ' diff --git a/dev-python/oslo-i18n/oslo-i18n-5.1.0-r1.ebuild b/dev-python/oslo-i18n/oslo-i18n-5.1.0-r1.ebuild index d3e99db572b5..269c70b34dee 100644 --- a/dev-python/oslo-i18n/oslo-i18n-5.1.0-r1.ebuild +++ b/dev-python/oslo-i18n/oslo-i18n-5.1.0-r1.ebuild @@ -24,6 +24,10 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="amd64 ~arm arm64 ~riscv x86" +PATCHES=( + "${FILESDIR}/${PN}-5.1.0-fix-py3.11.patch" +) + RDEPEND=" >=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] " |
