diff options
| author | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-08-22 00:27:12 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [feature/flatten] <gitlab@liguros.net> | 2020-08-22 00:27:12 +0000 |
| commit | 2e2c42592bbeb18e7029bea330e85f0d59df3193 (patch) | |
| tree | a76fca2c5cf02affb97f40ba45a7e7f9a7c89b8d /dev-python | |
| parent | 0e948f04b8a297eba35540b752e5559733bde052 (diff) | |
| download | baldeagleos-repo-2e2c42592bbeb18e7029bea330e85f0d59df3193.tar.gz baldeagleos-repo-2e2c42592bbeb18e7029bea330e85f0d59df3193.tar.xz baldeagleos-repo-2e2c42592bbeb18e7029bea330e85f0d59df3193.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python')
20 files changed, 265 insertions, 159 deletions
diff --git a/dev-python/clang-python/Manifest b/dev-python/clang-python/Manifest index 082dafda8adc..8ceb93829922 100644 --- a/dev-python/clang-python/Manifest +++ b/dev-python/clang-python/Manifest @@ -1,4 +1,5 @@ DIST llvmorg-10.0.0.tar.gz 120804856 BLAKE2B 6b0254f5b913398cdcf2b2ec1ff219888706d2b79d5296590934714e42ac79f6a6547941ac2b1d2c4e6313dd18b6c7068e748aa6ac033e49fccbf5d355aa8191 SHA512 baa182d62fef1851836013ae8a1a00861ea89769778d67fb97b407a9de664e6c85da2af9c5b3f75d2bf34ff6b00004e531ca7e4b3115a26c0e61c575cf2303a0 DIST llvmorg-10.0.1.tar.gz 120880730 BLAKE2B 30f19f56c4d1f6abcda5fec76256219d1e3c8a6ff1a1f152f94bfe362c07884339fe571ff7fe903ed3b3deb150b2fa868c387887a0dea2930dc08b81db71a5b1 SHA512 48078fff9293a87f1a973f3348f79506f04c3da774295f5eb67d74dd2d1aa94f0973f8ced3f4ab9e8339902071f82c603b43d5608ad7227046c4da769c5d2151 DIST llvmorg-11.0.0-rc1.tar.gz 122688246 BLAKE2B 10ff3f08ff3780abb1d86ac67942e6aac52ff5daf820a2e3d23d8b79dbade1c5b1d398d0a577028d2d7c8759ab9a8b552a0305b5750310a015585c06cdadf844 SHA512 09564ed903902a5795fffaa4679badc30bf49739889a48074b5ae2c93bd29000cfb36a650208d5cae5d74899bade066f84b4aa023fc852eec246ff67bf64a267 +DIST llvmorg-11.0.0-rc2.tar.gz 122728230 BLAKE2B 7944adf41ec7cd82489666a0a38a857de628879d59a2e3bb566b67c18500092430db66ff214d45cb324128c874a74a72c367b452df3b88ec95b33c284dd35512 SHA512 25eb2879eb22e79a1e840ef24cf3f5eec602e947101db299393e06e3d09f2d1531eef214264636e1b511eafff7f51b1834d5a03976ccd088eb680745b147e9f3 DIST llvmorg-9.0.1.tar.gz 113193320 BLAKE2B b86e405f2b8e00436045fd409fe19cdde75c797b1192c62a22b5ec75e6b4dc8e874a0f33008dc31562445e4cbe53a992b6f48c684255a6a1ef261e595b8b161f SHA512 fa88beeaae94b6d0cd9b5ba38658d0ffed8004035d7d8a4f95c3d31a709b88b581ae9bd7761333c8e5375c44b8f6be01768b5a3be901163159d7e6c43b71da59 diff --git a/dev-python/clang-python/clang-python-11.0.0_rc2.ebuild b/dev-python/clang-python/clang-python-11.0.0_rc2.ebuild new file mode 100644 index 000000000000..8509078f7309 --- /dev/null +++ b/dev-python/clang-python/clang-python-11.0.0_rc2.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 llvm.org python-r1 + +DESCRIPTION="Python bindings for sys-devel/clang" +HOMEPAGE="https://llvm.org/" +LLVM_COMPONENTS=( clang/bindings/python ) +llvm.org_set_globals + +LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" +SLOT="0" +KEYWORDS="" +IUSE="test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +# The module is opening libclang.so directly, and doing some blasphemy +# on top of it. +RDEPEND=" + >=sys-devel/clang-${PV}:* + !sys-devel/llvm:0[clang(-),python(-)] + !sys-devel/clang:0[python(-)] + ${PYTHON_DEPS}" +DEPEND="${RDEPEND}" + +python_test() { + "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" +} + +src_test() { + python_foreach_impl python_test +} + +src_install() { + python_foreach_impl python_domodule clang +} diff --git a/dev-python/doctest-ignore-unicode/doctest-ignore-unicode-0.1.2.ebuild b/dev-python/doctest-ignore-unicode/doctest-ignore-unicode-0.1.2.ebuild index 6b262b384b11..9dd969426fc6 100644 --- a/dev-python/doctest-ignore-unicode/doctest-ignore-unicode-0.1.2.ebuild +++ b/dev-python/doctest-ignore-unicode/doctest-ignore-unicode-0.1.2.ebuild @@ -11,15 +11,8 @@ DESCRIPTION="Add flag to ignore unicode literal prefixes in doctests" HOMEPAGE="https://pypi.org/project/doctest-ignore-unicode/ https://github.com/gnublade/doctest-ignore-unicode" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" -SLOT="0" LICENSE="Apache-2.0" +SLOT="0" KEYWORDS="amd64 ~arm ~arm64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux" -IUSE="test" -RESTRICT="!test? ( test )" -RDEPEND=" - dev-python/nose[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] -" +distutils_enable_tests nose diff --git a/dev-python/lit/Manifest b/dev-python/lit/Manifest index 082dafda8adc..8ceb93829922 100644 --- a/dev-python/lit/Manifest +++ b/dev-python/lit/Manifest @@ -1,4 +1,5 @@ DIST llvmorg-10.0.0.tar.gz 120804856 BLAKE2B 6b0254f5b913398cdcf2b2ec1ff219888706d2b79d5296590934714e42ac79f6a6547941ac2b1d2c4e6313dd18b6c7068e748aa6ac033e49fccbf5d355aa8191 SHA512 baa182d62fef1851836013ae8a1a00861ea89769778d67fb97b407a9de664e6c85da2af9c5b3f75d2bf34ff6b00004e531ca7e4b3115a26c0e61c575cf2303a0 DIST llvmorg-10.0.1.tar.gz 120880730 BLAKE2B 30f19f56c4d1f6abcda5fec76256219d1e3c8a6ff1a1f152f94bfe362c07884339fe571ff7fe903ed3b3deb150b2fa868c387887a0dea2930dc08b81db71a5b1 SHA512 48078fff9293a87f1a973f3348f79506f04c3da774295f5eb67d74dd2d1aa94f0973f8ced3f4ab9e8339902071f82c603b43d5608ad7227046c4da769c5d2151 DIST llvmorg-11.0.0-rc1.tar.gz 122688246 BLAKE2B 10ff3f08ff3780abb1d86ac67942e6aac52ff5daf820a2e3d23d8b79dbade1c5b1d398d0a577028d2d7c8759ab9a8b552a0305b5750310a015585c06cdadf844 SHA512 09564ed903902a5795fffaa4679badc30bf49739889a48074b5ae2c93bd29000cfb36a650208d5cae5d74899bade066f84b4aa023fc852eec246ff67bf64a267 +DIST llvmorg-11.0.0-rc2.tar.gz 122728230 BLAKE2B 7944adf41ec7cd82489666a0a38a857de628879d59a2e3bb566b67c18500092430db66ff214d45cb324128c874a74a72c367b452df3b88ec95b33c284dd35512 SHA512 25eb2879eb22e79a1e840ef24cf3f5eec602e947101db299393e06e3d09f2d1531eef214264636e1b511eafff7f51b1834d5a03976ccd088eb680745b147e9f3 DIST llvmorg-9.0.1.tar.gz 113193320 BLAKE2B b86e405f2b8e00436045fd409fe19cdde75c797b1192c62a22b5ec75e6b4dc8e874a0f33008dc31562445e4cbe53a992b6f48c684255a6a1ef261e595b8b161f SHA512 fa88beeaae94b6d0cd9b5ba38658d0ffed8004035d7d8a4f95c3d31a709b88b581ae9bd7761333c8e5375c44b8f6be01768b5a3be901163159d7e6c43b71da59 diff --git a/dev-python/lit/lit-11.0.0_rc2.ebuild b/dev-python/lit/lit-11.0.0_rc2.ebuild new file mode 100644 index 000000000000..f3959b4c536a --- /dev/null +++ b/dev-python/lit/lit-11.0.0_rc2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{5,6,7,8,9} ) + +inherit distutils-r1 llvm.org + +DESCRIPTION="A stand-alone install of the LLVM suite testing tool" +HOMEPAGE="https://llvm.org/" +LLVM_COMPONENTS=( llvm/utils/lit ) +llvm.org_set_globals + +LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" +SLOT="0" +KEYWORDS="" +IUSE="test" +RESTRICT="!test? ( test )" + +# Tests require 'FileCheck' and 'not' utilities (from llvm) +BDEPEND=" + test? ( + dev-python/psutil[${PYTHON_USEDEP}] + sys-devel/llvm )" + +# TODO: move the manpage generation here (from sys-devel/llvm) + +src_prepare() { + cd "${WORKDIR}" || die + distutils-r1_src_prepare +} + +python_test() { + local -x LIT_PRESERVES_TMP=1 + local litflags=$(get_lit_flags) + ./lit.py ${litflags//;/ } tests || die +} diff --git a/dev-python/m2crypto/m2crypto-0.36.0.ebuild b/dev-python/m2crypto/m2crypto-0.36.0.ebuild index c458bafcbb86..bae3913ad090 100644 --- a/dev-python/m2crypto/m2crypto-0.36.0.ebuild +++ b/dev-python/m2crypto/m2crypto-0.36.0.ebuild @@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +KEYWORDS="~alpha ~amd64 arm arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" IUSE="libressl" RDEPEND=" diff --git a/dev-python/pygraphviz/Manifest b/dev-python/pygraphviz/Manifest index 2301c1c36acb..b81426376a48 100644 --- a/dev-python/pygraphviz/Manifest +++ b/dev-python/pygraphviz/Manifest @@ -1 +1,2 @@ DIST pygraphviz-1.5.zip 117810 BLAKE2B e9139d6b8e01cacb3135b1ccd2fa8624c041b7a04848f66c7668c5acf55cf66380ab9f05193b1bb240133f0c01a21915e2314807fcde23246c287d22efb9450a SHA512 6d3df6642a7e23ecb6b687761480b80a3ee5886508ef50b81697041425be7d09d623bf46990c5cea3ef36817a28d9e5c2905eb32267296f55524fdedb2199ea2 +DIST pygraphviz-1.6.zip 117043 BLAKE2B a6c4f28d67ff67bf3fb69869adaad23855c6d702663cfea648b2072b8a5095caaa3d9cfcc864354a362cc6c4c2c6e4a15d5977c58c6af5e22b02f8cea8f7e877 SHA512 6dd389b3fd8c46fd5c8a5a450623f2fe080f720bcf0812618549d092cf917b56ef515f4235fdb89123ece422c6e295705bb08076a3d3e9b193955fcda624acb3 diff --git a/dev-python/pygraphviz/pygraphviz-1.6.ebuild b/dev-python/pygraphviz/pygraphviz-1.6.ebuild new file mode 100644 index 000000000000..4e59dde2d7a6 --- /dev/null +++ b/dev-python/pygraphviz/pygraphviz-1.6.ebuild @@ -0,0 +1,44 @@ +# 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 + +DESCRIPTION="Python wrapper for the Graphviz Agraph data structure" +HOMEPAGE="https://pygraphviz.github.io/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" + +# Note: only C API of graphviz is used, PYTHON_USEDEP unnecessary. +RDEPEND="media-gfx/graphviz" +DEPEND="${RDEPEND}" +BDEPEND=" + app-arch/unzip + dev-lang/swig:0 + test? ( dev-python/doctest-ignore-unicode[${PYTHON_USEDEP}] )" + +distutils_enable_tests nose + +PATCHES=( "${FILESDIR}"/${PN}-1.5-docs.patch ) + +python_prepare_all() { + distutils-r1_python_prepare_all + swig -python pygraphviz/graphviz.i || die +} + +python_test() { + nosetests -c setup.cfg -x -v "${BUILD_DIR}"/lib/pygraphviz || die +} + +python_install_all() { + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + + distutils-r1_python_install_all +} diff --git a/dev-python/pytest-mock/pytest-mock-3.2.0.ebuild b/dev-python/pytest-mock/pytest-mock-3.2.0.ebuild index 741b8481acc6..710a66cf1173 100644 --- a/dev-python/pytest-mock/pytest-mock-3.2.0.ebuild +++ b/dev-python/pytest-mock/pytest-mock-3.2.0.ebuild @@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha ~amd64 arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 sparc x86" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 sparc x86" IUSE="" RDEPEND=">=dev-python/pytest-5[${PYTHON_USEDEP}]" diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest index 282e026a5017..ff78a2af9d16 100644 --- a/dev-python/pytest/Manifest +++ b/dev-python/pytest/Manifest @@ -1,5 +1,3 @@ -DIST pytest-3.10.1.tar.gz 892420 BLAKE2B 38849ae69bf4380bc1a99aa105cac04be078da4460373dfc16fa555238b2830fa2f5ae6c19de8aa2af9ac18d87c5d2705d62f7b2e67e4a62d843f6a28bbd76fd SHA512 30ff79c0fdcbeef68e1191ff400a20428e391717f06957f554b694b94baaaa565dca01346fe989c3e443c4402f3b2bdbd5564f6303a4447f933fb54cba45628f -DIST pytest-4.5.0.tar.gz 943607 BLAKE2B 49a0e91fda7f4231fdd39f90eb2daa344d3034c10faff221330ea0ae7482a2a7d0fb9443a0a264db00f1d92568d5a6005cb73e07d8643b46906f7ecff831adcb SHA512 cbffc6216f83491b1de241058315c116697bfaa5206b5f558192a7f861d43dd036d30d0d689bedae7bdee4f0258dd19ef5827c356e11863dd596a5fabe8249fc DIST pytest-4.6.11.tar.gz 952305 BLAKE2B af07adf5e8fc614b1fdb7b5673fb9c557ff0dd3f22e2f3bf853c643c5c8bd38f307018579299b700d90034a826db73a3e569857d6d6f7ac6646ace894b35a39b SHA512 6fddf4944bd9fab83024aa2d338d54aaf3d164bd5c7f634357376f3b0d2dab6a43d784e7fb567236c2d2f029151c5d9e2cb36c22e9b551c2c8823c52a2246e9c DIST pytest-5.4.3.tar.gz 1022353 BLAKE2B 70d4f23cbbfc4c4ce63c512ee0a01556973761a6d3ebb71a6d9ed4fb4a4a21531e1b151ed0e4c5e56e5dd3243a1a272441f17c4c2c4e3b0b19c24654b74e8e52 SHA512 0a07d4f4f791969c6f21961a0ba0f8c6670e5870c6cc1cebf93766587bb9cb3e10db8e57f0bd33dd22b275f3aad7aa674949f124ac80e0ccca64e35be4beee4e DIST pytest-6.0.1.tar.gz 1069631 BLAKE2B 89a78ebf8e8cf968ea767fe7244408ca79d247c1ca459815ac299ce773b44c375429935c8a25b4de26349969113c60e4b6812d5aa2d805691664af74796ea85b SHA512 bdd790c3860da2ed3a3ff47f04512c3bfae4fa1e31fc6b96fc19bd57d1804a6fec968ecf17a11c5b20d30dcf82d6391ef0d893ae57a3da9ad777a15c078c129f diff --git a/dev-python/pytest/pytest-3.10.1.ebuild b/dev-python/pytest/pytest-3.10.1.ebuild deleted file mode 100644 index 2dd8c73ab42f..000000000000 --- a/dev-python/pytest/pytest-3.10.1.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# 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} ) - -inherit distutils-r1 - -DESCRIPTION="Simple powerful testing with Python" -HOMEPAGE="https://pytest.org/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="test" -RESTRICT="!test? ( test )" - -# When bumping, please check setup.py for the proper py version -PY_VER="1.5.0" - -# pathlib2 has been added to stdlib before py3.6, but pytest needs __fspath__ -# support, which only came in py3.6. -RDEPEND=" - >=dev-python/atomicwrites-1.0[${PYTHON_USEDEP}] - >=dev-python/attrs-17.4.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - >=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}] - <dev-python/more-itertools-6.0.0[${PYTHON_USEDEP}] - dev-python/funcsigs[${PYTHON_USEDEP}] - dev-python/pathlib2[${PYTHON_USEDEP}] - ' -2) - $(python_gen_cond_dep '>=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}]' python3_{6,7} pypy{,3} ) - >=dev-python/pluggy-0.7[${PYTHON_USEDEP}] - >=dev-python/py-${PY_VER}[${PYTHON_USEDEP}] - >=dev-python/setuptools-40[${PYTHON_USEDEP}] - >=dev-python/six-1.10.0[${PYTHON_USEDEP}]" - -# flake & pytest-capturelog cause a number of tests to fail -DEPEND="${RDEPEND} - dev-python/setuptools_scm[${PYTHON_USEDEP}] - test? ( - >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] - dev-python/nose[${PYTHON_USEDEP}] - $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2) - dev-python/requests[${PYTHON_USEDEP}] - !!dev-python/flaky - !!dev-python/pytest-capturelog - !!<dev-python/pytest-xdist-1.22 - )" - -python_prepare_all() { - grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency" - - # Something in the ebuild environment causes this to hang/error. - # https://bugs.gentoo.org/598442 - rm testing/test_pdb.py || die - - # those tests appear to hang with python3.5+; TODO: investigate why - sed -i -e 's:test_runtest_location_shown_before_test_starts:_&:' \ - testing/test_terminal.py || die - sed -i -e 's:test_trial_pdb:_&:' testing/test_unittest.py || die - - distutils-r1_python_prepare_all -} - -python_test() { - "${PYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX \ - -vv testing || die "tests failed with ${EPYTHON}" -} diff --git a/dev-python/pytest/pytest-4.5.0.ebuild b/dev-python/pytest/pytest-4.5.0.ebuild deleted file mode 100644 index 3731ea0e6a04..000000000000 --- a/dev-python/pytest/pytest-4.5.0.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# 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} ) - -inherit distutils-r1 - -DESCRIPTION="Simple powerful testing with Python" -HOMEPAGE="https://pytest.org/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux" -IUSE="test" -RESTRICT="!test? ( test )" - -# When bumping, please check setup.py for the proper py version -PY_VER="1.5.0" - -# pathlib2 has been added to stdlib before py3.6, but pytest needs __fspath__ -# support, which only came in py3.6. -RDEPEND=" - >=dev-python/atomicwrites-1.0[${PYTHON_USEDEP}] - >=dev-python/attrs-17.4.0[${PYTHON_USEDEP}] - >=dev-python/more-itertools-4.0.0[${PYTHON_USEDEP}] - $(python_gen_cond_dep ' - dev-python/pathlib2[${PYTHON_USEDEP}] - dev-python/funcsigs[${PYTHON_USEDEP}] - ' -2) - >=dev-python/pluggy-0.11[${PYTHON_USEDEP}] - <dev-python/pluggy-1 - >=dev-python/py-${PY_VER}[${PYTHON_USEDEP}] - >=dev-python/setuptools-40[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - dev-python/wcwidth[${PYTHON_USEDEP}]" - -# flake cause a number of tests to fail -DEPEND="${RDEPEND} - test? ( - >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] - dev-python/nose[${PYTHON_USEDEP}] - $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2) - dev-python/requests[${PYTHON_USEDEP}] - !!dev-python/flaky - )" - -PATCHES=( - "${FILESDIR}/${PN}-4.5.0-strip-setuptools_scm.patch" -) - -python_prepare_all() { - grep -qF "py>=${PY_VER}" setup.py || die "Incorrect dev-python/py dependency" - - # Something in the ebuild environment causes this to hang/error. - # https://bugs.gentoo.org/598442 - rm testing/test_pdb.py || die - - distutils-r1_python_prepare_all -} - -python_test() { - # In v4.1.1, pytest started being picky about its own verbosity options. - # running pytest on itself with -vv made 3 tests fail. This is why we don't - # have it below. - "${EPYTHON}" "${BUILD_DIR}"/lib/pytest.py --lsof -rfsxX \ - || die "tests failed with ${EPYTHON}" -} diff --git a/dev-python/reportlab/Manifest b/dev-python/reportlab/Manifest index 200e6e1d0aa9..2585b56ae434 100644 --- a/dev-python/reportlab/Manifest +++ b/dev-python/reportlab/Manifest @@ -1,2 +1,3 @@ DIST pfbfer-20070710.zip 677333 BLAKE2B 100214476a361a5e5d1f3da0999591345f6e3a3f8c6bc3f6a3e9eca734190c6259758a43302c6e41254d33491fe535eb7d5dd07aa9727c912424bebc31fc18df SHA512 6fd4a5d955464b10d13a7b748703450c1fe120d5ed09e8cfa1b4dfa9c183c59fe001df29433af551796b0df62544b7ddc364f9bb1bdcc2cd300434340ffcc4f2 DIST reportlab-3.5.42.tar.gz 2883081 BLAKE2B 22f4e7ebc233895a036eeb94c5beb9206be561a8a44895b36291a4f840603a2fec90107ac60e749f99be629202801c63ff67d5034d19b42383f2df12d457104d SHA512 f52717867190bf7812fd566d9ec3044198db809cdd0f53cc9dbfa92503a202540db659369e20bba3de07cd28eb10515d03b85700ac138c9394dc9eed1f08b8f8 +DIST reportlab-3.5.48.tar.gz 2890211 BLAKE2B bf0cde9b9e80459caee37949dc90a777a56da5d2c8e6dde09bddbdac2f2c55031d92b3c7c6346b6f563904525020c0e4f666b5e2effdd761c81412df21ec60eb SHA512 ce31cb7e9e2226cb6d59d446f90c1df94f0f84077d298f7ba862f5c75995afa20fa077b1ee1ab9a145c9276cee0d75fe61237e001ad0e5b96dfb0027adff3db7 diff --git a/dev-python/reportlab/files/reportlab-3.5.48-usr-lib-LLD.patch b/dev-python/reportlab/files/reportlab-3.5.48-usr-lib-LLD.patch new file mode 100644 index 000000000000..09ae9675eb58 --- /dev/null +++ b/dev-python/reportlab/files/reportlab-3.5.48-usr-lib-LLD.patch @@ -0,0 +1,34 @@ +--- a/setup.py ++++ b/setup.py +@@ -163,22 +163,6 @@ + if self.L is None: + L = [] + I = [] +- if platform == "cygwin": +- aDir(L, os.path.join("/usr/lib", "python%s" % sys.version[:3], "config")) +- elif platform == "darwin": +- # attempt to make sure we pick freetype2 over other versions +- aDir(I, "/sw/include/freetype2") +- aDir(I, "/sw/lib/freetype2/include") +- # fink installation directories +- aDir(L, "/sw/lib") +- aDir(I, "/sw/include") +- # darwin ports installation directories +- aDir(L, "/opt/local/lib") +- aDir(I, "/opt/local/include") +- aDir(I, "/usr/local/include") +- aDir(L, "/usr/local/lib") +- aDir(I, "/usr/include") +- aDir(L, "/usr/lib") + aDir(I, "/usr/include/freetype2") + prefix = sysconfig.get_config_var("prefix") + if prefix: +@@ -574,7 +558,7 @@ + SOURCES, + include_dirs=[RENDERPM,LIBART_INC,GT1_DIR]+FT_INC_DIR, + define_macros=FT_MACROS+[('LIBART_COMPILATION',None)]+debug_macros+[('LIBART_VERSION',LIBART_VERSION)], +- library_dirs=[]+FT_LIB_DIR, ++ library_dirs=[], + + # libraries to link against + libraries=FT_LIB+LIBART_LIB, diff --git a/dev-python/reportlab/reportlab-3.5.48.ebuild b/dev-python/reportlab/reportlab-3.5.48.ebuild new file mode 100644 index 000000000000..3d8f889c3283 --- /dev/null +++ b/dev-python/reportlab/reportlab-3.5.48.ebuild @@ -0,0 +1,63 @@ +# 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 + +DESCRIPTION="Tools for generating printable PDF documents from any data source" +HOMEPAGE=" + https://www.reportlab.com/ + https://pypi.org/project/reportlab/ + https://bitbucket.org/rptlab/reportlab/" +SRC_URI=" + mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz + https://www.reportlab.com/ftp/fonts/pfbfer-20070710.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + media-libs/freetype + media-libs/libart_lgpl:= + sys-libs/zlib:=" +RDEPEND=" + ${DEPEND} + dev-python/pillow[tiff,truetype,jpeg(+),${PYTHON_USEDEP}]" +BDEPEND=" + test? ( ${RDEPEND} ) + app-arch/unzip" + +distutils_enable_sphinx docs/source + +PATCHES=( + # bug 738312, remove -L/usr/lib from link line + "${FILESDIR}"/${PN}-3.5.48-usr-lib-LLD.patch +) + +src_unpack() { + unpack ${P}.tar.gz + cd ${P}/src/reportlab/fonts || die + unpack pfbfer-20070710.zip +} + +python_prepare_all() { + # tests requiring Internet access + sed -i -e 's:test0:_&:' \ + tests/test_platypus_general.py \ + tests/test_platypus_images.py || die + sed -i -e 's:test9:_&:' tests/test_lib_utils.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + pushd tests >/dev/null || die + "${EPYTHON}" runAll.py || die "Testing failed with ${EPYTHON}" + popd >/dev/null || die +} diff --git a/dev-python/simplejson/simplejson-3.17.2.ebuild b/dev-python/simplejson/simplejson-3.17.2.ebuild index 80f3f4bfc654..7e978987ee7d 100644 --- a/dev-python/simplejson/simplejson-3.17.2.ebuild +++ b/dev-python/simplejson/simplejson-3.17.2.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="|| ( MIT AFL-2.1 )" SLOT="0" -KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +KEYWORDS="~alpha ~amd64 arm arm64 hppa ~ia64 ~mips ~ppc ~ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" DOCS=( README.rst CHANGES.txt ) diff --git a/dev-python/voluptuous/Manifest b/dev-python/voluptuous/Manifest index 60dd57cca769..50d8067892f3 100644 --- a/dev-python/voluptuous/Manifest +++ b/dev-python/voluptuous/Manifest @@ -1 +1,2 @@ DIST voluptuous-0.11.5.tar.gz 44216 BLAKE2B 921e0f35bd5348f412f0bf20939b3364b0014d3b1d1a7248cd73f2514eef0fb4e5b4b742876dc4606b5619529f1aa96e3577508ed0bf8d1e98b4d8bb88e2b8a2 SHA512 8893434e8e73ebf3682da1970d1d720444de452937ac9123fab53413c88a21d04ad3eb490902d829aa60be6804ff68b8bcf57a1c45807751c3d50be63e9b2551 +DIST voluptuous-0.11.7.tar.gz 45262 BLAKE2B 2c4c171ed281bdf799491b0e14f64ff2f4ff73143b1b5498eed0d2d4a148ff0e40392393923f25bbb066a872a81ac753d861640abc8b3d340c4c01ff5e139140 SHA512 bf0ad4684a4da59b3eccb54f6edfa643eb894076fc50d1bfd4c953de15cfd711a70e8aee685497197eaef24897ae55fb5fb2aec5e2fc9dcf344a6f7c6f569b88 diff --git a/dev-python/voluptuous/files/voluptuous-0.11.5-fix-doctest.patch b/dev-python/voluptuous/files/voluptuous-0.11.5-fix-doctest.patch new file mode 100644 index 000000000000..bdc8228ff40e --- /dev/null +++ b/dev-python/voluptuous/files/voluptuous-0.11.5-fix-doctest.patch @@ -0,0 +1,11 @@ +--- a/voluptuous/util.py ++++ b/voluptuous/util.py +@@ -87,7 +87,7 @@ + >>> s = Schema(validators.Any(int, SetTo(42))) + >>> s(2) + 2 +- >>> s("foo") ++ >>> s(42) + 42 + """ + diff --git a/dev-python/voluptuous/voluptuous-0.11.5.ebuild b/dev-python/voluptuous/voluptuous-0.11.5.ebuild index f451e9305f7f..d298c80e3d41 100644 --- a/dev-python/voluptuous/voluptuous-0.11.5.ebuild +++ b/dev-python/voluptuous/voluptuous-0.11.5.ebuild @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 + PYTHON_COMPAT=( python3_{5,6,7,8,9} ) inherit distutils-r1 @@ -14,7 +15,6 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ~ppc ~ppc64 s390 sparc x86 ~amd64-linux ~x86-linux" -python_test() { - unset PYTHONPATH - nosetests -v || die "Tests failed" -} +PATCHES=( "${FILESDIR}"/${PN}-0.11.5-fix-doctest.patch ) + +distutils_enable_tests nose diff --git a/dev-python/voluptuous/voluptuous-0.11.7.ebuild b/dev-python/voluptuous/voluptuous-0.11.7.ebuild new file mode 100644 index 000000000000..aef91f56dc11 --- /dev/null +++ b/dev-python/voluptuous/voluptuous-0.11.7.ebuild @@ -0,0 +1,20 @@ +# 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 + +DESCRIPTION="A Python data validation library." +HOMEPAGE="https://github.com/alecthomas/voluptuous" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +PATCHES=( "${FILESDIR}"/${PN}-0.11.5-fix-doctest.patch ) + +distutils_enable_tests nose |
