diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-06-05 01:57:49 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-06-05 01:57:49 +0000 |
| commit | 797cbf7452f2edd30da75945ebaea2f7e78261fc (patch) | |
| tree | b8fd3b9c157c91c53b314f25e8452a1b0c9d365f /dev-python | |
| parent | 967203f85bd75995636a8c7bc0c7e9227f365815 (diff) | |
| download | baldeagleos-repo-797cbf7452f2edd30da75945ebaea2f7e78261fc.tar.gz baldeagleos-repo-797cbf7452f2edd30da75945ebaea2f7e78261fc.tar.xz baldeagleos-repo-797cbf7452f2edd30da75945ebaea2f7e78261fc.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
15 files changed, 125 insertions, 116 deletions
diff --git a/dev-python/flask-babel/flask-babel-2.0.0.ebuild b/dev-python/flask-babel/flask-babel-2.0.0.ebuild index 97c3a1066ad1..c9156e7ec2db 100644 --- a/dev-python/flask-babel/flask-babel-2.0.0.ebuild +++ b/dev-python/flask-babel/flask-babel-2.0.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/dev-python/flask-wtf/flask-wtf-0.15.1.ebuild b/dev-python/flask-wtf/flask-wtf-0.15.1.ebuild index 4d14de36f3e1..e65f07a37527 100644 --- a/dev-python/flask-wtf/flask-wtf-0.15.1.ebuild +++ b/dev-python/flask-wtf/flask-wtf-0.15.1.ebuild @@ -29,7 +29,6 @@ RDEPEND=" dev-python/werkzeug[${PYTHON_USEDEP}] >=dev-python/wtforms-1.0.5[${PYTHON_USEDEP}] " -BDEPEND="${RDEPEND}" distutils_enable_sphinx docs distutils_enable_tests pytest diff --git a/dev-python/jsonschema/jsonschema-3.2.0.ebuild b/dev-python/jsonschema/jsonschema-3.2.0.ebuild index a53d4ff7ee8b..d9874db15221 100644 --- a/dev-python/jsonschema/jsonschema-3.2.0.ebuild +++ b/dev-python/jsonschema/jsonschema-3.2.0.ebuild @@ -4,6 +4,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +DISTUTILS_USE_SETUPTOOLS=rdepend inherit distutils-r1 @@ -14,18 +15,14 @@ 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" BDEPEND=" dev-python/attrs[${PYTHON_USEDEP}] dev-python/pyrsistent[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] $(python_gen_cond_dep ' dev-python/importlib_metadata[${PYTHON_USEDEP}] - ' python{2_7,3_{5,6,7}} pypy{,3}) - $(python_gen_cond_dep \ - 'dev-python/functools32[${PYTHON_USEDEP}]' -2) + ' pypy3) test? ( dev-python/twisted[${PYTHON_USEDEP}] ) " @@ -39,19 +36,12 @@ RDEPEND="${BDEPEND} dev-python/rfc3339-validator[${PYTHON_USEDEP}] " -RESTRICT="!test? ( test )" +BDEPEND+=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] +" PATCHES=( "${FILESDIR}"/${P}-add-webcolors-1.11-compat.patch ) distutils_enable_tests unittest - -python_prepare_all() { - # avoid a setuptools_scm dependency - sed -i "s:use_scm_version=True:version='${PV}',name='${PN//-/.}':" setup.py || die - sed -r -i "s:setuptools_scm[[:space:]]*([><=]{1,2}[[:space:]]*[0-9.a-zA-Z]+|)[[:space:]]*::" \ - setup.cfg || die - - distutils-r1_python_prepare_all -} diff --git a/dev-python/protobuf-python/Manifest b/dev-python/protobuf-python/Manifest index 42ad9a885e53..db2b1f990082 100644 --- a/dev-python/protobuf-python/Manifest +++ b/dev-python/protobuf-python/Manifest @@ -1,4 +1,3 @@ -DIST protobuf-3.13.0.tar.gz 5277913 BLAKE2B 168aaa5beef83be675cd2543ca8efeaf5174f5e7fd861a056b04b01c8c781dc7b1fcbd05068ae89f051dfacfdc47c34b19cc33c8d09dd3212d3827746e3408f2 SHA512 514efa65fc8a36bc0791e6d39bdfb07b2689e9c2a4b82536c657859b800e7bc1e1a0ae86a7ee33f30c43a473a49b5c346ce830ac0057b6da104ed37f90b8b0fd DIST protobuf-3.14.0.tar.gz 5319779 BLAKE2B cea083eea4d7fec441536effdfe2bf1811913154b0cc0da2f14f4edeb0efb200236da102c36700e24fab73fd9883aa90576ad64603a7f175ebf5cef0dc29aae5 SHA512 9dabba81119cb6196ef5de382a1032c57f6e69038f4dce0156f8671b98e51bb5095915fb6d05bb5a8ad8b17b559e652e1e9a392dd30c7ed8dcf1d986c137be11 DIST protobuf-3.15.0.tar.gz 5284848 BLAKE2B 6c1135499dd73b6d1764f47ded6415f8073841bccf5d5626e751fc159b67a6103d71a84096f563053c34c9e4235504238fcdc86ebb757d38b2f4bc1674d08674 SHA512 f52dfbfabdff3306d26ec05cbba7cd47bf3db8b08f4fb27e2cbd5a594de57f0a7ab2212dcea2055a9adfddc94ae4df2d0b1caea311ead75bb850ef8458b1b74a DIST protobuf-3.15.1.tar.gz 5284851 BLAKE2B 5e3f487ba1c3f6a3d2d87f2421f9b07aa4618df0853b05364d7f29e93d8e7dc4c3ece08ba3b7cd0bf69d0faaa32ccc952218a8df7575b74aa6216977f2b2219b SHA512 24efeec969ee72833c377e6287e3b06a431d54d9b3be50635685f6903534f15c2957d78cdbf4bcc6482732ecdbc735dc894c0b9095486419b8d11d6df6169180 diff --git a/dev-python/protobuf-python/protobuf-python-3.13.0-r1.ebuild b/dev-python/protobuf-python/protobuf-python-3.13.0-r1.ebuild deleted file mode 100644 index da8b95116735..000000000000 --- a/dev-python/protobuf-python/protobuf-python-3.13.0-r1.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 2008-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) -DISTUTILS_USE_SETUPTOOLS="rdepend" - -inherit distutils-r1 - -if [[ "${PV}" == "9999" ]]; then - inherit git-r3 - - EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf" - EGIT_SUBMODULES=() -fi - -DESCRIPTION="Google's Protocol Buffers - Python bindings" -HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf" -if [[ "${PV}" == "9999" ]]; then - SRC_URI="" -else - SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz" -fi - -LICENSE="BSD" -SLOT="0/24" -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos" -IUSE="" - -BDEPEND="${PYTHON_DEPS} - ~dev-libs/protobuf-${PV} - dev-python/namespace-google[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}]" -DEPEND="${PYTHON_DEPS} - ~dev-libs/protobuf-${PV}" -RDEPEND="${BDEPEND} - !<dev-libs/protobuf-3[python(-)]" - -S="${WORKDIR}/protobuf-${PV}/python" - -if [[ "${PV}" == "9999" ]]; then - EGIT_CHECKOUT_DIR="${WORKDIR}/protobuf-${PV}" -fi - -python_prepare_all() { - pushd "${WORKDIR}/protobuf-${PV}" > /dev/null || die - eapply "${FILESDIR}/${PN}-3.13.0-google.protobuf.pyext._message.PyUnknownFieldRef.patch" - eapply_user - popd > /dev/null || die - - distutils-r1_python_prepare_all - - sed -e "/^[[:space:]]*setup_requires = \['wheel'\],$/d" -i setup.py || die -} - -python_configure_all() { - mydistutilsargs=(--cpp_implementation) -} - -python_compile() { - python_is_python3 || local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" - distutils-r1_python_compile -} - -python_test() { - esetup.py test -} - -python_install_all() { - distutils-r1_python_install_all - - find "${D}" -name "*.pth" -type f -delete || die -} diff --git a/dev-python/pyfakefs/Manifest b/dev-python/pyfakefs/Manifest index 46e821ec32dd..0cb16f29f837 100644 --- a/dev-python/pyfakefs/Manifest +++ b/dev-python/pyfakefs/Manifest @@ -1 +1,2 @@ DIST pyfakefs-4.4.0.tar.gz 196236 BLAKE2B d19fb44320d9c7eab1e97ee4123da548f1e3b2f8f6b0e3be762b6228677fa165ed1b60364481c53f54e79e50a2f98d298e7ff6e65f40aa9c4e372a0f72e19d52 SHA512 774e5e213ee8ce17759cdeaa4ce1d70c43df25f0885c73c7e8aa923973a43f48d9fb19d45105a6a5c5d1c6a0c54c22fe4d80ec3ec92ac7cd97c50fb532af90bc +DIST pyfakefs-4.5.0.tar.gz 198107 BLAKE2B ee055ba5e5b53fc91cfb83a29b6fe77f6ea89576c1f3f13e46cd71ddcfe81630f3639000de1ca14bd9a56bcf4a09046fce313f65722327b63098142e5c0030cf SHA512 24a4555b197d089c2a039354f693748415035a587d0194d7d6494b83b507db2dd7e34f748fccb18f151b2673f06ce290fab02f6eb56d2691d5ab72ac12b2b233 diff --git a/dev-python/pyfakefs/pyfakefs-4.5.0.ebuild b/dev-python/pyfakefs/pyfakefs-4.5.0.ebuild new file mode 100644 index 000000000000..2135cda947bc --- /dev/null +++ b/dev-python/pyfakefs/pyfakefs-4.5.0.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) +DISTUTILS_IN_SOURCE_BUILD=1 + +inherit distutils-r1 + +DESCRIPTION="a fake file system that mocks the Python file system modules" +HOMEPAGE="https://github.com/jmcgeheeiv/pyfakefs/ https://pypi.org/project/pyfakefs/" +SRC_URI="https://github.com/jmcgeheeiv/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +distutils_enable_tests pytest + +python_test() { + "${EPYTHON}" -m pyfakefs.tests.all_tests -v || die "tests failed under ${EPYTHON}" +} diff --git a/dev-python/python-email-validator/python-email-validator-1.1.2.ebuild b/dev-python/python-email-validator/python-email-validator-1.1.2.ebuild index 6f87447f91a0..cf5a55770a5b 100644 --- a/dev-python/python-email-validator/python-email-validator-1.1.2.ebuild +++ b/dev-python/python-email-validator/python-email-validator-1.1.2.ebuild @@ -4,14 +4,11 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) -DISTUTILS_USE_SETUPTOOLS=rdepend - inherit distutils-r1 DESCRIPTION="A robust email syntax and deliverability validation library" HOMEPAGE="https://github.com/JoshData/python-email-validator" SRC_URI="https://github.com/JoshData/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/${PN}-${PV}" LICENSE="CC0-1.0" KEYWORDS="amd64 x86" diff --git a/dev-python/python-xmp-toolkit/python-xmp-toolkit-2.0.1-r1.ebuild b/dev-python/python-xmp-toolkit/python-xmp-toolkit-2.0.1-r1.ebuild index 2cd21c866dd8..42878796c0e3 100644 --- a/dev-python/python-xmp-toolkit/python-xmp-toolkit-2.0.1-r1.ebuild +++ b/dev-python/python-xmp-toolkit/python-xmp-toolkit-2.0.1-r1.ebuild @@ -23,9 +23,7 @@ IUSE="doc test" RESTRICT="!test? ( test )" DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) - test? ( dev-python/unittest2[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - media-libs/exempi )" + test? ( media-libs/exempi )" RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]" PATCHES=( "${FILESDIR}"/${P}-test.patch ) diff --git a/dev-python/rfc3986-validator/rfc3986-validator-0.1.1.ebuild b/dev-python/rfc3986-validator/rfc3986-validator-0.1.1.ebuild index b94463b1fcf6..375d9bf29a03 100644 --- a/dev-python/rfc3986-validator/rfc3986-validator-0.1.1.ebuild +++ b/dev-python/rfc3986-validator/rfc3986-validator-0.1.1.ebuild @@ -14,6 +14,7 @@ MY_P="${MY_PN}-${PV}" DESCRIPTION="Pure python RFC3986 validator" HOMEPAGE="https://pypi.org/project/rfc3986-validator/ https://github.com/naimetti/rfc3986-validator" SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P} LICENSE="MIT" SLOT="0" @@ -22,8 +23,6 @@ KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86" RDEPEND="dev-python/rfc3987[${PYTHON_USEDEP}]" BDEPEND="test? ( dev-python/hypothesis[${PYTHON_USEDEP}] )" -S="${WORKDIR}/${MY_P}" - distutils_enable_tests pytest python_prepare_all() { diff --git a/dev-python/setuptools_scm_git_archive/setuptools_scm_git_archive-1.1.ebuild b/dev-python/setuptools_scm_git_archive/setuptools_scm_git_archive-1.1.ebuild index 60fc32778298..e1a2192992db 100644 --- a/dev-python/setuptools_scm_git_archive/setuptools_scm_git_archive-1.1.ebuild +++ b/dev-python/setuptools_scm_git_archive/setuptools_scm_git_archive-1.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -15,11 +15,10 @@ SLOT="0" KEYWORDS="amd64 arm ~arm64 ~ppc64 x86" IUSE="" -DEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] +RDEPEND=" dev-python/setuptools_scm[${PYTHON_USEDEP}] " -RDEPEND="${DEPEND}" +BDEPEND="${RDEPEND}" distutils_enable_tests pytest @@ -29,5 +28,5 @@ src_prepare() { } python_test() { - pytest tests.py || die + epytest tests.py } diff --git a/dev-python/sphinx_rtd_theme/sphinx_rtd_theme-0.5.2.ebuild b/dev-python/sphinx_rtd_theme/sphinx_rtd_theme-0.5.2.ebuild index 86597ac4e183..884f1e86be42 100644 --- a/dev-python/sphinx_rtd_theme/sphinx_rtd_theme-0.5.2.ebuild +++ b/dev-python/sphinx_rtd_theme/sphinx_rtd_theme-0.5.2.ebuild @@ -3,9 +3,7 @@ EAPI=7 -DISTUTILS_USE_SETUPTOOLS=bdepend PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) - inherit distutils-r1 DESCRIPTION="ReadTheDocs.org theme for Sphinx" diff --git a/dev-python/tree-sitter/files/tree-sitter-0.19.0_p20210506-unbundle.patch b/dev-python/tree-sitter/files/tree-sitter-0.19.0_p20210506-unbundle.patch new file mode 100644 index 000000000000..3eb9d103a0e0 --- /dev/null +++ b/dev-python/tree-sitter/files/tree-sitter-0.19.0_p20210506-unbundle.patch @@ -0,0 +1,18 @@ +diff --git a/setup.py b/setup.py +index 2528827..bb2a817 100644 +--- a/setup.py ++++ b/setup.py +@@ -33,11 +33,11 @@ setup( + ext_modules=[ + Extension( + "tree_sitter.binding", +- ["tree_sitter/core/lib/src/lib.c", "tree_sitter/binding.c"], +- include_dirs=["tree_sitter/core/lib/include", "tree_sitter/core/lib/src"], ++ ["tree_sitter/binding.c"], + extra_compile_args=( + ["-std=c99", "-Wno-unused-variable"] if system() != "Windows" else None + ), ++ libraries=["tree-sitter"], + ) + ], + project_urls={"Source": "https://github.com/tree-sitter/py-tree-sitter"}, diff --git a/dev-python/tree-sitter/tree-sitter-0.19.0_p20210506-r1.ebuild b/dev-python/tree-sitter/tree-sitter-0.19.0_p20210506-r1.ebuild new file mode 100644 index 000000000000..0c4bcacb323c --- /dev/null +++ b/dev-python/tree-sitter/tree-sitter-0.19.0_p20210506-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) +inherit distutils-r1 + +EGIT_COMMIT="b4db17e4d43f27a040b4bf087695cc200512e4ea" +MY_P=py-tree-sitter-${EGIT_COMMIT} +FIXTURE_PV=0.19.0 + +DESCRIPTION="Python bindings to the Tree-sitter parsing library" +HOMEPAGE="https://github.com/tree-sitter/py-tree-sitter/" +SRC_URI=" + https://github.com/tree-sitter/py-tree-sitter/archive/${EGIT_COMMIT}.tar.gz + -> ${MY_P}.tar.gz + test? ( + https://github.com/tree-sitter/tree-sitter-javascript/archive/v${FIXTURE_PV}.tar.gz + -> tree-sitter-javascript-${FIXTURE_PV}.tar.gz + https://github.com/tree-sitter/tree-sitter-python/archive/v${FIXTURE_PV}.tar.gz + -> tree-sitter-python-${FIXTURE_PV}.tar.gz + )" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-libs/tree-sitter:=" +DEPEND=${RDEPEND} + +distutils_enable_tests setup.py + +PATCHES=( + "${FILESDIR}"/${P}-unbundle.patch +) + +src_unpack() { + default + rmdir "${S}/tree_sitter/core" || die + + if use test; then + mkdir "${S}/tests/fixtures" || die + local f + for f in tree-sitter-{javascript,python}; do + mv "${f}-${FIXTURE_PV}" "${S}/tests/fixtures/${f}" || die + done + fi +} diff --git a/dev-python/wtforms/wtforms-2.3.3.ebuild b/dev-python/wtforms/wtforms-2.3.3.ebuild index c9add592c203..59a7f4856c3d 100644 --- a/dev-python/wtforms/wtforms-2.3.3.ebuild +++ b/dev-python/wtforms/wtforms-2.3.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -31,19 +31,30 @@ BDEPEND=" ) " -distutils_enable_tests unittest +distutils_enable_tests pytest python_prepare_all() { - # Extension-tests are written for an older version of Django - # Disable pep8 even when it is installed - sed \ - -e "s|'ext_django.tests', ||" \ - -e "/import pep8/d" \ - -e "s|has_pep8 = True|has_pep8 = False|" \ - -i tests/runtests.py || die + # use pytest instead of ugly custom test runner + cat >> setup.cfg <<-EOF || die + [tool:pytest] + python_files = *.py + EOF + distutils-r1_python_prepare_all } python_test() { - "${EPYTHON}" tests/runtests.py -v || die + local ignore=( + # requires gaetest_common... also upstream doesn't run it at all + tests/ext_appengine + # requires old django; also extensions are deprecated anyway + tests/ext_django + ) + local deselect=( + # incompatible with sqlalchemy-1.4 + tests/ext_sqlalchemy.py::QuerySelectFieldTest + tests/ext_sqlalchemy.py::QuerySelectMultipleFieldTest + ) + + epytest tests ${ignore[@]/#/--ignore } ${deselect[@]/#/--deselect } } |
