parent
5f44044ad4
commit
41169aeffe
Binary file not shown.
Binary file not shown.
@ -0,0 +1,71 @@
|
|||||||
|
# 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_{8..10} )
|
||||||
|
|
||||||
|
inherit bash-completion-r1 distutils-r1 multiprocessing
|
||||||
|
|
||||||
|
MY_P=aws-cli-${PV}
|
||||||
|
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/aws/aws-cli/
|
||||||
|
https://pypi.org/project/awscli/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/aws/aws-cli/archive/${PV}.tar.gz
|
||||||
|
-> ${MY_P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||||
|
|
||||||
|
# botocore is x.(y+2).z
|
||||||
|
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 2)).$(ver_cut 3-)"
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||||
|
dev-python/colorama[${PYTHON_USEDEP}]
|
||||||
|
dev-python/docutils[${PYTHON_USEDEP}]
|
||||||
|
dev-python/rsa[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/s3transfer-0.4.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/pytest-forked[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# do not rely on bundled deps in botocore (sic!)
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
# strip overzealous upper bounds on requirements
|
||||||
|
sed -i -e 's:,<[0-9.]*::' -e 's:==:>=:' setup.py || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
# integration tests require AWS credentials and Internet access
|
||||||
|
epytest tests/{functional,unit} -n "$(makeopts_jobs)" --forked
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
newbashcomp bin/aws_bash_completer aws
|
||||||
|
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
newins bin/aws_zsh_completer.sh _aws
|
||||||
|
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
rm "${ED}"/usr/bin/{aws.cmd,aws_bash_completer,aws_zsh_completer.sh} || die
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST eselect-python-20190417.tar.bz2 46698 BLAKE2B 6f0acad0abb21d8e4768cbeb12f7e871c316a940ebae4c02bdb1336095991cb6b6bf05661ab659115a67f29a09f2a9b57cfb0868019606ed550b5aa1863f6f71 SHA512 a461263a50a29f0493127ee4a027e49ca4d7631e9c8d16cffc8bdb98cc7e75b0796e45e70951d5559fb86f0db14141a3ea6a53bd4cf1e0cc83ed5c7f24173695
|
|
||||||
DIST eselect-python-20200719.tar.bz2 47313 BLAKE2B 37270b1f5ad3dfcd4e19c71ae74da585e803afe89c43f8b912bccf0fbdb936916cf58fc780b654692bb9e6ab44310514bae5f10d19dcde6a0e63042f76abe81d SHA512 4b205a099ad079e5e28d3fdbe774c22f54b7c16bff2d28b54d0e20ee36be2339e928d4050eed74ef969d5815bf4bb691bf5ed6e98023b28972da6d5c7d8a2545
|
DIST eselect-python-20200719.tar.bz2 47313 BLAKE2B 37270b1f5ad3dfcd4e19c71ae74da585e803afe89c43f8b912bccf0fbdb936916cf58fc780b654692bb9e6ab44310514bae5f10d19dcde6a0e63042f76abe81d SHA512 4b205a099ad079e5e28d3fdbe774c22f54b7c16bff2d28b54d0e20ee36be2339e928d4050eed74ef969d5815bf4bb691bf5ed6e98023b28972da6d5c7d8a2545
|
||||||
|
@ -1,40 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
if [[ ${PV} == "99999999" ]] ; then
|
|
||||||
inherit autotools git-r3
|
|
||||||
EGIT_REPO_URI="git://anongit.gentoo.org/proj/${PN}.git"
|
|
||||||
else
|
|
||||||
SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.bz2"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="Eselect module for management of multiple Python versions"
|
|
||||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Python"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
# python-exec-2.4.2 for working -l option
|
|
||||||
RDEPEND=">=app-admin/eselect-1.2.3
|
|
||||||
>=dev-lang/python-exec-2.4.2"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
[[ ${PV} == "99999999" ]] && eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
local py
|
|
||||||
|
|
||||||
if has_version 'dev-lang/python'; then
|
|
||||||
eselect python update --if-unset
|
|
||||||
fi
|
|
||||||
|
|
||||||
if has_version "=dev-lang/python-3*"; then
|
|
||||||
eselect python update "--python3" --if-unset
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,41 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
if [[ ${PV} == "99999999" ]] ; then
|
|
||||||
inherit autotools git-r3
|
|
||||||
EGIT_REPO_URI="git://anongit.gentoo.org/proj/${PN}.git"
|
|
||||||
else
|
|
||||||
SRC_URI="https://dev.gentoo.org/~chutzpah/dist/misc/${P}.tar.bz2"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="Eselect module for management of multiple Python versions"
|
|
||||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Python"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
|
|
||||||
# python-exec-2.4.2 for working -l option
|
|
||||||
RDEPEND="
|
|
||||||
>=app-admin/eselect-1.2.3
|
|
||||||
>=dev-lang/python-exec-2.4.2
|
|
||||||
"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
[[ ${PV} == "99999999" ]] && eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
local py
|
|
||||||
|
|
||||||
if has_version 'dev-lang/python'; then
|
|
||||||
eselect python update --if-unset
|
|
||||||
fi
|
|
||||||
|
|
||||||
if has_version "=dev-lang/python-3*"; then
|
|
||||||
eselect python update "--python3" --if-unset
|
|
||||||
fi
|
|
||||||
}
|
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST gnumeric-1.12.51.tar.xz 18117120 BLAKE2B 7d30dc01cda93a99ef8d47ccdf6bcfd1b6b6964a806599c7ade486f9bbfb61a876ef942174425cb2f59e018f5ec95a9df36a9deb0cd67d23e1801c2c289d83bd SHA512 c46164d9deb29831ab059613548743d84cb15461ac363305a28097832eb69d3fbf3cf8784c420c777bd09e32212b2ef6237bfa56ca28a7e08fd3befde9dfed36
|
DIST gnumeric-1.12.51.tar.xz 18117120 BLAKE2B 7d30dc01cda93a99ef8d47ccdf6bcfd1b6b6964a806599c7ade486f9bbfb61a876ef942174425cb2f59e018f5ec95a9df36a9deb0cd67d23e1801c2c289d83bd SHA512 c46164d9deb29831ab059613548743d84cb15461ac363305a28097832eb69d3fbf3cf8784c420c777bd09e32212b2ef6237bfa56ca28a7e08fd3befde9dfed36
|
||||||
|
DIST gnumeric-1.12.52.tar.xz 18115444 BLAKE2B 6d8489c27b6f7bd0ffad7d255b606a48ca9660dd38973e4bb529d38797a3029db4a0a399e40f69c84ddf33b96d27cfc184fd079fbe16590b92e056c1a836b037 SHA512 3baa2d2c4ed5f740429454f988ea527991febf38f49df17f0d88affe501c676bae95149fb0cdb4b369ef8d32247c1f4fe4c0eeab9a60329e1332aaf9c566f868
|
||||||
|
@ -0,0 +1,92 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
PYTHON_COMPAT=( python3_{7..10} )
|
||||||
|
|
||||||
|
inherit gnome.org libtool python-r1 xdg
|
||||||
|
|
||||||
|
DESCRIPTION="The GNOME Spreadsheet"
|
||||||
|
HOMEPAGE="http://www.gnumeric.org/"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||||
|
IUSE="+introspection libgda perl"
|
||||||
|
REQUIRED_USE="introspection? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
|
# Missing gnome-extra/libgnomedb required version in tree
|
||||||
|
# but its upstream is dead and will be dropped soon.
|
||||||
|
|
||||||
|
# lots of missing files, also fails tests due to 80-bit long story
|
||||||
|
# upstream bug #721556
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
# Gnumeric has two python components
|
||||||
|
# 1. The python loader for loading python-based plugins.
|
||||||
|
# This component is pure python 2 and a port "is not currently being worked on".
|
||||||
|
# 2. The python gobject-based introspection API. This component is compatible
|
||||||
|
# with python 3.
|
||||||
|
# Component 1. can only be re-enabled once someone has ported the upstream
|
||||||
|
# codebase to python 3.
|
||||||
|
# https://gitlab.gnome.org/GNOME/gnumeric/issues/419#note_618852
|
||||||
|
RDEPEND="
|
||||||
|
app-arch/bzip2
|
||||||
|
sys-libs/zlib
|
||||||
|
>=dev-libs/glib-2.40.0:2
|
||||||
|
>=gnome-extra/libgsf-1.14.33:=
|
||||||
|
>=x11-libs/goffice-0.10.51:0.10[introspection?]
|
||||||
|
>=dev-libs/libxml2-2.4.12:2
|
||||||
|
>=x11-libs/pango-1.24.0:=
|
||||||
|
|
||||||
|
>=x11-libs/gtk+-3.8.7:3
|
||||||
|
x11-libs/cairo:=[svg]
|
||||||
|
|
||||||
|
introspection? (
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
>=dev-libs/gobject-introspection-1:=
|
||||||
|
)
|
||||||
|
perl? ( dev-lang/perl:= )
|
||||||
|
libgda? ( gnome-extra/libgda:5[gtk] )"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
app-text/docbook-xml-dtd:4.5
|
||||||
|
app-text/yelp-tools
|
||||||
|
dev-util/gtk-doc-am
|
||||||
|
>=dev-util/intltool-0.35.0
|
||||||
|
virtual/pkgconfig"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# Manage gi overrides ourselves
|
||||||
|
sed '/SUBDIRS/ s/introspection//' -i Makefile.{am,in} || die
|
||||||
|
elibtoolize
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf \
|
||||||
|
--disable-gtk-doc \
|
||||||
|
--disable-maintainer-mode \
|
||||||
|
--disable-schemas-compile \
|
||||||
|
--disable-static \
|
||||||
|
--without-psiconv \
|
||||||
|
--without-python \
|
||||||
|
--with-zlib \
|
||||||
|
$(use_with libgda gda) \
|
||||||
|
$(use_enable introspection) \
|
||||||
|
$(use_with perl)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
dodoc HACKING MAINTAINERS
|
||||||
|
|
||||||
|
if use introspection; then
|
||||||
|
python_moduleinto gi.overrides
|
||||||
|
python_foreach_impl python_domodule introspection/gi/overrides/Gnm.py
|
||||||
|
fi
|
||||||
|
|
||||||
|
# no static archives
|
||||||
|
find "${ED}" -name '*.la' -delete || die
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST scdoc-1.11.0.tar.gz 12616 BLAKE2B 3aec60e51b949dc94e8339e400c366428a217c1bd44f79716cbd6993a7f8051a0796dc96163e071db4808c0edde071408e3eb1ee0ae3bb8ccd718479960ab8f3 SHA512 4c8248a12e69e53cc2182af5375912f7af64f3807163dbe3c52e85d817b1bfa7e461d02a627c73d93bdaa96e49668ff894d37817ceb70ee3186da9e3f8372d49
|
DIST scdoc-1.11.0.tar.gz 12616 BLAKE2B 3aec60e51b949dc94e8339e400c366428a217c1bd44f79716cbd6993a7f8051a0796dc96163e071db4808c0edde071408e3eb1ee0ae3bb8ccd718479960ab8f3 SHA512 4c8248a12e69e53cc2182af5375912f7af64f3807163dbe3c52e85d817b1bfa7e461d02a627c73d93bdaa96e49668ff894d37817ceb70ee3186da9e3f8372d49
|
||||||
DIST scdoc-1.11.1.tar.gz 12482 BLAKE2B 2632da654730a373f03955f0b3bb190c8d6beb2fd4e4b05c88a4c86d384b26c51a8f032e6b2ef8d4d795638c1981a4d5500384f3103411869c7097a2ba1466ff SHA512 28b676a2ba69a101034c47378c4b66c94bfb9903d680a1871020fd8772d0990a4c91678738f71d37bfca06e27991ef782047c6503d375ce69df744caf6b459de
|
DIST scdoc-1.11.1.tar.gz 12482 BLAKE2B 2632da654730a373f03955f0b3bb190c8d6beb2fd4e4b05c88a4c86d384b26c51a8f032e6b2ef8d4d795638c1981a4d5500384f3103411869c7097a2ba1466ff SHA512 28b676a2ba69a101034c47378c4b66c94bfb9903d680a1871020fd8772d0990a4c91678738f71d37bfca06e27991ef782047c6503d375ce69df744caf6b459de
|
||||||
|
DIST scdoc-1.11.2.tar.gz 12746 BLAKE2B f4cb2c400103c1f2247a2bee79dca9ae5c50b8397c65edbdf4d70265a4596f85e0c47aab014699c4d63929b258db8ae3ff6728a9b95f212be9db1fa657e5b93a SHA512 3fbf1a74b222dd88410636124e4b6ca73f7e77f67d512cf430a878fefcaa5c6c13a1e9f6c0c9654de15353f94bb1bd528665acebc2293bebb325501d1eb6cda3
|
||||||
|
@ -0,0 +1,45 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Standalone tool for generating man pages with a simple syntax"
|
||||||
|
HOMEPAGE="https://git.sr.ht/~sircmpwn/scdoc"
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]]; then
|
||||||
|
EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/scdoc"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="https://git.sr.ht/~sircmpwn/scdoc/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
sed -e 's/-Werror//' \
|
||||||
|
-i Makefile || die 'Failed to patch Makefile'
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local MY_HS="./scdoc"
|
||||||
|
if tc-is-cross-compiler; then
|
||||||
|
tc-export_build_env
|
||||||
|
MY_HS="./hostscdoc"
|
||||||
|
emake scdoc HOST_SCDOC="./hostscdoc" OUTDIR="${S}/.build.host" CC="$(tc-getBUILD_CC)" \
|
||||||
|
CFLAGS="${BUILD_CFLAGS} -DVERSION='\"${PV}\"'" LDFLAGS="${BUILD_LDFLAGS}"
|
||||||
|
mv scdoc hostscdoc || die 'Failed to rename host scdoc'
|
||||||
|
fi
|
||||||
|
|
||||||
|
emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" HOST_SCDOC="${MY_HS}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${ED}" PREFIX="/usr" HOST_SCDOC="${MY_HS}" \
|
||||||
|
PCDIR="/usr/$(get_libdir)/pkgconfig" install
|
||||||
|
}
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST gentoo-syntax-1.tar.bz2 20223 BLAKE2B 846e07354660b4859cc4131a9fbf4f78d3a2ddeda60fc6a3687b649788a52725602dcd22befa9ab9fe88b173eab1470e569076d587326935efaf40d3aaba5b57 SHA512 1e4d947f0edbf6bd24142d683944f30d43b7e0ca86b90311f2e80516d299d9a634a9842cdc90d98a43e7a693f0dd29b3ff8048256bc3fe688591cc2b84808289
|
DIST gentoo-syntax-1.tar.bz2 20223 BLAKE2B 846e07354660b4859cc4131a9fbf4f78d3a2ddeda60fc6a3687b649788a52725602dcd22befa9ab9fe88b173eab1470e569076d587326935efaf40d3aaba5b57 SHA512 1e4d947f0edbf6bd24142d683944f30d43b7e0ca86b90311f2e80516d299d9a634a9842cdc90d98a43e7a693f0dd29b3ff8048256bc3fe688591cc2b84808289
|
||||||
|
DIST gentoo-syntax-2.tar.bz2 20302 BLAKE2B fa15fe5e8ef547dfa402b1742df3d6d38231528bcf6c6836e4d31e81ec2bce55ffa8c10400823c97688304f9dc6324ed3d257939c3077eb29a2fc3c191295604 SHA512 30e8e374382dc736febd1ee8031a7ccc14dfc61feade1815e3366988658189ac8670ff26532436ae608ff66c828e2de7327d0b39db37967206bcd9f418d26ea2
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit vim-plugin
|
||||||
|
|
||||||
|
DESCRIPTION="vim plugin: Gentoo and Portage syntax highlighting"
|
||||||
|
HOMEPAGE="https://github.com/gentoo/gentoo-syntax"
|
||||||
|
SRC_URI="https://gitweb.gentoo.org/proj/gentoo-syntax.git/snapshot/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="vim"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="ignore-glep31"
|
||||||
|
|
||||||
|
VIM_PLUGIN_HELPFILES="gentoo-syntax"
|
||||||
|
VIM_PLUGIN_MESSAGES="filetype"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
if use ignore-glep31 ; then
|
||||||
|
for f in ftplugin/*.vim ; do
|
||||||
|
ebegin "Removing UTF-8 rules from ${f} ..."
|
||||||
|
sed -i -e 's~\(setlocal fileencoding=utf-8\)~" \1~' ${f} \
|
||||||
|
|| die "waah! bad sed voodoo. need more goats."
|
||||||
|
eend $?
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
vim-plugin_pkg_postinst
|
||||||
|
|
||||||
|
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||||
|
if use ignore-glep31 1>/dev/null ; then
|
||||||
|
ewarn "You have chosen to disable the rules which ensure GLEP 31"
|
||||||
|
ewarn "compliance. When editing ebuilds, please make sure you get"
|
||||||
|
ewarn "the character set correct."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,191 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
# Redis does NOT build with Lua 5.2 or newer at this time:
|
||||||
|
# - 5.3 and 5.4 give:
|
||||||
|
# lua_bit.c:83:2: error: #error "Unknown number type, check LUA_NUMBER_* in luaconf.h"
|
||||||
|
# - 5.2 fails with:
|
||||||
|
# scripting.c:(.text+0x1f9b): undefined reference to `lua_open'
|
||||||
|
# because lua_open became lua_newstate in 5.2
|
||||||
|
LUA_COMPAT=( lua5-1 luajit )
|
||||||
|
|
||||||
|
# Upstream have deviated too far from vanilla Lua, adding their own APIs
|
||||||
|
# like lua_enablereadonlytable, but we still need the eclass and such
|
||||||
|
# for bug #841422.
|
||||||
|
inherit autotools flag-o-matic systemd toolchain-funcs lua-single tmpfiles
|
||||||
|
|
||||||
|
DESCRIPTION="A persistent caching system, key-value, and data structures database"
|
||||||
|
HOMEPAGE="https://redis.io"
|
||||||
|
SRC_URI="https://download.redis.io/releases/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||||
|
IUSE="+jemalloc ssl systemd tcmalloc test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
COMMON_DEPEND="
|
||||||
|
${LUA_DEPS}
|
||||||
|
jemalloc? ( >=dev-libs/jemalloc-5.1:= )
|
||||||
|
ssl? ( dev-libs/openssl:0= )
|
||||||
|
systemd? ( sys-apps/systemd:= )
|
||||||
|
tcmalloc? ( dev-util/google-perftools )
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
acct-group/redis
|
||||||
|
acct-user/redis
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
|
||||||
|
# Tcl is only needed in the CHOST test env
|
||||||
|
DEPEND="
|
||||||
|
${COMMON_DEPEND}
|
||||||
|
test? (
|
||||||
|
dev-lang/tcl:0=
|
||||||
|
ssl? ( dev-tcltk/tls )
|
||||||
|
)"
|
||||||
|
|
||||||
|
REQUIRED_USE="?? ( jemalloc tcmalloc )
|
||||||
|
${LUA_REQUIRED_USE}"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-6.2.1-config.patch
|
||||||
|
"${FILESDIR}"/${PN}-5.0-shared.patch
|
||||||
|
"${FILESDIR}"/${PN}-6.2.3-ppc-atomic.patch
|
||||||
|
"${FILESDIR}"/${PN}-sentinel-5.0-config.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# unstable on jemalloc
|
||||||
|
> tests/unit/memefficiency.tcl || die
|
||||||
|
|
||||||
|
# Copy lua modules into build dir
|
||||||
|
#cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die
|
||||||
|
#cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die
|
||||||
|
# Append cflag for lua_cjson
|
||||||
|
# https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61
|
||||||
|
append-cflags "-DENABLE_CJSON_GLOBAL"
|
||||||
|
|
||||||
|
# now we will rewrite present Makefiles
|
||||||
|
local makefiles="" MKF
|
||||||
|
for MKF in $(find -name 'Makefile' | cut -b 3-); do
|
||||||
|
mv "${MKF}" "${MKF}.in"
|
||||||
|
sed -i -e 's:$(CC):@CC@:g' \
|
||||||
|
-e 's:$(CFLAGS):@AM_CFLAGS@:g' \
|
||||||
|
-e 's: $(DEBUG)::g' \
|
||||||
|
-e 's:$(OBJARCH)::g' \
|
||||||
|
-e 's:ARCH:TARCH:g' \
|
||||||
|
-e '/^CCOPT=/s:$: $(LDFLAGS):g' \
|
||||||
|
"${MKF}.in" \
|
||||||
|
|| die "Sed failed for ${MKF}"
|
||||||
|
makefiles+=" ${MKF}"
|
||||||
|
done
|
||||||
|
# autodetection of compiler and settings; generates the modified Makefiles
|
||||||
|
cp "${FILESDIR}"/configure.ac-3.2 configure.ac || die
|
||||||
|
|
||||||
|
# Use the correct pkgconfig name for Lua.
|
||||||
|
# The upstream configure script handles luajit specially, and is not
|
||||||
|
# affected by these changes.
|
||||||
|
sed -i \
|
||||||
|
-e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \
|
||||||
|
-e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \
|
||||||
|
-e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,${ELUA},g" \
|
||||||
|
configure.ac || die "Sed failed for configure.ac"
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf #$(use_with lua_single_target_luajit luajit)
|
||||||
|
|
||||||
|
# Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164
|
||||||
|
# also, don't define ANSI/c99 for lua twice
|
||||||
|
sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local myconf=""
|
||||||
|
|
||||||
|
if use jemalloc; then
|
||||||
|
myconf+="MALLOC=jemalloc"
|
||||||
|
elif use tcmalloc; then
|
||||||
|
myconf+="MALLOC=tcmalloc"
|
||||||
|
else
|
||||||
|
myconf+="MALLOC=libc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use ssl; then
|
||||||
|
myconf+=" BUILD_TLS=yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export USE_SYSTEMD=$(usex systemd)
|
||||||
|
|
||||||
|
tc-export AR CC RANLIB
|
||||||
|
emake V=1 ${myconf} AR="${AR}" CC="${CC}" RANLIB="${RANLIB}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
# Known to fail with FEATURES=usersandbox
|
||||||
|
if has usersandbox ${FEATURES}; then
|
||||||
|
ewarn "You are emerging ${P} with 'usersandbox' enabled." \
|
||||||
|
"Expect some test failures or emerge with 'FEATURES=-usersandbox'!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use ssl; then
|
||||||
|
./utils/gen-test-certs.sh
|
||||||
|
./runtest --tls
|
||||||
|
else
|
||||||
|
./runtest
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /etc/redis
|
||||||
|
doins redis.conf sentinel.conf
|
||||||
|
use prefix || fowners -R redis:redis /etc/redis /etc/redis/{redis,sentinel}.conf
|
||||||
|
fperms 0750 /etc/redis
|
||||||
|
fperms 0644 /etc/redis/{redis,sentinel}.conf
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}/redis.confd-r2" redis
|
||||||
|
newinitd "${FILESDIR}/redis.initd-6" redis
|
||||||
|
|
||||||
|
systemd_newunit "${FILESDIR}/redis.service-4" redis.service
|
||||||
|
newtmpfiles "${FILESDIR}/redis.tmpfiles-2" redis.conf
|
||||||
|
|
||||||
|
newconfd "${FILESDIR}/redis-sentinel.confd-r1" redis-sentinel
|
||||||
|
newinitd "${FILESDIR}/redis-sentinel.initd-r1" redis-sentinel
|
||||||
|
|
||||||
|
insinto /etc/logrotate.d/
|
||||||
|
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||||
|
|
||||||
|
dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md
|
||||||
|
|
||||||
|
dobin src/redis-cli
|
||||||
|
dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb
|
||||||
|
fperms 0750 /usr/sbin/redis-benchmark
|
||||||
|
dosym redis-server /usr/sbin/redis-sentinel
|
||||||
|
|
||||||
|
if use prefix; then
|
||||||
|
diropts -m0750
|
||||||
|
else
|
||||||
|
diropts -m0750 -o redis -g redis
|
||||||
|
fi
|
||||||
|
keepdir /var/{log,lib}/redis
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
tmpfiles_process redis.conf
|
||||||
|
|
||||||
|
ewarn "The default redis configuration file location changed to:"
|
||||||
|
ewarn " /etc/redis/{redis,sentinel}.conf"
|
||||||
|
ewarn "Please apply your changes to the new configuration files."
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +1,4 @@
|
|||||||
|
DIST boehm-gc-8.2.0-fix-headers-install.patch.xz 55320 BLAKE2B 86f6a27c49c1c36a89e836ef2adf17e6563256ad0700e05235461b9df562029781894d1b4b76ed4fb44faf9c014e7674b909cd8a097d6d3c29cb50be55b83856 SHA512 cbb963b5f4286846ae4548216677cb34042bd8757f6792d1838663b07699837c25a727740d6d9461b582c5428ebe8e0bc670134be1d68cdc61d055f8624a76bc
|
||||||
DIST gc-8.0.4.tar.gz 1160528 BLAKE2B ec42378c964fc573e53f6f58aa22fa63a0b421c91b81336acfeb2e2afdb5c89514edace3a9500699e13ff1cadc4205ea245af4f0dfa5e439ed9b78cabf6058f7 SHA512 57ccca15c6e50048d306a30de06c1a844f36103a84c2d1c17cbccbbc0001e17915488baec79737449982da99ce5d14ce527176afae9ae153cbbb5a19d986366e
|
DIST gc-8.0.4.tar.gz 1160528 BLAKE2B ec42378c964fc573e53f6f58aa22fa63a0b421c91b81336acfeb2e2afdb5c89514edace3a9500699e13ff1cadc4205ea245af4f0dfa5e439ed9b78cabf6058f7 SHA512 57ccca15c6e50048d306a30de06c1a844f36103a84c2d1c17cbccbbc0001e17915488baec79737449982da99ce5d14ce527176afae9ae153cbbb5a19d986366e
|
||||||
DIST gc-8.0.6.tar.gz 1168660 BLAKE2B c23cb10db54db0e8b16c429e039791086dfec4216ad65fabf072bc0f05df66364d019fccf945bffc32ce12868edfbaf6d9482acb2949d1e233bd89925ab55ebd SHA512 2ea25003d585118e3ac0e12be9240e8195db511c6e94949f20453dc3cb771380bd5b956c04243b2a8ce31508587aa32de4f0f10a813577e6dbe8367688b7614e
|
DIST gc-8.0.6.tar.gz 1168660 BLAKE2B c23cb10db54db0e8b16c429e039791086dfec4216ad65fabf072bc0f05df66364d019fccf945bffc32ce12868edfbaf6d9482acb2949d1e233bd89925ab55ebd SHA512 2ea25003d585118e3ac0e12be9240e8195db511c6e94949f20453dc3cb771380bd5b956c04243b2a8ce31508587aa32de4f0f10a813577e6dbe8367688b7614e
|
||||||
DIST gc-8.2.0.tar.gz 1183225 BLAKE2B 382c28041b8cff9df794db48727c0bb478ed9222b15bcf11eda7132b1776970774576b63823e62a87c6563a06359a3d0572effea1ca63fb4f6fdadf1ea350cbe SHA512 ff781360bca667f1f95fbfed073e9035f63134cac1bda4f7e4217664a3713c2846f750a3ce92732972c0435c69355b051f6e8eb6f2698b0d48d9107ff960bacf
|
DIST gc-8.2.0.tar.gz 1183225 BLAKE2B 382c28041b8cff9df794db48727c0bb478ed9222b15bcf11eda7132b1776970774576b63823e62a87c6563a06359a3d0572effea1ca63fb4f6fdadf1ea350cbe SHA512 ff781360bca667f1f95fbfed073e9035f63134cac1bda4f7e4217664a3713c2846f750a3ce92732972c0435c69355b051f6e8eb6f2698b0d48d9107ff960bacf
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
DIST libxml2-2.9.12-r5-patchset.tar.bz2 7231 BLAKE2B d9d0d56ebccbfe234a8af04cc5343c1a02d84fbd998c2373fd48be59cf92807a9417db650a6bb6ba309e101994c4ae2b28edda7bf635c7728eb8b8047d0d3391 SHA512 b2db0fe4595c1559d9f8dc836ee6eee469191f6c490fc95d25d9fa99a544e80858894cc35b6e4a6624a38d0309800540badc929e86ef29950c1107caa4656a14
|
DIST libxml2-2.9.12-r5-patchset.tar.bz2 7231 BLAKE2B d9d0d56ebccbfe234a8af04cc5343c1a02d84fbd998c2373fd48be59cf92807a9417db650a6bb6ba309e101994c4ae2b28edda7bf635c7728eb8b8047d0d3391 SHA512 b2db0fe4595c1559d9f8dc836ee6eee469191f6c490fc95d25d9fa99a544e80858894cc35b6e4a6624a38d0309800540badc929e86ef29950c1107caa4656a14
|
||||||
DIST libxml2-2.9.13.tar.xz 3243336 BLAKE2B 845a8283cf1ff9fd9f7926cfe0042c042a9de5ed184520d8057f7b33312687d5ff28abdf30dd2674795d78dc80326203a907f9e22cd261805309403ecdd585f5 SHA512 fc51980cb9222bd3b5242f73d28b55fa15a80e68e52e1c45274f1eda11500ed385853209edb3b2a1f06b9de0be304c159a9bd898c7d84b0899eacb00723d98b5
|
DIST libxml2-2.9.13.tar.xz 3243336 BLAKE2B 845a8283cf1ff9fd9f7926cfe0042c042a9de5ed184520d8057f7b33312687d5ff28abdf30dd2674795d78dc80326203a907f9e22cd261805309403ecdd585f5 SHA512 fc51980cb9222bd3b5242f73d28b55fa15a80e68e52e1c45274f1eda11500ed385853209edb3b2a1f06b9de0be304c159a9bd898c7d84b0899eacb00723d98b5
|
||||||
|
DIST libxml2-2.9.14.tar.xz 3129968 BLAKE2B ab584503d5209e4aaf41ae6f44aed5e94c0ae29e28cfba39a9012568aa97515af861b47891b84d2a352a07357626ba50ddb1e344e911fa14ff2ce93c5beff1f1 SHA512 d08e6cafb289c499fdc5b3a12181e032a34f7a249bc66758859f964d3e71e19fd69be79921e1a9d8ab1e692d15b13f5fae95eeb10c3236974d89e218f5107606
|
||||||
DIST xmlts20130923.tar.gz 641522 BLAKE2B 63a47bc69278ef510cd0b3779aed729e1b309e30efa0015d28ed051cc03f9dfddb447ab57b07b3393e8f47393d15473b0e199c34cb1f5f746b15ddfaa55670be SHA512 d5c4d26b324ed21f4e0641cd7f8b76dbf9de80df8b519982e44d41c960df29fd03618e02e9693b2d11ad06d19c4a965274c95a048ec3b9653eacb919a7f8b733
|
DIST xmlts20130923.tar.gz 641522 BLAKE2B 63a47bc69278ef510cd0b3779aed729e1b309e30efa0015d28ed051cc03f9dfddb447ab57b07b3393e8f47393d15473b0e199c34cb1f5f746b15ddfaa55670be SHA512 d5c4d26b324ed21f4e0641cd7f8b76dbf9de80df8b519982e44d41c960df29fd03618e02e9693b2d11ad06d19c4a965274c95a048ec3b9653eacb919a7f8b733
|
||||||
DIST xsts-2002-01-16.tar.gz 6894439 BLAKE2B 1e9ec63d2c104655e64249e07440a04d862fcbcd4d4e19745d81b34994319b510a531c9d6df1491fae1e90b5d0764f0f1a827251ca8df5d613178b0eab01ef25 SHA512 43300af6d39c1e2221b0ed7318fe14c7464eeb6eb030ed1e22eb29b4ab17f014e2a4c8887c3a46ae5d243e3072da27f00f4e285498ae6f1288177d38d1108288
|
DIST xsts-2002-01-16.tar.gz 6894439 BLAKE2B 1e9ec63d2c104655e64249e07440a04d862fcbcd4d4e19745d81b34994319b510a531c9d6df1491fae1e90b5d0764f0f1a827251ca8df5d613178b0eab01ef25 SHA512 43300af6d39c1e2221b0ed7318fe14c7464eeb6eb030ed1e22eb29b4ab17f014e2a4c8887c3a46ae5d243e3072da27f00f4e285498ae6f1288177d38d1108288
|
||||||
DIST xsts-2004-01-14.tar.gz 2761085 BLAKE2B 41545995fb3a65d053257c376c07d45ffd1041a433bfbdb46d4dd87a5afb60c18c8629a3d988323f9e7a1d709775b5a7e5930276a7121c0725a22705c0976e36 SHA512 32854388d7e720ad67156baf50bf2bae7bd878ca3e35fd7e44e57cad3f434f69d56bbbedd61509f8a1faf01c9eae74a078df8fe130780b182c05c05cb1c39ebe
|
DIST xsts-2004-01-14.tar.gz 2761085 BLAKE2B 41545995fb3a65d053257c376c07d45ffd1041a433bfbdb46d4dd87a5afb60c18c8629a3d988323f9e7a1d709775b5a7e5930276a7121c0725a22705c0976e36 SHA512 32854388d7e720ad67156baf50bf2bae7bd878ca3e35fd7e44e57cad3f434f69d56bbbedd61509f8a1faf01c9eae74a078df8fe130780b182c05c05cb1c39ebe
|
||||||
|
@ -0,0 +1,31 @@
|
|||||||
|
https://gitlab.gnome.org/GNOME/libxml2/merge_requests/14
|
||||||
|
|
||||||
|
From 54878c018af979b20ca1bfbf12599973484cae5b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mike Frysinger <vapier@gentoo.org>
|
||||||
|
Date: Thu, 3 Jan 2019 05:44:03 -0500
|
||||||
|
Subject: [PATCH] fix reader5.py test when building out of tree
|
||||||
|
|
||||||
|
When building out of tree, the relative path this test uses doesn't
|
||||||
|
work. Resolve the path relative to the test script itself instead.
|
||||||
|
|
||||||
|
Url: https://bugs.gentoo.org/565576
|
||||||
|
--- a/python/tests/reader5.py
|
||||||
|
+++ b/python/tests/reader5.py
|
||||||
|
@@ -4,6 +4,7 @@
|
||||||
|
# this extract the Dragon bibliography entries from the XML specification
|
||||||
|
#
|
||||||
|
import libxml2
|
||||||
|
+import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
# Memory debug specific
|
||||||
|
@@ -14,7 +15,8 @@ Ravi Sethi, and Jeffrey D. Ullman.
|
||||||
|
<emph>Compilers: Principles, Techniques, and Tools</emph>.
|
||||||
|
Reading: Addison-Wesley, 1986, rpt. corr. 1988.</bibl>"""
|
||||||
|
|
||||||
|
-f = open('../../test/valid/REC-xml-19980210.xml', 'rb')
|
||||||
|
+basedir = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
+f = open(os.path.join(basedir, '../../test/valid/REC-xml-19980210.xml'), 'rb')
|
||||||
|
input = libxml2.inputBuffer(f)
|
||||||
|
reader = input.newTextReader("REC")
|
||||||
|
res=""
|
@ -0,0 +1,193 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
# Note: Please bump in sync with dev-libs/libxslt
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
PYTHON_REQ_USE="xml"
|
||||||
|
inherit flag-o-matic python-r1 multilib-minimal
|
||||||
|
|
||||||
|
XSTS_HOME="http://www.w3.org/XML/2004/xml-schema-test-suite"
|
||||||
|
XSTS_NAME_1="xmlschema2002-01-16"
|
||||||
|
XSTS_NAME_2="xmlschema2004-01-14"
|
||||||
|
XSTS_TARBALL_1="xsts-2002-01-16.tar.gz"
|
||||||
|
XSTS_TARBALL_2="xsts-2004-01-14.tar.gz"
|
||||||
|
XMLCONF_TARBALL="xmlts20130923.tar.gz"
|
||||||
|
|
||||||
|
DESCRIPTION="XML C parser and toolkit"
|
||||||
|
HOMEPAGE="http://www.xmlsoft.org/ https://gitlab.gnome.org/GNOME/libxml2"
|
||||||
|
if [[ ${PV} == 9999 ]] ; then
|
||||||
|
EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/libxml2"
|
||||||
|
inherit autotools git-r3
|
||||||
|
else
|
||||||
|
inherit gnome.org libtool
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
fi
|
||||||
|
|
||||||
|
SRC_URI+="
|
||||||
|
test? (
|
||||||
|
${XSTS_HOME}/${XSTS_NAME_1}/${XSTS_TARBALL_1}
|
||||||
|
${XSTS_HOME}/${XSTS_NAME_2}/${XSTS_TARBALL_2}
|
||||||
|
https://www.w3.org/XML/Test/${XMLCONF_TARBALL}
|
||||||
|
)"
|
||||||
|
S="${WORKDIR}/${PN}-${PV%_rc*}"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="2"
|
||||||
|
IUSE="debug examples icu lzma +python readline static-libs test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
|
RDEPEND=">=sys-libs/zlib-1.2.8-r1:=[${MULTILIB_USEDEP}]
|
||||||
|
icu? ( >=dev-libs/icu-51.2-r1:=[${MULTILIB_USEDEP}] )
|
||||||
|
lzma? ( >=app-arch/xz-utils-5.0.5-r1:=[${MULTILIB_USEDEP}] )
|
||||||
|
python? ( ${PYTHON_DEPS} )
|
||||||
|
readline? ( sys-libs/readline:= )"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
BDEPEND="virtual/pkgconfig"
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]] ; then
|
||||||
|
BDEPEND+=" dev-util/gtk-doc-am"
|
||||||
|
fi
|
||||||
|
|
||||||
|
MULTILIB_CHOST_TOOLS=(
|
||||||
|
/usr/bin/xml2-config
|
||||||
|
)
|
||||||
|
|
||||||
|
DOCS=( NEWS README.md TODO TODO_SCHEMAS python/TODO )
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-2.9.8-out-of-tree-test.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ ${PV} == 9999 ]] ; then
|
||||||
|
git-r3_src_unpack
|
||||||
|
else
|
||||||
|
local tarname=${P/_rc/-rc}.tar.xz
|
||||||
|
|
||||||
|
# ${A} isn't used to avoid unpacking of test tarballs into ${WORKDIR},
|
||||||
|
# as they are needed as tarballs in ${S}/xstc instead and not unpacked
|
||||||
|
unpack ${tarname}
|
||||||
|
|
||||||
|
if [[ -n ${PATCHSET_VERSION} ]] ; then
|
||||||
|
unpack ${PN}-${PATCHSET_VERSION}.tar.bz2
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "${S}" || die
|
||||||
|
|
||||||
|
if use test ; then
|
||||||
|
cp "${DISTDIR}/${XSTS_TARBALL_1}" \
|
||||||
|
"${DISTDIR}/${XSTS_TARBALL_2}" \
|
||||||
|
"${S}"/xstc/ \
|
||||||
|
|| die "Failed to install test tarballs"
|
||||||
|
unpack ${XMLCONF_TARBALL}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
if [[ ${PV} == 9999 ]] ; then
|
||||||
|
eautoreconf
|
||||||
|
else
|
||||||
|
# Please do not remove, as else we get references to PORTAGE_TMPDIR
|
||||||
|
# in /usr/lib/python?.?/site-packages/libxml2mod.la among things.
|
||||||
|
elibtoolize
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
# Filter seemingly problematic CFLAGS (bug #26320)
|
||||||
|
filter-flags -fprefetch-loop-arrays -funroll-loops
|
||||||
|
|
||||||
|
# Notes:
|
||||||
|
# The meaning of the 'debug' USE flag does not apply to the --with-debug
|
||||||
|
# switch (enabling the libxml2 debug module). See bug #100898.
|
||||||
|
libxml2_configure() {
|
||||||
|
ECONF_SOURCE="${S}" econf \
|
||||||
|
--enable-ipv6 \
|
||||||
|
$(use_with debug run-debug) \
|
||||||
|
$(use_with icu) \
|
||||||
|
$(use_with lzma) \
|
||||||
|
$(use_enable static-libs static) \
|
||||||
|
$(multilib_native_use_with readline) \
|
||||||
|
$(multilib_native_use_with readline history) \
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Build python bindings separately
|
||||||
|
libxml2_configure --without-python
|
||||||
|
|
||||||
|
multilib_is_native_abi && use python &&
|
||||||
|
python_foreach_impl run_in_build_dir libxml2_configure --with-python
|
||||||
|
}
|
||||||
|
|
||||||
|
libxml2_py_emake() {
|
||||||
|
pushd "${BUILD_DIR}"/python >/dev/null || die
|
||||||
|
|
||||||
|
emake top_builddir="${NATIVE_BUILD_DIR}" "$@"
|
||||||
|
|
||||||
|
popd >/dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_compile() {
|
||||||
|
default
|
||||||
|
|
||||||
|
if multilib_is_native_abi && use python ; then
|
||||||
|
NATIVE_BUILD_DIR="${BUILD_DIR}"
|
||||||
|
python_foreach_impl run_in_build_dir libxml2_py_emake all
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_test() {
|
||||||
|
ln -s "${S}"/xmlconf || die
|
||||||
|
|
||||||
|
emake check
|
||||||
|
|
||||||
|
multilib_is_native_abi && use python &&
|
||||||
|
python_foreach_impl run_in_build_dir libxml2_py_emake test
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install() {
|
||||||
|
emake DESTDIR="${D}" install
|
||||||
|
|
||||||
|
multilib_is_native_abi && use python &&
|
||||||
|
python_foreach_impl run_in_build_dir libxml2_py_emake DESTDIR="${D}" install
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install_all() {
|
||||||
|
einstalldocs
|
||||||
|
|
||||||
|
if ! use examples ; then
|
||||||
|
rm -rf "${ED}"/usr/share/doc/${PF}/examples || die
|
||||||
|
rm -rf "${ED}"/usr/share/doc/${PF}/python/examples || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -rf "${ED}"/usr/share/doc/${PN}-python-${PVR} || die
|
||||||
|
|
||||||
|
find "${ED}" -name '*.la' -delete || die
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
# We don't want to do the xmlcatalog during stage1, as xmlcatalog will not
|
||||||
|
# be in / and stage1 builds to ROOT=/tmp/stage1root. This fixes bug #208887.
|
||||||
|
if [[ -n "${ROOT}" ]]; then
|
||||||
|
elog "Skipping XML catalog creation for stage building (bug #208887)."
|
||||||
|
else
|
||||||
|
# Need an XML catalog, so no-one writes to a non-existent one
|
||||||
|
CATALOG="${EROOT}/etc/xml/catalog"
|
||||||
|
|
||||||
|
# We don't want to clobber an existing catalog though,
|
||||||
|
# only ensure that one is there
|
||||||
|
# <obz@gentoo.org>
|
||||||
|
if [[ ! -e "${CATALOG}" ]]; then
|
||||||
|
[[ -d "${EROOT}/etc/xml" ]] || mkdir -p "${EROOT}/etc/xml"
|
||||||
|
"${EPREFIX}"/usr/bin/xmlcatalog --create > "${CATALOG}"
|
||||||
|
einfo "Created XML catalog in ${CATALOG}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
@ -1,2 +1 @@
|
|||||||
DIST link-grammar-5.10.2.tar.gz 3853934 BLAKE2B d2cb64a6b0146f40ce5b197c21ded94f1256360615c2332a1c546f6b6c71c98d2500e97b0fcabae964377a04143fa13ba3af324f2de729cfccd280e53f6fb7c3 SHA512 71bc881cb628fe1898403024d8e949b2fbf44f5d20445f6fff7bb6038646840556d734434beb7eb43b63f661e18333657deaeb1b8c96b50d5fe3b6ef727565c2
|
|
||||||
DIST link-grammar-5.10.4.tar.gz 4593602 BLAKE2B 0515aed27ae8df85ceddb9685ce90db2b6e7671235b9b445b6728b1ac417d6d43b3705566066ff9735fc98c32746342c224f2399bb0f2573784f20b5f998e7be SHA512 a215694f76e15286c478884ea8a13b32976d06ea45d10897dc1b303f256a2c0af94c9f90da26b314ce5e03009b494ab526c729b66f2b1ed46ff3e8b02cb6fd08
|
DIST link-grammar-5.10.4.tar.gz 4593602 BLAKE2B 0515aed27ae8df85ceddb9685ce90db2b6e7671235b9b445b6728b1ac417d6d43b3705566066ff9735fc98c32746342c224f2399bb0f2573784f20b5f998e7be SHA512 a215694f76e15286c478884ea8a13b32976d06ea45d10897dc1b303f256a2c0af94c9f90da26b314ce5e03009b494ab526c729b66f2b1ed46ff3e8b02cb6fd08
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
--- a/link-grammar/minisat/minisat/utils/System.h
|
|
||||||
+++ b/link-grammar/minisat/minisat/utils/System.h
|
|
||||||
@@ -21,10 +21,6 @@
|
|
||||||
#ifndef Minisat_System_h
|
|
||||||
#define Minisat_System_h
|
|
||||||
|
|
||||||
-#if defined(__linux__)
|
|
||||||
-#include <fpu_control.h>
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
#include "minisat/mtl/IntTypes.h"
|
|
||||||
|
|
||||||
//-------------------------------------------------------------------------------------------------
|
|
@ -1,116 +0,0 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8..10} )
|
|
||||||
|
|
||||||
inherit autotools python-r1 out-of-source
|
|
||||||
|
|
||||||
DESCRIPTION="A Syntactic English parser"
|
|
||||||
HOMEPAGE="https://www.abisource.com/projects/link-grammar/ https://www.link.cs.cmu.edu/link/"
|
|
||||||
SRC_URI="https://www.abisource.com/downloads/${PN}/${PV}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="LGPL-2.1"
|
|
||||||
SLOT="0/5"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv sparc ~x86"
|
|
||||||
IUSE="aspell +hunspell python" # pcre
|
|
||||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
|
||||||
|
|
||||||
# XXX: sqlite is automagic
|
|
||||||
# Does not build with >=sci-mathematics/minisat-2, bug #593662
|
|
||||||
# add pcre support: pcre? ( dev-libs/libpcre )
|
|
||||||
RDEPEND="
|
|
||||||
dev-db/sqlite:3
|
|
||||||
aspell? ( app-text/aspell )
|
|
||||||
hunspell? ( app-text/hunspell )
|
|
||||||
python? ( ${PYTHON_DEPS} )
|
|
||||||
!sci-mathematics/minisat"
|
|
||||||
DEPEND="${RDEPEND}"
|
|
||||||
BDEPEND="
|
|
||||||
dev-lang/swig:0
|
|
||||||
sys-devel/autoconf-archive
|
|
||||||
virtual/pkgconfig"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-5.8.1-lld.patch
|
|
||||||
"${FILESDIR}"/${P}-musl.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
if use aspell && use hunspell; then
|
|
||||||
ewarn "You have enabled 'aspell' and 'hunspell' support, but both cannot coexist,"
|
|
||||||
ewarn "only hunspell will be built. Press Ctrl+C and set only 'aspell' USE flag if"
|
|
||||||
ewarn "you want aspell support."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
|
|
||||||
my_src_configure() {
|
|
||||||
local myconf=(
|
|
||||||
--disable-maintainer-mode
|
|
||||||
--disable-editline
|
|
||||||
# java is hopelessly broken, invokes maven at build time (bug #806157)
|
|
||||||
--disable-java-bindings
|
|
||||||
--disable-perl-bindings
|
|
||||||
--disable-static
|
|
||||||
--enable-sat-solver=bundled
|
|
||||||
$(use_enable aspell)
|
|
||||||
$(use_enable hunspell)
|
|
||||||
$(usev hunspell --with-hunspell-dictdir="${EPREFIX}"/usr/share/myspell)
|
|
||||||
# $(use_enable pcre regex-tokenizer)
|
|
||||||
# $(use_with pcre)
|
|
||||||
)
|
|
||||||
|
|
||||||
econf \
|
|
||||||
--disable-python-bindings \
|
|
||||||
"${myconf[@]}"
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
python_configure() {
|
|
||||||
econf \
|
|
||||||
--enable-python-bindings \
|
|
||||||
"${myconf[@]}"
|
|
||||||
}
|
|
||||||
python_foreach_impl run_in_build_dir python_configure
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
my_src_compile() {
|
|
||||||
local -x MAIN_BUILD_DIR="${BUILD_DIR}"
|
|
||||||
default
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
python_compile() {
|
|
||||||
emake -C bindings/python \
|
|
||||||
VPATH="${S}:${MAIN_BUILD_DIR}" \
|
|
||||||
_clinkgrammar_la_DEPENDENCIES="${MAIN_BUILD_DIR}"/link-grammar/liblink-grammar.la \
|
|
||||||
_clinkgrammar_la_LIBADD="${MAIN_BUILD_DIR}"/link-grammar/liblink-grammar.la
|
|
||||||
}
|
|
||||||
python_foreach_impl run_in_build_dir python_compile
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
my_src_install() {
|
|
||||||
local -x MAIN_BUILD_DIR="${BUILD_DIR}"
|
|
||||||
default
|
|
||||||
|
|
||||||
if use python; then
|
|
||||||
python_install() {
|
|
||||||
emake -C bindings/python \
|
|
||||||
VPATH="${S}:${MAIN_BUILD_DIR}" \
|
|
||||||
_clinkgrammar_la_DEPENDENCIES="${MAIN_BUILD_DIR}"/link-grammar/liblink-grammar.la \
|
|
||||||
_clinkgrammar_la_LIBADD="${MAIN_BUILD_DIR}"/link-grammar/liblink-grammar.la \
|
|
||||||
DESTDIR="${D}" \
|
|
||||||
install
|
|
||||||
}
|
|
||||||
python_foreach_impl run_in_build_dir python_install
|
|
||||||
fi
|
|
||||||
|
|
||||||
# no static archives
|
|
||||||
find "${ED}" -name '*.la' -delete || die
|
|
||||||
}
|
|
@ -1,30 +0,0 @@
|
|||||||
# Copyright 2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
DISTUTILS_USE_PEP517=setuptools
|
|
||||||
PYTHON_COMPAT=( python3_{8..10} )
|
|
||||||
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="A Python package that generates fake data for you"
|
|
||||||
HOMEPAGE="https://github.com/joke2k/faker"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/python-dateutil-2.4.2[${PYTHON_USEDEP}]
|
|
||||||
!dev-ruby/faker"
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
dev-python/freezegun[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pillow[${PYTHON_USEDEP},tiff]
|
|
||||||
dev-python/random2[${PYTHON_USEDEP}]
|
|
||||||
dev-python/validators[${PYTHON_USEDEP}]
|
|
||||||
)"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
@ -1,35 +0,0 @@
|
|||||||
# Copyright 2022 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
DISTUTILS_USE_PEP517=setuptools
|
|
||||||
PYTHON_COMPAT=( python3_{8..10} )
|
|
||||||
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="A Python package that generates fake data for you"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://github.com/joke2k/faker/
|
|
||||||
https://pypi.org/project/Faker/
|
|
||||||
"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/python-dateutil-2.4.2[${PYTHON_USEDEP}]
|
|
||||||
!dev-ruby/faker
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
dev-python/freezegun[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pillow[${PYTHON_USEDEP},tiff]
|
|
||||||
dev-python/random2[${PYTHON_USEDEP}]
|
|
||||||
dev-python/validators[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
@ -1,4 +1,2 @@
|
|||||||
DIST Faker-13.3.3.tar.gz 1483842 BLAKE2B bf74f1e4d38b7ec5bd81610a462d88a86fec92886e42ad42a6827524d259697fd263a4e357f28abeee3ffe73ebc17fc4ea12082837773cc326ad0a89e117b32e SHA512 ac2dddf662fd8053bacd81fa52560bdf90f7055741648ea25d2cab92066be6efa1ddc29646ece416a408038fda695ff6602c5a655de3734c208864812f9d67cf
|
|
||||||
DIST Faker-13.3.5.tar.gz 1484180 BLAKE2B 137c3faad4ccee4a673a45a8f1245a9e0681b64bfa43c5f7caa91ea1e1d797be0b0973aef8b32a4c44a790218509c77cdf9a8ead5dcf87c19a5165b2b2e9b599 SHA512 8cce3b1488ae34a292bbf9cc0373ffd9c47fe29b484bddb51396a1fe63eef0953022d638ea9b4a49148a48a72d56a9d38d342ebd228265ccb34320406ab45453
|
|
||||||
DIST Faker-13.4.0.tar.gz 1484289 BLAKE2B 6d3ab8f958a1d51550bec29c28799753db91330cf98a47ba556b41d61459c42e34bb7dda24c71efab4820fc8843b1f0b4e2b41fa59f185a0acb0989b5f8c947c SHA512 29a0da1cd8275b90e3c65bf74874661e9ac1f2029aee1d317ae139e758aff946d0fccc48ace9043d78ba9a9242c431dd79d025f4203816ce3d8c56b394355672
|
|
||||||
DIST Faker-13.6.0.tar.gz 1488090 BLAKE2B 9b4485fc97b0c22f9cce298a55e9dd91c05ea9a56514618c1355c420f3ce6beaa599caa51d909803e968ab918c4c841f459da3d06dd78fbfe984d22b323e2cbe SHA512 bcfb49777640f9b605e164b91380aee77206614f055a321b905ead1649219c081254e57ea80045dd692d061e53e69201ad356daaf6727655c87d65b16752c4cc
|
DIST Faker-13.6.0.tar.gz 1488090 BLAKE2B 9b4485fc97b0c22f9cce298a55e9dd91c05ea9a56514618c1355c420f3ce6beaa599caa51d909803e968ab918c4c841f459da3d06dd78fbfe984d22b323e2cbe SHA512 bcfb49777640f9b605e164b91380aee77206614f055a321b905ead1649219c081254e57ea80045dd692d061e53e69201ad356daaf6727655c87d65b16752c4cc
|
||||||
|
DIST Faker-13.7.0.tar.gz 1489106 BLAKE2B 8b12782b836915f83d4a05cf735d0e00544d67af595239535822842bcd8a5b08ee43d6f0ab17a813cbda194874cfc3d5a983e018a6655dfe84f9a5151562db8f SHA512 84299a5a8f4fb01bad2eb337627878ad54a835a79e6573300435e19b1d9b6945a2e67260ea6c9a8db586657e11b4a4c5f25f83c170430162aeb37f87cc0f5f4c
|
||||||
|
Binary file not shown.
@ -0,0 +1,51 @@
|
|||||||
|
# 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_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
SAMPLE_COMMIT=41b5cd4f774f8fbd8ac42d93b9962f0376352a15
|
||||||
|
DESCRIPTION="Python library to work with PDF files"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pypi.org/project/PyPDF2/
|
||||||
|
https://github.com/py-pdf/PyPDF2/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/py-pdf/PyPDF2/archive/${PV}.tar.gz
|
||||||
|
-> ${P}.gh.tar.gz
|
||||||
|
test? (
|
||||||
|
https://github.com/py-pdf/sample-files/archive/${SAMPLE_COMMIT}.tar.gz
|
||||||
|
-> ${PN}-sample-files-${SAMPLE_COMMIT}.tar.gz
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="BSD-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||||
|
IUSE="examples"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
dev-python/pillow[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
default
|
||||||
|
if use test; then
|
||||||
|
mv "sample-files-${SAMPLE_COMMIT}"/* "${P}"/sample-files/ || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
if use examples; then
|
||||||
|
docinto examples
|
||||||
|
dodoc -r Sample_Code/.
|
||||||
|
docompress -x /usr/share/doc/${PF}/examples
|
||||||
|
fi
|
||||||
|
distutils-r1_src_install
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST QtPy-2.0.1.tar.gz 43047 BLAKE2B 66625852e75fbfcf0bf96e740754ca26b6d5226dd5450d0274cf6dc875cba18e5ed8e339c8c7ad084ffa9b135f19447e087b338690ec521205316c4f22f09197 SHA512 5d482b0a5bd2be67a0fabccf98a9dedf28ef328641c8c976e2274d4a5afb14b9fefce251e80496ed54425dcb3da24984c6c36308db0bfc810ea2142528ad88fd
|
DIST QtPy-2.0.1.tar.gz 43047 BLAKE2B 66625852e75fbfcf0bf96e740754ca26b6d5226dd5450d0274cf6dc875cba18e5ed8e339c8c7ad084ffa9b135f19447e087b338690ec521205316c4f22f09197 SHA512 5d482b0a5bd2be67a0fabccf98a9dedf28ef328641c8c976e2274d4a5afb14b9fefce251e80496ed54425dcb3da24984c6c36308db0bfc810ea2142528ad88fd
|
||||||
|
DIST QtPy-2.1.0.tar.gz 46470 BLAKE2B 2e032d141ad134444143cd59b8952957b226d9519925083aecce82adf62eebd3f58803cf548c4142fb1ece6f0e2340043a82a7aef056f6e4a9ac8b9caf72d80d SHA512 052cab4218d23d46162d11bf038dccfe6200b05c1c8647bd1f9dcbdaa7af50c23d4ae85829e065c7bae57630d149d562d76cc78202b4f448cbf6547010c746ff
|
||||||
|
@ -0,0 +1,139 @@
|
|||||||
|
# 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_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1 virtualx
|
||||||
|
|
||||||
|
DESCRIPTION="Abstraction layer on top of PyQt5 and PySide2 and additional custom QWidgets"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/spyder-ide/qtpy/
|
||||||
|
https://pypi.org/project/QtPy/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||||
|
|
||||||
|
_IUSE_QT_MODULES="
|
||||||
|
declarative designer gui help location multimedia network opengl
|
||||||
|
positioning printsupport sensors serialport speech sql svg testlib
|
||||||
|
webchannel webengine websockets widgets x11extras xml xmlpatterns
|
||||||
|
"
|
||||||
|
IUSE="+pyqt5 pyside2 ${_IUSE_QT_MODULES}"
|
||||||
|
unset _IUSE_QT_MODULES
|
||||||
|
|
||||||
|
REQUIRED_USE="|| ( pyqt5 pyside2 )"
|
||||||
|
|
||||||
|
# These flags are currently *not* common to both the PySide2 and PyQt5 ebuild
|
||||||
|
# Disable them for now, please check periodically if this is still up to date.
|
||||||
|
# bluetooth? ( pyqt5 )
|
||||||
|
# dbus? ( pyqt5 )
|
||||||
|
#
|
||||||
|
# 3d? ( pyside2 )
|
||||||
|
# charts? ( pyside2 )
|
||||||
|
# concurrent? ( pyside2 )
|
||||||
|
# datavis? ( pyside2 )
|
||||||
|
# scxml? ( pyside2 )
|
||||||
|
# script? ( pyside2 )
|
||||||
|
# scripttools? ( pyside2 )
|
||||||
|
|
||||||
|
# WARNING: the obvious solution of using || for PyQt5/pyside2 is not going
|
||||||
|
# to work. The package only checks whether PyQt5/pyside2 is installed, it does
|
||||||
|
# not verify whether they have the necessary modules (i.e. satisfy the USE dep).
|
||||||
|
#
|
||||||
|
# Webengine is a special case, because PyQt5 provides this in a separate package
|
||||||
|
# while PySide2 ships it in the same package.
|
||||||
|
#
|
||||||
|
# declarative/qml/quick is a special case, because PyQt5 bundles the bindings
|
||||||
|
# for qml and quick in one flag: declarative PySide2 does not.
|
||||||
|
#
|
||||||
|
# The PyQt5 ebuild currently enables xml support unconditionally, the flag is
|
||||||
|
# added anyway with a (+) to make it future proof if the ebuild were to change
|
||||||
|
# this behaviour in the future.
|
||||||
|
#
|
||||||
|
# The PySide2 ebuild currently enables opengl and serialport support
|
||||||
|
# unconditionally, the flag is added anyway with a (+) to make it future proof
|
||||||
|
# if the ebuild were to change this behaviour in the future.
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/packaging[${PYTHON_USEDEP}]
|
||||||
|
pyqt5? (
|
||||||
|
dev-python/PyQt5[${PYTHON_USEDEP}]
|
||||||
|
dev-python/PyQt5[declarative?,designer?,gui?,help?,location?]
|
||||||
|
dev-python/PyQt5[multimedia?,network?,opengl?,positioning?]
|
||||||
|
dev-python/PyQt5[printsupport?,sensors?,serialport?,speech(-)?,sql?,svg?]
|
||||||
|
dev-python/PyQt5[testlib?,webchannel?,websockets?,widgets?]
|
||||||
|
dev-python/PyQt5[x11extras?,xml(+)?,xmlpatterns?]
|
||||||
|
webengine? ( dev-python/PyQtWebEngine[${PYTHON_USEDEP}] )
|
||||||
|
)
|
||||||
|
pyside2? (
|
||||||
|
dev-python/pyside2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyside2[designer?,gui?,help?,location?,multimedia?]
|
||||||
|
dev-python/pyside2[network?,opengl(+)?,positioning?,printsupport?]
|
||||||
|
dev-python/pyside2[sensors?,serialport(+)?,speech?,sql?,svg?]
|
||||||
|
dev-python/pyside2[testlib?,webchannel?,webengine?,websockets?]
|
||||||
|
dev-python/pyside2[widgets?,x11extras?,xml?,xmlpatterns?]
|
||||||
|
declarative? ( dev-python/pyside2[qml,quick] )
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
# The QtPy testsuite skips tests for bindings that are not installed, so here we
|
||||||
|
# ensure that everything is available and all tests are run. Note that not
|
||||||
|
# all flags are available in PyQt5/PySide2, so some tests are still skipped.
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
pyqt5? (
|
||||||
|
dev-python/PyQt5[${PYTHON_USEDEP}]
|
||||||
|
dev-python/PyQt5[bluetooth,dbus,declarative,designer,gui,help,location]
|
||||||
|
dev-python/PyQt5[multimedia,network,opengl,positioning,printsupport]
|
||||||
|
dev-python/PyQt5[sensors,serialport,speech(-),sql,svg,testlib,webchannel]
|
||||||
|
dev-python/PyQt5[websockets,widgets,x11extras,xml(+),xmlpatterns]
|
||||||
|
dev-python/PyQtWebEngine[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
pyside2? (
|
||||||
|
dev-python/pyside2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyside2[3d,charts,concurrent,datavis,designer,gui,help]
|
||||||
|
dev-python/pyside2[location,multimedia,network,opengl(+),positioning]
|
||||||
|
dev-python/pyside2[printsupport,qml,quick,script,scripttools,scxml]
|
||||||
|
dev-python/pyside2[sensors,serialport(+),speech,sql,svg,testlib]
|
||||||
|
dev-python/pyside2[webchannel,webengine,websockets,widgets,x11extras]
|
||||||
|
dev-python/pyside2[xml,xmlpatterns]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
sed -i -e 's:--cov=qtpy --cov-report=term-missing::' pytest.ini || die
|
||||||
|
# Disable Qt for Python implementations that are not selected
|
||||||
|
if ! use pyqt5; then
|
||||||
|
sed -i -e "s/from PyQt5.QtCore import/raise ImportError #/" qtpy/__init__.py || die
|
||||||
|
fi
|
||||||
|
if ! use pyside2; then
|
||||||
|
sed -i -e "s/from PySide2 import/raise ImportError #/" qtpy/__init__.py || die
|
||||||
|
sed -i -e "s/from PySide2.QtCore import/raise ImportError #/" qtpy/__init__.py || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
if use pyqt5; then
|
||||||
|
QT_API="pyqt5" virtx epytest
|
||||||
|
fi
|
||||||
|
if use pyside2; then
|
||||||
|
QT_API="pyside2" virtx epytest
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if use pyqt5 && use pyside2; then
|
||||||
|
ewarn "You have enabled both PyQt5 and PySide2, note that QtPy will default"
|
||||||
|
ewarn "to PyQt5 unless the QT_API environment variable overrides this."
|
||||||
|
fi
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST astroid-2.11.2.tar.gz 412621 BLAKE2B e43be65b733a5de5d027920e8e4db0365a3af98614739f0a56dcf95ef6c1c3a9e104b52c1fad4477bccd460850cf6bab6f38014aaa6891e8d04720d4a52b79d8 SHA512 5b33cb3594513804c6933a888297ed54c42cb52274c7fe49060368e3fac62be8f3febcb822aa9267a5a0a99a32932912ebc4640a7d10288b7021955fe0277c0d
|
DIST astroid-2.11.2.tar.gz 412621 BLAKE2B e43be65b733a5de5d027920e8e4db0365a3af98614739f0a56dcf95ef6c1c3a9e104b52c1fad4477bccd460850cf6bab6f38014aaa6891e8d04720d4a52b79d8 SHA512 5b33cb3594513804c6933a888297ed54c42cb52274c7fe49060368e3fac62be8f3febcb822aa9267a5a0a99a32932912ebc4640a7d10288b7021955fe0277c0d
|
||||||
DIST astroid-2.11.3.tar.gz 413237 BLAKE2B 0758e0a2069e969e1509d0935883f1deba6b3c55af0edcb3146be7dd39eab40e9a71ef517c5114c49c191f545da73340d074df1cc107094c6450f9d2448932db SHA512 ea215a4fee747ab49735d3b8a084500b9127c831f0a737d6610128211750920e68741dc888d8d799422636b7acb014e1a1f3f629db87c445781c4cfaf57dd062
|
DIST astroid-2.11.3.tar.gz 413237 BLAKE2B 0758e0a2069e969e1509d0935883f1deba6b3c55af0edcb3146be7dd39eab40e9a71ef517c5114c49c191f545da73340d074df1cc107094c6450f9d2448932db SHA512 ea215a4fee747ab49735d3b8a084500b9127c831f0a737d6610128211750920e68741dc888d8d799422636b7acb014e1a1f3f629db87c445781c4cfaf57dd062
|
||||||
|
DIST astroid-2.11.4.tar.gz 414075 BLAKE2B 7bbe956b1ed577bf6be97f89ed3e1c5f3f516d549339010e711d43bf61f9f23e18e04c57165742e22e2bea9dce8766ba5b573749627eeeeda2a133610d73dfb5 SHA512 dbe0dd34008f56b117c12133a6f3b9f940f6cebd4d19019396efe0d060ac7f4a28e56193fa16d30748dfc316e8cda1b8fcad8574dfb2698430e0f1d3622681c4
|
||||||
DIST astroid-2.9.3.tar.gz 409069 BLAKE2B 152dbe8ab2fee3964dc8cc714a5ba48c71b5994c77d1e20683bcf028483aca22d5be5772e72d056cfd3d1f59562b447366d61fc35a2b67d545f069a8f7975e84 SHA512 7bb3bf2d456c0d22325444e641961c34eaddcddf50c97ee9f5b5c8755232cf1b65a315258403b40bb7dcad15c4f9b6b73ab0eb607525a48a65f52406969eca04
|
DIST astroid-2.9.3.tar.gz 409069 BLAKE2B 152dbe8ab2fee3964dc8cc714a5ba48c71b5994c77d1e20683bcf028483aca22d5be5772e72d056cfd3d1f59562b447366d61fc35a2b67d545f069a8f7975e84 SHA512 7bb3bf2d456c0d22325444e641961c34eaddcddf50c97ee9f5b5c8755232cf1b65a315258403b40bb7dcad15c4f9b6b73ab0eb607525a48a65f52406969eca04
|
||||||
|
@ -0,0 +1,54 @@
|
|||||||
|
# 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_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Abstract Syntax Tree for logilab packages"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/PyCQA/astroid/
|
||||||
|
https://pypi.org/project/astroid/"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/PyCQA/astroid/archive/v${PV}.tar.gz
|
||||||
|
-> ${P}.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
|
||||||
|
# Version specified in __pkginfo__.py.
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/lazy-object-proxy-1.4.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/typing-extensions-3.10[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/wrapt-2[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
dev-python/nose[${PYTHON_USEDEP}]
|
||||||
|
dev-python/numpy[${PYTHON_USEDEP}]
|
||||||
|
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local EPYTEST_DESELECT=(
|
||||||
|
# no clue why it's broken
|
||||||
|
tests/unittest_modutils.py::GetModulePartTest::test_known_values_get_builtin_module_part
|
||||||
|
tests/unittest_brain_dataclasses.py::test_pydantic_field
|
||||||
|
)
|
||||||
|
|
||||||
|
# Faker causes sys.path_importer_cache keys to be overwritten
|
||||||
|
# with PosixPaths
|
||||||
|
epytest -p no:faker
|
||||||
|
}
|
@ -0,0 +1,66 @@
|
|||||||
|
# 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_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1 multiprocessing
|
||||||
|
|
||||||
|
DESCRIPTION="The AWS SDK for Python"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/boto/boto3/
|
||||||
|
https://pypi.org/project/boto3/
|
||||||
|
"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/boto/boto3"
|
||||||
|
inherit git-r3
|
||||||
|
BOTOCORE_PV=${PV}
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/boto/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
# botocore is x.(y+3).z
|
||||||
|
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 3)).$(ver_cut 3-)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/botocore-${BOTOCORE_PV}[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/s3transfer-0.3.0[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs/source \
|
||||||
|
'dev-python/guzzle_sphinx_theme'
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# don't lock versions to narrow ranges
|
||||||
|
sed -e '/botocore/ d' \
|
||||||
|
-e '/jmespath/ d' \
|
||||||
|
-e '/s3transfer/ d' \
|
||||||
|
-i setup.py || die
|
||||||
|
|
||||||
|
# do not rely on bundled deps in botocore (sic!)
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
epytest tests/{functional,unit} \
|
||||||
|
-n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
|
||||||
|
}
|
@ -0,0 +1,71 @@
|
|||||||
|
# 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_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1 multiprocessing
|
||||||
|
|
||||||
|
DESCRIPTION="Low-level, data-driven core of boto 3"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/boto/botocore/
|
||||||
|
https://pypi.org/project/botocore/
|
||||||
|
"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/boto/botocore"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
fi
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/six[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/jmespath-2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs/source \
|
||||||
|
'dev-python/guzzle_sphinx_theme'
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# unpin deps
|
||||||
|
sed -i -e "s:>=.*':':" setup.py || die
|
||||||
|
|
||||||
|
# unbundle deps
|
||||||
|
rm -r botocore/vendored || die
|
||||||
|
find -name '*.py' -exec sed -i \
|
||||||
|
-e 's:from botocore[.]vendored import:import:' \
|
||||||
|
-e 's:from botocore[.]vendored[.]:from :' \
|
||||||
|
{} + || die
|
||||||
|
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local EPYTEST_DESELECT=(
|
||||||
|
# rely on bundled six
|
||||||
|
tests/functional/test_six_imports.py::test_no_bare_six_imports
|
||||||
|
tests/functional/test_six_threading.py::test_six_thread_safety
|
||||||
|
)
|
||||||
|
|
||||||
|
epytest tests/{functional,unit} \
|
||||||
|
-n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST cfn-lint-0.59.0.tar.gz 9004743 BLAKE2B e778c1081e45dacc813f8a4ae7726eb929fabcdbfaafcbbc5f0d925cfe32773851366c9488363728ae42349cbe899a6cacd114940ee8d76dc284b30ea87fe19a SHA512 e8e9d0fb1f366c49f8a008000a808ec4b6c4299ff3c9650229619d8e48f1812709ecd54274163d8bd389c6823f20accd7d31f6147bec926ec233ede3ee51ee10
|
DIST cfn-lint-0.59.0.tar.gz 9004743 BLAKE2B e778c1081e45dacc813f8a4ae7726eb929fabcdbfaafcbbc5f0d925cfe32773851366c9488363728ae42349cbe899a6cacd114940ee8d76dc284b30ea87fe19a SHA512 e8e9d0fb1f366c49f8a008000a808ec4b6c4299ff3c9650229619d8e48f1812709ecd54274163d8bd389c6823f20accd7d31f6147bec926ec233ede3ee51ee10
|
||||||
|
DIST cfn-lint-0.59.1.tar.gz 9065067 BLAKE2B 63fc591f7ed60eed2ef7fa1e9ea212e3e8569cfd20dec8bb8505dbfb8e96ee8f8ab6136d88de58b2db8823675946dc99b38adeb3b5c784d165083e1353100b00 SHA512 a08b4bf4dc8e7ab41bb72eb9309ca4f03eed3b6f5c31b3876dc9d08610312377a7c229de883c287e7e5ed6597f8eada79a111882785888e43b0ff20160e39fe0
|
||||||
|
@ -0,0 +1,50 @@
|
|||||||
|
# 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_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="CloudFormation Linter"
|
||||||
|
HOMEPAGE="https://pypi.org/project/cfn-lint/ https://github.com/aws-cloudformation/cfn-lint/"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/aws-cloudformation/cfn-lint/archive/v${PV}.tar.gz
|
||||||
|
-> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/aws-sam-translator-1.45.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/jsonpatch[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jschema_to_python-1.2.3[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jsonschema-3.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/junit-xml[${PYTHON_USEDEP}]
|
||||||
|
dev-python/networkx[${PYTHON_USEDEP}]
|
||||||
|
>dev-python/pyyaml-5.4[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/requests-2.15.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/sarif_om-1.0.4[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
EPYTEST_DESELECT=(
|
||||||
|
# TODO
|
||||||
|
test/unit/module/test_template.py::TestTemplate::test_build_graph
|
||||||
|
# requires git repo
|
||||||
|
test/unit/module/maintenance/test_update_documentation.py::TestUpdateDocumentation::test_update_docs
|
||||||
|
# Internet
|
||||||
|
test/unit/module/formatters/test_formatters.py::TestFormatters::test_sarif_formatter
|
||||||
|
test/unit/module/maintenance/test_update_resource_specs.py::TestUpdateResourceSpecs::test_update_resource_specs_python_2
|
||||||
|
test/unit/module/maintenance/test_update_resource_specs.py::TestUpdateResourceSpecs::test_update_resource_specs_python_3
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# unpin the deps
|
||||||
|
sed -e 's:~=[0-9.]*::' -i setup.py || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
@ -0,0 +1,58 @@
|
|||||||
|
# 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_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Task scheduling and blocked algorithms for parallel processing"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://dask.org/
|
||||||
|
https://github.com/dask/dask/
|
||||||
|
https://pypi.org/project/dask/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/dask/dask/archive/${PV}.tar.gz -> ${P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/cloudpickle-0.2.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/fsspec-0.6.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/numpy-1.15.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pandas-0.25.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/packaging-20.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/partd-0.3.10[${PYTHON_USEDEP}]
|
||||||
|
dev-python/psutil[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/toolz-0.8.2[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
dev-python/toolz[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
dev-python/moto[${PYTHON_USEDEP}]
|
||||||
|
dev-python/numexpr[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
|
||||||
|
dev-python/scipy[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
EPYTEST_DESELECT=(
|
||||||
|
# another test relying on -Werror
|
||||||
|
"dask/array/tests/test_overlap.py::test_map_overlap_no_depth[None]"
|
||||||
|
# TODO
|
||||||
|
dask/array/tests/test_reductions.py::test_mean_func_does_not_warn
|
||||||
|
dask/tests/test_config.py::test__get_paths
|
||||||
|
)
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
epytest -p no:flaky -m "not network"
|
||||||
|
}
|
@ -1 +1 @@
|
|||||||
DIST deepmerge-1.0.0.gh.tar.gz 14789 BLAKE2B 0a3f7cb72b718995252361864a9208de4b57c32df6da6dc52e6491fa7871be2dcd19be3bcef3eba2d8793009945bfe8e412959da52f9fb1072898026a5ff8837 SHA512 687483ef47f385df345dca6e127897a346a48424eea51c6b8ff35c254517daae0e713f8e86ff2f140ede6ecde98517ddfd9edb5599956f4c716f1f8f2bfcf22a
|
DIST deepmerge-1.0.1.gh.tar.gz 15004 BLAKE2B bc1d972f40485d02665fb6cd53875fa0f35e387192a9b0cc65f092966dc760a3ccc7eae6515693f39e58d7bb0a071aaac970873738a99b6962561eed641ef48b SHA512 689c9cc99c3770e27ae131bff65486ca02555840ae3fbeec1e36d08e425842e50ac7005d63ccf053627806c39578b2c9fb84fb10ca76731d17136cea61b87bbd
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
DIST django-taggit-1.5.1.tar.gz 52766 BLAKE2B 59892ba591ad5cbc40a7515a6427722d7cb58e2daadec579b1c08dcc3522e24e041cbe06c953c3717cdf3db50aef7ff9fb5b4eac00344e457b61797745638107 SHA512 8e7afefd8f0654340e234f7bd1cc3684b3e5d1f4d94d17c79ed8fb82096c21a809e7f8db2fea9509d45c3f2bdc5e8ed52fb0823779b0a039f87528642803725b
|
|
||||||
DIST django-taggit-2.0.0.tar.gz 55042 BLAKE2B cb4d3c8b32ba524eb0c59b447155b818c30ed77ec95a76c7412bccf109d421f2628fb40c8bb65d2c845351c8e8ed77605c0e5d77ac1ddcff6cddd5248f2fcdc6 SHA512 9cffde5a0de170e08ff93b245873b02a4868e67ea946c6b9997b782fecb8f71418dddc702ca283d45e8c1685a4a45143aa6c726de187410b9a89afe2efadd190
|
|
||||||
DIST django-taggit-2.1.0.tar.gz 55659 BLAKE2B 343176e910743924d7b84ef827b4a63e0bc4bc3db7d7c3ed8e7319b18713bc5cdb1e58f1a9f7356a01c1ae5c47daf561e9e68484f0bd40aaf03c780f8558b55c SHA512 64ac21574ba4b0e7dd8d52dee910350d7cfc2f821aaadf7767a4b74d4db7ab69d704558dac13dd68dc29e985ab593bc4189e1d064c0a0d4fe6fa7ab88038d353
|
DIST django-taggit-2.1.0.tar.gz 55659 BLAKE2B 343176e910743924d7b84ef827b4a63e0bc4bc3db7d7c3ed8e7319b18713bc5cdb1e58f1a9f7356a01c1ae5c47daf561e9e68484f0bd40aaf03c780f8558b55c SHA512 64ac21574ba4b0e7dd8d52dee910350d7cfc2f821aaadf7767a4b74d4db7ab69d704558dac13dd68dc29e985ab593bc4189e1d064c0a0d4fe6fa7ab88038d353
|
||||||
|
DIST django-taggit-3.0.0.tar.gz 57380 BLAKE2B 67ce6adde1bcba3a9fc8f11af4135dd1a2ee75892e26d4de9970f84111c1cf73f65bc58a2de45c75b98b0c5da9b8a6077af76d1e0561ce8a5e78828db8f40226 SHA512 e44a5f4f8293560cecb1ba39035241f209f21803521d3e2f3102e04add9778ebc15b0da6994f0a51b6c55274318b4cabce33805952f8bbaad16ecc3c03070e10
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8..9} )
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Simple tagging for Django"
|
|
||||||
HOMEPAGE="https://github.com/jazzband/django-taggit"
|
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
IUSE="test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
>=dev-python/django-2.2[${PYTHON_USEDEP}]
|
|
||||||
dev-python/djangorestframework[${PYTHON_USEDEP}]"
|
|
||||||
BDEPEND="
|
|
||||||
test? ( ${RDEPEND} )"
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
"${EPYTHON}" -m django test -v 2 --settings=tests.settings ||
|
|
||||||
die "Tests failed with ${EPYTHON}"
|
|
||||||
}
|
|
@ -1 +1,2 @@
|
|||||||
|
DIST fs-2.4.16.tar.gz 187441 BLAKE2B 5a59dd5bcaae19180a918ba0ceb99b598134d73e4c9ecad840b3cf3041613171367d878d147f045005a87636e8f2145451252d646dbffb8d0f3ae6ac254142ee SHA512 7d9a03b5a782cce048189a7ff527757e60ef6fbb99925713b0179dc9c483f63b54fb1911f39bf2230366c789c526a1b8927863ce93e13a0f71fd8734a7fdb9df
|
||||||
DIST pyfilesystem2-2.4.15.tar.gz 181799 BLAKE2B 522d118dcee6aafe754d8eb571aa88f26cbbbafd7fedabbf7f4470e098dde01db42cb26b20ed28305daf8f32a22250da81c8a932d420ef4bdf825deb363a26a1 SHA512 7bb153dad5ea03eec7cb1af8d1b5a851845984e194f288687b0e737e1f32c74bf4c1a8d62a9105c8637cd5a29ab82810df9fc11055b894ab0df899cb20a4e1c1
|
DIST pyfilesystem2-2.4.15.tar.gz 181799 BLAKE2B 522d118dcee6aafe754d8eb571aa88f26cbbbafd7fedabbf7f4470e098dde01db42cb26b20ed28305daf8f32a22250da81c8a932d420ef4bdf825deb363a26a1 SHA512 7bb153dad5ea03eec7cb1af8d1b5a851845984e194f288687b0e737e1f32c74bf4c1a8d62a9105c8637cd5a29ab82810df9fc11055b894ab0df899cb20a4e1c1
|
||||||
|
@ -0,0 +1,53 @@
|
|||||||
|
# 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_{8..10} )
|
||||||
|
inherit distutils-r1 optfeature
|
||||||
|
|
||||||
|
DESCRIPTION="Filesystem abstraction layer"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pypi.org/project/fs/
|
||||||
|
https://docs.pyfilesystem.org
|
||||||
|
https://www.willmcgugan.com/tag/fs/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/appdirs-1.4.3[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytz[${PYTHON_USEDEP}]
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/six-1.10[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
# NB: we skip tests requiring pyftpdlib
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/parameterized[${PYTHON_USEDEP}]
|
||||||
|
dev-python/psutil[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_sphinx docs/source dev-python/sphinx_rtd_theme
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local EPYTEST_IGNORE=(
|
||||||
|
# TODO: fails at teardown due to unfreed resources
|
||||||
|
tests/test_ftpfs.py
|
||||||
|
)
|
||||||
|
|
||||||
|
# pytest-xvfb causes test failures due to a zombie Xvfb process
|
||||||
|
epytest -p no:xvfb
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
optfeature "S3 support" dev-python/boto
|
||||||
|
optfeature "SFTP support" dev-python/paramiko
|
||||||
|
optfeature "Browser support" dev-python/wxpython
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
DIST funcparserlib-1.0.0.gh.tar.gz 66709 BLAKE2B 76229795e88b5b880667e41b2cd3d534649893019824e7206f41d188f44e7a67bc1cdb97b0cbcf731eb840ed128f29434d0748d0923a16ea0a3130b3ee10d206 SHA512 431d6b639c46dc84a0a12c8de976cb2c1369f0172a18d1eadbffba31aff12e9cfeded5ebec3ec63065384547000144d65d60003c55e2b23a1a40818d910aaef3
|
||||||
DIST funcparserlib-1.0.0_alpha0.gh.tar.gz 68260 BLAKE2B e1a9a9a516142d683424df881a7c390a3999438905136fbd394f23856022f14390d22f1dd3914e680d2c188c819cce9cc4f7ff2e485478614dd4632701db4614 SHA512 02cac31d76bb888118a99367811a8cfac28a999ba113ce43f4bd6211cef815ce1793fc1767637dd019728f15d5c408e859d5bc8365a2c53804092f1d6f03e54e
|
DIST funcparserlib-1.0.0_alpha0.gh.tar.gz 68260 BLAKE2B e1a9a9a516142d683424df881a7c390a3999438905136fbd394f23856022f14390d22f1dd3914e680d2c188c819cce9cc4f7ff2e485478614dd4632701db4614 SHA512 02cac31d76bb888118a99367811a8cfac28a999ba113ce43f4bd6211cef815ce1793fc1767637dd019728f15d5c408e859d5bc8365a2c53804092f1d6f03e54e
|
||||||
DIST funcparserlib-1.0.0_alpha1.gh.tar.gz 74033 BLAKE2B bf4ee5011f595c6b7ba7430c63e21243257ddc2e00cccea75bf5b16feca2a629becd28f196d657e024419010051a33e5f12fae29b6f8763b35cb8d1bb9144a6b SHA512 16dbf07edd5cad979c61396adc3ccce7dcedd46b3cf6394ecf35c9fd2b22cdf262bb609ffca9a4b6f9f0c236124a7b7cdd929166d65056ca71e73afa2f6b97e2
|
DIST funcparserlib-1.0.0_alpha1.gh.tar.gz 74033 BLAKE2B bf4ee5011f595c6b7ba7430c63e21243257ddc2e00cccea75bf5b16feca2a629becd28f196d657e024419010051a33e5f12fae29b6f8763b35cb8d1bb9144a6b SHA512 16dbf07edd5cad979c61396adc3ccce7dcedd46b3cf6394ecf35c9fd2b22cdf262bb609ffca9a4b6f9f0c236124a7b7cdd929166d65056ca71e73afa2f6b97e2
|
||||||
DIST funcparserlib-1.0.0_alpha2.gh.tar.gz 66692 BLAKE2B 5d45b48c0efe6025b50cfd603f2eeac4341b5e41185fbbe1e0b948975ee778fcae05dc229a34bfde28b64f2723c21699ffadd243629244a067951cf17049abb3 SHA512 a7c1f4219bee2b203d5f3a1701e24f838b348965ca5bc090aa8f7af0407344af22ec5eb2e161212e6ece42491a775076f45a36f8e2b691d78a3c639ca4098af1
|
DIST funcparserlib-1.0.0_alpha2.gh.tar.gz 66692 BLAKE2B 5d45b48c0efe6025b50cfd603f2eeac4341b5e41185fbbe1e0b948975ee778fcae05dc229a34bfde28b64f2723c21699ffadd243629244a067951cf17049abb3 SHA512 a7c1f4219bee2b203d5f3a1701e24f838b348965ca5bc090aa8f7af0407344af22ec5eb2e161212e6ece42491a775076f45a36f8e2b691d78a3c639ca4098af1
|
||||||
|
@ -0,0 +1,28 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=poetry
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Recursive descent parsing library based on functional combinators"
|
||||||
|
HOMEPAGE="https://pypi.org/project/funcparserlib/
|
||||||
|
https://github.com/vlasovskikh/funcparserlib"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/vlasovskikh/funcparserlib/archive/${PV}.tar.gz
|
||||||
|
-> ${P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/six[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests unittest
|
@ -1 +1,2 @@
|
|||||||
DIST ghp-import-2.0.2.tar.gz 10928 BLAKE2B 7479917284af9a8f8ac460f43d97c9d5fe29c4dc3663698e5b76e9ba1b0a7cdcd8d93fb1f112cdcfaa6689f70f280b4dc49c6f8e632784c11121f1fede1f8eaf SHA512 554c466f1275d905d7698539fe74b662f43c26b9497e83bc3615849ba2815dcbce6ae01fa14eb1c2245987ccc1b497afe175e3e0ddef3de561fc14ea24792d4e
|
DIST ghp-import-2.0.2.tar.gz 10928 BLAKE2B 7479917284af9a8f8ac460f43d97c9d5fe29c4dc3663698e5b76e9ba1b0a7cdcd8d93fb1f112cdcfaa6689f70f280b4dc49c6f8e632784c11121f1fede1f8eaf SHA512 554c466f1275d905d7698539fe74b662f43c26b9497e83bc3615849ba2815dcbce6ae01fa14eb1c2245987ccc1b497afe175e3e0ddef3de561fc14ea24792d4e
|
||||||
|
DIST ghp-import-2.1.0.tar.gz 10943 BLAKE2B bccff70a8ca6c58a3c768b143b0545a61080a577dbbef3021233134b8536df1788ec9a88aa8454865cfb83491b70fc6fb53caf04514af3d7845204cf2b893cad SHA512 10665a1a6392fe047d1e42d7f107511b1a31de02625200e7db1c637f33dc8dc41ec71c2db4f562c6e94a4efb4836efef8a29177d953d99fe17a889169074050c
|
||||||
|
@ -0,0 +1,20 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Copy your docs directly to the gh-pages branch"
|
||||||
|
HOMEPAGE="https://github.com/c-w/ghp-import"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~riscv ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}]
|
||||||
|
"
|
@ -1,2 +1,3 @@
|
|||||||
DIST google-api-core-2.7.1.tar.gz 163942 BLAKE2B 0b28e8dd8607ed6a64a3715c14e321f74d18abc09bc2eee5c6d080936160ea9d6839f1acf9589667c86a688e4e02038cc204f25d0b7cab3e3ed3af2463f31abb SHA512 2264eec00309f272ecca278e8f310bca4be64cfcec94c05fa96a7a8ae350fce0ae9931fbb27aae71e89393289cdbef782631a6766e85d5aee449e903e70f0817
|
DIST google-api-core-2.7.1.tar.gz 163942 BLAKE2B 0b28e8dd8607ed6a64a3715c14e321f74d18abc09bc2eee5c6d080936160ea9d6839f1acf9589667c86a688e4e02038cc204f25d0b7cab3e3ed3af2463f31abb SHA512 2264eec00309f272ecca278e8f310bca4be64cfcec94c05fa96a7a8ae350fce0ae9931fbb27aae71e89393289cdbef782631a6766e85d5aee449e903e70f0817
|
||||||
DIST google-api-core-2.7.2.tar.gz 164017 BLAKE2B d2f1c690527c750a819718043542ce853be7f135660dfe661db2ba315213ef4a9756eeab6f1854275044d4f1fed50d119c2914eb00e043b7d5b085dad426a26f SHA512 1fb420a41d603d576030d2b324036de10831035ce1505ba94dedc9e58ce354d0f23e1d3df8a4f2f5082147a1be49d93e10c2209a1407f90ffedfa74815730e14
|
DIST google-api-core-2.7.2.tar.gz 164017 BLAKE2B d2f1c690527c750a819718043542ce853be7f135660dfe661db2ba315213ef4a9756eeab6f1854275044d4f1fed50d119c2914eb00e043b7d5b085dad426a26f SHA512 1fb420a41d603d576030d2b324036de10831035ce1505ba94dedc9e58ce354d0f23e1d3df8a4f2f5082147a1be49d93e10c2209a1407f90ffedfa74815730e14
|
||||||
|
DIST google-api-core-2.7.3.tar.gz 164219 BLAKE2B c394fd95bff3ac393174372e0c49f9a7974a006de6f14d07af7b15b4c531d6dae7af8c38e00263289a895cb9dae9ef23368d793f5ae3649b9b029337a72cc0ef SHA512 2bf49738216cd52dad2bdfb3367e370390c366b49a8c3c4f6f49a2a3f17b27120d99933b57c8eb8c9a1f0f25ef5ea6d876cf8c3c6c759d3585d625e57b1153f9
|
||||||
|
@ -0,0 +1,66 @@
|
|||||||
|
# Copyright 2020-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Core Library for Google Client Libraries"
|
||||||
|
HOMEPAGE="https://github.com/googleapis/python-api-core/
|
||||||
|
https://googleapis.dev/python/google-api-core/latest/index.html"
|
||||||
|
SRC_URI="https://github.com/googleapis/${PN//google/python}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
S="${WORKDIR}/${P//google/python}"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/protobuf-python[${PYTHON_USEDEP}]
|
||||||
|
dev-python/googleapis-common-protos[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/google-auth-1.25.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/requests-2.18.0[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/requests-3[${PYTHON_USEDEP}]
|
||||||
|
!dev-python/namespace-google
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/proto-plus[${PYTHON_USEDEP}]
|
||||||
|
dev-python/rsa[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
EPYTEST_DESELECT=(
|
||||||
|
# failing due to missing grpcio-status
|
||||||
|
tests/asyncio/test_grpc_helpers_async.py::test_wrap_unary_errors
|
||||||
|
tests/asyncio/test_grpc_helpers_async.py::test_wrap_stream_errors_raised
|
||||||
|
tests/asyncio/test_grpc_helpers_async.py::test_wrap_stream_errors_read
|
||||||
|
tests/asyncio/test_grpc_helpers_async.py::test_wrap_stream_errors_aiter
|
||||||
|
tests/asyncio/test_grpc_helpers_async.py::test_wrap_stream_errors_write
|
||||||
|
tests/unit/test_grpc_helpers.py::test_wrap_unary_errors
|
||||||
|
tests/unit/test_grpc_helpers.py::test_wrap_stream_errors_invocation
|
||||||
|
tests/unit/test_grpc_helpers.py::test_wrap_stream_errors_iterator_initialization
|
||||||
|
tests/unit/test_grpc_helpers.py::test_wrap_stream_errors_during_iteration
|
||||||
|
)
|
||||||
|
|
||||||
|
python_compile() {
|
||||||
|
distutils-r1_python_compile
|
||||||
|
find "${BUILD_DIR}" -name '*.pth' -delete || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
rm -r google || die
|
||||||
|
distutils-r1_src_test
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
distutils_write_namespace google
|
||||||
|
epytest -p no:aiohttp -p no:trio tests
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST freetype-2.6.1.tar.gz 2302080 BLAKE2B 6a5fb98e5fa6cf4b7d7533ad44e364227d8c2f7dded4c552d6e22e204c32b7858f20d41d1e809ecdad6e5353d6cec81bea0e0b06a4533363a41ecab83ce3f7ca SHA512 ff2daed64d712737085924c50e75862fafbcbb24eef6d72dac9eaae63bb656d7245397fd828f5d3e47ac847f7ff83d73dedfdd61fde1f7d6e0f0cdeb49bcf83b
|
DIST freetype-2.6.1.tar.gz 2302080 BLAKE2B 6a5fb98e5fa6cf4b7d7533ad44e364227d8c2f7dded4c552d6e22e204c32b7858f20d41d1e809ecdad6e5353d6cec81bea0e0b06a4533363a41ecab83ce3f7ca SHA512 ff2daed64d712737085924c50e75862fafbcbb24eef6d72dac9eaae63bb656d7245397fd828f5d3e47ac847f7ff83d73dedfdd61fde1f7d6e0f0cdeb49bcf83b
|
||||||
DIST matplotlib-3.4.3.tar.gz 37850796 BLAKE2B 15b40da8f6973ece4a91fffb5caf249cb8642263bfc2a784ec482bfaad250b6d3beffb9d2ba8a03e5fa10abab02b0e35728a8499ccb870aca06df57c5c1f91f4 SHA512 c2fe54e7517a1417aa8e55596e83edd090534c07f22882634d6ba0a07196441b5bbdd15958473805d8e8871b1b73380487aff3224294d472cd6122490c783145
|
DIST matplotlib-3.4.3.tar.gz 37850796 BLAKE2B 15b40da8f6973ece4a91fffb5caf249cb8642263bfc2a784ec482bfaad250b6d3beffb9d2ba8a03e5fa10abab02b0e35728a8499ccb870aca06df57c5c1f91f4 SHA512 c2fe54e7517a1417aa8e55596e83edd090534c07f22882634d6ba0a07196441b5bbdd15958473805d8e8871b1b73380487aff3224294d472cd6122490c783145
|
||||||
DIST matplotlib-3.5.1.tar.gz 35320470 BLAKE2B ebf69b62ac587c61ecf8442abaab302019f63a3c9d8db6f7f7fb32f4d14da554fd8305ea6dfed2ff86a5af4e7e4d2b81f14802692fe50c986f7da8545bd26c00 SHA512 a317dbd748e5fc1fafcf80020cb6d38a8888431487beded97acd59d759e67e54f59506b642e4a03d4351c1ac050d15e3f2e2b5443433debc78ddad52881c8d82
|
DIST matplotlib-3.5.1.tar.gz 35320470 BLAKE2B ebf69b62ac587c61ecf8442abaab302019f63a3c9d8db6f7f7fb32f4d14da554fd8305ea6dfed2ff86a5af4e7e4d2b81f14802692fe50c986f7da8545bd26c00 SHA512 a317dbd748e5fc1fafcf80020cb6d38a8888431487beded97acd59d759e67e54f59506b642e4a03d4351c1ac050d15e3f2e2b5443433debc78ddad52881c8d82
|
||||||
|
DIST matplotlib-3.5.2.tar.gz 35210006 BLAKE2B e3f90a0cf1d28f041a8cdd6920a8a4efe16169bb4acf85f7b2562196db306eeb692218728ea33c7b62214e7894e83a104954cbef38c45ccbb4f630bd35c0c36b SHA512 32844dfa85dbc43360c1773d748a58d2ab089111c51c825da62956c778a0eeaf10ca33a5c6c094295388a80d5873a2e1b17484e02b653e9e8e5ba98659329974
|
||||||
|
@ -0,0 +1,261 @@
|
|||||||
|
From ea4bae5e68e3065ca159ea309a0f3325a06e7f35 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
||||||
|
Date: Fri, 26 Mar 2021 13:42:49 +0100
|
||||||
|
Subject: [PATCH] Increase image comparison limits
|
||||||
|
|
||||||
|
Most of the tests require exact match which apparently doesn't always
|
||||||
|
happen in non-pristine environments. Some of them have very big
|
||||||
|
differences due to texlive font rendering changes.
|
||||||
|
---
|
||||||
|
lib/matplotlib/tests/test_arrow_patches.py | 6 +++---
|
||||||
|
lib/matplotlib/tests/test_axes.py | 4 ++--
|
||||||
|
lib/matplotlib/tests/test_backend_pgf.py | 2 +-
|
||||||
|
lib/matplotlib/tests/test_colorbar.py | 2 +-
|
||||||
|
lib/matplotlib/tests/test_contour.py | 2 +-
|
||||||
|
lib/matplotlib/tests/test_figure.py | 5 +++--
|
||||||
|
lib/matplotlib/tests/test_image.py | 2 +-
|
||||||
|
lib/matplotlib/tests/test_legend.py | 6 +++---
|
||||||
|
lib/matplotlib/tests/test_lines.py | 3 ++-
|
||||||
|
lib/matplotlib/tests/test_streamplot.py | 3 ++-
|
||||||
|
lib/matplotlib/tests/test_units.py | 4 ++--
|
||||||
|
lib/matplotlib/tests/test_usetex.py | 1 +
|
||||||
|
lib/mpl_toolkits/tests/test_axes_grid1.py | 2 +-
|
||||||
|
13 files changed, 23 insertions(+), 19 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/matplotlib/tests/test_arrow_patches.py b/lib/matplotlib/tests/test_arrow_patches.py
|
||||||
|
index 8d573b4adb..dfc42efcb9 100644
|
||||||
|
--- a/lib/matplotlib/tests/test_arrow_patches.py
|
||||||
|
+++ b/lib/matplotlib/tests/test_arrow_patches.py
|
||||||
|
@@ -67,7 +67,7 @@ def __prepare_fancyarrow_dpi_cor_test():
|
||||||
|
|
||||||
|
|
||||||
|
@image_comparison(['fancyarrow_dpi_cor_100dpi.png'], remove_text=True,
|
||||||
|
- tol=0 if platform.machine() == 'x86_64' else 0.02,
|
||||||
|
+ tol=0.015 if platform.machine() == 'x86_64' else 0.02,
|
||||||
|
savefig_kwarg=dict(dpi=100))
|
||||||
|
def test_fancyarrow_dpi_cor_100dpi():
|
||||||
|
"""
|
||||||
|
@@ -82,7 +82,7 @@ def test_fancyarrow_dpi_cor_100dpi():
|
||||||
|
|
||||||
|
|
||||||
|
@image_comparison(['fancyarrow_dpi_cor_200dpi.png'], remove_text=True,
|
||||||
|
- tol=0 if platform.machine() == 'x86_64' else 0.02,
|
||||||
|
+ tol=0.018 if platform.machine() == 'x86_64' else 0.02,
|
||||||
|
savefig_kwarg=dict(dpi=200))
|
||||||
|
def test_fancyarrow_dpi_cor_200dpi():
|
||||||
|
"""
|
||||||
|
@@ -115,7 +115,7 @@ def test_fancyarrow_dash():
|
||||||
|
|
||||||
|
|
||||||
|
@image_comparison(['arrow_styles.png'], style='mpl20', remove_text=True,
|
||||||
|
- tol=0 if platform.machine() == 'x86_64' else 0.005)
|
||||||
|
+ tol=0.005)
|
||||||
|
def test_arrow_styles():
|
||||||
|
styles = mpatches.ArrowStyle.get_styles()
|
||||||
|
|
||||||
|
diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py
|
||||||
|
index eb4c34382b..cca73a23f9 100644
|
||||||
|
--- a/lib/matplotlib/tests/test_axes.py
|
||||||
|
+++ b/lib/matplotlib/tests/test_axes.py
|
||||||
|
@@ -918,7 +918,7 @@ def test_imshow():
|
||||||
|
ax.imshow("r", data=data)
|
||||||
|
|
||||||
|
|
||||||
|
-@image_comparison(['imshow_clip'], style='mpl20')
|
||||||
|
+@image_comparison(['imshow_clip'], style='mpl20', tol=1.24)
|
||||||
|
def test_imshow_clip():
|
||||||
|
# As originally reported by Gellule Xg <gellule.xg@free.fr>
|
||||||
|
# use former defaults to match existing baseline image
|
||||||
|
@@ -4231,7 +4231,7 @@ def test_vertex_markers():
|
||||||
|
|
||||||
|
|
||||||
|
@image_comparison(['vline_hline_zorder', 'errorbar_zorder'],
|
||||||
|
- tol=0 if platform.machine() == 'x86_64' else 0.02)
|
||||||
|
+ tol=0.015 if platform.machine() == 'x86_64' else 0.02)
|
||||||
|
def test_eb_line_zorder():
|
||||||
|
x = list(range(10))
|
||||||
|
|
||||||
|
diff --git a/lib/matplotlib/tests/test_backend_pgf.py b/lib/matplotlib/tests/test_backend_pgf.py
|
||||||
|
index 9b5b0b28ee..a374be0333 100644
|
||||||
|
--- a/lib/matplotlib/tests/test_backend_pgf.py
|
||||||
|
+++ b/lib/matplotlib/tests/test_backend_pgf.py
|
||||||
|
@@ -80,7 +80,7 @@ def test_common_texification(plain_text, escaped_text):
|
||||||
|
# test compiling a figure to pdf with xelatex
|
||||||
|
@needs_xelatex
|
||||||
|
@pytest.mark.backend('pgf')
|
||||||
|
-@image_comparison(['pgf_xelatex.pdf'], style='default')
|
||||||
|
+@image_comparison(['pgf_xelatex.pdf'], style='default', tol=0.8)
|
||||||
|
def test_xelatex():
|
||||||
|
rc_xelatex = {'font.family': 'serif',
|
||||||
|
'pgf.rcfonts': False}
|
||||||
|
diff --git a/lib/matplotlib/tests/test_colorbar.py b/lib/matplotlib/tests/test_colorbar.py
|
||||||
|
index 304056f6d1..9934bac550 100644
|
||||||
|
--- a/lib/matplotlib/tests/test_colorbar.py
|
||||||
|
+++ b/lib/matplotlib/tests/test_colorbar.py
|
||||||
|
@@ -218,7 +218,7 @@ def test_colorbar_single_ax_panchor_false():
|
||||||
|
plt.colorbar(panchor=False)
|
||||||
|
|
||||||
|
|
||||||
|
-@image_comparison(['contour_colorbar.png'], remove_text=True)
|
||||||
|
+@image_comparison(['contour_colorbar.png'], remove_text=True, tol=0.01)
|
||||||
|
def test_contour_colorbar():
|
||||||
|
fig, ax = plt.subplots(figsize=(4, 2))
|
||||||
|
data = np.arange(1200).reshape(30, 40) - 500
|
||||||
|
diff --git a/lib/matplotlib/tests/test_contour.py b/lib/matplotlib/tests/test_contour.py
|
||||||
|
index 10fb011166..f49fb25dc8 100644
|
||||||
|
--- a/lib/matplotlib/tests/test_contour.py
|
||||||
|
+++ b/lib/matplotlib/tests/test_contour.py
|
||||||
|
@@ -345,7 +345,7 @@ def test_contourf_log_extension():
|
||||||
|
|
||||||
|
|
||||||
|
@image_comparison(['contour_addlines.png'],
|
||||||
|
- remove_text=True, style='mpl20', tol=0.03)
|
||||||
|
+ remove_text=True, style='mpl20', tol=0.1)
|
||||||
|
# tolerance is because image changed minutely when tick finding on
|
||||||
|
# colorbars was cleaned up...
|
||||||
|
def test_contour_addlines():
|
||||||
|
diff --git a/lib/matplotlib/tests/test_figure.py b/lib/matplotlib/tests/test_figure.py
|
||||||
|
index 1e076bd64f..11c2668d33 100644
|
||||||
|
--- a/lib/matplotlib/tests/test_figure.py
|
||||||
|
+++ b/lib/matplotlib/tests/test_figure.py
|
||||||
|
@@ -23,7 +23,7 @@ import matplotlib.gridspec as gridspec
|
||||||
|
|
||||||
|
|
||||||
|
@image_comparison(['figure_align_labels'], extensions=['png', 'svg'],
|
||||||
|
- tol=0 if platform.machine() == 'x86_64' else 0.01)
|
||||||
|
+ tol=0.02)
|
||||||
|
def test_align_labels():
|
||||||
|
fig = plt.figure(tight_layout=True)
|
||||||
|
gs = gridspec.GridSpec(3, 3)
|
||||||
|
@@ -1124,7 +1124,8 @@ def test_subfigure_tightbbox():
|
||||||
|
|
||||||
|
@image_comparison(['test_subfigure_ss.png'], style='mpl20',
|
||||||
|
savefig_kwarg={'facecolor': 'teal'},
|
||||||
|
- remove_text=False)
|
||||||
|
+ remove_text=False,
|
||||||
|
+ tol=0.013)
|
||||||
|
def test_subfigure_ss():
|
||||||
|
# test assigning the subfigure via subplotspec
|
||||||
|
np.random.seed(19680801)
|
||||||
|
diff --git a/lib/matplotlib/tests/test_image.py b/lib/matplotlib/tests/test_image.py
|
||||||
|
index 719b190578..ee2263a88e 100644
|
||||||
|
--- a/lib/matplotlib/tests/test_image.py
|
||||||
|
+++ b/lib/matplotlib/tests/test_image.py
|
||||||
|
@@ -1324,7 +1324,7 @@ def test_nonuniform_and_pcolor():
|
||||||
|
|
||||||
|
|
||||||
|
@image_comparison(["rgba_antialias.png"], style="mpl20",
|
||||||
|
- remove_text=True)
|
||||||
|
+ remove_text=True, tol=0.005)
|
||||||
|
def test_rgba_antialias():
|
||||||
|
fig, axs = plt.subplots(2, 2, figsize=(3.5, 3.5), sharex=False,
|
||||||
|
sharey=False, constrained_layout=True)
|
||||||
|
diff --git a/lib/matplotlib/tests/test_legend.py b/lib/matplotlib/tests/test_legend.py
|
||||||
|
index fe8a8dd5f6..43fbda8ab0 100644
|
||||||
|
--- a/lib/matplotlib/tests/test_legend.py
|
||||||
|
+++ b/lib/matplotlib/tests/test_legend.py
|
||||||
|
@@ -102,7 +102,7 @@ def test_multiple_keys():
|
||||||
|
|
||||||
|
|
||||||
|
@image_comparison(['rgba_alpha.png'], remove_text=True,
|
||||||
|
- tol=0 if platform.machine() == 'x86_64' else 0.01)
|
||||||
|
+ tol=0.02)
|
||||||
|
def test_alpha_rgba():
|
||||||
|
fig, ax = plt.subplots()
|
||||||
|
ax.plot(range(10), lw=5)
|
||||||
|
@@ -111,7 +111,7 @@ def test_alpha_rgba():
|
||||||
|
|
||||||
|
|
||||||
|
@image_comparison(['rcparam_alpha.png'], remove_text=True,
|
||||||
|
- tol=0 if platform.machine() == 'x86_64' else 0.01)
|
||||||
|
+ tol=0.02)
|
||||||
|
def test_alpha_rcparam():
|
||||||
|
fig, ax = plt.subplots()
|
||||||
|
ax.plot(range(10), lw=5)
|
||||||
|
@@ -137,7 +137,7 @@ def test_fancy():
|
||||||
|
|
||||||
|
|
||||||
|
@image_comparison(['framealpha'], remove_text=True,
|
||||||
|
- tol=0 if platform.machine() == 'x86_64' else 0.02)
|
||||||
|
+ tol=0.02)
|
||||||
|
def test_framealpha():
|
||||||
|
x = np.linspace(1, 100, 100)
|
||||||
|
y = x
|
||||||
|
diff --git a/lib/matplotlib/tests/test_lines.py b/lib/matplotlib/tests/test_lines.py
|
||||||
|
index f6917a134b..4a14abb74d 100644
|
||||||
|
--- a/lib/matplotlib/tests/test_lines.py
|
||||||
|
+++ b/lib/matplotlib/tests/test_lines.py
|
||||||
|
@@ -162,7 +162,8 @@ def test_set_drawstyle():
|
||||||
|
assert len(line.get_path().vertices) == len(x)
|
||||||
|
|
||||||
|
|
||||||
|
-@image_comparison(['line_collection_dashes'], remove_text=True, style='mpl20')
|
||||||
|
+@image_comparison(['line_collection_dashes'], remove_text=True, style='mpl20',
|
||||||
|
+ tol=0.58)
|
||||||
|
def test_set_line_coll_dash_image():
|
||||||
|
fig, ax = plt.subplots()
|
||||||
|
np.random.seed(0)
|
||||||
|
diff --git a/lib/matplotlib/tests/test_streamplot.py b/lib/matplotlib/tests/test_streamplot.py
|
||||||
|
index c8824feb06..081e8c0559 100644
|
||||||
|
--- a/lib/matplotlib/tests/test_streamplot.py
|
||||||
|
+++ b/lib/matplotlib/tests/test_streamplot.py
|
||||||
|
@@ -34,7 +34,8 @@ def test_startpoints():
|
||||||
|
plt.plot(start_x, start_y, 'ok')
|
||||||
|
|
||||||
|
|
||||||
|
-@image_comparison(['streamplot_colormap'], remove_text=True, style='mpl20')
|
||||||
|
+@image_comparison(['streamplot_colormap'], remove_text=True, style='mpl20',
|
||||||
|
+ tol=0.002)
|
||||||
|
def test_colormap():
|
||||||
|
X, Y, U, V = velocity_field()
|
||||||
|
plt.streamplot(X, Y, U, V, color=U, density=0.6, linewidth=2,
|
||||||
|
diff --git a/lib/matplotlib/tests/test_units.py b/lib/matplotlib/tests/test_units.py
|
||||||
|
index a6f6b44c97..ab5ad8b5cf 100644
|
||||||
|
--- a/lib/matplotlib/tests/test_units.py
|
||||||
|
+++ b/lib/matplotlib/tests/test_units.py
|
||||||
|
@@ -76,7 +76,7 @@ def quantity_converter():
|
||||||
|
# Tests that the conversion machinery works properly for classes that
|
||||||
|
# work as a facade over numpy arrays (like pint)
|
||||||
|
@image_comparison(['plot_pint.png'], remove_text=False, style='mpl20',
|
||||||
|
- tol=0 if platform.machine() == 'x86_64' else 0.01)
|
||||||
|
+ tol=0.002 if platform.machine() == 'x86_64' else 0.01)
|
||||||
|
def test_numpy_facade(quantity_converter):
|
||||||
|
# use former defaults to match existing baseline image
|
||||||
|
plt.rcParams['axes.formatter.limits'] = -7, 7
|
||||||
|
@@ -103,7 +103,7 @@ def test_numpy_facade(quantity_converter):
|
||||||
|
|
||||||
|
# Tests gh-8908
|
||||||
|
@image_comparison(['plot_masked_units.png'], remove_text=True, style='mpl20',
|
||||||
|
- tol=0 if platform.machine() == 'x86_64' else 0.01)
|
||||||
|
+ tol=0.02)
|
||||||
|
def test_plot_masked_units():
|
||||||
|
data = np.linspace(-5, 5)
|
||||||
|
data_masked = np.ma.array(data, mask=(data > -2) & (data < 2))
|
||||||
|
diff --git a/lib/matplotlib/tests/test_usetex.py b/lib/matplotlib/tests/test_usetex.py
|
||||||
|
index 12557cf847..25b65ead67 100644
|
||||||
|
--- a/lib/matplotlib/tests/test_usetex.py
|
||||||
|
+++ b/lib/matplotlib/tests/test_usetex.py
|
||||||
|
@@ -11,6 +11,7 @@ if not mpl.checkdep_usetex(True):
|
||||||
|
pytestmark = pytest.mark.skip('Missing TeX of Ghostscript or dvipng')
|
||||||
|
|
||||||
|
|
||||||
|
+@pytest.mark.skip(reason="TODO: broken")
|
||||||
|
@image_comparison(
|
||||||
|
baseline_images=['test_usetex'],
|
||||||
|
extensions=['pdf', 'png'],
|
||||||
|
diff --git a/lib/mpl_toolkits/tests/test_axes_grid1.py b/lib/mpl_toolkits/tests/test_axes_grid1.py
|
||||||
|
index f8902ca72f..323579b8b6 100644
|
||||||
|
--- a/lib/mpl_toolkits/tests/test_axes_grid1.py
|
||||||
|
+++ b/lib/mpl_toolkits/tests/test_axes_grid1.py
|
||||||
|
@@ -336,7 +336,7 @@ def test_zooming_with_inverted_axes():
|
||||||
|
|
||||||
|
|
||||||
|
@image_comparison(['anchored_direction_arrows.png'],
|
||||||
|
- tol=0 if platform.machine() == 'x86_64' else 0.01)
|
||||||
|
+ tol=0.02)
|
||||||
|
def test_anchored_direction_arrows():
|
||||||
|
fig, ax = plt.subplots()
|
||||||
|
ax.imshow(np.zeros((10, 10)), interpolation='nearest')
|
||||||
|
--
|
||||||
|
2.35.1
|
||||||
|
|
@ -0,0 +1,286 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
PYTHON_REQ_USE='tk?,threads(+)'
|
||||||
|
|
||||||
|
inherit distutils-r1 flag-o-matic multiprocessing prefix toolchain-funcs \
|
||||||
|
virtualx
|
||||||
|
|
||||||
|
FT_PV=2.6.1
|
||||||
|
DESCRIPTION="Pure python plotting library with matlab like syntax"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://matplotlib.org/
|
||||||
|
https://github.com/matplotlib/matplotlib/
|
||||||
|
https://pypi.org/project/matplotlib/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
|
||||||
|
test? (
|
||||||
|
https://downloads.sourceforge.net/project/freetype/freetype2/${FT_PV}/freetype-${FT_PV}.tar.gz
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
# Main license: matplotlib
|
||||||
|
# Some modules: BSD
|
||||||
|
# matplotlib/backends/qt4_editor: MIT
|
||||||
|
# Fonts: BitstreamVera, OFL-1.1
|
||||||
|
LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
IUSE="cairo doc excel examples gtk3 latex qt5 tk webagg wxwidgets"
|
||||||
|
|
||||||
|
# internal copy of pycxx highly patched
|
||||||
|
# dev-python/pycxx
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/certifi[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/cycler-0.10.0-r1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/fonttools-4.22.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/kiwisolver-1.2.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/numpy-1.18.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/packaging-20.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pillow-7.1.1[jpeg,${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pyparsing-2.2.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/python-dateutil-2.7[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pytz-2019.3[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/six-1.14.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/versioneer[${PYTHON_USEDEP}]
|
||||||
|
media-fonts/dejavu
|
||||||
|
media-fonts/stix-fonts
|
||||||
|
media-libs/freetype:2
|
||||||
|
media-libs/libpng:0
|
||||||
|
>=media-libs/qhull-2013:=
|
||||||
|
virtual/imagemagick-tools[jpeg,tiff]
|
||||||
|
cairo? (
|
||||||
|
dev-python/cairocffi[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
excel? (
|
||||||
|
dev-python/xlwt[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
gtk3? (
|
||||||
|
>=dev-python/pygobject-3.40.1-r1:3[cairo?,${PYTHON_USEDEP}]
|
||||||
|
x11-libs/gtk+:3[introspection]
|
||||||
|
)
|
||||||
|
latex? (
|
||||||
|
virtual/latex-base
|
||||||
|
app-text/dvipng
|
||||||
|
app-text/ghostscript-gpl
|
||||||
|
app-text/poppler[utils]
|
||||||
|
dev-texlive/texlive-fontsrecommended
|
||||||
|
dev-texlive/texlive-latexextra
|
||||||
|
dev-texlive/texlive-luatex
|
||||||
|
dev-texlive/texlive-xetex
|
||||||
|
)
|
||||||
|
qt5? (
|
||||||
|
dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
webagg? (
|
||||||
|
>=www-servers/tornado-6.0.4[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
wxwidgets? (
|
||||||
|
dev-python/wxpython:*[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
||||||
|
dev-python/setuptools_scm_git_archive[${PYTHON_USEDEP}]
|
||||||
|
virtual/pkgconfig
|
||||||
|
doc? (
|
||||||
|
>=app-text/dvipng-1.15-r1
|
||||||
|
>=dev-python/colorspacious-1.1.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/ipython-1.18.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/numpydoc-0.9.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/scipy-1.4.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/sphinx-1.3.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/sphinx-gallery-0.3.1-r1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/xlwt-1.3.0-r1[${PYTHON_USEDEP}]
|
||||||
|
virtual/latex-base
|
||||||
|
dev-texlive/texlive-latexextra
|
||||||
|
dev-texlive/texlive-fontsrecommended
|
||||||
|
dev-texlive/texlive-latexrecommended
|
||||||
|
dev-texlive/texlive-luatex
|
||||||
|
dev-texlive/texlive-xetex
|
||||||
|
>=media-gfx/graphviz-2.42.3[cairo]
|
||||||
|
)
|
||||||
|
test? (
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/psutil[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pygobject-3.40.1-r1:3[cairo?,${PYTHON_USEDEP}]
|
||||||
|
>=www-servers/tornado-6.0.4[${PYTHON_USEDEP}]
|
||||||
|
x11-libs/gtk+:3[introspection]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
unset DISPLAY # bug #278524
|
||||||
|
}
|
||||||
|
|
||||||
|
use_setup() {
|
||||||
|
local uword="${2:-${1}}"
|
||||||
|
if use "${1}"; then
|
||||||
|
echo "${uword} = True"
|
||||||
|
echo "${uword}agg = True"
|
||||||
|
else
|
||||||
|
echo "${uword} = False"
|
||||||
|
echo "${uword}agg = False"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
python_prepare_all() {
|
||||||
|
# Generates test failures, but fedora does it
|
||||||
|
# local PATCHES=(
|
||||||
|
# "${FILESDIR}"/${P}-unbundle-pycxx.patch
|
||||||
|
# "${FILESDIR}"/${P}-unbundle-agg.patch
|
||||||
|
# )
|
||||||
|
# rm -r agg24 CXX || die
|
||||||
|
# rm -r agg24 || die
|
||||||
|
|
||||||
|
# cat > lib/${PN}/externals/six.py <<-EOF
|
||||||
|
# from __future__ import absolute_import
|
||||||
|
# from six import *
|
||||||
|
# EOF
|
||||||
|
|
||||||
|
local PATCHES=(
|
||||||
|
"${FILESDIR}"/matplotlib-3.3.3-disable-lto.patch
|
||||||
|
"${FILESDIR}"/matplotlib-3.5.2-test.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
sed \
|
||||||
|
-e 's/matplotlib.pyparsing_py[23]/pyparsing/g' \
|
||||||
|
-i lib/matplotlib/{mathtext,fontconfig_pattern}.py \
|
||||||
|
|| die "sed pyparsing failed"
|
||||||
|
|
||||||
|
hprefixify setupext.py
|
||||||
|
|
||||||
|
rm -rf libqhull || die
|
||||||
|
|
||||||
|
export XDG_RUNTIME_DIR="${T}/runtime-dir"
|
||||||
|
mkdir "${XDG_RUNTIME_DIR}" || die
|
||||||
|
chmod 0700 "${XDG_RUNTIME_DIR}" || die
|
||||||
|
|
||||||
|
distutils-r1_python_prepare_all
|
||||||
|
}
|
||||||
|
|
||||||
|
python_configure_all() {
|
||||||
|
append-flags -fno-strict-aliasing
|
||||||
|
append-cppflags -DNDEBUG # or get old trying to do triangulation
|
||||||
|
tc-export PKG_CONFIG
|
||||||
|
}
|
||||||
|
|
||||||
|
python_configure() {
|
||||||
|
mkdir -p "${BUILD_DIR}" || die
|
||||||
|
|
||||||
|
# create setup.cfg (see setup.cfg.template for any changes).
|
||||||
|
|
||||||
|
# common switches.
|
||||||
|
cat > "${BUILD_DIR}"/setup.cfg <<- EOF || die
|
||||||
|
[directories]
|
||||||
|
basedirlist = ${EPREFIX}/usr
|
||||||
|
[provide_packages]
|
||||||
|
pytz = False
|
||||||
|
dateutil = False
|
||||||
|
[libs]
|
||||||
|
system_freetype = True
|
||||||
|
system_qhull = True
|
||||||
|
[packages]
|
||||||
|
tests = $(usex test True False)
|
||||||
|
[gui_support]
|
||||||
|
agg = True
|
||||||
|
gtk = False
|
||||||
|
gtkagg = False
|
||||||
|
macosx = False
|
||||||
|
pyside = False
|
||||||
|
pysideagg = False
|
||||||
|
qt4 = False
|
||||||
|
qt4agg = False
|
||||||
|
$(use_setup cairo)
|
||||||
|
$(use_setup gtk3)
|
||||||
|
$(use_setup qt5)
|
||||||
|
$(use_setup tk)
|
||||||
|
$(use_setup wxwidgets wx)
|
||||||
|
EOF
|
||||||
|
|
||||||
|
if use gtk3 && use cairo; then
|
||||||
|
echo "gtk3cairo = True" >> "${BUILD_DIR}"/setup.cfg || die
|
||||||
|
else
|
||||||
|
echo "gtk3cairo = False" >> "${BUILD_DIR}"/setup.cfg || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
wrap_setup() {
|
||||||
|
local MAKEOPTS=-j1
|
||||||
|
local -x MPLSETUPCFG="${BUILD_DIR}"/setup.cfg
|
||||||
|
"$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
python_compile() {
|
||||||
|
wrap_setup distutils-r1_python_compile --build-lib="${BUILD_DIR}"/lib
|
||||||
|
}
|
||||||
|
|
||||||
|
python_compile_all() {
|
||||||
|
if use doc; then
|
||||||
|
cd doc || die
|
||||||
|
|
||||||
|
# necessary for in-source build
|
||||||
|
local -x PYTHONPATH="${BUILD_DIR}"/build/lib:${PYTHONPATH}
|
||||||
|
|
||||||
|
VARTEXFONTS="${T}"/fonts \
|
||||||
|
emake SPHINXOPTS= O=-Dplot_formats=png:100 html
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
mkdir build || die
|
||||||
|
ln -s "${WORKDIR}/freetype-${FT_PV}" build/ || die
|
||||||
|
virtx distutils-r1_src_test
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local EPYTEST_DESELECT=(
|
||||||
|
# broken by -Wdefault
|
||||||
|
"tests/test_rcparams.py::test_validator_invalid[validate_strlist-arg6-MatplotlibDeprecationWarning]"
|
||||||
|
"tests/test_rcparams.py::test_validator_invalid[validate_strlist-arg7-MatplotlibDeprecationWarning]"
|
||||||
|
tests/test_testing.py::test_warn_to_fail
|
||||||
|
)
|
||||||
|
|
||||||
|
# we need to rebuild mpl against bundled freetype, otherwise
|
||||||
|
# over 1000 tests will fail because of mismatched font rendering
|
||||||
|
grep -v system_freetype "${BUILD_DIR}"/setup.cfg \
|
||||||
|
> "${BUILD_DIR}"/test-setup.cfg || die
|
||||||
|
local -x MPLSETUPCFG="${BUILD_DIR}"/test-setup.cfg
|
||||||
|
distutils-r1_python_compile -j1 --build-lib="${BUILD_DIR}"/test-lib
|
||||||
|
local -x PYTHONPATH=${BUILD_DIR}/test-lib:${PYTHONPATH}
|
||||||
|
|
||||||
|
# speed tests up
|
||||||
|
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
|
||||||
|
nonfatal epytest --pyargs matplotlib -m "not network" \
|
||||||
|
-p xdist.plugin -n "$(makeopts_jobs)" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install() {
|
||||||
|
wrap_setup distutils-r1_python_install
|
||||||
|
|
||||||
|
# mpl_toolkits namespace
|
||||||
|
python_moduleinto mpl_toolkits
|
||||||
|
python_domodule lib/mpl_toolkits/__init__.py
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
use doc && local HTML_DOCS=( doc/build/html/. )
|
||||||
|
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
if use examples; then
|
||||||
|
dodoc -r examples
|
||||||
|
docompress -x /usr/share/doc/${PF}/examples
|
||||||
|
fi
|
||||||
|
|
||||||
|
find "${D}" -name '*.pth' -delete || die
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST pdm-pep517-0.12.3.gh.tar.gz 304242 BLAKE2B ad4beb6ab35c219e1991b585bf9ce087be3e7e957f34b1dbc9de676f7b49c3084471e2b55c634eb6fd1cf6cb88dd4161b5060a17a5ca7e5e3ae57c9610303f6e SHA512 4c0f098d5237353fea73ef62149b8177987881239cb6b1b112bd6789931acd7484c56d413f780db4f23c60f4ff3a37c6956de3e1de472fed114487925b0e3553
|
DIST pdm-pep517-0.12.3.gh.tar.gz 304242 BLAKE2B ad4beb6ab35c219e1991b585bf9ce087be3e7e957f34b1dbc9de676f7b49c3084471e2b55c634eb6fd1cf6cb88dd4161b5060a17a5ca7e5e3ae57c9610303f6e SHA512 4c0f098d5237353fea73ef62149b8177987881239cb6b1b112bd6789931acd7484c56d413f780db4f23c60f4ff3a37c6956de3e1de472fed114487925b0e3553
|
||||||
|
DIST pdm-pep517-0.12.4.gh.tar.gz 304353 BLAKE2B ca2b18af38423f7430a40e5cced207bd4bec8d101204902c89f335c5d08131e95fe17c5af7a3ef0e654c9e2106145ef5242c9015924a2711c90dbb0d2f48128e SHA512 2007a84909147cd48e9ea6114119a63855ddf48e220f8c896d516b6bddd5a7bd62046f090d739a5069b9e06700f0318e57bd1a4b3c7531508b41540357639c5e
|
||||||
|
@ -0,0 +1,58 @@
|
|||||||
|
# Copyright 2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=standalone
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="A PEP 517 backend for PDM that supports PEP 621 metadata"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pypi.org/project/pdm-pep517/
|
||||||
|
https://github.com/pdm-project/pdm-pep517/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/pdm-project/pdm-pep517/archive/${PV}.tar.gz
|
||||||
|
-> ${P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/cerberus-1.3.4[${PYTHON_USEDEP}]
|
||||||
|
dev-python/license-expression[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/packaging-21.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/tomli-2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/tomli-w[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
test? (
|
||||||
|
dev-vcs/git
|
||||||
|
)
|
||||||
|
"
|
||||||
|
# setuptools are used to build C extensions
|
||||||
|
RDEPEND+="
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
rm -r pdm/pep517/_vendor || die
|
||||||
|
find -name '*.py' -exec sed \
|
||||||
|
-e 's:from pdm\.pep517\._vendor\.:from :' \
|
||||||
|
-e 's:from pdm\.pep517\._vendor ::' \
|
||||||
|
-i {} + || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
git config --global user.email "test@example.com" || die
|
||||||
|
git config --global user.name "Test User" || die
|
||||||
|
distutils-r1_src_test
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST pylint-2.12.2.gh.tar.gz 1032702 BLAKE2B de7dce04159b332baa5c23f4034ee249e49f9239c5c9190213a51a84a47ac2129f8a2265e1ad9c01ab448ec58f4f36653c6de5b0be6bfdf6aa286c8887313759 SHA512 0d2b9b785371af0a1c809271153abbab58f50455b34f12370461ded2c4f3d62656e4c0391adff48e179b95da945a2f44e762863e2b7d63808976bf5f684e20d2
|
DIST pylint-2.12.2.gh.tar.gz 1032702 BLAKE2B de7dce04159b332baa5c23f4034ee249e49f9239c5c9190213a51a84a47ac2129f8a2265e1ad9c01ab448ec58f4f36653c6de5b0be6bfdf6aa286c8887313759 SHA512 0d2b9b785371af0a1c809271153abbab58f50455b34f12370461ded2c4f3d62656e4c0391adff48e179b95da945a2f44e762863e2b7d63808976bf5f684e20d2
|
||||||
DIST pylint-2.13.5.gh.tar.gz 1118551 BLAKE2B 70ee4254aa140aba16adfe67aeb896d9c455843dfa945d335b5ba48e85c9d2d8f057223bc74bd4c0c0bfa2d343a9f78e783705b885caaee6895fcddf7ce23ccb SHA512 e399239fbea58260b17f226dddb63f1e6a2f12cdd601a4e73913a169d23fe2b6085e776bf8144e2c5a555dfdc1b28a5818a4103969d504b638b6b41ee296d182
|
DIST pylint-2.13.5.gh.tar.gz 1118551 BLAKE2B 70ee4254aa140aba16adfe67aeb896d9c455843dfa945d335b5ba48e85c9d2d8f057223bc74bd4c0c0bfa2d343a9f78e783705b885caaee6895fcddf7ce23ccb SHA512 e399239fbea58260b17f226dddb63f1e6a2f12cdd601a4e73913a169d23fe2b6085e776bf8144e2c5a555dfdc1b28a5818a4103969d504b638b6b41ee296d182
|
||||||
DIST pylint-2.13.7.gh.tar.gz 1120083 BLAKE2B c45d6ec65c11d3682bf3279969f3e45b827b2bbcebbfeb05a31df3a93bb943bf9643a5d467c1e2eebf717577032571a48db1ce84e1c81d72000808ec302aaf1b SHA512 ec0b2ef565239ab3e577c5c2d22c1c8df8b8bb0858c34b6606f649484d69a25c1f51ca61a3da66833d9a713e8a686dc32b940e574650577bdcc4e13d76acc2e5
|
DIST pylint-2.13.7.gh.tar.gz 1120083 BLAKE2B c45d6ec65c11d3682bf3279969f3e45b827b2bbcebbfeb05a31df3a93bb943bf9643a5d467c1e2eebf717577032571a48db1ce84e1c81d72000808ec302aaf1b SHA512 ec0b2ef565239ab3e577c5c2d22c1c8df8b8bb0858c34b6606f649484d69a25c1f51ca61a3da66833d9a713e8a686dc32b940e574650577bdcc4e13d76acc2e5
|
||||||
|
DIST pylint-2.13.8.gh.tar.gz 1121081 BLAKE2B 06a0a5c3801318ca45073f04a631e0617b5803ce01fd3973fc96d350c38a988222d4b8b03f86c12c317f6f87db5b7b85d1c428373a17e51d1044b382a0d03c1d SHA512 8ab01a15da7d9b659aa11de3ee804e0ad54fefd549be468fe194f8ec66640f5ecbdeddec468c9fd76d1eea8006d60249b1abba59d5047774d22b7b461224695d
|
||||||
|
@ -0,0 +1,81 @@
|
|||||||
|
# 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_{8..10} )
|
||||||
|
PYTHON_REQ_USE="threads(+)"
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Python code static checker"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://pypi.org/project/pylint/
|
||||||
|
https://github.com/PyCQA/pylint/
|
||||||
|
"
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/pycqa/pylint/archive/v${PV}.tar.gz
|
||||||
|
-> ${P}.gh.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
IUSE="examples"
|
||||||
|
|
||||||
|
# Make sure to check https://github.com/PyCQA/pylint/blob/main/setup.cfg#L43 on bumps
|
||||||
|
# Adjust dep bounds!
|
||||||
|
RDEPEND="
|
||||||
|
<dev-python/astroid-2.12[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/astroid-2.11.3[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/dill-0.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/isort-4.2.5[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/isort-6[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/mccabe-0.6[${PYTHON_USEDEP}]
|
||||||
|
<dev-python/mccabe-0.8[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/tomli-1.1.0[${PYTHON_USEDEP}]
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/typing-extensions[${PYTHON_USEDEP}]
|
||||||
|
' 3.8 3.9)
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
>=dev-python/GitPython-3[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-timeout[${PYTHON_USEDEP}]
|
||||||
|
dev-python/typing-extensions[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-2.4.4-sphinx-theme.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_sphinx doc --no-autodoc
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local EPYTEST_DESELECT=(
|
||||||
|
# No need to run the benchmarks
|
||||||
|
tests/benchmark/test_baseline_benchmarks.py
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
'tests/test_functional.py::test_functional[forgotten_debug_statement_py37]'
|
||||||
|
'tests/test_functional.py::test_functional[dataclass_with_field]'
|
||||||
|
tests/checkers/unittest_typecheck.py::TestTypeChecker::test_nomember_on_c_extension_error_msg
|
||||||
|
tests/checkers/unittest_typecheck.py::TestTypeChecker::test_nomember_on_c_extension_info_msg
|
||||||
|
)
|
||||||
|
# Specify the test directory explicitly to avoid import file mismatches
|
||||||
|
epytest tests
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
if use examples ; then
|
||||||
|
docompress -x "/usr/share/doc/${PF}/examples"
|
||||||
|
docinto examples
|
||||||
|
dodoc -r examples/.
|
||||||
|
fi
|
||||||
|
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
}
|
@ -1 +1,2 @@
|
|||||||
DIST pyzotero-1.5.3.tar.gz 525734 BLAKE2B 11de38c1954478ed9918f33bdbf550d6d0eda99a6e38154361c2da336158bacfaf16f1d9bb9ff08550e6951c3e29efe50618c78672bfcec6237bc42e6b52c6c5 SHA512 b31872db4a2fd53f6c17f6a33115ac762147810efae6f6351579a03f651f843e46b1d5f584cc47c1d20d8dad5c318d2835c2e053bc43f3063e84bce85658d9fb
|
DIST pyzotero-1.5.3.tar.gz 525734 BLAKE2B 11de38c1954478ed9918f33bdbf550d6d0eda99a6e38154361c2da336158bacfaf16f1d9bb9ff08550e6951c3e29efe50618c78672bfcec6237bc42e6b52c6c5 SHA512 b31872db4a2fd53f6c17f6a33115ac762147810efae6f6351579a03f651f843e46b1d5f584cc47c1d20d8dad5c318d2835c2e053bc43f3063e84bce85658d9fb
|
||||||
|
DIST pyzotero-1.5.4.tar.gz 525739 BLAKE2B 93acb725cb47e9f1642d88ea79e590e29af6eecedb5a14e220c9d6ce2c27d05dfd9042ef49d53c710a507050f566b097a272e025d26d1b10a64357e511da656e SHA512 10c27d531adf358c337aab3358d24e28318dfee02b08387663f0433fffc645ddc633929a8422d508952e26d29219c350c6865248c447391436d8cb5061f273ec
|
||||||
|
@ -0,0 +1,38 @@
|
|||||||
|
# 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_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="A Python client for the Zotero API"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/urschrei/pyzotero/
|
||||||
|
https://pypi.org/project/pyzotero/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
app-text/zotero-bin
|
||||||
|
dev-python/bibtexparser[${PYTHON_USEDEP}]
|
||||||
|
dev-python/feedparser[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytz[${PYTHON_USEDEP}]
|
||||||
|
dev-python/requests[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||||
|
dev-python/httpretty[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_sphinx doc --no-autodoc
|
||||||
|
distutils_enable_tests pytest
|
@ -1,4 +1,3 @@
|
|||||||
DIST starlette-0.17.1.tar.gz 403781 BLAKE2B 75de462afc507d89159f17002eb2acc5453520ad312573d5697f5da8fc7d76fcb2407bf41086c923a60a59766f5ac02de1b003962a4d1031c062bd80a0d50e6c SHA512 a8f8cee0dc40d19eab62996f4ef1230fa758375fa9b51e15eae5c906a89b76519ebe4e423aa567d73e4c055cef63e9bbae11b47d4372e28b615f6edaf22a06a7
|
|
||||||
DIST starlette-0.18.0.gh.tar.gz 408097 BLAKE2B ddc85690d9eb962a8d82544a1667d17316025330c8fda0c79dc21422399bcff01ccf5baf85eda7941f40aac5845d18fdcefaa23ba8ba442d30f0b9e194f7287c SHA512 521d39c1eec818250da3f2dc24cd2fb08393b76e6314a9bd5f3e520bdfa4652ae4ace5876b7e7f3a7ddc5540160e1086997a40b86a1b1bfd694c6aa1abde9106
|
DIST starlette-0.18.0.gh.tar.gz 408097 BLAKE2B ddc85690d9eb962a8d82544a1667d17316025330c8fda0c79dc21422399bcff01ccf5baf85eda7941f40aac5845d18fdcefaa23ba8ba442d30f0b9e194f7287c SHA512 521d39c1eec818250da3f2dc24cd2fb08393b76e6314a9bd5f3e520bdfa4652ae4ace5876b7e7f3a7ddc5540160e1086997a40b86a1b1bfd694c6aa1abde9106
|
||||||
DIST starlette-0.19.0.gh.tar.gz 412337 BLAKE2B 31d8c7a7b0c1708ed23cf001061e03dbeb9ee7e57fb81cb4bc349cb6642f2a0a5aba973e96f6337c0d304a5e3c5be3ed4ed68045c3c165a4c952529278b859df SHA512 7b889c2cfd453882a9c34e0451975b6cdbf4a0274872225473bf196901ded01b03484c01fafbac8e8f5df4fe9bd146df966cd7f5b278592d0ef88e7cff5010a2
|
|
||||||
DIST starlette-0.19.1.gh.tar.gz 415049 BLAKE2B 15842a521b9cef2ed823e857f984d7d8db7a9fb4c0fb06d811fe29336a104c600b9c4f0a14b535ad1a84743cb4a1452d87f3ff0ae9245270b765af89254be86e SHA512 3fd721e4a8accfd4f0c1c87b4b0eb62b559066aeeb7ddd31dcacb73c2b4e8619fe727b10f2e3053199e710a561063ef7bbd73ad65294d0ce5db778d458ffbd91
|
DIST starlette-0.19.1.gh.tar.gz 415049 BLAKE2B 15842a521b9cef2ed823e857f984d7d8db7a9fb4c0fb06d811fe29336a104c600b9c4f0a14b535ad1a84743cb4a1452d87f3ff0ae9245270b765af89254be86e SHA512 3fd721e4a8accfd4f0c1c87b4b0eb62b559066aeeb7ddd31dcacb73c2b4e8619fe727b10f2e3053199e710a561063ef7bbd73ad65294d0ce5db778d458ffbd91
|
||||||
|
DIST starlette-0.20.0.gh.tar.gz 414497 BLAKE2B 47c6ef632a600bd18075c8ea65811ed18e08c285ed01cb34e5f74c00b2349430703ac041beacb35b91d941501001d2b93b79b777b403f5b6bef4682f6c13b02a SHA512 f28aff53732ec5950b2432ea644667d408e80cb4b51a177652a9bfe6731c6fa1208cba644fcaa84405bf51ef00f500a277c86e48f5446e2014369c1d1edda357
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_{8,9,10} )
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="The little ASGI framework that shines"
|
|
||||||
HOMEPAGE="https://www.starlette.io/"
|
|
||||||
SRC_URI="https://github.com/encode/starlette/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
|
|
||||||
# Needs fixing with trio deprecations (dies on ModuleWithDeprecations)
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="dev-python/anyio[${PYTHON_USEDEP}]
|
|
||||||
dev-python/itsdangerous[${PYTHON_USEDEP}]"
|
|
||||||
BDEPEND="test? ( dev-python/trio[${PYTHON_USEDEP}] )"
|
|
||||||
|
|
||||||
EPYTEST_IGNORE=(
|
|
||||||
# Unpackaged 'databases' dependency
|
|
||||||
tests/test_database.py
|
|
||||||
|
|
||||||
# Unpackaged 'multipart' dependency
|
|
||||||
tests/test_formparsers.py
|
|
||||||
)
|
|
||||||
|
|
||||||
EPYTEST_DESELECT=(
|
|
||||||
# Unpackaged 'multipart' dependency
|
|
||||||
tests/test_requests.py::test_request_form_urlencoded
|
|
||||||
)
|
|
||||||
|
|
||||||
distutils_enable_tests pytest
|
|
@ -1 +1,2 @@
|
|||||||
DIST stomp.py-8.0.0.tar.gz 35146 BLAKE2B 65f15e0145e1fc48d4f9ccf37ce81f1f7464e9179d63d6f22e96dd99ce35692dbcb6056730c35255428b0ccf0d744debc39e2c12e6e2b6675ac20c7ec0ff3efd SHA512 068694e9bc42e45dd769275296a1ea817153cb0318b08377be5e0b9563989a83bff35c4bc424e00939b7521938aa34f485401f07a8a51c3d9a90eea3f00c1ea1
|
DIST stomp.py-8.0.0.tar.gz 35146 BLAKE2B 65f15e0145e1fc48d4f9ccf37ce81f1f7464e9179d63d6f22e96dd99ce35692dbcb6056730c35255428b0ccf0d744debc39e2c12e6e2b6675ac20c7ec0ff3efd SHA512 068694e9bc42e45dd769275296a1ea817153cb0318b08377be5e0b9563989a83bff35c4bc424e00939b7521938aa34f485401f07a8a51c3d9a90eea3f00c1ea1
|
||||||
|
DIST stomp.py-8.0.1.tar.gz 35300 BLAKE2B 12209e99066fb5bb1f3015398f5eb27186322ce9d92feca46adc4d275aff1d5138908da69abe3be512325bd30a3a21773886ba5fa21917c71d13bc53b0977de4 SHA512 009189cd07c379641c9fa3b3af1df70c9e26b77bbb6d2443a78b56ff9895b4382e90a753db83f4a863fae5ef5765c660d2f82ef14ab6e74817bc83e7ea8ba6d3
|
||||||
|
@ -0,0 +1,32 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=poetry
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
MY_PN="${PN//-/.}"
|
||||||
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="Python client library for the STOMP messaging protocol"
|
||||||
|
HOMEPAGE="https://pypi.org/project/stomp.py/ https://github.com/jasonrbriggs/stomp.py/"
|
||||||
|
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||||
|
S="${WORKDIR}"/${MY_P}
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
RDEPEND="<dev-python/docopt-0.7.0[${PYTHON_USEDEP}]"
|
||||||
|
|
||||||
|
# stomp.py test suite requires quite a few appropriately configured
|
||||||
|
# messaging servers (as of 7.0.0: RabbitMQ, ActiveMQ, ActiveMQ Artemis,
|
||||||
|
# stompserver). Upstream relies on Docker to provide those servers, however
|
||||||
|
# doing the same in src_test would require both granting the portage user
|
||||||
|
# extra permissions and packaging the base image (trying to download it
|
||||||
|
# on the fly would violate the network sandbox).
|
||||||
|
# Side note: PyPI tarballs do not include tests.
|
||||||
|
RESTRICT="test"
|
@ -1 +1,2 @@
|
|||||||
DIST suds-community-1.1.0.tar.gz 284545 BLAKE2B b5f6f6f46a35df3263664c9893745a2e723f3eef543cb1a9e9fd061956b0c00c219e818228de9bf11b2730ad0a8fed90ad731199ffc7ca9fba9f22c5c0c8dd41 SHA512 2c8902e16c3513c99ce6d8bdf58ef4f5c4d704f1bf2480ea2b23ec2adbd9e8919928bfd5e3fd6859028b7fbc3788d067b9b71bad2a20c2f4907e6e56f3f15350
|
DIST suds-community-1.1.0.tar.gz 284545 BLAKE2B b5f6f6f46a35df3263664c9893745a2e723f3eef543cb1a9e9fd061956b0c00c219e818228de9bf11b2730ad0a8fed90ad731199ffc7ca9fba9f22c5c0c8dd41 SHA512 2c8902e16c3513c99ce6d8bdf58ef4f5c4d704f1bf2480ea2b23ec2adbd9e8919928bfd5e3fd6859028b7fbc3788d067b9b71bad2a20c2f4907e6e56f3f15350
|
||||||
|
DIST suds-community-1.1.1.tar.gz 284934 BLAKE2B 9df1a5f6b4dd2ca060c639147a090cef6a194f275706e03a3fdafa46c4d18b890f7c94249db8db6202e95abea71948e0c42fe42f14f659ca14bb0aca11b4b5f5 SHA512 9b343d704b2db123ff44685fb03da8f6912cefb32d38e9b79f9f84aeebff32ba26936a0f70a6121628c6f2c5388e94d380f08ed546f55fbf84fdc8e4fdbd3d0a
|
@ -1,7 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<!--maintainer-needed-->
|
<maintainer type="project">
|
||||||
|
<email>python@gentoo.org</email>
|
||||||
|
<name>Python</name>
|
||||||
|
</maintainer>
|
||||||
<stabilize-allarches/>
|
<stabilize-allarches/>
|
||||||
<upstream>
|
<upstream>
|
||||||
<remote-id type="pypi">suds-community</remote-id>
|
<remote-id type="pypi">suds-community</remote-id>
|
@ -0,0 +1,25 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=setuptools
|
||||||
|
PYTHON_REQ_USE="xml(+)"
|
||||||
|
PYTHON_COMPAT=( python3_{8..10} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Lightweight SOAP client"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/suds-community/suds/
|
||||||
|
https://pypi.org/project/suds-community/
|
||||||
|
"
|
||||||
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
DOCS=( README.md notes/. )
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue