Merge updates from master

This commit is contained in:
Repository mirror & CI
2024-07-06 08:51:05 +00:00
59 changed files with 16 additions and 2328 deletions
-4
View File
@@ -1,7 +1,3 @@
DIST aws-cli-1.33.13.gh.tar.gz 2751169 BLAKE2B b849f4c5c0eac5092c3f163c4344a7bee332f374f252bc295794cb1e5a4024e08f353815362f0e7016b054d881927650c407d527f557c828543d1a5b96e9bd0b SHA512 7cdea65b6cd4fc7b51b657f9abf2e5cde41ef5d87f6fa45659ebedb2047fc09af9d457aeb8779f56fb55518acb12d139d486f8e95dfe7679ae5f8c21d901e608
DIST aws-cli-1.33.18.gh.tar.gz 2752774 BLAKE2B 8f78ba78c3fac623f091344fb2710ac79440d3bf96e0c33168bdf5d6c6d705318c8ea82d769eef4fb82840e8e94998b65b81999831c75be9a1924fac7be37aa4 SHA512 e0444118ab02fcba91cc1f078db80176da97abee64d2cd38875281c8344930fa63b89d1b59f43ed7690c432fc0d36273e7f4d2e0c947ae56a13ec6f42dea6ec9
DIST aws-cli-1.33.19.gh.tar.gz 2753605 BLAKE2B 5967d0cbc2afef08f28bbf9035d867d880f07c2962001611985d6c22b61f57265daa720bb410b1d2f3204a81c19415857069da668eba10bcaf9603ea9fc998fa SHA512 95eacc803d9011bcb80e5e09243b0274f17692a4a27b434de676d295c5090cc61382665226073b6ca9af7deb6701ea303f9cf1f7b6baba850eb1a828c92dec34
DIST aws-cli-1.33.20.gh.tar.gz 2753730 BLAKE2B f72553e9a91802dd5fcaa6f2a4dd383fd13139bd9f624762310dee5d8a69f74bfebe7fb70d0a72cf73d95ee96c33ea4ea378888ec1de103fe670593423789c6f SHA512 546584f0839db3da095b5e3b8b90a5de21187a172d8b2a9bfdd8266f6a0f5c8d1a782d7d26599ce686b2a6a9f465f2bbbd9c3ef3fd691d8a1cef87a2566b6879
DIST aws-cli-1.33.21.gh.tar.gz 2753813 BLAKE2B 236bf4bf795e7142c38090d561ed1afc80235085d348fb7e8537588ec54c6cb745817a29f6e40b0a437a3e8c4c5546ffef1b9b7a117634057359410507af375a SHA512 834408174d7b0dd2b91b8bfcc9e628a6ab96f7883798f4bf548ba9f7acbfdd97e73aac64d6e82512cf99c9b35ffd1e19581ebfc53a7cfaebb242aa65501e431a
DIST aws-cli-1.33.22.gh.tar.gz 2754043 BLAKE2B 8645a55cc6f0570ce0e69599e010c98019e63f2616af25467eefc0911f09148b64cdb35ba48e488801afe6aaa105f7dc54e1111acb49ed954cc036f9aaf933db SHA512 1425e1fd3df1a3639838517282f3fc6b63019e25288b38e8f56cd2316c6edb695c24a5dfb4ecf572139222bb16006fd55a9912f287c24c1bc16939bcc0f3a48a
DIST aws-cli-1.33.9.gh.tar.gz 2744062 BLAKE2B d888e111d93ec22c6bbabf083d612b15845883e2e56814a37173f79c108e4fe25745dbba83d46f99f54e7ddcc2f471c81e3b568de7233eb7e0bb51ed25a89f7a SHA512 5bdb9873487570c841b582ee466d989705c2fc5827386356819507caa8e105b76b0101555f8a6ee485f38aaa433881470fdde5cb21f6fdc88243c92ce7c31a81
-90
View File
@@ -1,90 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit bash-completion-r1 distutils-r1
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 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
# botocore is x.(y+1).(z+118), sigh
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1 )).$(( $(ver_cut 3-) + 118 ))"
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.10.0[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
!app-admin/awscli-bin
"
BDEPEND="
test? (
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/pytest-forked[${PYTHON_USEDEP}]
)
"
EPYTEST_XDIST=1
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() {
local serial_tests=(
tests/functional/ecs/test_execute_command.py::TestExecuteCommand::test_execute_command_success
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_{fails,success}
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_with_new_version_plugin_success
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking_windows
tests/unit/customizations/codeartifact/test_adapter_login.py::TestNuGetLogin::test_login_nuget_sources_listed_with_backtracking
tests/unit/customizations/ecs/test_executecommand_startsession.py::TestExecuteCommand::test_execute_command_success
tests/unit/customizations/test_sessionmanager.py
tests/unit/test_compat.py::TestIgnoreUserSignals
tests/unit/test_help.py
tests/unit/test_utils.py::TestIgnoreCtrlC::test_ctrl_c_is_ignored
)
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
EPYTEST_XDIST= epytest "${serial_tests[@]}"
local EPYTEST_DESELECT=( "${serial_tests[@]}" )
# integration tests require AWS credentials and Internet access
epytest tests/{functional,unit}
}
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
}
-90
View File
@@ -1,90 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit bash-completion-r1 distutils-r1
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 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
# botocore is x.(y+1).(z+118), sigh
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1 )).$(( $(ver_cut 3-) + 118 ))"
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.10.0[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
!app-admin/awscli-bin
"
BDEPEND="
test? (
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/pytest-forked[${PYTHON_USEDEP}]
)
"
EPYTEST_XDIST=1
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() {
local serial_tests=(
tests/functional/ecs/test_execute_command.py::TestExecuteCommand::test_execute_command_success
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_{fails,success}
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_with_new_version_plugin_success
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking_windows
tests/unit/customizations/codeartifact/test_adapter_login.py::TestNuGetLogin::test_login_nuget_sources_listed_with_backtracking
tests/unit/customizations/ecs/test_executecommand_startsession.py::TestExecuteCommand::test_execute_command_success
tests/unit/customizations/test_sessionmanager.py
tests/unit/test_compat.py::TestIgnoreUserSignals
tests/unit/test_help.py
tests/unit/test_utils.py::TestIgnoreCtrlC::test_ctrl_c_is_ignored
)
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
EPYTEST_XDIST= epytest "${serial_tests[@]}"
local EPYTEST_DESELECT=( "${serial_tests[@]}" )
# integration tests require AWS credentials and Internet access
epytest tests/{functional,unit}
}
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
}
-90
View File
@@ -1,90 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit bash-completion-r1 distutils-r1
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 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
# botocore is x.(y+1).(z+118), sigh
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1 )).$(( $(ver_cut 3-) + 118 ))"
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.10.0[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
!app-admin/awscli-bin
"
BDEPEND="
test? (
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/pytest-forked[${PYTHON_USEDEP}]
)
"
EPYTEST_XDIST=1
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() {
local serial_tests=(
tests/functional/ecs/test_execute_command.py::TestExecuteCommand::test_execute_command_success
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_{fails,success}
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_with_new_version_plugin_success
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking_windows
tests/unit/customizations/codeartifact/test_adapter_login.py::TestNuGetLogin::test_login_nuget_sources_listed_with_backtracking
tests/unit/customizations/ecs/test_executecommand_startsession.py::TestExecuteCommand::test_execute_command_success
tests/unit/customizations/test_sessionmanager.py
tests/unit/test_compat.py::TestIgnoreUserSignals
tests/unit/test_help.py
tests/unit/test_utils.py::TestIgnoreCtrlC::test_ctrl_c_is_ignored
)
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
EPYTEST_XDIST= epytest "${serial_tests[@]}"
local EPYTEST_DESELECT=( "${serial_tests[@]}" )
# integration tests require AWS credentials and Internet access
epytest tests/{functional,unit}
}
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
}
-90
View File
@@ -1,90 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit bash-completion-r1 distutils-r1
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 arm arm64 ppc ppc64 ~riscv sparc x86"
# botocore is x.(y+1).(z+118), sigh
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1 )).$(( $(ver_cut 3-) + 118 ))"
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.10.0[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
!app-admin/awscli-bin
"
BDEPEND="
test? (
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/pytest-forked[${PYTHON_USEDEP}]
)
"
EPYTEST_XDIST=1
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() {
local serial_tests=(
tests/functional/ecs/test_execute_command.py::TestExecuteCommand::test_execute_command_success
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_{fails,success}
tests/functional/ssm/test_start_session.py::TestSessionManager::test_start_session_with_new_version_plugin_success
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking
tests/unit/customizations/codeartifact/test_adapter_login.py::TestDotNetLogin::test_login_dotnet_sources_listed_with_backtracking_windows
tests/unit/customizations/codeartifact/test_adapter_login.py::TestNuGetLogin::test_login_nuget_sources_listed_with_backtracking
tests/unit/customizations/ecs/test_executecommand_startsession.py::TestExecuteCommand::test_execute_command_success
tests/unit/customizations/test_sessionmanager.py
tests/unit/test_compat.py::TestIgnoreUserSignals
tests/unit/test_help.py
tests/unit/test_utils.py::TestIgnoreCtrlC::test_ctrl_c_is_ignored
)
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
EPYTEST_XDIST= epytest "${serial_tests[@]}"
local EPYTEST_DESELECT=( "${serial_tests[@]}" )
# integration tests require AWS credentials and Internet access
epytest tests/{functional,unit}
}
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
}
-4
View File
@@ -1,7 +1,3 @@
DIST boto3-1.34.127.gh.tar.gz 820740 BLAKE2B ddfb7802440a01af27059daed4bc7cd3797eb192004a0e7b78e1e56a8ff479206b4835a79bcac1db273c2936fb8dfde0ba16bebe8cbe1befeb188070bf46b2c7 SHA512 b139ad68a4ce29e84e0fa1618b97c4aea13b668521921712df74256ad61c21d2077ea216dfb4102d8f9910a8119b24509aa10a504d746bdb410fee1cecc0461c
DIST boto3-1.34.131.gh.tar.gz 822851 BLAKE2B cc4b06ca1785e62314308efb7d9ffa6e10a40fe48bdd3e31f9f12490a57843ad528685d04ea9ec40cf2203acc0ee0a9fb58ee272837c9a637f44c2716f60de7a SHA512 79cd8718c6d84cdcdcadfcde80368addc095770624806eb8cfa981852c2a8ebcc8074533ec8f8e24b01a3aed241afccb6f49fdce250ae07f630d8596931778e3
DIST boto3-1.34.136.gh.tar.gz 826543 BLAKE2B 307705ba777d155772a2dafad775e55d94e17a9e4c2986e48bd8a691c3bc4e433f212e1a59053222927bda42584b2d1d266bc2489f94fd3e4463416c56531d54 SHA512 f2307db517b393164028c17a8073c5baf7f7e3be36c988a90d455cad98a55b7a7e1a6e44584038141047237e81cb495bffaf70747de421ce316bb457e2d168e8
DIST boto3-1.34.137.gh.tar.gz 827294 BLAKE2B ba4f008114e02f40c5e4ac095241c7dac2b919e1dbe7ffaacc9ab40b3d2a97a12ace2b27359190b20cf2f2c1dcc66044188f15ed12177b002a54537a692b0203 SHA512 7303b32359080f360a95e0fb068ca1e7b83fe54a5f553f6681df3382bd110c70927138e435afc8eb8e93760c9bd685afa7355e661243e6b7f91cd8e8063d401c
DIST boto3-1.34.138.gh.tar.gz 827512 BLAKE2B d8022cb470f2f68bf16dd179fb348b3419a4fc7dd2095816916619dc314809db6a2385e86b83ff552609a4cb6285369d806debac20887cefa69b113cd0385552 SHA512 9e12dd97ffd1f15cdb527219184bef8dff012bd9b11214f566fd98a82b37e6ee9699b05de62eb48393ff551089d683143373cbef167ca7e35e64851894fb3fe1
DIST boto3-1.34.139.gh.tar.gz 828069 BLAKE2B 71abb24a57f173a4136e8334fa2db9f2b5d92d2e154141da122575869e0b40bbe1f8ee893a8b8735ce8f6d2c7457334c5e08ead983a01516d591d594528c4cdb SHA512 bc3ca92551ffa9d2400341982b670b70ccbd539539fd86d6ec88091606504ad74247103ef9677d45023f4e2f9d737878c55313c28f08299d24b06701eb221ced
DIST boto3-1.34.140.gh.tar.gz 828290 BLAKE2B 129c0f791ddc07f90d2b9ae2972839a0bcaa393e3a8f843a9bca9ebf699f36290b95d17c3f906f49ae5c9ee8cd15c5de7f9de96572573f12d40c7ada778c7679 SHA512 b052ac336e68577140017b5a45f1787eec985e42d86e25cdafc15c6eadf8652b75bb006cf86ce0a3e0d9f3b657ae2afee41a75f624fb5e277a49f1653a83f64f
-53
View File
@@ -1,53 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="The AWS SDK for Python"
HOMEPAGE="
https://github.com/boto/boto3/
https://pypi.org/project/boto3/
"
SRC_URI="
https://github.com/boto/boto3/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
RDEPEND="
>=dev-python/botocore-${PV}[${PYTHON_USEDEP}]
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
>=dev-python/s3transfer-0.10.0[${PYTHON_USEDEP}]
"
EPYTEST_XDIST=1
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() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest tests/{functional,unit}
}
-53
View File
@@ -1,53 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="The AWS SDK for Python"
HOMEPAGE="
https://github.com/boto/boto3/
https://pypi.org/project/boto3/
"
SRC_URI="
https://github.com/boto/boto3/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
RDEPEND="
>=dev-python/botocore-${PV}[${PYTHON_USEDEP}]
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
>=dev-python/s3transfer-0.10.0[${PYTHON_USEDEP}]
"
EPYTEST_XDIST=1
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() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest tests/{functional,unit}
}
-53
View File
@@ -1,53 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="The AWS SDK for Python"
HOMEPAGE="
https://github.com/boto/boto3/
https://pypi.org/project/boto3/
"
SRC_URI="
https://github.com/boto/boto3/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
RDEPEND="
>=dev-python/botocore-${PV}[${PYTHON_USEDEP}]
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
>=dev-python/s3transfer-0.10.0[${PYTHON_USEDEP}]
"
EPYTEST_XDIST=1
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() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest tests/{functional,unit}
}
-53
View File
@@ -1,53 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="The AWS SDK for Python"
HOMEPAGE="
https://github.com/boto/boto3/
https://pypi.org/project/boto3/
"
SRC_URI="
https://github.com/boto/boto3/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
RDEPEND="
>=dev-python/botocore-${PV}[${PYTHON_USEDEP}]
>=dev-python/jmespath-0.7.1[${PYTHON_USEDEP}]
>=dev-python/s3transfer-0.10.0[${PYTHON_USEDEP}]
"
EPYTEST_XDIST=1
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() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest tests/{functional,unit}
}
-4
View File
@@ -1,7 +1,3 @@
DIST botocore-1.34.127.gh.tar.gz 13112261 BLAKE2B e883f0a1e29178667678132195aea9666a124456e731e1b158eed895c125fd614e5671639766f7ad46c2e6b16c4156ff5e42594bc04e49bf25380c91cfcbe264 SHA512 48ca2179c24bb219202e5029dd62350a6fc5c64707762f0f33282e542dbc2227bb146376afa9e6b9eb1e45e3c801208a142bef4827d5036eb4724299c826d534
DIST botocore-1.34.131.gh.tar.gz 13129943 BLAKE2B 916360c6a9526edcfd338718f80556e59d54692aac13f38490e49457edd59016d264a5acbfeb6298af494f09f9c385e16347a9bf7f144c5a11afda2df188aeed SHA512 9bb788ac8e8a2ec7be999acafef88ccbb4e693ccb315efe5655b80cf3f6629eebccbdac6f201550d2f75e476d83c5a800f1add6c71e2fe5b3d503da313f6d3d3
DIST botocore-1.34.136.gh.tar.gz 13151618 BLAKE2B 800b800ff2481335f0defb79c10a4216c8bb107a3369e6a45a9c0a6d8f703209a9e44560ebf859f7fc616498c68e9b0de331478a8b5e2d3b36788bdedb597a0b SHA512 e9a31f6e8e241964fa34df65c8a9f8acaa1e33865eeb8257bf6da16982a3704b8ab66b6f424952ff100944471bb8f40cbdbcc26f72120da2d6033319948de81e
DIST botocore-1.34.137.gh.tar.gz 13153450 BLAKE2B 4049e5f7b12a4df94fa4a819f11732b86897ae838cc1fc9443f343037915e69134c0e3f335796976002ca63305dd12a8272252bed9370b6d64dc83186826467f SHA512 f3ba697813ec4a68978f27be12e44df02336210e47b5347f3868c4630d899eccf4cb0e0cc679122e4e5ae55ba002efc7067e6e13ea5a286707b958cae14b4186
DIST botocore-1.34.138.gh.tar.gz 13153609 BLAKE2B d2f16e1c49b51dbe35e21774bac766b88ad83cad18c6ee972de7f83086d1d00eb70826dbc0ffaff2b4bdb916fa22a849c1c0b8a4980206d9fb8c8288a047d803 SHA512 a43deaa3a5e95dbaa3a018907b8b44b822c399542f91291963e31708efbe06ca566f5f1290ba9c13359ebcac3566586d5b1c4ba391778ca11ed2d09ef1335162
DIST botocore-1.34.139.gh.tar.gz 13155941 BLAKE2B 8c916972478f947f75cc9e864904da5f9304d8ae1e454ff2777d943ffc7fec6959c34ade893ce74d7b63cc15133317dab4b3610ec0ad8f7e73255d37411a2cf0 SHA512 6cd86c0bbebf9251060dd2b16962dbc514bb487c33fb13301a7d8e4e036d56f9c20a252e89be94209962ff83d253eba4e568babbf8c6b93987274050c48a6e3c
DIST botocore-1.34.140.gh.tar.gz 13156596 BLAKE2B 4a264fe767c35dcc65ddbe1eb29529d2576553e4d6f9a3d6c28f249aaa0eab5a0fd150fdbdc1dbd1b83cc1fb6fce8f58c68de43f5dc338cb3feb5b9f76c8f973 SHA512 36c90da9670639ccc10e65ced501a2b16e50b664f11be2686f6fcfc56fa81271f160b27b7ffac513446afe09ef6ed4768818ad8b8ca540571737c47fdf980443
@@ -1,67 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="Low-level, data-driven core of boto 3"
HOMEPAGE="
https://github.com/boto/botocore/
https://pypi.org/project/botocore/
"
SRC_URI="
https://github.com/boto/botocore/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux"
RDEPEND="
<dev-python/jmespath-2[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
>=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
"
# unbundled packages
RDEPEND+="
dev-python/requests[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/jsonschema[${PYTHON_USEDEP}]
)
"
EPYTEST_XDIST=1
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
)
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest tests/{functional,unit}
}
@@ -1,67 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="Low-level, data-driven core of boto 3"
HOMEPAGE="
https://github.com/boto/botocore/
https://pypi.org/project/botocore/
"
SRC_URI="
https://github.com/boto/botocore/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
RDEPEND="
<dev-python/jmespath-2[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
>=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
"
# unbundled packages
RDEPEND+="
dev-python/requests[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/jsonschema[${PYTHON_USEDEP}]
)
"
EPYTEST_XDIST=1
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
)
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest tests/{functional,unit}
}
@@ -1,67 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="Low-level, data-driven core of boto 3"
HOMEPAGE="
https://github.com/boto/botocore/
https://pypi.org/project/botocore/
"
SRC_URI="
https://github.com/boto/botocore/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
RDEPEND="
<dev-python/jmespath-2[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
>=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
"
# unbundled packages
RDEPEND+="
dev-python/requests[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/jsonschema[${PYTHON_USEDEP}]
)
"
EPYTEST_XDIST=1
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
)
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest tests/{functional,unit}
}
@@ -1,67 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="Low-level, data-driven core of boto 3"
HOMEPAGE="
https://github.com/boto/botocore/
https://pypi.org/project/botocore/
"
SRC_URI="
https://github.com/boto/botocore/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
RDEPEND="
<dev-python/jmespath-2[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
>=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
"
# unbundled packages
RDEPEND+="
dev-python/requests[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/jsonschema[${PYTHON_USEDEP}]
)
"
EPYTEST_XDIST=1
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
)
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest tests/{functional,unit}
}
-2
View File
@@ -1,3 +1 @@
DIST Bottleneck-1.3.8.tar.gz 103252 BLAKE2B 1e520e33eaa86b7328d469a8de2f0cacedb401f9dab3686cad40132caa23e77055b71e630fadda9305f3d416e8958e9762053e6d46afba4cf15489db77418b67 SHA512 951a927ce368643e2ccb5154c05381ce9ff17bc703c0bcd85eab547e345601ad82eb1dc85fa16d667753bf3dc9d0296025984dae463a0153944a85a085331a8e
DIST bottleneck-1.4.0.tar.gz 103490 BLAKE2B c72b53bd1f4325fa53d7824e335ec50a37da7650c097bdda22548637c1e5a95bfa219dad1361dfb2eecdcf0fa1445a5c6cfb94b7472290fa6317524dc474f46c SHA512 07c1224d63a34e12488dce1f72152fdc493db904130cef46092f7f9c3218a04032e90d64dbf385069072c5d56c7ea09db15897d5c77b9d53db2e3da9414f84cc
DIST bottleneck-1.4.0rc5.tar.gz 103528 BLAKE2B 760c0958507b5472525694f7b5a11bdb999aa7fb14ab1465d49a81ef8725a007cf070e8393a807a703af7aad1419aafb19859d62bf8871be0348d60b4913d62c SHA512 68394c00567456af54096005d1f971abe872ee1f6d8776aac46d7e183bbb20dbee730e6845fd2c94cdc4dcdb4b8da2e154610784227d5058153c078c61bd9311
@@ -1,58 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
PYPI_PN=${PN^}
PYTHON_COMPAT=( python3_{10..13} pypy3 )
inherit distutils-r1 pypi
DESCRIPTION="Fast NumPy array functions written in C"
HOMEPAGE="
https://github.com/pydata/bottleneck/
https://pypi.org/project/Bottleneck/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos"
DEPEND="
>=dev-python/numpy-1.9.1:=[${PYTHON_USEDEP}]
"
RDEPEND="
${DEPEND}
"
distutils_enable_tests pytest
PATCHES=(
# https://github.com/pydata/bottleneck/pull/450
"${FILESDIR}/${P}-numpy-2.patch"
)
src_prepare() {
# don't overwrites user's optimization level
sed -e '/extra_compile_args=\["-O2"\]/d' -i setup.py || die
distutils-r1_src_prepare
}
python_test() {
local EPYTEST_DESELECT=()
case ${EPYTHON} in
pypy3)
EPYTEST_DESELECT+=(
# GC assumptions?
tests/memory_test.py::test_memory_leak
)
;;
esac
rm -rf bottleneck || die
epytest --pyargs bottleneck
}
@@ -1,52 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYPI_PN=${PN^}
PYTHON_COMPAT=( python3_{10..13} pypy3 )
inherit distutils-r1 pypi
DESCRIPTION="Fast NumPy array functions written in C"
HOMEPAGE="
https://github.com/pydata/bottleneck/
https://pypi.org/project/Bottleneck/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos"
DEPEND="
>=dev-python/numpy-1.9.1:=[${PYTHON_USEDEP}]
"
RDEPEND="
${DEPEND}
"
distutils_enable_tests pytest
src_prepare() {
# don't overwrites user's optimization level
sed -e '/extra_compile_args=\["-O2"\]/d' -i setup.py || die
distutils-r1_src_prepare
}
python_test() {
local EPYTEST_DESELECT=()
case ${EPYTHON} in
pypy3)
EPYTEST_DESELECT+=(
# GC assumptions?
tests/memory_test.py::test_memory_leak
)
;;
esac
rm -rf bottleneck || die
epytest --pyargs bottleneck
}
@@ -1,64 +0,0 @@
From 787d6daa292ef013efb2ce93f100079457330363 Mon Sep 17 00:00:00 2001
From: Ben Greiner <code@bnavigator.de>
Date: Thu, 9 May 2024 20:27:16 +0200
Subject: [PATCH 3/3] Replace np.array(a, copy=False) with np.asarray(a)
See https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword
---
bottleneck/slow/move.py | 8 ++++----
bottleneck/slow/nonreduce_axis.py | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/bottleneck/slow/move.py b/bottleneck/slow/move.py
index 0aa06f141..76a54a24e 100644
--- a/bottleneck/slow/move.py
+++ b/bottleneck/slow/move.py
@@ -52,7 +52,7 @@ def move_argmin(a, window, min_count=None, axis=-1):
"Slow move_argmin for unaccelerated dtype"
def argmin(a, axis):
- a = np.array(a, copy=False)
+ a = np.asarray(a)
flip = [slice(None)] * a.ndim
flip[axis] = slice(None, None, -1)
a = a[tuple(flip)] # if tie, pick index of rightmost tie
@@ -78,7 +78,7 @@ def move_argmax(a, window, min_count=None, axis=-1):
"Slow move_argmax for unaccelerated dtype"
def argmax(a, axis):
- a = np.array(a, copy=False)
+ a = np.asarray(a)
flip = [slice(None)] * a.ndim
flip[axis] = slice(None, None, -1)
a = a[tuple(flip)] # if tie, pick index of rightmost tie
@@ -115,7 +115,7 @@ def move_rank(a, window, min_count=None, axis=-1):
def move_func(func, a, window, min_count=None, axis=-1, **kwargs):
"Generic moving window function implemented with a python loop."
- a = np.array(a, copy=False)
+ a = np.asarray(a)
if min_count is None:
mc = window
else:
@@ -226,7 +226,7 @@ def lastrank(a, axis=-1):
-0.5
"""
- a = np.array(a, copy=False)
+ a = np.asarray(a)
ndim = a.ndim
if a.size == 0:
# At least one dimension has length 0
diff --git a/bottleneck/slow/nonreduce_axis.py b/bottleneck/slow/nonreduce_axis.py
index f09dfa739..1dd67529a 100644
--- a/bottleneck/slow/nonreduce_axis.py
+++ b/bottleneck/slow/nonreduce_axis.py
@@ -15,7 +15,7 @@ def nanrankdata(a, axis=None):
def _rank(func1d, a, axis):
- a = np.array(a, copy=False)
+ a = np.asarray(a)
if axis is None:
a = a.ravel()
axis = 0
-1
View File
@@ -1,2 +1 @@
DIST cairocffi-1.7.0.tar.gz 87840 BLAKE2B f31a07c865e16fb5448451bb2a57c2f33017165d2c374a4ea60222a28dc7a9bfd9839a6014594c5e90cc8880773e85cbb29e5bcc5c32d0150b07274f25f81b94 SHA512 bfc0f388a6ea1885523d99ad0ccfd59fec89848ef053c240ea9e3e8aab3f3aed5dc343b74de5cc72fb8512d460e55c70ef99a4ae4705fb1dd92d654a4197d7a9
DIST cairocffi-1.7.1.tar.gz 88096 BLAKE2B 5bb9dfe0617b838c386d4da6536758fb4f10520e9ccf7e8d1610e5f67f6393ba101c6466f78a3916de518955b6c8cc5d907debbf595776bca8313b13e0ddc5f3 SHA512 1d0c069c0af4ba552312e7fc003461bf321725212888938cafee168574f8927ce7d6860c016ba972343e67cb59a588fc98c198c75ce3ee3d75aa77874364e190
@@ -1,51 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{10..12} pypy3 )
inherit distutils-r1 pypi virtualx
DESCRIPTION="CFFI-based drop-in replacement for Pycairo"
HOMEPAGE="
https://github.com/Kozea/cairocffi/
https://pypi.org/project/cairocffi/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86"
DEPEND="
>=dev-python/xcffib-0.3.2[${PYTHON_USEDEP}]
x11-libs/cairo:0=[X,xcb(+)]
x11-libs/gdk-pixbuf[jpeg]
"
RDEPEND="
${DEPEND}
$(python_gen_cond_dep '
>=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]
' 'python*')
"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
>=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}]
' 'python*')
test? (
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pikepdf[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
PATCHES=(
"${FILESDIR}"/${PN}-0.8.0-tests.patch
)
src_test() {
virtx distutils-r1_src_test
}
-1
View File
@@ -1,2 +1 @@
DIST cheetah3-3.3.1.gh.tar.gz 315007 BLAKE2B 627cb435db1cf274861a29b993f49457c1ba4147b6e1514b5d5961a2fd565c39ff9cae3bcd9665379c5206dc2cef98a6bf159781e664d75d87fa8c4244ec4e43 SHA512 057d3772390076157a0e09e6b5e60ad0ec3b1669aa62741bcfd314f846bba091884d361382d6399e73bce06aaf49366ee3cbeb040c6f5b3e00423eefd440c300
DIST cheetah3-3.3.3.gh.tar.gz 315249 BLAKE2B f5dc748c49adbddffb0339069f800583739bffce8085c3abb80080d14d051a334e6b7d1b8ced218218334cae6cc000877570f3ab7c1ef0d760de36bf956f9c2e SHA512 638ee6ca0d37b86cfa93f8fc0da4c259da639c3b107c8810201e4bed30ca4674b5e546abc1d8f716d1bba7d1c72d51f559894a90580fa02f1409f7a73a246001
-44
View File
@@ -1,44 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
MY_P=${P/_p/.post}
DESCRIPTION="Python-powered template engine and code generator"
HOMEPAGE="
https://cheetahtemplate.org/
https://github.com/CheetahTemplate3/Cheetah3/
https://pypi.org/project/Cheetah3/
"
SRC_URI="
https://github.com/CheetahTemplate3/Cheetah3/archive/${PV/_p/.post}.tar.gz
-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~loong ~ppc64 ~riscv x86"
RDEPEND="
dev-python/markdown[${PYTHON_USEDEP}]
"
BDEPEND="
${RDEPEND}
"
DOCS=( ANNOUNCE.rst README.rst TODO )
python_test() {
# the package can't handle TMPDIR with hyphens
# https://github.com/CheetahTemplate3/cheetah3/issues/53
local -x TMPDIR=/tmp
"${EPYTHON}" Cheetah/Tests/Test.py || die "Tests fail with ${EPYTHON}"
}
-1
View File
@@ -1,2 +1 @@
DIST elasticsearch-py-8.13.2.gh.tar.gz 1075234 BLAKE2B a13126b41f297db196b0ad22ff1da419e3472d42314984133380f0826d25a2e5ba5e0dcd0a9d571e8e27382eb53ceeadd32a4b6de312e63a3b192fd27829495d SHA512 c5f59eee672da292ca7f40e894a88c62bee3aabf35eb241c48f8f9a52c81e2348747e7d09d3b3323575407c8a072f510dffca2dce2caf9e420a9b40d5e4582fc
DIST elasticsearch-py-8.14.0.gh.tar.gz 1092912 BLAKE2B 4ee556bc475d63e33cec318936b2dbf8b280236bcdfe28bc90a4beb7e1d024b8d63180c29e42096cb32bf3da7c771532c57190d763651118603779f816e95656 SHA512 9e9821102659b4c877959e25c33e1b1942f6eabe62bb6de73cda4875c248b0f9285d948e535e9426ca42552f7aa3e75c459f991bfa574c1d8400d78486ee5493
@@ -1,83 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..12} )
inherit distutils-r1
MY_P="elasticsearch-py-${PV}"
DESCRIPTION="Official Elasticsearch client library for Python"
HOMEPAGE="
https://ela.st/es-python
https://github.com/elastic/elasticsearch-py/
https://pypi.org/project/elasticsearch/
"
SRC_URI="
https://github.com/elastic/elasticsearch-py/archive/v${PV}.tar.gz
-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}
LICENSE="Apache-2.0"
SLOT="0/$(ver_cut 1)"
KEYWORDS="amd64 arm64 ~x86"
RDEPEND="
<dev-python/aiohttp-4[${PYTHON_USEDEP}]
>=dev-python/aiohttp-3[${PYTHON_USEDEP}]
<dev-python/elastic-transport-9[${PYTHON_USEDEP}]
>=dev-python/elastic-transport-8.13[${PYTHON_USEDEP}]
>=dev-python/orjson-3[${PYTHON_USEDEP}]
<dev-python/requests-3[${PYTHON_USEDEP}]
>=dev-python/requests-2.4[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
${RDEPEND}
dev-python/mapbox-vector-tile[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/opentelemetry-api[${PYTHON_USEDEP}]
dev-python/opentelemetry-sdk[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
>=dev-python/pyyaml-5.4[${PYTHON_USEDEP}]
dev-python/unasync[${PYTHON_USEDEP}]
)
"
distutils_enable_sphinx docs/sphinx \
dev-python/sphinx-autodoc-typehints \
dev-python/sphinx-rtd-theme
distutils_enable_tests pytest
src_prepare() {
# https://github.com/elastic/elasticsearch-py/pull/2552/
sed -i -e '/float_/d' elasticsearch/serializer.py \
test_elasticsearch/test_serializer.py || die
distutils-r1_src_prepare
}
python_test() {
local EPYTEST_IGNORE=(
# REST api tests are a black hole for effort. It downloads the tests
# so its an ever moving target. It also requires effort to blacklist
# tests for apis which are license restricted.
"test_elasticsearch/test_server/test_rest_api_spec.py"
# Counting deprecation warnings from python is bound to fail even
# if all are fixed in this package. Not worth it.
"test_elasticsearch/test_client/test_deprecated_options.py"
# Running daemon for tests is finicky and upstream CI fails at it
# as well.
"test_elasticsearch/test_server/"
"test_elasticsearch/test_async/test_server/"
)
local -x TEST_WITH_OTEL=1
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest -o addopts= -p asyncio
}
-2
View File
@@ -1,3 +1 @@
DIST Genshi-0.7.7.tar.gz 267206 BLAKE2B 0bad4b26fbfda27572e78f87af6093c87d738ad6fdf2beea5e8b0b21b3f5245a4e239bbfbad63e71e73f6588e7cae97f2b3bc7295fa30ad7a203a7ceff7074c9 SHA512 b0a3dee68523292f0672a180c5f2cfbdf48205d82286359b9fac9f668cbc2806c649d1e158d6fb8ead5b1cc5cd44eefe9d1cd79077f96925b8d24dd8e746b40f
DIST Genshi-0.7.9.tar.gz 269399 BLAKE2B 0603f2b7d8829eb09939c003485e1a9ef9c20ef5dce6452bbb1d667d4b42f4d3d24f10225de9a0d848b760cab30decae6b71768628540d7ae65a14df9c0fca19 SHA512 2e813e4374970e764ce1d7f3cbe6fd3557fb0bd178393f18c62ebe65b6acad0b03b0eaa16b218d337776808b7f25c2499984834ca2e3cd96009998675580862b
DIST python-genshi-use-default-test-loader.patch 13491 BLAKE2B 1651cdb3130fb3fb4c7ba9ce9ea150710c7a60f9d31ab00a0a4cc7376fd833cff28b30530e0ca7ade5d036279d88c7e94130b8ff7facf826a27421a0568b483c SHA512 1bc94efc1721faae870f9201781bb3d380ed03144bb4a2d7ea058cb15ee1c0b948989597c9e665b085ebe9ef1cd116b2a2233d2ab19706a87fd42f25ba208560
-57
View File
@@ -1,57 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
PYPI_PN=${PN^}
PYTHON_COMPAT=( python3_{10..13} pypy3 )
inherit distutils-r1 pypi
DESCRIPTION="Python toolkit for stream-based generation of output for the web"
HOMEPAGE="
https://genshi.edgewall.org/
https://github.com/edgewall/genshi/
https://pypi.org/project/Genshi/
"
SRC_URI+="
https://src.fedoraproject.org/rpms/python-genshi/raw/rawhide/f/python-genshi-use-default-test-loader.patch
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
IUSE="doc examples test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-python/six[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
${RDEPEND}
)
"
PATCHES=(
# https://github.com/edgewall/genshi/issues/72
"${DISTDIR}/python-genshi-use-default-test-loader.patch"
)
python_test() {
"${EPYTHON}" -m unittest -v genshi.tests.suite || die
}
python_install_all() {
if use doc; then
dodoc doc/*.txt
fi
if use examples; then
dodoc -r examples
docompress -x /usr/share/doc/${PF}/examples
fi
distutils-r1_python_install_all
}
@@ -1,4 +1,2 @@
DIST google-api-python-client-2.132.0.tar.gz 11256536 BLAKE2B 4a046c03a50b3922b94e6a07bfce974851752542a69300d544b7c8439c4ad54fc9fd2d5fdf84656801ebe9bf5ad35588d39dc3603537d67db93ea995b50651ff SHA512 ecd6be9009f979447ee7d29dc05af2b25c500ca17a8d88ae6660ac0a72f6bb8237f3224dda63b22378a38c6cf7fab914bc6372351d95e691c3b16f248be04a64
DIST google-api-python-client-2.134.0.tar.gz 11393129 BLAKE2B f5339dfa42f621dbdd145295a2c2710ef9e6e2af543ff5b9643bea884f9e0678065999d60cbf150a56e7b0d8c283588c53461c86eeb491a6ba2ad0c553a48344 SHA512 09a137ee3e3d8f38129fc02d8ffed8934daf6cfcd13904692f44038332da026b30d952048148c8c4fe5c4fed3347196574a860f58e1943312d19f6f03a01ab36
DIST google-api-python-client-2.135.0.tar.gz 11420200 BLAKE2B abf9681b4aab9f001a790732d839e530894e531bca77a0cb0e850572c5a4d387ed4eb0134ede75dde5acfcf9944874c517c1624a7b7d56f65e9f43030282659b SHA512 9a4d344a0dc07e5570e35c85481e6ec2d7c5cd36608753e33b2be671562f3dc37462d1dd5ff850a883641a1d040960ac7929bd47e2678b1ce3691849eb181e6c
DIST google-api-python-client-2.136.0.tar.gz 11443821 BLAKE2B ee313274ec25e1262ad54b800cf524e58400886876d9133b7c6e1d9668e81bce7b73f96511679bcc2a0f565ca9b89c7d6bc7087213e53575542c5e0b5e566ff9 SHA512 e5e8302c71953f0971d3b3159d7689cd76520efa4cee9ca541e78a5fcb14387506963cb20da06ac5760af814ece5ded0bc3942381aa9e96fd6c620eb8933a6ed
@@ -1,51 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 pypi
DESCRIPTION="Google API Client for Python"
HOMEPAGE="
https://github.com/googleapis/google-api-python-client/
https://pypi.org/project/google-api-python-client/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm64 x86"
RDEPEND="
>=dev-python/httplib2-0.15[${PYTHON_USEDEP}]
<dev-python/httplib2-1[${PYTHON_USEDEP}]
>=dev-python/google-api-core-2.3.1[${PYTHON_USEDEP}]
>=dev-python/google-auth-1.35.0[${PYTHON_USEDEP}]
>=dev-python/google-auth-httplib2-0.1.0[${PYTHON_USEDEP}]
>=dev-python/uritemplate-3.0.0[${PYTHON_USEDEP}]
<dev-python/uritemplate-5[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
dev-python/parameterized[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_test() {
local EPYTEST_DESELECT=(
# require Internet access (and credentials)
tests/test_discovery.py::DiscoveryErrors::test_credentials_and_credentials_file_mutually_exclusive
tests/test_discovery.py::DiscoveryFromDocument::test_api_endpoint_override_from_client_options_mapping_object
tests/test_discovery.py::Universe::test_client_options_universe_configured_with_mtls
tests/test_discovery.py::Universe::test_universe_env_var_configured_with_mtls
)
epytest tests
}
@@ -1,51 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 pypi
DESCRIPTION="Google API Client for Python"
HOMEPAGE="
https://github.com/googleapis/google-api-python-client/
https://pypi.org/project/google-api-python-client/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RDEPEND="
>=dev-python/httplib2-0.15[${PYTHON_USEDEP}]
<dev-python/httplib2-1[${PYTHON_USEDEP}]
>=dev-python/google-api-core-2.3.1[${PYTHON_USEDEP}]
>=dev-python/google-auth-1.35.0[${PYTHON_USEDEP}]
>=dev-python/google-auth-httplib2-0.1.0[${PYTHON_USEDEP}]
>=dev-python/uritemplate-3.0.0[${PYTHON_USEDEP}]
<dev-python/uritemplate-5[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/mock[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
dev-python/parameterized[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_test() {
local EPYTEST_DESELECT=(
# require Internet access (and credentials)
tests/test_discovery.py::DiscoveryErrors::test_credentials_and_credentials_file_mutually_exclusive
tests/test_discovery.py::DiscoveryFromDocument::test_api_endpoint_override_from_client_options_mapping_object
tests/test_discovery.py::Universe::test_client_options_universe_configured_with_mtls
tests/test_discovery.py::Universe::test_universe_env_var_configured_with_mtls
)
epytest tests
}
-2
View File
@@ -1,3 +1 @@
DIST jsonpickle-3.0.4.gh.tar.gz 260847 BLAKE2B ba990a59276463b66401cc9fdad2c91dfd18a172fa1cb2f0b89cbeb1a280360f6e1d5bf7cc3ec94069b1d05e4eb11d3fc52a594542f31ead220622aa01e0df99 SHA512 e6ad7ae30cc4d56323b612fcf599109828fcf76acfba266a1bed850a633603edc8829f29d8981659460a9941531d6735375a03775c9d7bd51c210edbf7414b1c
DIST jsonpickle-3.2.1.gh.tar.gz 319730 BLAKE2B 5309e5d22253844119ce97eecbea3070a69ea20cfdf56fe9021fca470603cddd0ba2e7af1e86bd4830f33b59cf3ab4dd426ae4d0b1dee30af51f8219de68698e SHA512 b3e53b88b5d26178cc0bf6c4da2688c3187adcfb1800bc6a19bfc4ca86eb6f0fd1a0ab899598bf3e75adf20ef930d555756e57de7bf41a2c0c446facf18d1523
DIST jsonpickle-3.2.2.gh.tar.gz 321994 BLAKE2B 1e126e0f1f336e5b64631a874c379b39665b324ccbc4c87d7becba302568f61df2d576732ea9165514791e6b2dd122e7008d43090d634d4d30fdde5c7d0600f9 SHA512 20e28885e637f8dba5965e22dc9960acb7c10fb25d78f2ba9bf6fb94d55a968e2245d577dbe19a32153e12af2ffa7dad6ae3e1897c426c25fa544796606736a6
@@ -1,157 +0,0 @@
From 0ab3cf0ffcdb364a8a75e71acfb267e5aaabc0a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Mon, 10 Jun 2024 03:55:47 +0200
Subject: [PATCH 1/2] Fix data types in tests for NumPy 2
Fix a number of test compatibility issues with NumPy 2. That is:
- replace `np.float_` with `np.float64`,
- replace `np.complex_` with `np.complex128`,
- remove `np.unicode_` as equivalent to `np.str_`.
The LHS types are also aliases to the RHS types in NumPy 1.x, so this
is NFC on NumPy 1.x. These aliases were removed in 2.x, so the code
needs to be updated for tests to pass on NumPy 2.x.
---
tests/numpy_test.py | 7 ++-----
tests/pandas_test.py | 13 +++++--------
2 files changed, 7 insertions(+), 13 deletions(-)
diff --git a/tests/numpy_test.py b/tests/numpy_test.py
index e271725..dd50d5e 100644
--- a/tests/numpy_test.py
+++ b/tests/numpy_test.py
@@ -32,9 +32,7 @@ def test_dtype_roundtrip():
dtypes = [
np.int_,
np.int32,
- np.float_,
np.float64,
- np.complex_,
np.complex128,
np.str_,
np.object_,
@@ -86,15 +84,14 @@ def test_generic_roundtrip():
values = [
np.int_(1),
np.int32(-2),
- np.float_(2.5),
+ np.float64(2.5),
np.nan,
-np.inf,
np.inf,
np.datetime64('2014-01-01'),
np.str_('foo'),
- np.unicode_('bar'),
np.object_({'a': 'b'}),
- np.complex_(1 - 2j),
+ np.complex128(1 - 2j),
]
for value in values:
decoded = roundtrip(value)
diff --git a/tests/pandas_test.py b/tests/pandas_test.py
index 532563f..414bd65 100644
--- a/tests/pandas_test.py
+++ b/tests/pandas_test.py
@@ -34,14 +34,13 @@ def test_series_roundtrip():
ser = pd.Series(
{
'an_int': np.int_(1),
- 'a_float': np.float_(2.5),
+ 'a_float': np.float64(2.5),
'a_nan': np.nan,
'a_minus_inf': -np.inf,
'an_inf': np.inf,
'a_str': np.str_('foo'),
- 'a_unicode': np.unicode_('bar'),
'date': np.datetime64('2014-01-01'),
- 'complex': np.complex_(1 - 2j),
+ 'complex': np.complex128(1 - 2j),
# TODO: the following dtypes are not currently supported.
# 'object': np.object_({'a': 'b'}),
}
@@ -54,14 +53,13 @@ def test_dataframe_roundtrip():
df = pd.DataFrame(
{
'an_int': np.int_([1, 2, 3]),
- 'a_float': np.float_([2.5, 3.5, 4.5]),
+ 'a_float': np.float64([2.5, 3.5, 4.5]),
'a_nan': np.array([np.nan] * 3),
'a_minus_inf': np.array([-np.inf] * 3),
'an_inf': np.array([np.inf] * 3),
'a_str': np.str_('foo'),
- 'a_unicode': np.unicode_('bar'),
'date': np.array([np.datetime64('2014-01-01')] * 3, dtype="datetime64[s]"),
- 'complex': np.complex_([1 - 2j, 2 - 1.2j, 3 - 1.3j]),
+ 'complex': np.complex128([1 - 2j, 2 - 1.2j, 3 - 1.3j]),
# TODO: the following dtypes are not currently supported.
# 'object': np.object_([{'a': 'b'}]*3),
}
@@ -76,12 +74,11 @@ def test_multindex_dataframe_roundtrip():
'idx_lvl0': ['a', 'b', 'c'],
'idx_lvl1': np.int_([1, 1, 2]),
'an_int': np.int_([1, 2, 3]),
- 'a_float': np.float_([2.5, 3.5, 4.5]),
+ 'a_float': np.float64([2.5, 3.5, 4.5]),
'a_nan': np.array([np.nan] * 3),
'a_minus_inf': np.array([-np.inf] * 3),
'an_inf': np.array([np.inf] * 3),
'a_str': np.str_('foo'),
- 'a_unicode': np.unicode_('bar'),
}
)
df = df.set_index(['idx_lvl0', 'idx_lvl1'])
From 8bc2bdd42bc111d90edbcef8005640d5a51627bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Mon, 10 Jun 2024 04:02:17 +0200
Subject: [PATCH 2/2] Fix `newbyteorder()` use for NumPy 2.x
Replace the `arr.newbyteorder()` use with:
arr.view(arr.dtype.newbyteorder())
as suggested in the exception that's raised when the tests are run
in NumPy 2.x. With this change, the code works both with NumPy 1.x
and NumPy 2.x.
---
tests/numpy_test.py | 24 ++++++++++++++----------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/tests/numpy_test.py b/tests/numpy_test.py
index dd50d5e..2e6725b 100644
--- a/tests/numpy_test.py
+++ b/tests/numpy_test.py
@@ -306,18 +306,22 @@ def test_immutable():
def test_byteorder():
"""Test the byteorder for text and binary encodings"""
# small arr is stored as text
- a = np.arange(10).newbyteorder()
- b = a[:].newbyteorder()
- _a, _b = roundtrip([a, b])
- npt.assert_array_equal(a, _a)
- npt.assert_array_equal(b, _b)
+ a = np.arange(10)
+ av = a.view(a.dtype.newbyteorder())
+ b = a[:]
+ bv = b.view(b.dtype.newbyteorder())
+ _av, _bv = roundtrip([av, bv])
+ npt.assert_array_equal(av, _av)
+ npt.assert_array_equal(bv, _bv)
# bigger arr is stored as binary
- a = np.arange(100).newbyteorder()
- b = a[:].newbyteorder()
- _a, _b = roundtrip([a, b])
- npt.assert_array_equal(a, _a)
- npt.assert_array_equal(b, _b)
+ a = np.arange(100)
+ av = a.view(a.dtype.newbyteorder())
+ b = a[:]
+ bv = b.view(b.dtype.newbyteorder())
+ _av, _bv = roundtrip([av, bv])
+ npt.assert_array_equal(av, _av)
+ npt.assert_array_equal(bv, _bv)
def test_zero_dimensional_array():
@@ -1,67 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 optfeature
DESCRIPTION="Python library for serializing any arbitrary object graph into JSON"
HOMEPAGE="
https://github.com/jsonpickle/jsonpickle/
https://pypi.org/project/jsonpickle/
"
SRC_URI="
https://github.com/jsonpickle/jsonpickle/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm64 ~riscv x86 ~amd64-linux ~x86-linux"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
dev-python/feedparser[${PYTHON_USEDEP}]
dev-python/gmpy[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
dev-python/simplejson[${PYTHON_USEDEP}]
dev-python/sqlalchemy[${PYTHON_USEDEP}]
dev-python/ujson[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_prepare_all() {
sed -i -e 's:--cov::' pytest.ini || die
distutils-r1_python_prepare_all
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
}
python_test() {
local EPYTEST_IGNORE=(
# unpackaged bson dependency
tests/bson_test.py
)
if ! has_version "dev-python/gmpy[${PYTHON_USEDEP}]"; then
EPYTEST_IGNORE+=( jsonpickle/ext/gmpy.py )
fi
if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then
EPYTEST_IGNORE+=( jsonpickle/ext/pandas.py )
fi
epytest
}
pkg_postinst() {
# Unpackaged optional backends: yajl, demjson
optfeature "encoding numpy-based data" dev-python/numpy
optfeature "encoding pandas objects" dev-python/pandas
optfeature "fast JSON backend" dev-python/simplejson
}
@@ -1,73 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 optfeature
DESCRIPTION="Python library for serializing any arbitrary object graph into JSON"
HOMEPAGE="
https://github.com/jsonpickle/jsonpickle/
https://pypi.org/project/jsonpickle/
"
SRC_URI="
https://github.com/jsonpickle/jsonpickle/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
dev-python/feedparser[${PYTHON_USEDEP}]
dev-python/gmpy[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pandas[${PYTHON_USEDEP}]
dev-python/simplejson[${PYTHON_USEDEP}]
dev-python/sqlalchemy[${PYTHON_USEDEP}]
dev-python/ujson[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_prepare_all() {
local PATCHES=(
# https://github.com/jsonpickle/jsonpickle/pull/512
"${FILESDIR}/${P}-numpy-2.patch"
)
distutils-r1_python_prepare_all
sed -i -e 's:--cov::' pytest.ini || die
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
}
python_test() {
local EPYTEST_IGNORE=(
# unpackaged bson dependency
tests/bson_test.py
)
if ! has_version "dev-python/gmpy[${PYTHON_USEDEP}]"; then
EPYTEST_IGNORE+=( jsonpickle/ext/gmpy.py )
fi
if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then
EPYTEST_IGNORE+=( jsonpickle/ext/pandas.py )
fi
epytest
}
pkg_postinst() {
# Unpackaged optional backends: yajl, demjson
optfeature "encoding numpy-based data" dev-python/numpy
optfeature "encoding pandas objects" dev-python/pandas
optfeature "fast JSON backend" dev-python/simplejson
}
-2
View File
@@ -1,4 +1,2 @@
DIST miniupnpc-2.2.7.tar.gz 104258 BLAKE2B 5681c1747c8e330442a0ad46d673e1739283bfc23571cb2225abf82326caa7da979911b3182cab2e3eea49140b90619f4e00bb5b1e2f0cd6067c28017cf87016 SHA512 d24e653c2f7bfed4485342c5ec8d18b4dd4c3430975b5fae392d3534f38bb3fb59e6638e76d57847f49045e22f3afd6cac128d7d9d10ef05bd6ad24ef38303b6
DIST miniupnpc-2.2.7.tar.gz.sig 543 BLAKE2B 6649e5866afd13034b05a9d771c25c419e85631ca17ed7457e5811aee0ba8c38b0ad34033caa5b611cde21a63251e902e3f24cc4748e52a4a379ef075bf59dc5 SHA512 188837275b20c61c05babac916bff86178774030dbc191ecd0e5314c6e9b6dbb627680b512c554a8b27a020bd7503b141be26a134e0ed7e2cc56c7e2c01d9e81
DIST miniupnpc-2.2.8.tar.gz 104603 BLAKE2B eae4d97bdf8c494ea6744edfeb870f9d92df8468d23f974e0e44e735fc7c8925189ea58f60a71c37315aebff1269ae69e9413cdf80dc292c4b90df5f12bf58a4 SHA512 526c9df1485302d4c9c78062fb058cfd433463f6e7a9f4025a9f5228aef41ee61a4b9e7a76b6cfa8779b91cc3c663846a997dc1470902d7108b129155e6a3360
DIST miniupnpc-2.2.8.tar.gz.sig 543 BLAKE2B b4d056972fc7e46c1e41a658d301db8e9a0d3b99af2220c264d06267b4e8ae45847e2bf2cd6583fded67f12c2e0a3c833ba7e38d9c05b5a0cc363e0c1fc8feae SHA512 b5eec0d24a84183021cd16bfd6ecedda587dee0bbb017fe6d107e8c2815ef90cf5f904c6fb9aa32e2e4d5f0b63de8566814c9a0d921b338b26b60ea35c23ecae
@@ -1,51 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} pypy3 )
inherit distutils-r1 verify-sig
MY_P=${P/python-}
DESCRIPTION="Python bindings for UPnP client library"
HOMEPAGE="
http://miniupnp.free.fr/
https://miniupnp.tuxfamily.org/
https://github.com/miniupnp/miniupnp/
"
SRC_URI="
https://miniupnp.tuxfamily.org/files/${MY_P}.tar.gz
verify-sig? (
https://miniupnp.tuxfamily.org/files/${MY_P}.tar.gz.sig
)
"
S=${WORKDIR}/${MY_P}
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
DEPEND="
>=net-libs/miniupnpc-${PV}:0=
"
RDEPEND="
${DEPEND}
"
BDEPEND="
verify-sig? ( sec-keys/openpgp-keys-miniupnp )
"
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/miniupnp.asc
PATCHES=(
"${FILESDIR}"/miniupnpc-2.2.3-shared-lib.patch
)
# DOCS are installed by net-libs/miniupnpc.
DOCS=()
# Example test command:
# python -c 'import miniupnpc; u = miniupnpc.UPnP(); u.discover(); u.selectigd(); print(u.externalipaddress())'
-1
View File
@@ -1,2 +1 @@
DIST openapi_core-0.19.1.tar.gz 107802 BLAKE2B c8cd318ab6a88272e45fbff16df7e0cef7d8bab6c7cef8d965443fa0ad7439182bd9639f8a912ad913eb3d7727c4aeb49d576a8721aac1d0ba9423dd344da44d SHA512 861e3793303ec89265be3a0846ad702e321ebc8536497d146ef10a4c9ab54900ad35ee9e90ef42e1f0856da8c0e746471e9820b0ac3e149adaa0b951a66b382f
DIST openapi_core-0.19.2.tar.gz 108121 BLAKE2B 0873ba33c0270babb3c3e626e942fd22fc066f8ef408c6f1cadab8140fdb6284d21a1cb5ed767c7f0f370112a1bb263ac50b340cccfe1cba6da1a0f15a73bbde SHA512 cab2343c61bbb8de048b5e3a53c2d753468f6707f3b4b40ddfee7c3ea6eb0f3beff0aebcad632200a5a4b08e93c620aceda659297756d4f587d11039ede0eefa
@@ -1,71 +0,0 @@
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( pypy3 python3_{10..12} )
inherit distutils-r1 pypi
DESCRIPTION="Client-side and server-side support for the OpenAPI Specification v3"
HOMEPAGE="
https://github.com/python-openapi/openapi-core/
https://pypi.org/project/openapi-core/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv x86"
RDEPEND="
<dev-python/asgiref-4[${PYTHON_USEDEP}]
>=dev-python/asgiref-3.6.0[${PYTHON_USEDEP}]
dev-python/isodate[${PYTHON_USEDEP}]
<dev-python/jsonschema-5[${PYTHON_USEDEP}]
>=dev-python/jsonschema-4.17.3[${PYTHON_USEDEP}]
<dev-python/jsonschema-path-0.4[${PYTHON_USEDEP}]
>=dev-python/jsonschema-path-0.3.1[${PYTHON_USEDEP}]
dev-python/more-itertools[${PYTHON_USEDEP}]
dev-python/parse[${PYTHON_USEDEP}]
<dev-python/openapi-schema-validator-0.7[${PYTHON_USEDEP}]
>=dev-python/openapi-schema-validator-0.6.0[${PYTHON_USEDEP}]
<dev-python/openapi-spec-validator-0.8[${PYTHON_USEDEP}]
>=dev-python/openapi-spec-validator-0.7.1[${PYTHON_USEDEP}]
dev-python/werkzeug[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
>=dev-python/aiohttp-3.8.4[${PYTHON_USEDEP}]
>=dev-python/aioitertools-0.11.0[${PYTHON_USEDEP}]
dev-python/flask[${PYTHON_USEDEP}]
>=dev-python/httpx-0.24.0[${PYTHON_USEDEP}]
>=dev-python/pytest-aiohttp-1.0.4[${PYTHON_USEDEP}]
dev-python/responses[${PYTHON_USEDEP}]
>=dev-python/starlette-0.26.1[${PYTHON_USEDEP}]
dev-python/strict-rfc3339[${PYTHON_USEDEP}]
dev-python/webob[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
EPYTEST_IGNORE=(
# missing dependendencies
tests/integration/contrib/falcon
tests/integration/contrib/fastapi
# TODO: these tests fail to collect
tests/integration/validation/test_security_override.py
tests/integration/validation/test_read_only_write_only.py
# unhappy about modern django
tests/integration/contrib/django/test_django_project.py
tests/unit/contrib/django/test_django.py
)
src_prepare() {
sed -i -e '/--cov/d' pyproject.toml || die
distutils-r1_src_prepare
}
-2
View File
@@ -1,3 +1 @@
DIST puremagic-1.23.gh.tar.gz 306804 BLAKE2B b9da78fc20ee77dac85065f85a8770273ece5f97c372c42e274d272c3c389cca2ed1433774f96d1b55dff01ff542c63ad5093befa5c3530b052de32ffa142a77 SHA512 9bdb6ae0158ecf5d87e82de112ce9d988ac2b4a29d06dd06cba9c4675fe11d270c7cab611f8cb8ffb5ccd622be66fe43b441f203d27e9c4c9feb55bb81036fce
DIST puremagic-1.24.gh.tar.gz 309763 BLAKE2B 7d2920d2028bb8db9f87f569ae57a00436289e2e6661a07da39d2cdf96975d56c5fbe6569a2909127fef1a1e8c51514ae5f1730df85e620a8cd84abfa8d0dd03 SHA512 06ef1008788c2941df9b3237d41df9908bf172e22f66e478470ab66d3cefd0c8d598f8a95df285bfde58477a98d4da557c0fef7a691b30bcf3d82d76067c518d
DIST puremagic-1.25.gh.tar.gz 309788 BLAKE2B cc24e10ef59ce6299e7fb90b12b4d379d320d5795d475f9509301a050591c3404499227a64d6ed8395c8ab7f424561895966a3fe5dd1f90154fdb8be50fcab51 SHA512 7b9a8af827537ed9af38b80422744c7ee8b48b95f3344a79b6641cc7d55082160f20884659846a608d04d040acb06b0273fb8b51e5b92db14f92ff6d576c0e0d
@@ -1,32 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1
DESCRIPTION="Pure python implementation of magic file detection"
HOMEPAGE="
https://github.com/cdgriffith/puremagic/
https://pypi.org/project/puremagic/
"
SRC_URI="
https://github.com/cdgriffith/${PN}/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~x86"
DOCS=( CHANGELOG.md README.rst )
distutils_enable_tests pytest
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}
@@ -1,32 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1
DESCRIPTION="Pure python implementation of magic file detection"
HOMEPAGE="
https://github.com/cdgriffith/puremagic/
https://pypi.org/project/puremagic/
"
SRC_URI="
https://github.com/cdgriffith/${PN}/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DOCS=( CHANGELOG.md README.rst )
distutils_enable_tests pytest
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}
-2
View File
@@ -1,4 +1,2 @@
DIST selenium-4.21.0.tar.gz 9238881 BLAKE2B 6aadfb383aabb730dd9a39dc526a7b109d640997b1ba5e486687c4e3f056a6dee624c88ed437b40c6e63689a533a5990e14e0d57afe2ed927bf9f3e4a1573266 SHA512 e5486a411aeaffb26be2f50a874c622bcd6d004cb821444c580ef5fc3e74fbc0575d00ced5f4e57b3bf75e0920eb835a423e6e8d8cf354c729d3036bfb170dec
DIST selenium-4.22.0.tar.gz 9242392 BLAKE2B 15197221a53c597b412f805eed7f29f4c34a9d0596a069ea5a6df540b93c013815a59fe1730e8493f5ae854cbc03d5a6647eb57d825ecc68ad0b31949448acaa SHA512 a25c892495ed613c2cd96ab971f46cc101416a4928cffceaa9891c759a41d51df392999495d442a21b459d83a1b287c64c2cd5405b82e16464b56fcc75b2c595
DIST selenium-selenium-4.21.0.gh.tar.gz 77070811 BLAKE2B b9aacaf5f6091f49c4f0a6c7dca3fb5791297af8e1a8b6fa6b8e6d77fa5249d9b3c74d6c73a5aa9f443fefc3a613e0b6a12ced1f400d93c99a43b5614a6edda8 SHA512 15f25efc893fd57ef0ca21e3598c1ae976043fd8000275ff9bed117ff0c9e9c402ed1bc3fff119a511336b0e26343c6e36450b3ef49cad2dda3b1cea039ec6a7
DIST selenium-selenium-4.22.0.gh.tar.gz 77094998 BLAKE2B 1d74be914debec94e3b9fe41ce40e7432426c7f30a848c63ad82e616fc3dd7dce8e544c33a90e28ca268988b9035aabe41805277085095cc1c65bd38e09117e5 SHA512 f71721b614fa3e346a75ca2391fb03067520d746e1433a75ba896eb6bbe621064bcab7d50337989ccb60d13c493e2df2b3b1bd73cc8dcaf3b62dc4f4ebfaa086
@@ -1,66 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_TESTED=( python3_{10..12} pypy3 )
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_13 )
inherit distutils-r1 pypi
# upstream sometimes tags it as ${P}, sometimes as ${P}-python, sigh
TEST_TAG=${P}
TEST_P=selenium-${TEST_TAG}
DESCRIPTION="Python language binding for Selenium Remote Control"
HOMEPAGE="
https://www.seleniumhq.org/
https://github.com/SeleniumHQ/selenium/tree/trunk/py/
https://pypi.org/project/selenium/
"
SRC_URI+="
test? (
https://github.com/SeleniumHQ/selenium/archive/${TEST_TAG}.tar.gz
-> ${TEST_P}.gh.tar.gz
)
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv ~s390 sparc x86"
RDEPEND="
>=dev-python/certifi-2021.10.8[${PYTHON_USEDEP}]
<dev-python/trio-1[${PYTHON_USEDEP}]
>=dev-python/trio-0.17[${PYTHON_USEDEP}]
<dev-python/trio-websocket-1[${PYTHON_USEDEP}]
>=dev-python/trio-websocket-0.9[${PYTHON_USEDEP}]
<dev-python/typing-extensions-5[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.9[${PYTHON_USEDEP}]
<dev-python/urllib3-3[${PYTHON_USEDEP}]
>=dev-python/urllib3-1.26[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/pytest-mock[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_test() {
local EPYTEST_DESELECT=(
# TODO: we may need extra setup or deps
test/selenium
# expects vanilla certifi
test/unit/selenium/webdriver/remote/remote_connection_tests.py::test_get_connection_manager_for_certs_and_timeout
)
cd "${WORKDIR}/${TEST_P}/py" || die
rm -rf selenium || die
# https://github.com/SeleniumHQ/selenium/blob/selenium-4.8.2-python/py/test/runner/run_pytest.py#L20-L24
# seriously?
epytest -o "python_files=*_tests.py test_*.py"
}
-1
View File
@@ -1,2 +1 @@
DIST subprocess-tee-0.4.1.tar.gz 13599 BLAKE2B 779a8b5381155e8d524b6715ab9cc37f8e55565dd378a2d256648d56f018dc71860b0db2a50572a5e03fab7d2de5cd691be53c49c1aa79e756b4eb8a8d5878a5 SHA512 683813096c4bb78a4263075ba8590a926134ec92db5e2e72ed98ab1db9e231768adc15bb4273ba138f9a1b2a14ae4050d0b6acc76d483d0f3530f376ce8d9eee
DIST subprocess_tee-0.4.2.tar.gz 14951 BLAKE2B b94a8adc779bfbfd17046c4c85c9fb4020a0ca4de11735ec672a90e3be93d09d5f2ec60184e12bce86864b6ef22fedd0927dbb26267cb763d197c54bb4f342ed SHA512 acb0103b8a9ba6288e42148062e82b37b625f5c518e195c4d6e32efd2d5d9841ac6f2c2b240d223e7cdecc643daaa3d86c63a6bc34ca7b48e187cbf968e5dae5
@@ -1,45 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 pypi
DESCRIPTION="subprocess.run replacement with tee(1)-like output"
HOMEPAGE="
https://github.com/pycontribs/subprocess-tee/
https://pypi.org/project/subprocess-tee/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~riscv"
IUSE="test-full"
REQUIRED_USE="test-full? ( test )"
# ansible-molecule is invoked as an executable so no need for PYTHON_USEDEP
BDEPEND="
>=dev-python/setuptools-scm-7.0.0[${PYTHON_USEDEP}]
test? (
dev-python/enrich[${PYTHON_USEDEP}]
test-full? ( app-admin/ansible-molecule )
)
"
distutils_enable_tests pytest
python_test() {
local EPYTEST_DESELECT=()
if ! use test-full; then
EPYTEST_DESELECT+=(
test/test_func.py::test_molecule
)
fi
epytest
}
-1
View File
@@ -1,2 +1 @@
DIST tlsh-4.8.2.gh.tar.gz 3345458 BLAKE2B 27d5eece16bb36225b9ae8b3d3a9d055a0f214fffae08a58c39211c3d918dd842497315a62237b291ee1055dfadad78826bbd24f7b9d88f510e9a31f74654039 SHA512 5355c7734f5356a3a7a31ccc078254835871fc0369f1889a34131a0f810735201c68f674eb18e975b6a03a32e5c284899ca9ffdc1f583e42192188c172d2aad0
DIST tlsh-4.8.2.tar.gz 3345458 BLAKE2B 27d5eece16bb36225b9ae8b3d3a9d055a0f214fffae08a58c39211c3d918dd842497315a62237b291ee1055dfadad78826bbd24f7b9d88f510e9a31f74654039 SHA512 5355c7734f5356a3a7a31ccc078254835871fc0369f1889a34131a0f810735201c68f674eb18e975b6a03a32e5c284899ca9ffdc1f583e42192188c172d2aad0
-34
View File
@@ -1,34 +0,0 @@
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_EXT=1
inherit distutils-r1
DESCRIPTION="Fuzzy matching library - C++ extension for Python"
HOMEPAGE="https://pypi.org/project/python-tlsh/"
SRC_URI="https://github.com/trendmicro/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
S=${WORKDIR}/${P}/py_ext
LICENSE="|| ( Apache-2.0 BSD )"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~ia64 ~ppc64 x86"
DEPEND="dev-libs/tlsh"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-setup-sources.patch
)
src_prepare() {
distutils-r1_src_prepare
sed -i -e 's:#include "tlsh.h":#include <tlsh/tlsh.h>:' tlshmodule.cpp || die
}
python_test() {
../Testing/python_test.sh "${EPYTHON}" || die
}
-1
View File
@@ -1,2 +1 @@
DIST weasyprint-62.2.tar.gz 477895 BLAKE2B 918852d2eb9fd1b1e29101927e6251d827dbb7add8efa448dd7888c42bbe4079a514ff6d3d764ebb0cd96c0a1890f343b72575b1cc4e86959293a95054766d69 SHA512 d5254a39f6b5554e83fb2f8b88077a36d6f5a44f6d731b5f07c952429994f32a79c4d6c1187ed8ea9bdccada320c4347693bd4a21c61c6ad76f866161adfea81
DIST weasyprint-62.3.tar.gz 477181 BLAKE2B 144b531e36c0e66fb715d2b1db20affb489e90dc7545435e2d2d5e5e89a0b77e03b5f08166a5ac6f488ed5e2ff5d268408d94edaf66a3327895f719e9329ff60 SHA512 c563019aac075d0f55a153483719a5ea1dd4dced8bf281aeb1c5ccb65b8591e883ea09ca86757073b10a4dd9dc2d718df83ff5913cd5b9ed703fb5cf71bf7fbf
@@ -1,47 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 pypi
DESCRIPTION="Visual rendering engine for HTML and CSS that can export to PDF"
HOMEPAGE="
https://weasyprint.org/
https://github.com/Kozea/WeasyPrint/
https://pypi.org/project/weasyprint/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~x86"
RDEPEND="
>=dev-python/cffi-0.6:=[${PYTHON_USEDEP}]
>=dev-python/cssselect2-0.1[${PYTHON_USEDEP}]
>=dev-python/fonttools-4.0.0[${PYTHON_USEDEP}]
>=dev-python/html5lib-1.1[${PYTHON_USEDEP}]
>=dev-python/pillow-4.0.0[jpeg,jpeg2k,${PYTHON_USEDEP}]
>=dev-python/pydyf-0.10.0[${PYTHON_USEDEP}]
>=dev-python/pyphen-0.9.1[${PYTHON_USEDEP}]
>=dev-python/tinycss2-1.3.0[${PYTHON_USEDEP}]
media-fonts/dejavu
x11-libs/pango
"
BDEPEND="
test? (
>=app-text/ghostscript-gpl-9.56.1-r3
media-fonts/ahem
)
"
distutils_enable_tests pytest
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
}
+1
View File
@@ -1 +1,2 @@
DIST ebuildtester-42.tar.gz 22852 BLAKE2B 0e672c70ed854b3ee459010590da22811ed06e0397d45e51b8ad1a86047aa3fbd61321a7a9bdf1b583c3a66246030bb30dbef4dc8acc1e10bc3b141095e08ff4 SHA512 c2fe0dbca673c51d686cc19954928efb3ab1e82c4d8b8548d272f8fc60a5fffd1898fe33dc26feebc5bc73a71207f5f1615e18036b264e76a09b9dc6d94168fa
DIST ebuildtester-44.tar.gz 23982 BLAKE2B 96ebdaa1278068d83805b3d9b86b0191ded2028dc042c3ed5dbd22cee38831f07f8a69a3e9ba955d189b64b20b17669f2587ab259cf4f80b490a055bbbf98053 SHA512 a391821999fe3b559dddb6bda326e25d8b64e59330b87fe7f0453aefcf4145720d72bde562d791c147b7a9c3901a676a7184db3b8ce1c8b5f8923ca3473b09ef
@@ -14,8 +14,6 @@ HOMEPAGE="https://ebuildtester.readthedocs.io/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
app-containers/docker
@@ -23,12 +21,11 @@ RDEPEND="
sys-fs/fuse
"
DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
"
distutils_enable_sphinx docs dev-python/sphinx-rtd-theme
distutils_enable_tests unittest
src_install() {
+8
View File
@@ -4,6 +4,14 @@
<maintainer type="person">
<email>nicolasbock@gentoo.org</email>
</maintainer>
<maintainer type="person" proxied="yes">
<email>davidroman96@gmail.com</email>
<name>David Roman</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="pypi">ebuildtester</remote-id>
<remote-id type="github">nicolasbock/ebuildtester</remote-id>
-2
View File
@@ -1,3 +1 @@
DIST cfitsio-4.2.0.tar.gz 4356372 BLAKE2B 7f5e695a56105866b2457e0f1c2d74bfb2aa86bc53e4eeb39aa9b8e79b278e1184a610422bf43c341a9f3159a93b980bab1ec9084475189b08dfa080b59ec2af SHA512 41b51653370874f50a7a9fe7d5f61577a979ab9d146b8249afa407d3858cb4dce0581eba23093972b66f7d1042b9693b98ad9130ec67b3b44e94005e72d60853
DIST cfitsio-4.4.0.tar.gz 4278372 BLAKE2B 883a88b08ecddb756a479c361fd0dc4741cffd9b82f311d3cde3f4bede2ac3cb68c8597a5d1cc1350f14b2b145a628fa0ec90754284c0cd4ec1472cb370af01e SHA512 9358b1ed94fdc456cf8c0ddcb346c08f6bc97ee862c31366f3fae2d1be8d5278ffc79da01e41ceebf67ebc831f58bce3551e087c883bbf6b396133110d74b076
DIST cfitsio-4.4.1.tar.gz 4308170 BLAKE2B 237a2f899b39a01ed73e3e41b420874c7654faf1f93e3c3b3454d2001a472f64b1c44fa2c88598ea21e3a8d60a1dcb76aa3001fee1e4443f91bcd565ce605a4f SHA512 a49e4e09a2e5f6e0ae823a68f02b3f6285cf3e0af66c9a1f8dadcd2867fa83c17fd27e446e8e5af9374ff2dc7b7a18334663ce977a1691c4ed4ced14d33232b7
-87
View File
@@ -1,87 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit fortran-2 multilib-minimal
DESCRIPTION="C and Fortran library for manipulating FITS files"
HOMEPAGE="https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html"
SRC_URI="https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${P}.tar.gz"
LICENSE="ISC"
SLOT="0/10"
KEYWORDS="~alpha amd64 ~hppa ~ppc ppc64 ~riscv sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
IUSE="bzip2 curl threads tools cpu_flags_x86_sse2 cpu_flags_x86_ssse3"
BDEPEND="
app-alternatives/yacc
app-alternatives/lex
"
RDEPEND="
sys-libs/zlib[${MULTILIB_USEDEP}]
bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
curl? ( net-misc/curl[${MULTILIB_USEDEP}] )
"
# Bug #803350
DEPEND="${RDEPEND}
<dev-lang/cfortran-20110621
"
PATCHES=(
"${FILESDIR}/${PN}-3.490-ldflags.patch"
"${FILESDIR}/${P}-system-zlib.patch"
"${FILESDIR}/${P}-pkgconfig.patch"
)
pkg_setup() {
fortran-2_pkg_setup
}
src_prepare() {
default
# Avoid internal cfortran
mv cfortran.h cfortran.h.disabled || die
ln -s "${EPREFIX}"/usr/include/cfortran.h . || die
multilib_copy_sources
}
multilib_src_configure() {
local myeconfargs=(
$(use_with bzip2)
$(use_enable curl)
$(use_enable threads reentrant)
$(use_enable cpu_flags_x86_sse2 sse2)
$(use_enable cpu_flags_x86_ssse3 ssse3)
)
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
}
multilib_src_compile() {
default
if use tools ; then
emake utils
fi
}
multilib_src_install_all() {
dodoc README docs/changes.txt
dodoc docs/{quick,cfitsio,fpackguide}.pdf
dodoc docs/fitsio.pdf
docinto examples
dodoc cookbook.c testprog.c speed.c smem.c
dodoc cookbook.f testf77.f
# https://bugs.gentoo.org/855191
if use tools; then
rm "${ED}/usr/bin/smem" || die
fi
# Remove static libs
find "${ED}" -name '*.a' -delete || die
}
-77
View File
@@ -1,77 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake-multilib fortran-2
DESCRIPTION="C and Fortran library for manipulating FITS files"
HOMEPAGE="https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html"
SRC_URI="https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${P}.tar.gz"
LICENSE="ISC"
SLOT="0/10"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
IUSE="bzip2 curl test threads tools cpu_flags_x86_sse2 cpu_flags_x86_ssse3"
RESTRICT="!test? ( test )"
BDEPEND="
app-alternatives/yacc
app-alternatives/lex
"
RDEPEND="
sys-libs/zlib[${MULTILIB_USEDEP}]
bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
curl? ( net-misc/curl[${MULTILIB_USEDEP}] )
"
# Bug #803350
DEPEND="
${RDEPEND}
<dev-lang/cfortran-20110621
"
pkg_setup() {
fortran-2_pkg_setup
}
src_prepare() {
cmake_src_prepare
if ! grep -q 'CFITSIO_SONAME,10' configure.in; then
die "Update subslot!"
fi
# fix libdir & sync SONAME to configure.in
sed -e 's:lib/:${CMAKE_INSTALL_LIBDIR}/:' \
-e "/SOVERSION/s:VERSION :VERSION ${SLOT#0/}.:" \
-e "s:SOVERSION :SOVERSION ${SLOT#0/}.:" \
-i CMakeLists.txt || die
# Avoid internal cfortran
rm cfortran.h || die
}
multilib_src_configure() {
local libdir=$(get_libdir)
local mycmakeargs=(
# used for .pc file
-DLIB_SUFFIX=${libdir#lib}
-DUSE_BZIP2=$(usex bzip2)
-DUSE_CURL=$(usex curl)
-DUSE_PTHREADS=$(usex threads)
-DUSE_SSE2=$(usex cpu_flags_x86_sse2)
-DUSE_SSSE3=$(usex cpu_flags_x86_ssse3)
-DTESTS=$(usex test)
-DUTILS=$(multilib_native_usex tools)
)
cmake_src_configure
}
multilib_src_install_all() {
dodoc README.md docs/changes.txt docs/*.pdf
docinto examples
dodoc utilities/{cookbook.{c,f},testprog.c,testf77.f,speed.c,smem.c}
}
@@ -1,14 +0,0 @@
diff -Naur a/configure b/configure
--- a/configure 2018-05-09 21:16:00.000000000 +0200
+++ b/configure 2018-05-23 17:17:18.452431657 +0200
@@ -4215,8 +4215,8 @@
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
-LDFLAGS="$CFLAGS"
-LDFLAGS_BIN="$LDFLAGS"
+# LDFLAGS="$CFLAGS"
+LDFLAGS_BIN="$CFLAGS"
if test "x$FC" = "xnone" ; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: cfitsio: == Fortran compiler search has been overridden" >&5
@@ -1,19 +0,0 @@
diff -Naur a/cfitsio.pc.cmake b/cfitsio.pc.cmake
--- a/cfitsio.pc.cmake 2022-10-31 19:40:23.000000000 +0100
+++ b/cfitsio.pc.cmake 2022-12-14 23:35:53.572102437 +0100
@@ -1,12 +1,12 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@LIB_DESTINATION@
-includedir=@INCLUDE_INSTALL_DIR@
+includedir=@INCLUDE_INSTALL_DIR@/cfitsio
Name: cfitsio
Description: FITS File Subroutine Library
URL: https://heasarc.gsfc.nasa.gov/fitsio/
Version: @CFITSIO_MAJOR@.@CFITSIO_MINOR@.@CFITSIO_MICRO@
Libs: -L${libdir} -lcfitsio
-Libs.private: @PKG_CONFIG_LIBS@ -lm
-Cflags: -I${includedir}
+Libs.private: @PKG_CONFIG_LIBS@ -lm -z
+Cflags: -D_REENTRANT -I${includedir}
@@ -1,53 +0,0 @@
diff -Naur a/Makefile.in b/Makefile.in
--- a/Makefile.in 2022-10-31 19:40:23.000000000 +0100
+++ b/Makefile.in 2022-12-14 23:37:10.785099554 +0100
@@ -102,7 +102,7 @@
shared: lib${PACKAGE}${SHLIB_SUFFIX}
lib${PACKAGE}${SHLIB_SUFFIX}: ${OBJECTS}
- ${SHLIB_LD} ${LDFLAGS} -o ${CFITSIO_SHLIB} ${OBJECTS} -lm ${LIBS_CURL} ${LIBS}
+ ${SHLIB_LD} ${LDFLAGS} -o ${CFITSIO_SHLIB} ${OBJECTS} -lm -lz -lbz2 ${LIBS_CURL} ${LIBS}
@if [ "x${CFITSIO_SHLIB_SONAME}" != x ]; then \
ln -sf ${CFITSIO_SHLIB} ${CFITSIO_SHLIB_SONAME}; \
ln -sf ${CFITSIO_SHLIB_SONAME} $@; \
@@ -142,31 +142,31 @@
${CC} -c ${CFLAGS} ${CPPFLAGS} ${SSE_FLAGS} ${DEFS} $<
smem: smem.o lib${PACKAGE}.a ${OBJECTS}
- ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm
+ ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm -lz
testprog: testprog.o lib${PACKAGE}.a ${OBJECTS}
- ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm ${LIBS}
+ ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm -lz ${LIBS}
fpack: fpack.o fpackutil.o lib${PACKAGE}.a ${OBJECTS}
- ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o fpackutil.o -L. -l${PACKAGE} -lm ${LIBS}
+ ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o fpackutil.o -L. -l${PACKAGE} -lm -lz ${LIBS}
funpack: funpack.o fpackutil.o lib${PACKAGE}.a ${OBJECTS}
- ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o fpackutil.o -L. -l${PACKAGE} -lm ${LIBS}
+ ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o fpackutil.o -L. -l${PACKAGE} -lm -lz ${LIBS}
fitscopy: fitscopy.o lib${PACKAGE}.a ${OBJECTS}
- ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm ${LIBS}
+ ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm -lz ${LIBS}
speed: speed.o lib${PACKAGE}.a ${OBJECTS}
- ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm ${LIBS}
+ ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm -lz ${LIBS}
imcopy: imcopy.o lib${PACKAGE}.a ${OBJECTS}
- ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm ${LIBS}
+ ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm -lz ${LIBS}
cookbook: cookbook.o lib${PACKAGE}.a ${OBJECTS}
- ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm ${LIBS}
+ ${CC} ${LDFLAGS_BIN} ${DEFS} -o $@ ${@}.o -L. -l${PACKAGE} -lm -lz ${LIBS}
testf77: testf77.o lib${PACKAGE}.a ${OBJECTS}
- ${FC} ${LDFLAGS_BIN} -o $@ ${@}.o -L. -l${PACKAGE} -lm ${LIBS}
+ ${FC} ${LDFLAGS_BIN} -o $@ ${@}.o -L. -l${PACKAGE} -lm -lz ${LIBS}
# Tested with bison 3.8 and flex 2.6.4
eval: # Rebuild eval_* files from flex/bison source
+5 -12
View File
@@ -98,22 +98,15 @@ src_configure() {
src_install() {
cargo_src_install
newbashcomp - rg <<-EOF
$("$(cargo_target_dir)"/rg --generate complete-bash)
EOF
local gen=( "$(cargo_target_dir)"/rg --generate )
newbashcomp - rg < <( "${gen[@]}" complete-bash || die )
insinto /usr/share/fish/vendor_completions.d
newins - rg.fish <<-EOF
$("$(cargo_target_dir)"/rg --generate complete-fish)
EOF
newins - rg.fish < <( "${gen[@]}" complete-fish || die )
insinto /usr/share/zsh/site-functions
newins - _rg <<-EOF
$("$(cargo_target_dir)"/rg --generate complete-zsh)
EOF
newins - _rg < <( "${gen[@]}" complete-zsh || die )
dodoc CHANGELOG.md FAQ.md GUIDE.md README.md
newman - rg.1 <<-EOF
$("$(cargo_target_dir)"/rg --generate man)
EOF
newman - rg.1 < <( "${gen[@]}" man || die )
}