parent
45f4f08bb6
commit
f3a0d83694
Binary file not shown.
Binary file not shown.
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
DESCRIPTION="Universal Command Line Environment for AWS"
|
||||
HOMEPAGE="https://pypi.org/project/awscli/"
|
||||
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
SRC_URI="https://github.com/aws/aws-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/aws-cli-${PV}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
# botocore is x.(y+1).z
|
||||
BOTOCORE_PV="$(ver_cut 1).$(( $(ver_cut 2) + 1)).$(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}]
|
||||
"
|
||||
|
||||
distutils_enable_tests --install 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() {
|
||||
distutils_install_for_testing
|
||||
# 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
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
DIST jsonnet-0.15.0.tar.gz 21826038 BLAKE2B 722a844c00ec31b662d932a4481a71197adad680181c6a56a49dfa3e9b63696d29320c5278024d44c0ab3d7d80569514792f815ac7fa3a3cc08c7756fb6f08ad SHA512 b63c1bf82e4fc9ba3f1009ed4e4ba1010e3e7f81bd816a234e48d35607eae3cba95cab57813d35daa9f024e316bae5256340a6f8d6d884f9136cdbf062a2b351
|
||||
DIST jsonnet-0.16.0.tar.gz 21828911 BLAKE2B d6e9648e259b94513507ba5a6e305f705541904d7755dc5521b7fc2940b761f413bfaba39521af54eb428337be2e75f07d12038edcf7e8a5ba95feccc8dd4a02 SHA512 80e0403ec8008cbacff8d9e8fe0e2b5d3bfa306d92c2c11d472e5721015ce4c11be745df10d25715f22f8d8594df69fabf2fe617bdded462ffc5b21f8923606f
|
||||
DIST jsonnet-0.17.0.tar.gz 21854054 BLAKE2B 91561f2cffb5c711d4ba58aceef90bbcd654997872936bcf475d397a7b831b833d349c828271e58795cca10c915ab4ec0a517dc0fc2f563673ba7a6e74cfea3f SHA512 d3ee6947163d8abced504ff37ecf365c0311164cbf243d4c635d34944f0831ca9fce2470acf00eb9a218f82a2e553b3f885db9bd21bb9dcefbd707fa0202925d
|
||||
DIST jsonnet-0.18.0.tar.gz 22472162 BLAKE2B 4f931a44b0cbeea0dc7705c28ca49817e2b3abe19ba4fdcd550d5df1ce9ad6b06b1b740a9306d36caa3970c88df9d31700373e4997dd52c6c2219cdd9bf125c1 SHA512 08a64a4b132df1519292378cef93deb3c60d21636b2a71bce6c13e29cfd93cab465cad77e11f000fb984c5c75a4ca1c92504654fd2e5201343df767ea0e610d1
|
||||
|
@ -0,0 +1,75 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 5df20ca..9e60fae 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -121,7 +121,6 @@ endif()
|
||||
add_subdirectory(include)
|
||||
add_subdirectory(stdlib)
|
||||
add_subdirectory(third_party/md5)
|
||||
-add_subdirectory(third_party/rapidyaml/rapidyaml ryml)
|
||||
add_subdirectory(core)
|
||||
add_subdirectory(cpp)
|
||||
add_subdirectory(cmd)
|
||||
diff --git a/core/vm.cpp b/core/vm.cpp
|
||||
index 4617363..e328df5 100644
|
||||
--- a/core/vm.cpp
|
||||
+++ b/core/vm.cpp
|
||||
@@ -23,7 +23,7 @@ limitations under the License.
|
||||
|
||||
#include "desugarer.h"
|
||||
#include "json.h"
|
||||
-#include "json.hpp"
|
||||
+#include "nlohmann/json.hpp"
|
||||
#include "md5.h"
|
||||
#include "parser.h"
|
||||
#include "ryml_std.hpp" // include this before any other ryml header
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 0a2748a..356915d 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -13,6 +13,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import os
|
||||
+import sys
|
||||
from setuptools import setup
|
||||
from setuptools import Extension
|
||||
from setuptools.command.build_ext import build_ext as BuildExt
|
||||
@@ -22,28 +23,6 @@ DIR = os.path.abspath(os.path.dirname(__file__))
|
||||
# NOTE: If you are editing the array below then you probably also need
|
||||
# to change MANIFEST.in.
|
||||
LIB_OBJECTS = [
|
||||
- 'core/desugarer.o',
|
||||
- 'core/formatter.o',
|
||||
- 'core/libjsonnet.o',
|
||||
- 'core/lexer.o',
|
||||
- 'core/parser.o',
|
||||
- 'core/pass.o',
|
||||
- 'core/static_analysis.o',
|
||||
- 'core/string_utils.o',
|
||||
- 'core/vm.o',
|
||||
- 'third_party/md5/md5.o',
|
||||
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/char_traits.o',
|
||||
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/base64.o',
|
||||
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/language.o',
|
||||
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/memory_util.o',
|
||||
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/format.o',
|
||||
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/time.o',
|
||||
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/memory_resource.o',
|
||||
- 'third_party/rapidyaml/rapidyaml/ext/c4core/src/c4/error.o',
|
||||
- 'third_party/rapidyaml/rapidyaml/src/c4/yml/parse.o',
|
||||
- 'third_party/rapidyaml/rapidyaml/src/c4/yml/preprocess.o',
|
||||
- 'third_party/rapidyaml/rapidyaml/src/c4/yml/common.o',
|
||||
- 'third_party/rapidyaml/rapidyaml/src/c4/yml/tree.o',
|
||||
]
|
||||
|
||||
MODULE_SOURCES = ['python/_jsonnet.c']
|
||||
@@ -72,6 +51,8 @@ jsonnet_ext = Extension(
|
||||
'_jsonnet',
|
||||
sources=MODULE_SOURCES,
|
||||
extra_objects=LIB_OBJECTS,
|
||||
+ libraries = ['md5', 'jsonnet', 'ryml'],
|
||||
+ library_dirs = [os.environ.get('CMAKE_BUILD_DIR')],
|
||||
include_dirs = ['include'],
|
||||
language='c++'
|
||||
)
|
@ -0,0 +1,105 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DISTUTILS_OPTIONAL=1
|
||||
PYTHON_COMPAT=( pypy3 python3_{7..10} )
|
||||
|
||||
inherit cmake toolchain-funcs flag-o-matic distutils-r1
|
||||
|
||||
DESCRIPTION="A data templating language for app and tool developers"
|
||||
HOMEPAGE="https://jsonnet.org/"
|
||||
SRC_URI="https://github.com/google/jsonnet/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
IUSE="custom-optimization doc examples python test"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
||||
RDEPEND="
|
||||
dev-cpp/rapidyaml:=
|
||||
dev-cpp/nlohmann_json:=
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? ( dev-cpp/gtest )
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/jsonnet-0.12.1-dont-call-make-from-setuppy.patch"
|
||||
"${FILESDIR}/jsonnet-0.16.0-libdir.patch"
|
||||
"${FILESDIR}/jsonnet-0.16.0-cp-var.patch"
|
||||
"${FILESDIR}/jsonnet-0.18.0-unbundle.patch"
|
||||
)
|
||||
|
||||
distutils_enable_tests unittest
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
use python && distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use custom-optimization || replace-flags '-O*' -O3
|
||||
tc-export CC CXX
|
||||
|
||||
local mycmakeargs=(
|
||||
-DUSE_SYSTEM_JSON=ON
|
||||
-DBUILD_STATIC_LIBS=OFF
|
||||
)
|
||||
|
||||
if use test; then
|
||||
mycmakeargs+=(
|
||||
-DBUILD_TESTS=ON
|
||||
-DUSE_SYSTEM_GTEST=ON
|
||||
)
|
||||
else
|
||||
mycmakeargs+=(
|
||||
-DBUILD_TESTS=OFF
|
||||
)
|
||||
fi
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake_src_compile
|
||||
use python && CMAKE_BUILD_DIR="${BUILD_DIR}" distutils-r1_src_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cmake_src_test
|
||||
use python && CMAKE_BUILD_DIR="${BUILD_DIR}" distutils-r1_src_test
|
||||
}
|
||||
|
||||
python_test() {
|
||||
LD_LIBRARY_PATH="${CMAKE_BUILD_DIR}" "${EPYTHON}" -m unittest python._jsonnet_test -v \
|
||||
|| die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
use python && distutils-r1_src_install
|
||||
|
||||
if use doc; then
|
||||
find doc -name '.gitignore' -delete || die
|
||||
docinto html
|
||||
dodoc -r doc/.
|
||||
fi
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc -r examples/.
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1 +1,2 @@
|
||||
DIST uriparser-0.9.5.tar.bz2 176501 BLAKE2B 5ec3d993e60c62f2478e4012354cf82f2e4155ea1a69e9a3d6611d1765fe0f3b8ba5382c928852a5fd215f51ebb0688c9d713e9f1208f18f5ce2d8b8f0fb1dca SHA512 44d36a33565b7724d721e2b5e689530227bc87e609ee78f1d23e7353480191313b1b91039c7a046566d14b83eb320c97d75e74c8ef4841e1b9c8559c3feddb34
|
||||
DIST uriparser-0.9.6.tar.bz2 178888 BLAKE2B 2c7229d8438eaef40657b809742dff7ed8919edfe9b4003be996d967b2d876ec61c6493b60c3a0a167db80365c748ee63f2cebfa04058ae8bed8d29b0ab7ea22 SHA512 c021ab3f93cc0373c9244edafff042c3d73a3904d69e573c277b04ca4a49cd2e88255214599cf433088b32846c9a628dfb116025188a6bb61a40c236827799aa
|
||||
|
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Strictly RFC 3986 compliant URI parsing library in C"
|
||||
HOMEPAGE="https://uriparser.github.io/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
|
||||
IUSE="+doc qt5 test unicode" # +doc to address warning RequiredUseDefaults
|
||||
|
||||
REQUIRED_USE="qt5? ( doc ) test? ( unicode )"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
test? ( >=dev-cpp/gtest-1.8.1 )
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
doc? (
|
||||
>=app-doc/doxygen-1.5.8
|
||||
media-gfx/graphviz
|
||||
qt5? ( dev-qt/qthelp:5 )
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog THANKS )
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DURIPARSER_BUILD_CHAR=ON
|
||||
-DURIPARSER_BUILD_DOCS=$(usex doc ON OFF)
|
||||
-DURIPARSER_BUILD_TESTS=$(usex test ON OFF)
|
||||
-DURIPARSER_BUILD_TOOLS=ON
|
||||
-DURIPARSER_BUILD_WCHAR_T=$(usex unicode ON OFF)
|
||||
|
||||
# The usex wrapper is here to address this warning:
|
||||
# One or more CMake variables were not used by the project:
|
||||
# CMAKE_DISABLE_FIND_PACKAGE_Qt5Help
|
||||
$(usex doc "$(cmake_use_find_package qt5 Qt5Help)")
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
if use doc && use qt5; then
|
||||
dodoc "${BUILD_DIR}"/doc/*.qch
|
||||
docompress -x /usr/share/doc/${PF}/${P}.qch
|
||||
fi
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST userspace-rcu-0.13.0.tar.bz2 608434 BLAKE2B 11b5d13f4e1a577cc33ad430eb387b26cc2db2ba9ff32c7a09f9cb6c8a418548cd87c198ab4b63be3df884d8e3878046ba817106ff2f07cbab86dd60c9bb1d34 SHA512 7288b5a4a2dca6a75ecaa8553b942b9e7be9cae25776d2448fb0b0c950af9919c369791839607c6c1e6cbd32bbd1e1cafc18ee753f0e3bdc2ed7b65488612580
|
||||
DIST userspace-rcu-0.13.1.tar.bz2 609961 BLAKE2B 96581fb3e90764870d2eb3eff6999e3c20bf206e3a0d5c910acfe693d55e0cb389fa5126a74d175f3c46655e740ecf1c1426c367eb3c28f3ef3a634848e51e83 SHA512 c86f2eb260cccb3cb6bd54ddbc0b46e60083fc99423e9403242ebed7f39a2a49c68af933ea6f373e2a9d4f9dc56f5befe030740891e28cf2fabe927a48ff8182
|
||||
|
@ -0,0 +1,13 @@
|
||||
Fedora: https://src.fedoraproject.org/rpms/userspace-rcu/raw/rawhide/f/regtest-without-bench.patch
|
||||
|
||||
"Remove the benchmarks from the regtest target, they timeout on the buildds."
|
||||
--- a/tests/Makefile.am
|
||||
+++ b/tests/Makefile.am
|
||||
@@ -8,7 +8,6 @@
|
||||
cd benchmark && $(MAKE) $(AM_MAKEFLAGS) long_bench
|
||||
regtest:
|
||||
cd regression && $(MAKE) $(AM_MAKEFLAGS) regtest
|
||||
- cd benchmark && $(MAKE) $(AM_MAKEFLAGS) regtest
|
||||
|
||||
check-loop:
|
||||
while [ 0 ]; do \
|
@ -1,11 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>base-system@gentoo.org</email>
|
||||
<name>Gentoo Base System</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="regression-test">Run regression tests (requires FEATURES=test)</flag>
|
||||
</use>
|
||||
<maintainer type="project">
|
||||
<email>base-system@gentoo.org</email>
|
||||
<name>Gentoo Base System</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="regression-test">Run regression tests (requires FEATURES=test)</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Userspace RCU (read-copy-update) library"
|
||||
HOMEPAGE="https://liburcu.org/"
|
||||
SRC_URI="https://lttng.org/files/urcu/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0/8" # subslot = soname version
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="test? ( sys-process/time )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.13.1-tests-no-benchmark.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Needed for tests patch
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--enable-shared
|
||||
$(use_enable static-libs static)
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
default
|
||||
|
||||
emake -C tests/regression regtest
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -type f -name "*.la" -delete || die
|
||||
}
|
Binary file not shown.
@ -0,0 +1,29 @@
|
||||
# Copyright 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="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-python/text-unidecode-1.3[${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,3 +1,4 @@
|
||||
DIST Faker-10.0.0.tar.gz 1198872 BLAKE2B 60e4f34a597ca11b0699c330f6cdb0f7f387bb6c54d769513f8e091d00242c7ba4e62fa6b3411ad313a4713e9311b729fb6068acfc4a02b66f07c66656677f33 SHA512 0c22b18d16815ee37d2ea79b4142100479c7b9b9f169817dc9e0fe39495f0646e8d61d704ddba7d36eefb6cb3fb744d179a57216abb15c15ee357c8b12b8b5a4
|
||||
DIST Faker-11.0.0.tar.gz 1199121 BLAKE2B e5c4e17daa969249dbf1ae69630a79c50e6e51d63db9997872bd22a7e91db1771fdef984ec5912d42815632598339062be20005e4921c846abf3013e6efc8c89 SHA512 687f47ba613bd2117c412da54e293281bf1943eccde8165cc749be5d176a025d250c831d55a509a6923b3542dba4fe5abce23bd80b980bdca742ecaa837d4334
|
||||
DIST Faker-11.1.0.tar.gz 1214021 BLAKE2B c4b7b44d19566037135d47bce19895da7bb0eba17c64086ad5f0019bbd49a77aaf4231e6aef8f40aec4811bbe4df209b796773ac5cca6a859ff9b43ea57fe9bc SHA512 646d16bceb3fc5ca8a9004ab7369d7fc6012f0766b2f6b58922a1a415a4bf1ae1af0d5977d58f15792bd794fa2235fb44e626e28f5af168d4e4def8112bab0ca
|
||||
DIST Faker-11.3.0.tar.gz 1215886 BLAKE2B 01a0e9cff30597536cc1d6f4ae3f67c43e0e1ec5268d5c544a0cf6ea905c4528f07567515e615b74f32ea4622c9090e63141b0b526d656cbb96a449c23e7b047 SHA512 cb95ecd4cd781c6a08621fe75a1d019349232f8be65d4c9b5825987cb98bb6d031569d6e3253cb36a68986707515540f6ebd7503085aea68d56642b08f86192f
|
||||
|
Binary file not shown.
@ -0,0 +1,59 @@
|
||||
# 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="The AWS SDK for Python"
|
||||
HOMEPAGE="https://github.com/boto/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}]
|
||||
)
|
||||
"
|
||||
|
||||
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}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
# 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="Low-level, data-driven core of boto 3"
|
||||
HOMEPAGE="https://github.com/boto/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[${PYTHON_USEDEP}]
|
||||
dev-python/python-dateutil[${PYTHON_USEDEP}]
|
||||
>=dev-python/urllib3-1.25.4[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/jsonschema[${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
|
||||
)
|
||||
|
||||
distutils_install_for_testing --via-venv
|
||||
epytest tests/{functional,unit}
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST dulwich-0.20.23.tar.gz 414150 BLAKE2B 0f7bfb237acc6bad874465a5bfed21adc29a2ef23875fbcbb92e7e3ff0ed6a4191a30b3975f90ef20b8320575e42abf31f8ec2199d558382c917d0510c2a8d96 SHA512 8bad3528dc87e70b39b59b2f7218579327db4dbd15937b63db76c9b8e7ba6d22e963eaec45b8d675c92f250516a541c395fdac391db68d0932dc5d8cd7ed9fb9
|
||||
DIST dulwich-0.20.27.tar.gz 416618 BLAKE2B 73ed04d9fc871a82126e212bdac0eaf235e44aa76f3e54c98bd50f71379fdd3082b2a3af12a22f3276a45909ef17e38a116deb6adfd650cdbfa19afa41803dd1 SHA512 dc82250c5b3cbccc1ccbb55ca2d871f4d17ddb3616cd92146468fc5f0d805d3fe349b2cedfb4e814e027c07f9352e87c72ca7e97ed6218aa621fa9311dc075c5
|
||||
DIST dulwich-0.20.28.tar.gz 416723 BLAKE2B ddbb36c65e1372e1c2fbab5d85ef26a77f40e4763eee8dc5d2ba249a6b4e37bd6e38197eaebbcb46f16df577c0ff4730ec69fff39a549adf2e5d147e7a3eabfc SHA512 5eb90dd888909f787ef5e9f0a79d7db9a31c5897e334a862c1d0593c4f115ff30047f108c7b315e0145e267f581ba0f4fd0fafb7b1b2316d3def4f70697f2e20
|
||||
|
@ -0,0 +1,55 @@
|
||||
# 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="Pure-Python implementation of the Git file formats and protocols"
|
||||
HOMEPAGE="
|
||||
https://github.com/dulwich/dulwich/
|
||||
https://pypi.org/project/dulwich/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+ Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc examples test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/certifi[${PYTHON_USEDEP}]
|
||||
dev-python/urllib3[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
${RDEPEND}
|
||||
!hppa? ( !ia64? (
|
||||
dev-python/gevent[${PYTHON_USEDEP}]
|
||||
dev-python/geventhttpclient[${PYTHON_USEDEP}]
|
||||
) )
|
||||
app-crypt/gpgme[python,${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/fastimport[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
distutils_enable_sphinx docs
|
||||
|
||||
python_test() {
|
||||
# remove interference from the tests that do stuff like user.name
|
||||
unset GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE \
|
||||
GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_COMMITTER_DATE EMAIL
|
||||
# Do not use make check which rebuilds the extension and uses -Werror,
|
||||
# causing unexpected failures.
|
||||
"${EPYTHON}" -m unittest -v dulwich.tests.test_suite \
|
||||
|| die "tests failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
if use examples; then
|
||||
docompress -x "/usr/share/doc/${PF}/examples"
|
||||
dodoc -r examples
|
||||
fi
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST flexmock-0.11.1.tar.gz 48331 BLAKE2B b4a670530050098706133d531f162516163e8bed5fe867277d8d729c3afbd21747d53f17e8cd0f2f087550137c864aa8ac912cb404103426e3fdb17e98d79645 SHA512 6b5ce669e29dc24313e94b0c0c24d75e25c99343c33d787987c6707532598fb0d28df751148a4f7183d4bbdb54822c07d88ded394358545fe8d822564e1408e6
|
||||
DIST flexmock-0.11.2.tar.gz 51330 BLAKE2B 3ebeea60c19a9234a362117009610802f10c68c55885ae9dd72c16b19af19fdfbf18634bbc56a80efb0c985f0c339bab234304088dc482b0ccf937c1d7c2fd0f SHA512 208876131155dd0febc9e6aad7a6e98082fccf52573758ac9280f9f767d81ece7af425c901a4a094b3eb56bd711219a55dcfc0d7747f9060b3ad6630c37e6618
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Testing library to create mocks, stubs and fakes"
|
||||
HOMEPAGE="https://flexmock.readthedocs.io/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~riscv"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_IGNORE=(
|
||||
tests/test_teamcity.py
|
||||
tests/test_testtools.py
|
||||
tests/test_unittest.py
|
||||
)
|
||||
epytest -p no:flaky
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
dodoc -r docs
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST gmpy2-2.1.0.tar.gz 258571 BLAKE2B 942786c9a2e1220ecad15e97c26cbea0b93c7719e5081f6defe7b71d43be0c4ce259355eb34fa013a0b90679022535a271f26425c615e65103d3a2705b27ec8e SHA512 0d62354a1446708548b8dfdc6d7f8000151eb5901251f87f935144f615fd586726617c7a2bd05b91dc3e2a0cfc8797cd81d60afb8c705da153b537345eaddb34
|
||||
DIST gmpy2-2.1.0b5.tar.gz 264742 BLAKE2B 1dd6dc66f9ec8cb2738f449112aa44feb40ba983f6da5f7a0760016e79ffed19037d77d47c0c0b816f9088725207e50ba3bd423349ed4c744ff03059c4c6a19a SHA512 7dc647642d7b61af77258881a7b91ab967dd11a86ba88ff5b7fd41cd4c999d2bb4cfe586511e79cc5f21f0f00d0823bbd2620d69df051c8cead15090423a657a
|
||||
DIST gmpy2-2.1.1.tar.gz 258607 BLAKE2B 3c070d101066fb0ba5da61b8c1eacf6bbd334aed987161091f31bccc1e836430cb844e0fdcb5017718341761f54c0fc3290e37ace28a5c4fc07930a194e77256 SHA512 37a08b546476f1b49cdfdb04b3a6d4da266615f789eb03896d5e2dd326c91f0fb9523504414b0de30e7265840e2ef77362a5ff011906952100c8b1da4d88d709
|
||||
DIST gmpy2-2.1.2.tar.gz 258445 BLAKE2B 5fd89478bb7c48c317a7af74fd872e5a9c1141f8f23c110aba7298d1a325caa13e24f1a2e601d6b3c6f6af30d60505f9161a03def16df59dddabe611fb600ef4 SHA512 abfeb0d8a155235e3aa797ca7b34ab6947f0714273e9d381167a9f6273bad34689e1985c139080b146e072b5bfbb4fa2b937566a14f4b94cc09ed21b3f2082b7
|
||||
|
@ -0,0 +1,38 @@
|
||||
# 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
|
||||
|
||||
MY_PN="${PN}2"
|
||||
MY_P="${MY_PN}-${PV/_beta/b}"
|
||||
|
||||
DESCRIPTION="Python bindings for GMP, MPC, MPFR and MPIR libraries"
|
||||
HOMEPAGE="https://github.com/aleaxit/gmpy"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
S="${WORKDIR}"/${MY_P}
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/mpc-1.0.2:=
|
||||
>=dev-libs/mpfr-3.1.2:=
|
||||
dev-libs/gmp:0=
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
# The tests program asks for input when running, disable that
|
||||
"${FILESDIR}"/gmpy-2.1.0_beta5-test-input.patch
|
||||
)
|
||||
|
||||
distutils_enable_sphinx docs
|
||||
|
||||
python_test() {
|
||||
cd test || die
|
||||
"${EPYTHON}" runtests.py || die "tests failed under ${EPYTHON}"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST google-api-python-client-2.33.0.tar.gz 28292803 BLAKE2B b7e285a78d06aa9c0cb5609521443aa048220bb4b83e900b5915603c3cc1bd2eb6ff009c43503a8178f4ca2281fed0488bae9fbe0c29bf7a9df9ac2d4cf294e4 SHA512 47c8352440a2ffd3beca049a200c4a0cb1a2299b5fbce70b64a913f6121e731325831b229102d9940b386e082592efd49fdfc9409055b32f172551862740bd63
|
||||
DIST google-api-python-client-2.34.0.tar.gz 28469433 BLAKE2B aa2c8849b629fe489cf39cddd410a40a0af0bddfa5f370a4a41c1446aeadf69cd4592eeb1d76e6c63da9737906801aea9c8a4d706328b63a7bf5b34a43b83e00 SHA512 321dfdd3ba821beabc6c3a96575afd06c75a0c8e3db61b1ff5fa9db472e62de81b037c435a1051d6294c2a37e471bcaa068cd27ad7434a3416231d31931dd74e
|
||||
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Google API Client for Python"
|
||||
HOMEPAGE="https://github.com/googleapis/google-api-python-client"
|
||||
SRC_URI="https://github.com/googleapis/google-api-python-client/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/httplib2-0.15[${PYTHON_USEDEP}]
|
||||
<dev-python/httplib2-1[${PYTHON_USEDEP}]
|
||||
dev-python/google-api-core[${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/oauth2client[${PYTHON_USEDEP}]
|
||||
dev-python/pandas[${PYTHON_USEDEP}]
|
||||
dev-python/parameterized[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
distutils_enable_tests --install 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
|
||||
)
|
||||
|
||||
distutils_install_for_testing
|
||||
epytest tests
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST httpx-0.19.0.tar.gz 1667455 BLAKE2B b8d4cb0b6e7f643b62b507930ccf1534d73d93261cab9281ef57d6392f00da325e897d5339aebacfa07aeae8278d3a81b78d6501a1587ffeaef68cc5087bfdaa SHA512 3b327f07d62cf0430672d4f1a4f884618e588496f049522de327f5c34f7260eb21739b7f1fbd6f43a21962bc8737547f3eddbc22751546647f56c9cd7212840a
|
||||
DIST httpx-0.21.1.tar.gz 2155133 BLAKE2B c3c800657abaed461ab6f44e3cd9799be4b6499070a5db2ee8d5d61c776d86591c74192eb1c88d4072dc361ea4c9448a3ed061c715fa4504fc931fdd96ccde62 SHA512 a4f737f6c6ae909fd3ea811e0ff3b78ed6496da8d797ef49746f744216e055f8225d613fe935d5e2780aa1b233053ad436e8849eef578e662ca8ee34513ad12e
|
||||
DIST httpx-0.21.3.tar.gz 2157078 BLAKE2B 08a9328a7350534abe646f0bf60bd15600a1cb3eb8d06578c87ed9a7d4e55efdddd2be597650cddec9f6456e89a1b159f3e23aa657f379f78157c12670cdadb0 SHA512 0a551de52954db5ed2c33d1b5c172607516031a7c86c0f235bd04f12f4cf82f63980a9f53115dac801748b0c282890b3ed4a53b2c912adbd245c10ad61dbf67e
|
||||
|
@ -0,0 +1,76 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Docs builder mkdocs not keyworded on all these arches yet
|
||||
# DOCS_BUILDER="mkdocs"
|
||||
# DOCS_DEPEND="dev-python/mkdocs-material"
|
||||
# DOCS_AUTODOC=1
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1 # docs
|
||||
|
||||
DESCRIPTION="Fully-featured HTTP client which provides sync and async APIs"
|
||||
HOMEPAGE="https://www.python-httpx.org/"
|
||||
SRC_URI="https://github.com/encode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
IUSE="cli"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/certifi[${PYTHON_USEDEP}]
|
||||
dev-python/charset_normalizer[${PYTHON_USEDEP}]
|
||||
dev-python/sniffio[${PYTHON_USEDEP}]
|
||||
=dev-python/httpcore-0.14*[${PYTHON_USEDEP}]
|
||||
>=dev-python/rfc3986-1.3[${PYTHON_USEDEP}]
|
||||
<dev-python/rfc3986-2[${PYTHON_USEDEP}]
|
||||
cli? (
|
||||
=dev-python/click-8*[${PYTHON_USEDEP}]
|
||||
=dev-python/pygments-2*[${PYTHON_USEDEP}]
|
||||
=dev-python/rich-10*[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/brotlicffi[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
dev-python/h2[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-trio[${PYTHON_USEDEP}]
|
||||
dev-python/trio[${PYTHON_USEDEP}]
|
||||
dev-python/trustme[${PYTHON_USEDEP}]
|
||||
dev-python/typing-extensions[${PYTHON_USEDEP}]
|
||||
dev-python/uvicorn[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
if ! use cli; then
|
||||
sed -i -e '/console_scripts/d' setup.py || die
|
||||
fi
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# Internet
|
||||
tests/client/test_proxies.py::test_async_proxy_close
|
||||
tests/client/test_proxies.py::test_sync_proxy_close
|
||||
|
||||
# Result change in charset-normalizer-2.0.7+
|
||||
'tests/test_decoders.py::test_text_decoder[data3-iso-8859-1]'
|
||||
'tests/models/test_responses.py::test_response_no_charset_with_iso_8859_1_content'
|
||||
)
|
||||
local EPYTEST_IGNORE=()
|
||||
|
||||
use cli || EPYTEST_IGNORE+=(
|
||||
tests/test_main.py
|
||||
)
|
||||
|
||||
epytest
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST ipykernel-6.4.2.tar.gz 121253 BLAKE2B 26f8f94df823dd7a4ac41cac574e70ae98eed64f88bbcd8ce600ce6dfe1c43c224d65b5d0f9586ad05829692142e37fbb685a5d577047791831f6138b8309556 SHA512 56f0a15a1f06628e8f74749e4bad4a65dcc78ba7ff45e4fa5802d232e427e4ec152a6b6697302488d2e05d6b0cfa0cbc106ea2a593ab43de9d9defa9c169d5a6
|
||||
DIST ipykernel-6.5.0.tar.gz 122962 BLAKE2B fa36ea41d7f2dc8d0d75144f421ea2a72dd50dcda6c6a91f625f18c35ed2ebb950aadfb1715dd57a1fda77bfb49e360bca87f0bd8b9ee8380399d41691db2b9a SHA512 440407818ed6f388f10a727a9be1a2588bf8c9699d66e1b954a1f64575c08b5bddb3978dd13f5ab26220a210ce7177e2be0374d48d3968df681d2d5311ce42d1
|
||||
DIST ipykernel-6.6.0.tar.gz 123747 BLAKE2B b1e836ac08e24baf3311e34e1323362bec94f8a59ba4cd824703f03370031226f9af41f864930c6fb59216d185e3c7e8798d6b91e88aa6ca0c214df33c6d7d37 SHA512 bf55e26a4bca0d02f4bbb87ce53a224d22a4765596f0f5d7a6d576bfa100436f676df59fa934e1d6ec66f8d802a1c7f787a9a31b906ecaa1ffd8a77fa3d96127
|
||||
DIST ipykernel-6.6.1.tar.gz 123915 BLAKE2B 136a3acdea6790d4666c3f5b0d040a91be405ff35e510456d920d0d2d2fb4f4076eb8e74089d08c42f0eba50caa48da929c1a684ad414919a67748f13d6fdf78 SHA512 bfe37f3d69c9b05f9bbbdec7f2103c353433b402474507a9d17c02f224e3a80eaea010b5a8bcebfd4410fbba661feae74107a4904c0af7835c6c1aa6bd0c1159
|
||||
|
@ -0,0 +1,62 @@
|
||||
# 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="threads(+)"
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="IPython Kernel for Jupyter"
|
||||
HOMEPAGE="https://github.com/ipython/ipykernel"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
|
||||
RDEPEND="
|
||||
$(python_gen_cond_dep '
|
||||
<dev-python/importlib_metadata-5.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/argcomplete-1.12.3[${PYTHON_USEDEP}]
|
||||
' python3_8 pypy3)
|
||||
>=dev-python/debugpy-1.0.0[${PYTHON_USEDEP}]
|
||||
<dev-python/debugpy-2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ipython-7.23.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/traitlets-5.1.0[${PYTHON_USEDEP}]
|
||||
<dev-python/traitlets-6.0[${PYTHON_USEDEP}]
|
||||
<dev-python/jupyter_client-8.0[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.2[${PYTHON_USEDEP}]
|
||||
<www-servers/tornado-7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/matplotlib-inline-0.1.0[${PYTHON_USEDEP}]
|
||||
<dev-python/matplotlib-inline-0.2.0[${PYTHON_USEDEP}]
|
||||
dev-python/nest_asyncio[${PYTHON_USEDEP}]
|
||||
"
|
||||
# RDEPEND seems specifically needed in BDEPEND, at least jupyter
|
||||
# bug #816486
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
test? (
|
||||
dev-python/flaky[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/nose_warnings_filters[${PYTHON_USEDEP}]
|
||||
dev-python/ipyparallel[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-6.5.0-drop-pytest-cov.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's:^TIMEOUT = .*:TIMEOUT = 120:' ipykernel/tests/*.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
# Use python3 in kernel.json configuration, bug #784764
|
||||
sed -i -e '/python3.[0-9]\+/s//python3/' \
|
||||
"${ED}"/usr/share/jupyter/kernels/python3/kernel.json || die
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST ipython-7.29.0.tar.gz 5151803 BLAKE2B 685bb7df39513fe262c07dbb10de4d795860bf2958c626d030bfa3e18052a98d7c9d5f0f96c0c9a5d4b9fdcfab09c492457d409f05ce522f607456ff3a4b35fd SHA512 b8e9cc07a0f77bbfaa88183546ed9d7e4a4c37e7c1704b1a3716d605a04339f986c7767f3c0920a94039eda99e75afb62a7bb43fa0cde6699a902f3b8f83a398
|
||||
DIST ipython-7.30.1.tar.gz 5154336 BLAKE2B 0753433eea2ee6a5a6451db6aa537c9c9469c749b970ecdd040123787064e7be78363060a785c7ea4175b8e0f4f2bfefa15485f6f5412ec34690fe505a1cfb97 SHA512 839f709e019dd5efe32730f2e4c457e6dae0db5490844805d30f12a1fd17bfb2f991f1374a84542b2392d3ce332096d3922471c6b14149331075be8719b14734
|
||||
DIST ipython-7.31.0.tar.gz 5154974 BLAKE2B 5debac9a1011cc6541a2ce97df5d8793465ce4c289d1293c33c29eacc23cbd2271f0a8d7362c3445a88d080edefd85046aebc8782cd930c3dd8b6837ec682bf6 SHA512 705122ca63df17812ab360da06d58431b51d3a1f3bba47df7131e882de64de54c6986e7ba3d55f4b77c4b1049981b0100ba64825e952b25712c843ef7e975e2f
|
||||
|
@ -0,0 +1,153 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_SETUPTOOLS=no
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
PYTHON_REQ_USE='readline,sqlite,threads(+)'
|
||||
|
||||
inherit distutils-r1 optfeature virtualx
|
||||
|
||||
DESCRIPTION="Advanced interactive shell for Python"
|
||||
HOMEPAGE="https://ipython.org/ https://github.com/ipython/ipython/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
IUSE="doc examples matplotlib notebook nbconvert qt5 +smp test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/backcall[${PYTHON_USEDEP}]
|
||||
dev-python/decorator[${PYTHON_USEDEP}]
|
||||
>=dev-python/jedi-0.16[${PYTHON_USEDEP}]
|
||||
>=dev-python/pexpect-4.3[${PYTHON_USEDEP}]
|
||||
dev-python/pickleshare[${PYTHON_USEDEP}]
|
||||
>=dev-python/prompt_toolkit-2[${PYTHON_USEDEP}]
|
||||
<dev-python/prompt_toolkit-3.1[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/traitlets[${PYTHON_USEDEP}]
|
||||
matplotlib? (
|
||||
dev-python/matplotlib[${PYTHON_USEDEP}]
|
||||
dev-python/matplotlib-inline[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
app-text/dvipng[truetype]
|
||||
>=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
|
||||
dev-python/matplotlib[${PYTHON_USEDEP}]
|
||||
dev-python/matplotlib-inline[${PYTHON_USEDEP}]
|
||||
dev-python/nbformat[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
>=dev-python/numpy-1.17[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/testpath[${PYTHON_USEDEP}]
|
||||
)
|
||||
doc? (
|
||||
>=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
|
||||
dev-python/matplotlib[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-2[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
RDEPEND+="
|
||||
nbconvert? (
|
||||
dev-python/nbconvert[${PYTHON_USEDEP}]
|
||||
)"
|
||||
PDEPEND="
|
||||
notebook? (
|
||||
dev-python/notebook[${PYTHON_USEDEP}]
|
||||
dev-python/ipywidgets[${PYTHON_USEDEP}]
|
||||
dev-python/widgetsnbextension[${PYTHON_USEDEP}]
|
||||
)
|
||||
qt5? ( dev-python/qtconsole[${PYTHON_USEDEP}] )
|
||||
smp? (
|
||||
>=dev-python/ipykernel-5.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/ipyparallel-6.2.3[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/2.1.0-substitute-files.patch )
|
||||
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_prepare_all() {
|
||||
# Remove out of date insource files
|
||||
rm IPython/extensions/cythonmagic.py || die
|
||||
rm IPython/extensions/rmagic.py || die
|
||||
|
||||
# Prevent un-needed download during build
|
||||
if use doc; then
|
||||
sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
|
||||
fi
|
||||
|
||||
# Rename the test directory to reduce sys.path pollution
|
||||
# https://github.com/ipython/ipython/issues/12892
|
||||
mv IPython/extensions/{,ipython_}tests || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
emake -C docs html_noapi
|
||||
HTML_DOCS=( docs/build/html/. )
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local -x IPYTHON_TESTING_TIMEOUT_SCALE=20
|
||||
local EPYTEST_DESELECT=()
|
||||
[[ ${EPYTHON} == python3.10 ]] && EPYTEST_DESELECT+=(
|
||||
# TODO
|
||||
IPython/core/tests/test_completer.py::TestCompleter::test_all_completions_dups
|
||||
IPython/core/tests/test_completer.py::TestCompleter::test_deduplicate_completions
|
||||
IPython/core/tests/test_oinspect.py::test_pinfo_docstring_if_detail_and_no_source
|
||||
# fails due to changed argparse output
|
||||
IPython/core/tests/test_magic_arguments.py::test_magic_arguments
|
||||
# py3.10 API incompat, doesn't look important
|
||||
IPython/lib/tests/test_pretty.py::test_pprint_heap_allocated_type
|
||||
)
|
||||
virtx epytest
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
|
||||
# Create ipythonX.Y symlinks.
|
||||
# TODO:
|
||||
# 1. do we want them for pypy? No. pypy has no numpy
|
||||
# 2. handle it in the eclass instead (use _python_ln_rel).
|
||||
# With pypy not an option the dosym becomes unconditional
|
||||
dosym ../lib/python-exec/${EPYTHON}/ipython \
|
||||
/usr/bin/ipython${EPYTHON#python}
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "sympyprinting" dev-python/sympy
|
||||
optfeature "cythonmagic" dev-python/cython
|
||||
optfeature "%lprun magic command" dev-python/line_profiler
|
||||
optfeature "%mprun magic command" dev-python/memory_profiler
|
||||
|
||||
if use nbconvert; then
|
||||
if ! has_version app-text/pandoc ; then
|
||||
einfo "Node.js will be used to convert notebooks to other formats"
|
||||
einfo "like HTML. Support for that is still experimental. If you"
|
||||
einfo "encounter any problems, please use app-text/pandoc instead."
|
||||
fi
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST jaraco.collections-3.4.0.tar.gz 14887 BLAKE2B 2c1e87b18dc3ca68fb5b849b30cc0284b8a8daed9b6b2b075a753f7ccf91feb487734a38bb7fc88d29020b0b1980346109551a8bba5d0b3a7f4a491c0dcb1615 SHA512 8e427f98dbcfad3f9042d1f080b2bf8012fdaaf084e230f9b46ff078623b047c2d9dab41ed0303df5dd070abce2a25289281113a97e8ab8d819048d30b8d314a
|
||||
DIST jaraco.collections-3.5.0.tar.gz 15001 BLAKE2B 3ddc63fdc8d9c9cf9f25aee0cfa1c6d10c93b337bb77f7f33527986f58bb80ae35fbcc1dcb21aadebb3303a3ee20122134fe27f95ecd4b17c64b6f5ea6e94ae2 SHA512 cf0646b388beefe1aed26c96ae725b2934b7bd9df63e57c51c9c84ad6c758c135e6bb3487e0a6a68fba149234c54f2b0eacd4b260c945f8ffed632bdcb03d88f
|
||||
DIST jaraco.collections-3.5.1.tar.gz 15053 BLAKE2B afba813636464b6776f244eab31a0cd86418410f313e171cff1c8ac64e5d902f4a6c2f88d87c61d55292baa338aee45866d3a459c5b5b73fd4e751278b869316 SHA512 2918be537296ca81e5f78a3966a47451dc9dc2d233d997c3f01461c489b44051c497dab55496f85883ac1b91a28850a9d77ff154a3f5e074da1ed07f3259c246
|
||||
|
@ -0,0 +1,30 @@
|
||||
# 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
|
||||
|
||||
MY_PN="${PN/-/.}"
|
||||
DESCRIPTION="Models and classes to supplement the stdlib collections module"
|
||||
HOMEPAGE="https://github.com/jaraco/jaraco.collections"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/jaraco-classes[${PYTHON_USEDEP}]
|
||||
dev-python/jaraco-text[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
>=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_sphinx docs \
|
||||
'>=dev-python/jaraco-packaging-3.2' \
|
||||
'>=dev-python/rst-linker-1.9'
|
||||
distutils_enable_tests pytest
|
@ -1,149 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||
PYTHON_REQ_USE="ssl(+),threads(+)"
|
||||
|
||||
inherit bash-completion-r1 distutils-r1
|
||||
|
||||
# setuptools & wheel .whl files are required for testing,
|
||||
# the exact version is not very important.
|
||||
SETUPTOOLS_WHL="setuptools-57.4.0-py3-none-any.whl"
|
||||
WHEEL_WHL="wheel-0.36.2-py2.py3-none-any.whl"
|
||||
# upstream still requires virtualenv-16 for testing, we are now fetching
|
||||
# it directly to avoid blockers with virtualenv-20
|
||||
VENV_PV=16.7.11
|
||||
|
||||
DESCRIPTION="Installs python packages -- replacement for easy_install"
|
||||
HOMEPAGE="
|
||||
https://pip.pypa.io/en/stable/
|
||||
https://pypi.org/project/pip/
|
||||
https://github.com/pypa/pip/"
|
||||
SRC_URI="
|
||||
https://github.com/pypa/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
test? (
|
||||
https://files.pythonhosted.org/packages/py3/s/setuptools/${SETUPTOOLS_WHL}
|
||||
https://files.pythonhosted.org/packages/py2.py3/w/wheel/${WHEEL_WHL}
|
||||
https://github.com/pypa/virtualenv/archive/${VENV_PV}.tar.gz
|
||||
-> virtualenv-${VENV_PV}.tar.gz
|
||||
)
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv sparc x86 ~x64-macos"
|
||||
SLOT="0"
|
||||
IUSE="test vanilla"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/setuptools-39.2.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
test? (
|
||||
dev-python/freezegun[${PYTHON_USEDEP}]
|
||||
dev-python/pretend[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/scripttest[${PYTHON_USEDEP}]
|
||||
dev-python/werkzeug[${PYTHON_USEDEP}]
|
||||
dev-python/wheel[${PYTHON_USEDEP}]
|
||||
!alpha? ( !hppa? ( !ia64? (
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
) ) )
|
||||
)
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
local PATCHES=(
|
||||
"${FILESDIR}/${PN}-21.3-no-coverage.patch"
|
||||
"${FILESDIR}/${P}-cryptography-tests.patch"
|
||||
)
|
||||
if ! use vanilla; then
|
||||
PATCHES+=( "${FILESDIR}/pip-20.0.2-disable-system-install.patch" )
|
||||
fi
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
if use test; then
|
||||
mkdir tests/data/common_wheels/ || die
|
||||
cp "${DISTDIR}"/{${SETUPTOOLS_WHL},${WHEEL_WHL}} \
|
||||
tests/data/common_wheels/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
if [[ ${EPYTHON} == pypy* ]]; then
|
||||
ewarn "Skipping tests on ${EPYTHON} since they are very broken"
|
||||
return 0
|
||||
fi
|
||||
|
||||
local EPYTEST_DESELECT=(
|
||||
tests/functional/test_install.py::test_double_install_fail
|
||||
tests/functional/test_list.py::test_multiple_exclude_and_normalization
|
||||
'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-download]'
|
||||
'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-install]'
|
||||
'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-list]'
|
||||
'tests/unit/test_commands.py::test_index_group_handle_pip_version_check[False-False-True-wheel]'
|
||||
tests/functional/test_install.py::test_install_pip_does_not_modify_pip_when_satisfied
|
||||
# Internet
|
||||
tests/functional/test_install.py::test_install_editable_with_prefix_setup_cfg
|
||||
tests/functional/test_install.py::test_editable_install__local_dir_no_setup_py_with_pyproject
|
||||
tests/functional/test_install.py::test_editable_install__local_dir_setup_requires_with_pyproject
|
||||
)
|
||||
|
||||
local EPYTEST_IGNORE=(
|
||||
# require tomli-w that needs to be keyworded (added in -r1)
|
||||
tests/functional/test_pep517.py
|
||||
tests/functional/test_pep660.py
|
||||
)
|
||||
|
||||
[[ ${EPYTHON} == python3.10 ]] && EPYTEST_DESELECT+=(
|
||||
tests/lib/test_lib.py::test_correct_pip_version
|
||||
# uses vendored packaging that uses deprecated distutils
|
||||
tests/functional/test_warning.py::test_pip_works_with_warnings_as_errors
|
||||
)
|
||||
|
||||
if ! has_version "dev-python/cryptography[${PYTHON_USEDEP}]"; then
|
||||
EPYTEST_DESELECT+=(
|
||||
tests/functional/test_install.py::test_install_sends_client_cert
|
||||
tests/functional/test_install_config.py::test_do_not_prompt_for_authentication
|
||||
tests/functional/test_install_config.py::test_prompt_for_authentication
|
||||
tests/functional/test_install_config.py::test_prompt_for_keyring_if_needed
|
||||
)
|
||||
fi
|
||||
|
||||
distutils_install_for_testing
|
||||
pushd "${WORKDIR}/virtualenv-${VENV_PV}" >/dev/null || die
|
||||
distutils_install_for_testing
|
||||
popd >/dev/null || die
|
||||
|
||||
local -x GENTOO_PIP_TESTING=1 \
|
||||
PATH="${TEST_DIR}/scripts:${PATH}" \
|
||||
PYTHONPATH="${TEST_DIR}/lib:${BUILD_DIR}/lib"
|
||||
epytest -m "not network"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
# Prevent dbus auto-launch
|
||||
# https://bugs.gentoo.org/692178
|
||||
export DBUS_SESSION_BUS_ADDRESS="disabled:"
|
||||
|
||||
local DOCS=( AUTHORS.txt docs/html/**/*.rst )
|
||||
distutils-r1_python_install_all
|
||||
|
||||
COMPLETION="${T}"/completion.tmp
|
||||
|
||||
# 'pip completion' command embeds full $0 into completion script, which confuses
|
||||
# 'complete' and causes QA warning when running as "${PYTHON} -m pip".
|
||||
# This trick sets correct $0 while still calling just installed pip.
|
||||
local pipcmd='import sys; sys.argv[0] = "pip"; from pip._internal.cli.main import main; sys.exit(main())'
|
||||
|
||||
${PYTHON} -c "${pipcmd}" completion --bash > "${COMPLETION}" || die
|
||||
newbashcomp "${COMPLETION}" ${PN}
|
||||
|
||||
${PYTHON} -c "${pipcmd}" completion --zsh > "${COMPLETION}" || die
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins "${COMPLETION}" _pip
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST Pygments-2.10.0.tar.gz 4052321 BLAKE2B 003d13344a2c5fe448a23d7bb45a401dc839cac10be262f5831c9547444d395811c92b74d1b18663a11a2e6cedf29b5a74cbd75267157429d61375bd9df6eb49 SHA512 28fdf35e333717795f199e0ef936d6df16ac0752324839ac36cabd2f9f6759a57663527d37f1c2f470258d63c3cf190f6dd4b631b21c849fc76575036fbdae12
|
||||
DIST Pygments-2.11.0.tar.gz 4157814 BLAKE2B de70a1de48083a9a0f281e4eb7f164cb551bd2fa2e7682c26c4513e1ebadf9da4ba6b2ccb50cc16955df484d313dff2b0431d6de2f5590c59c775f9ebd3884db SHA512 761b722cdcbc41bc730843e8120ae3c0d634db9918c1c1870d89b79002b55f245c896ed9301c44b665e573a8584d5f8504623fe9d4c63820b57a2cfcae576b33
|
||||
DIST Pygments-2.11.1.tar.gz 4206490 BLAKE2B 116efe4eb71b276eb860a1de04191b8cb01abc0c879a764715d6d6290a523360c7b195e81a6f32516ad5830410534f2ad01498393c36959ce934e1ccf1520fb9 SHA512 77bc1c7fa10ce945591f6d0546f0e9da8d65df58954348fe3b5a4dd8628c9697bd500e74eec3e2a095c5cb3378b8dee1cb0396cd52d7c36c0f2ca719a6d023b9
|
||||
DIST Pygments-2.11.2.tar.gz 4206258 BLAKE2B d9b7ac03ab564051df8eebf390586387d824584f5485eb6af2048cec181412fe2812409251c9c042421125a2579d9ac6de4006c1c0de025ed7b010482482b9f9 SHA512 606ff0c35fa47882f4c5c3794827132e1ee6ccbb4895ae858f9c93ea0c92b73163c9f4d630b51a8bb782ba0b4944a66d1059ad5d017d3191a0a5b30c1e5b8f9f
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||
inherit distutils-r1 bash-completion-r1
|
||||
|
||||
MY_P=${P^}
|
||||
DESCRIPTION="Pygments is a syntax highlighting package written in Python"
|
||||
HOMEPAGE="
|
||||
https://pygments.org/
|
||||
https://github.com/pygments/pygments/
|
||||
https://pypi.org/project/Pygments/"
|
||||
SRC_URI="mirror://pypi/${MY_P:0:1}/${PN^}/${MY_P}.tar.gz"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/wcag-contrast-ratio[${PYTHON_USEDEP}]
|
||||
virtual/ttf-fonts
|
||||
)"
|
||||
|
||||
distutils_enable_sphinx doc \
|
||||
dev-python/wcag-contrast-ratio
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
newbashcomp external/pygments.bashcomp pygmentize
|
||||
}
|
@ -1,115 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
inherit check-reqs distutils-r1
|
||||
|
||||
MY_P=mongo-python-driver-${PV}
|
||||
DESCRIPTION="Python driver for MongoDB"
|
||||
HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
|
||||
SRC_URI="
|
||||
https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.tar.gz"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 ~hppa ~riscv x86"
|
||||
IUSE="doc kerberos"
|
||||
|
||||
RDEPEND="
|
||||
kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-db/mongodb-2.6.0
|
||||
)
|
||||
"
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
distutils_enable_sphinx doc
|
||||
distutils_enable_tests nose
|
||||
|
||||
reqcheck() {
|
||||
if use test; then
|
||||
# During the tests, database size reaches 1.5G.
|
||||
local CHECKREQS_DISK_BUILD=1536M
|
||||
|
||||
check-reqs_${1}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
reqcheck pkg_pretend
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
reqcheck pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# network-sandbox probably
|
||||
rm test/test_srv_polling.py || die
|
||||
sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
|
||||
-i test/test_client.py || die
|
||||
# relies on exact exception message
|
||||
sed -e 's:abstract methods:abstract:' \
|
||||
-i test/test_custom_types.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Yes, we need TCP/IP for that...
|
||||
local DB_IP=127.0.0.1
|
||||
local DB_PORT=27000
|
||||
|
||||
export DB_IP DB_PORT
|
||||
|
||||
local dbpath=${TMPDIR}/mongo.db
|
||||
local logpath=${TMPDIR}/mongod.log
|
||||
|
||||
# Now, the hard part: we need to find a free port for mongod.
|
||||
# We're just trying to run it random port numbers and check the log
|
||||
# for bind errors. It shall be noted that 'mongod --fork' does not
|
||||
# return failure when it fails to bind.
|
||||
|
||||
mkdir -p "${dbpath}" || die
|
||||
while true; do
|
||||
ebegin "Trying to start mongod on port ${DB_PORT}"
|
||||
|
||||
LC_ALL=C \
|
||||
mongod --dbpath "${dbpath}" --nojournal \
|
||||
--bind_ip ${DB_IP} --port ${DB_PORT} \
|
||||
--unixSocketPrefix "${TMPDIR}" \
|
||||
--logpath "${logpath}" --fork \
|
||||
&& sleep 2
|
||||
|
||||
# Now we need to check if the server actually started...
|
||||
if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
|
||||
# yay!
|
||||
eend 0
|
||||
break
|
||||
elif grep -q 'Address already in use' "${logpath}"; then
|
||||
# ay, someone took our port!
|
||||
eend 1
|
||||
: $(( DB_PORT += 1 ))
|
||||
continue
|
||||
else
|
||||
eend 1
|
||||
eerror "Unable to start mongod for tests. See the server log:"
|
||||
eerror " ${logpath}"
|
||||
die "Unable to start mongod for tests."
|
||||
fi
|
||||
done
|
||||
|
||||
local failed
|
||||
DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
|
||||
|
||||
mongod --dbpath "${dbpath}" --shutdown || die
|
||||
|
||||
[[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
|
||||
|
||||
rm -rf "${dbpath}" || die
|
||||
}
|
@ -1,115 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit check-reqs distutils-r1
|
||||
|
||||
MY_P=mongo-python-driver-${PV}
|
||||
DESCRIPTION="Python driver for MongoDB"
|
||||
HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
|
||||
SRC_URI="
|
||||
https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.tar.gz"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~hppa ~riscv ~x86"
|
||||
IUSE="doc kerberos"
|
||||
|
||||
RDEPEND="
|
||||
kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-db/mongodb-2.6.0
|
||||
)
|
||||
"
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
distutils_enable_sphinx doc
|
||||
distutils_enable_tests nose
|
||||
|
||||
reqcheck() {
|
||||
if use test; then
|
||||
# During the tests, database size reaches 1.5G.
|
||||
local CHECKREQS_DISK_BUILD=1536M
|
||||
|
||||
check-reqs_${1}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
reqcheck pkg_pretend
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
reqcheck pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# network-sandbox probably
|
||||
rm test/test_srv_polling.py || die
|
||||
sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
|
||||
-i test/test_client.py || die
|
||||
# relies on exact exception message
|
||||
sed -e 's:abstract methods:abstract:' \
|
||||
-i test/test_custom_types.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Yes, we need TCP/IP for that...
|
||||
local DB_IP=127.0.0.1
|
||||
local DB_PORT=27000
|
||||
|
||||
export DB_IP DB_PORT
|
||||
|
||||
local dbpath=${TMPDIR}/mongo.db
|
||||
local logpath=${TMPDIR}/mongod.log
|
||||
|
||||
# Now, the hard part: we need to find a free port for mongod.
|
||||
# We're just trying to run it random port numbers and check the log
|
||||
# for bind errors. It shall be noted that 'mongod --fork' does not
|
||||
# return failure when it fails to bind.
|
||||
|
||||
mkdir -p "${dbpath}" || die
|
||||
while true; do
|
||||
ebegin "Trying to start mongod on port ${DB_PORT}"
|
||||
|
||||
LC_ALL=C \
|
||||
mongod --dbpath "${dbpath}" --nojournal \
|
||||
--bind_ip ${DB_IP} --port ${DB_PORT} \
|
||||
--unixSocketPrefix "${TMPDIR}" \
|
||||
--logpath "${logpath}" --fork \
|
||||
&& sleep 2
|
||||
|
||||
# Now we need to check if the server actually started...
|
||||
if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
|
||||
# yay!
|
||||
eend 0
|
||||
break
|
||||
elif grep -q 'Address already in use' "${logpath}"; then
|
||||
# ay, someone took our port!
|
||||
eend 1
|
||||
: $(( DB_PORT += 1 ))
|
||||
continue
|
||||
else
|
||||
eend 1
|
||||
eerror "Unable to start mongod for tests. See the server log:"
|
||||
eerror " ${logpath}"
|
||||
die "Unable to start mongod for tests."
|
||||
fi
|
||||
done
|
||||
|
||||
local failed
|
||||
DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
|
||||
|
||||
mongod --dbpath "${dbpath}" --shutdown || die
|
||||
|
||||
[[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
|
||||
|
||||
rm -rf "${dbpath}" || die
|
||||
}
|
@ -1,115 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit check-reqs distutils-r1
|
||||
|
||||
MY_P=mongo-python-driver-${PV}
|
||||
DESCRIPTION="Python driver for MongoDB"
|
||||
HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
|
||||
SRC_URI="
|
||||
https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.tar.gz"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm64 ~hppa ~riscv x86"
|
||||
IUSE="doc kerberos"
|
||||
|
||||
RDEPEND="
|
||||
kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-db/mongodb-2.6.0
|
||||
)
|
||||
"
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
distutils_enable_sphinx doc
|
||||
distutils_enable_tests unittest
|
||||
|
||||
reqcheck() {
|
||||
if use test; then
|
||||
# During the tests, database size reaches 1.5G.
|
||||
local CHECKREQS_DISK_BUILD=1536M
|
||||
|
||||
check-reqs_${1}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
reqcheck pkg_pretend
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
reqcheck pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# network-sandbox probably
|
||||
rm test/test_srv_polling.py || die
|
||||
sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
|
||||
-i test/test_client.py || die
|
||||
# relies on exact exception message
|
||||
sed -e 's:abstract methods:abstract:' \
|
||||
-i test/test_custom_types.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Yes, we need TCP/IP for that...
|
||||
local DB_IP=127.0.0.1
|
||||
local DB_PORT=27000
|
||||
|
||||
export DB_IP DB_PORT
|
||||
|
||||
local dbpath=${TMPDIR}/mongo.db
|
||||
local logpath=${TMPDIR}/mongod.log
|
||||
|
||||
# Now, the hard part: we need to find a free port for mongod.
|
||||
# We're just trying to run it random port numbers and check the log
|
||||
# for bind errors. It shall be noted that 'mongod --fork' does not
|
||||
# return failure when it fails to bind.
|
||||
|
||||
mkdir -p "${dbpath}" || die
|
||||
while true; do
|
||||
ebegin "Trying to start mongod on port ${DB_PORT}"
|
||||
|
||||
LC_ALL=C \
|
||||
mongod --dbpath "${dbpath}" --nojournal \
|
||||
--bind_ip ${DB_IP} --port ${DB_PORT} \
|
||||
--unixSocketPrefix "${TMPDIR}" \
|
||||
--logpath "${logpath}" --fork \
|
||||
&& sleep 2
|
||||
|
||||
# Now we need to check if the server actually started...
|
||||
if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
|
||||
# yay!
|
||||
eend 0
|
||||
break
|
||||
elif grep -q 'Address already in use' "${logpath}"; then
|
||||
# ay, someone took our port!
|
||||
eend 1
|
||||
: $(( DB_PORT += 1 ))
|
||||
continue
|
||||
else
|
||||
eend 1
|
||||
eerror "Unable to start mongod for tests. See the server log:"
|
||||
eerror " ${logpath}"
|
||||
die "Unable to start mongod for tests."
|
||||
fi
|
||||
done
|
||||
|
||||
local failed
|
||||
DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
|
||||
|
||||
mongod --dbpath "${dbpath}" --shutdown || die
|
||||
|
||||
[[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
|
||||
|
||||
rm -rf "${dbpath}" || die
|
||||
}
|
@ -1,112 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit check-reqs distutils-r1
|
||||
|
||||
MY_P=mongo-python-driver-${PV}
|
||||
DESCRIPTION="Python driver for MongoDB"
|
||||
HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
|
||||
SRC_URI="
|
||||
https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.tar.gz"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~hppa ~riscv ~x86"
|
||||
IUSE="doc kerberos"
|
||||
|
||||
RDEPEND="
|
||||
kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-db/mongodb-2.6.0
|
||||
)
|
||||
"
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
distutils_enable_sphinx doc
|
||||
distutils_enable_tests unittest
|
||||
|
||||
reqcheck() {
|
||||
if use test; then
|
||||
# During the tests, database size reaches 1.5G.
|
||||
local CHECKREQS_DISK_BUILD=1536M
|
||||
|
||||
check-reqs_${1}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
reqcheck pkg_pretend
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
reqcheck pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# network-sandbox probably
|
||||
rm test/test_srv_polling.py || die
|
||||
sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
|
||||
-i test/test_client.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Yes, we need TCP/IP for that...
|
||||
local DB_IP=127.0.0.1
|
||||
local DB_PORT=27000
|
||||
|
||||
export DB_IP DB_PORT
|
||||
|
||||
local dbpath=${TMPDIR}/mongo.db
|
||||
local logpath=${TMPDIR}/mongod.log
|
||||
|
||||
# Now, the hard part: we need to find a free port for mongod.
|
||||
# We're just trying to run it random port numbers and check the log
|
||||
# for bind errors. It shall be noted that 'mongod --fork' does not
|
||||
# return failure when it fails to bind.
|
||||
|
||||
mkdir -p "${dbpath}" || die
|
||||
while true; do
|
||||
ebegin "Trying to start mongod on port ${DB_PORT}"
|
||||
|
||||
LC_ALL=C \
|
||||
mongod --dbpath "${dbpath}" --nojournal \
|
||||
--bind_ip ${DB_IP} --port ${DB_PORT} \
|
||||
--unixSocketPrefix "${TMPDIR}" \
|
||||
--logpath "${logpath}" --fork \
|
||||
&& sleep 2
|
||||
|
||||
# Now we need to check if the server actually started...
|
||||
if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
|
||||
# yay!
|
||||
eend 0
|
||||
break
|
||||
elif grep -q 'Address already in use' "${logpath}"; then
|
||||
# ay, someone took our port!
|
||||
eend 1
|
||||
: $(( DB_PORT += 1 ))
|
||||
continue
|
||||
else
|
||||
eend 1
|
||||
eerror "Unable to start mongod for tests. See the server log:"
|
||||
eerror " ${logpath}"
|
||||
die "Unable to start mongod for tests."
|
||||
fi
|
||||
done
|
||||
|
||||
local failed
|
||||
DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
|
||||
|
||||
mongod --dbpath "${dbpath}" --shutdown || die
|
||||
|
||||
[[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
|
||||
|
||||
rm -rf "${dbpath}" || die
|
||||
}
|
@ -1,112 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit check-reqs distutils-r1
|
||||
|
||||
MY_P=mongo-python-driver-${PV}
|
||||
DESCRIPTION="Python driver for MongoDB"
|
||||
HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
|
||||
SRC_URI="
|
||||
https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.tar.gz"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~hppa ~riscv ~x86"
|
||||
IUSE="doc kerberos"
|
||||
|
||||
RDEPEND="
|
||||
kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-db/mongodb-2.6.0
|
||||
)
|
||||
"
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
distutils_enable_sphinx doc
|
||||
distutils_enable_tests unittest
|
||||
|
||||
reqcheck() {
|
||||
if use test; then
|
||||
# During the tests, database size reaches 1.5G.
|
||||
local CHECKREQS_DISK_BUILD=1536M
|
||||
|
||||
check-reqs_${1}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
reqcheck pkg_pretend
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
reqcheck pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# network-sandbox probably
|
||||
rm test/test_srv_polling.py || die
|
||||
sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
|
||||
-i test/test_client.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Yes, we need TCP/IP for that...
|
||||
local DB_IP=127.0.0.1
|
||||
local DB_PORT=27000
|
||||
|
||||
export DB_IP DB_PORT
|
||||
|
||||
local dbpath=${TMPDIR}/mongo.db
|
||||
local logpath=${TMPDIR}/mongod.log
|
||||
|
||||
# Now, the hard part: we need to find a free port for mongod.
|
||||
# We're just trying to run it random port numbers and check the log
|
||||
# for bind errors. It shall be noted that 'mongod --fork' does not
|
||||
# return failure when it fails to bind.
|
||||
|
||||
mkdir -p "${dbpath}" || die
|
||||
while true; do
|
||||
ebegin "Trying to start mongod on port ${DB_PORT}"
|
||||
|
||||
LC_ALL=C \
|
||||
mongod --dbpath "${dbpath}" --nojournal \
|
||||
--bind_ip ${DB_IP} --port ${DB_PORT} \
|
||||
--unixSocketPrefix "${TMPDIR}" \
|
||||
--logpath "${logpath}" --fork \
|
||||
&& sleep 2
|
||||
|
||||
# Now we need to check if the server actually started...
|
||||
if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
|
||||
# yay!
|
||||
eend 0
|
||||
break
|
||||
elif grep -q 'Address already in use' "${logpath}"; then
|
||||
# ay, someone took our port!
|
||||
eend 1
|
||||
: $(( DB_PORT += 1 ))
|
||||
continue
|
||||
else
|
||||
eend 1
|
||||
eerror "Unable to start mongod for tests. See the server log:"
|
||||
eerror " ${logpath}"
|
||||
die "Unable to start mongod for tests."
|
||||
fi
|
||||
done
|
||||
|
||||
local failed
|
||||
DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
|
||||
|
||||
mongod --dbpath "${dbpath}" --shutdown || die
|
||||
|
||||
[[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
|
||||
|
||||
rm -rf "${dbpath}" || die
|
||||
}
|
@ -1,112 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit check-reqs distutils-r1
|
||||
|
||||
MY_P=mongo-python-driver-${PV}
|
||||
DESCRIPTION="Python driver for MongoDB"
|
||||
HOMEPAGE="https://github.com/mongodb/mongo-python-driver https://pypi.org/project/pymongo/"
|
||||
SRC_URI="
|
||||
https://github.com/mongodb/mongo-python-driver/archive/${PV}.tar.gz
|
||||
-> ${MY_P}.tar.gz"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~hppa ~riscv ~x86"
|
||||
IUSE="doc kerberos"
|
||||
|
||||
RDEPEND="
|
||||
kerberos? ( dev-python/pykerberos[${PYTHON_USEDEP}] )
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-db/mongodb-2.6.0
|
||||
)
|
||||
"
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
distutils_enable_sphinx doc
|
||||
distutils_enable_tests unittest
|
||||
|
||||
reqcheck() {
|
||||
if use test; then
|
||||
# During the tests, database size reaches 1.5G.
|
||||
local CHECKREQS_DISK_BUILD=1536M
|
||||
|
||||
check-reqs_${1}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
reqcheck pkg_pretend
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
reqcheck pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# network-sandbox probably
|
||||
rm test/test_srv_polling.py || die
|
||||
sed -e 's:test_connection_timeout_ms_propagates_to_DNS_resolver:_&:' \
|
||||
-i test/test_client.py || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# Yes, we need TCP/IP for that...
|
||||
local DB_IP=127.0.0.1
|
||||
local DB_PORT=27000
|
||||
|
||||
export DB_IP DB_PORT
|
||||
|
||||
local dbpath=${TMPDIR}/mongo.db
|
||||
local logpath=${TMPDIR}/mongod.log
|
||||
|
||||
# Now, the hard part: we need to find a free port for mongod.
|
||||
# We're just trying to run it random port numbers and check the log
|
||||
# for bind errors. It shall be noted that 'mongod --fork' does not
|
||||
# return failure when it fails to bind.
|
||||
|
||||
mkdir -p "${dbpath}" || die
|
||||
while true; do
|
||||
ebegin "Trying to start mongod on port ${DB_PORT}"
|
||||
|
||||
LC_ALL=C \
|
||||
mongod --dbpath "${dbpath}" --nojournal \
|
||||
--bind_ip ${DB_IP} --port ${DB_PORT} \
|
||||
--unixSocketPrefix "${TMPDIR}" \
|
||||
--logpath "${logpath}" --fork \
|
||||
&& sleep 2
|
||||
|
||||
# Now we need to check if the server actually started...
|
||||
if [[ ${?} -eq 0 && -S "${TMPDIR}"/mongodb-${DB_PORT}.sock ]]; then
|
||||
# yay!
|
||||
eend 0
|
||||
break
|
||||
elif grep -q 'Address already in use' "${logpath}"; then
|
||||
# ay, someone took our port!
|
||||
eend 1
|
||||
: $(( DB_PORT += 1 ))
|
||||
continue
|
||||
else
|
||||
eend 1
|
||||
eerror "Unable to start mongod for tests. See the server log:"
|
||||
eerror " ${logpath}"
|
||||
die "Unable to start mongod for tests."
|
||||
fi
|
||||
done
|
||||
|
||||
local failed
|
||||
DB_PORT2=$(( DB_PORT + 1 )) DB_PORT3=$(( DB_PORT + 2 )) esetup.py test || failed=1
|
||||
|
||||
mongod --dbpath "${dbpath}" --shutdown || die
|
||||
|
||||
[[ ${failed} ]] && die "Tests fail with ${EPYTHON}"
|
||||
|
||||
rm -rf "${dbpath}" || die
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST pytest-console-scripts-1.2.0.tar.gz 13976 BLAKE2B 1452ecfdc47d3341d8f3f30d49f371ae89d6138d56e4dc3a230f6a3803c6c36f542df40e2785c99c3cfd5080fa03b5b3d4926bb742dc99bd2127d47305fbf788 SHA512 07c9baab85035265ab6a21cc0c754b076dba87f08e1ab51319ef47a0a8af0b44f7d42422014c68cf93ed28b508138a70e14b968707cc831682885b3ca8106aa7
|
||||
DIST pytest-console-scripts-1.2.2.tar.gz 14314 BLAKE2B 1e4c210fe9fa6a4e9dbe308cf3d6c1a1829f2155185fe3911ee0a299c0292db6bceeeeb7efd5ace9a166c90ae8376d3cdfec8b0c0b585467f157e175709afe6d SHA512 c749b76c8370734f9ab7fe93284f9ac25a38e4bef61181a3b61b3b0d229532f1876e668e5a6e1449dcb939d9cb53527e021f79fd9132f3a28bdf45d95bdcb40e
|
||||
|
@ -0,0 +1,25 @@
|
||||
# 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="Pytest plugin for testing console scripts"
|
||||
HOMEPAGE="https://github.com/kvas-it/pytest-console-scripts"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/pytest-4.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
distutils_enable_tests --install pytest
|
@ -1,2 +1,3 @@
|
||||
DIST pyzotero-1.4.26.tar.gz 520629 BLAKE2B 7ddcd55a1c21d6dcc4b610a9a29bc86ff002afdf2e2a90513219b9fd13b3d5b504736e122850fc81acf7a4bbca0b8c5da3a92c8eb3a6f07392e3d17a9dc7d73c SHA512 a0b0bf92458746b0dd0c01511efb05dd8fb471434c9e813c9d6dab7741a2eb1a10af2b9c5f68daa4c681353ba8c93cab140ec2da5962d06c76e8a229d4742009
|
||||
DIST pyzotero-1.5.1.gh.tar.gz 520410 BLAKE2B ac3aeb0f55f4685135bcf35594fc925f471a92ac9dfe866a4cffffc62d06b1447c80fedc566100d5fc9550ebcc54c7bcaa0b3d8494229791a4b51c806b40dc1c SHA512 76a498a6d16cef0024cd0e1a6d5011a4c2639a573746d0acd2d18616e452ad1f0eabbb92ae073e7e36ebc208870dedb2b3a01b0d70442b10ae81148e9b1cfd73
|
||||
DIST pyzotero-1.5.gh.tar.gz 520234 BLAKE2B 0bb64710d7cb4701006884417b46d1fe6a76ae8bdcfbd3b30cc413c8cd3ab7ba024318a28cb8c49a1bf280bf3098ece3267a3580a4ecc55af48f47a436476d8b SHA512 9a2080e1e9886c8e4a2410dc7687637d844a2614d40e38403b408bf584f0b1e5d5a4e517bdcba2f4e0602e5a7a3f2a3c9195cfde20242cc9d1da2ca5d3aa8f4c
|
||||
|
@ -0,0 +1,32 @@
|
||||
# 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="A Python client for the Zotero API"
|
||||
HOMEPAGE="https://github.com/urschrei/pyzotero"
|
||||
SRC_URI="https://github.com/urschrei/pyzotero/archive/v${PV}.tar.gz -> ${P}.gh.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
|
@ -0,0 +1,89 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
|
||||
EAPI=7
|
||||
|
||||
# Set to 'manual' to avoid triggering install QA check
|
||||
DISTUTILS_USE_SETUPTOOLS=manual
|
||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||
PYTHON_REQ_USE="xml(+)"
|
||||
|
||||
inherit distutils-r1 multiprocessing
|
||||
|
||||
CPY_PATCHSET="python-gentoo-patches-3.10.0_p1"
|
||||
DESCRIPTION="Collection of extensions to Distutils"
|
||||
HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
|
||||
https://dev.gentoo.org/~floppym/python/${CPY_PATCHSET}.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
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="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/jaraco-envs[${PYTHON_USEDEP}]
|
||||
>=dev-python/jaraco-path-3.2.0[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-fixture-config[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-virtualenv[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
>=dev-python/virtualenv-20[${PYTHON_USEDEP}]
|
||||
dev-python/wheel[${PYTHON_USEDEP}]
|
||||
' python3_{8..10} pypy3)
|
||||
)
|
||||
"
|
||||
PDEPEND="
|
||||
>=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools_scm[${PYTHON_USEDEP}]"
|
||||
|
||||
# Force in-source build because build system modifies sources.
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
DOCS=( {CHANGES,README}.rst )
|
||||
|
||||
src_prepare() {
|
||||
# apply distutils patches to the bundled distutils
|
||||
pushd setuptools/_distutils >/dev/null || die
|
||||
# TODO: distutils C++ patch?
|
||||
eapply -p3 "${WORKDIR}/${CPY_PATCHSET}/0006-distutils-make-OO-enable-both-opt-1-and-opt-2-optimi.patch"
|
||||
popd >/dev/null || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local -x SETUPTOOLS_USE_DISTUTILS=stdlib
|
||||
|
||||
# keep in sync with python_gen_cond_dep above!
|
||||
has "${EPYTHON}" python3.{8..10} pypy3 || continue
|
||||
|
||||
distutils_install_for_testing
|
||||
local EPYTEST_DESELECT=(
|
||||
# network
|
||||
setuptools/tests/test_distutils_adoption.py
|
||||
'setuptools/tests/test_virtualenv.py::test_pip_upgrade_from_source[None]'
|
||||
# unhappy with pytest-xdist?
|
||||
setuptools/tests/test_easy_install.py::TestUserInstallTest::test_local_index
|
||||
# TODO
|
||||
setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_allow_hosts
|
||||
setuptools/tests/test_test.py::test_tests_are_run_once
|
||||
)
|
||||
|
||||
# test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg
|
||||
# It tries to sandbox the test in a tempdir
|
||||
HOME="${PWD}" epytest \
|
||||
-n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" setuptools
|
||||
}
|
||||
|
||||
python_install() {
|
||||
export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
|
||||
distutils-r1_python_install
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST sphinx-autodoc-typehints-1.12.0.tar.gz 19494 BLAKE2B beacc4f8ab453612dfd5264f1c65fd6bdd957269a28ee5b71b762d0baf5a3d4be58398b32d4263f996648281c1139f47a7564e8fc6444a94095f6a970b4cc27a SHA512 92fa340495a48111fa3d600d8c46d83214505ac2a5c71cb1303e846ac439f1e0ff14f8ce8dfd5ffdb6a62a9fa15dde8a5227f946840d9377ad5f7fde25894b75
|
||||
DIST sphinx-autodoc-typehints-1.13.0.gh.tar.gz 19898 BLAKE2B a927802a9daec5a2755c06a974aaea30fa92dfd16712d705c9ecb1c9a7b15d5285ade1d8e83d20e9220823500e0257e278b7e48942d9ee6cafdbc36793e9698f SHA512 cc2f91da6b76eb4ccd7579ce27c4d8f2117707b253bd2246711a5179faecc61c4873b3a5e8c1346e03d1db4c59ae76bea0160f34c66f1a0c2dbba1ac2a8086a1
|
||||
DIST sphinx-autodoc-typehints-1.13.1.gh.tar.gz 19923 BLAKE2B d0f72b814c83dd8987b80bdbaffbab5c3a7c671d9e56e9bb62d3cf44dec1df7b5fb9c591928b89680427069ce8d5953f4dea52de9eb4a4add07a332be96c730a SHA512 50e2958aafaa661cb209da04bb456dadddc4782dd2168c3f6524fba26d906479c66e5b22b3f49fff0c4022acb4b5b99ff73b250cb3e4d5dd9f083c4a5ab12531
|
||||
DIST sphinx-autodoc-typehints-1.14.0.gh.tar.gz 21541 BLAKE2B 77b0e80e5518d64be9dde3d3d2af3d9e0e325daa6683ce8aabe6ac88373ee76e11273b98cf3a18c1391a451354b9cec164c8c14e81354092181b959223500669 SHA512 eba927531b074edd1bf4ce0f3e5af53b07d1be3f013b5f39babc81101b32a942040f7b72380f9f485a99bdb8bfec69f7f81d50b0ceaf73b2859f292e47416d59
|
||||
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Type hints support for the Sphinx autodoc extension "
|
||||
HOMEPAGE="
|
||||
https://github.com/tox-dev/sphinx-autodoc-typehints/
|
||||
https://pypi.org/project/sphinx-autodoc-typehints/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/tox-dev/sphinx-autodoc-typehints/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND=">=dev-python/sphinx-4[${PYTHON_USEDEP}]"
|
||||
BDEPEND="
|
||||
dev-python/setuptools_scm[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/sphobjinv[${PYTHON_USEDEP}]
|
||||
dev-python/typing-extensions[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# this package is addicted to Internet
|
||||
tests/test_sphinx_autodoc_typehints.py::test_format_annotation
|
||||
)
|
||||
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,91 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..10} )
|
||||
|
||||
inherit cmake python-r1
|
||||
|
||||
DESCRIPTION="Android platform tools (adb, fastboot, and mkbootimg)"
|
||||
HOMEPAGE="https://github.com/nmeum/android-tools/ https://developer.android.com/"
|
||||
|
||||
MY_PV="${PV//_/}"
|
||||
SRC_URI="https://github.com/nmeum/android-tools/releases/download/${MY_PV}/${PN}-${MY_PV}.tar.xz
|
||||
https://dev.gentoo.org/~zmedico/dist/${PN}-31.0.3-no-gtest.patch
|
||||
https://dev.gentoo.org/~zmedico/dist/${PN}-31.0.3-disable-werror-boringssl.patch
|
||||
https://dev.gentoo.org/~zmedico/dist/${PN}-31.0.3_p1-install-e2fsdroid-ext2simg.patch
|
||||
"
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
# The entire source code is Apache-2.0, except for fastboot which is BSD-2.
|
||||
LICENSE="Apache-2.0 BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~x86-linux"
|
||||
IUSE="python"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
# dev-libs/libpcre only required for e2fsdroid
|
||||
DEPEND="
|
||||
app-arch/brotli:=
|
||||
app-arch/lz4:=
|
||||
app-arch/zstd:=
|
||||
dev-libs/libpcre2:=
|
||||
>=dev-libs/protobuf-3.0.0:=
|
||||
sys-libs/zlib:=
|
||||
virtual/libusb:1=
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
BDEPEND="
|
||||
dev-lang/go
|
||||
"
|
||||
|
||||
DOCS=()
|
||||
|
||||
src_prepare() {
|
||||
eapply "${DISTDIR}/${PN}-31.0.3-no-gtest.patch"
|
||||
cd "${S}/vendor/core" || die
|
||||
eapply "${S}/patches/core/0011-Remove-the-useless-dependency-on-gtest.patch"
|
||||
cd "${S}/vendor/libziparchive" || die
|
||||
eapply "${S}/patches/libziparchive/0004-Remove-the-useless-dependency-on-gtest.patch"
|
||||
cd "${S}"
|
||||
eapply "${DISTDIR}/${PN}-31.0.3-disable-werror-boringssl.patch"
|
||||
cd "${S}/vendor/boringssl" || die
|
||||
eapply "${S}/patches/boringssl/0011-Disable-Werror.patch"
|
||||
cd "${S}"
|
||||
eapply "${DISTDIR}/${PN}-31.0.3_p1-install-e2fsdroid-ext2simg.patch"
|
||||
rm -r patches || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
# Statically link the bundled boringssl
|
||||
-DBUILD_SHARED_LIBS=OFF
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export GOCACHE="${T}/go-build"
|
||||
export GOFLAGS="-mod=vendor"
|
||||
cmake_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
rm "${ED}/usr/bin/mkbootimg" || die
|
||||
rm "${ED}/usr/bin/unpack_bootimg" || die
|
||||
rm "${ED}/usr/bin/repack_bootimg" || die
|
||||
if use python; then
|
||||
python_foreach_impl python_newexe vendor/mkbootimg/mkbootimg.py mkbootimg
|
||||
python_foreach_impl python_newexe vendor/mkbootimg/unpack_bootimg.py unpack_bootimg
|
||||
python_foreach_impl python_newexe vendor/mkbootimg/repack_bootimg.py repack_bootimg
|
||||
fi
|
||||
docinto adb
|
||||
dodoc vendor/adb/*.{txt,TXT}
|
||||
docinto fastboot
|
||||
dodoc vendor/core/fastboot/README.md
|
||||
}
|
@ -0,0 +1,132 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LUA_COMPAT=( luajit )
|
||||
PYTHON_COMPAT=( python3_{7..10} )
|
||||
LLVM_MAX_SLOT=13
|
||||
|
||||
inherit cmake eapi8-dosym linux-info llvm lua-single python-r1 toolchain-funcs
|
||||
|
||||
DESCRIPTION="Tools for BPF-based Linux IO analysis, networking, monitoring, and more"
|
||||
HOMEPAGE="https://iovisor.github.io/bcc/"
|
||||
SRC_URI="https://github.com/iovisor/bcc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="+lua test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||
lua? ( ${LUA_REQUIRED_USE} )"
|
||||
# tests need root access
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/elfutils-0.166:=
|
||||
>=dev-libs/libbpf-0.5.0:=[static-libs(-)]
|
||||
sys-kernel/linux-headers
|
||||
<sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):=
|
||||
<sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):=[llvm_targets_BPF(+)]
|
||||
${PYTHON_DEPS}
|
||||
lua? ( ${LUA_DEPS} )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
|| (
|
||||
net-misc/iputils[arping]
|
||||
net-analyzer/arping
|
||||
)
|
||||
net-analyzer/netperf
|
||||
net-misc/iperf:*
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/bcc-0.9.0-no-luajit-automagic-dep.patch"
|
||||
"${FILESDIR}/bcc-0.14.0-cmakelists.patch"
|
||||
"${FILESDIR}/bcc-0.23.0-man-compress.patch"
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~NET_CLS_BPF ~NET_ACT_BPF
|
||||
~HAVE_EBPF_JIT ~BPF_EVENTS ~DEBUG_INFO ~FUNCTION_TRACER ~KALLSYMS_ALL
|
||||
~KPROBES"
|
||||
|
||||
check_extra_config
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
llvm_pkg_setup
|
||||
python_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local bpf_link_path
|
||||
|
||||
# this avoids bundling
|
||||
bpf_link_path="$(realpath --relative-to="${S}/src/cc/libbpf" /usr/include/bpf)" || die
|
||||
ln -sfn "${bpf_link_path}" src/cc/libbpf/include || die
|
||||
|
||||
# bug 811288
|
||||
local script scriptname
|
||||
for script in $(find tools/old -type f -name "*.py" || die); do
|
||||
scriptname=$(basename ${script} || die)
|
||||
mv ${script} tools/old/old-${scriptname} || die
|
||||
done
|
||||
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
python_add_impl() {
|
||||
bcc_python_impls+="${EPYTHON};"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local bcc_python_impls
|
||||
python_foreach_impl python_add_impl
|
||||
|
||||
local -a mycmakeargs=(
|
||||
-DREVISION=${PV%%_*}
|
||||
-DENABLE_LLVM_SHARED=ON
|
||||
-DCMAKE_USE_LIBBPF_PACKAGE=ON
|
||||
-DLIBBPF_INCLUDE_DIRS="$($(tc-getPKG_CONFIG) --cflags-only-I libbpf | sed 's:-I::g')"
|
||||
-DKERNEL_INCLUDE_DIRS="${KERNEL_DIR}"
|
||||
-DPYTHON_CMD="${bcc_python_impls%;}"
|
||||
-Wno-dev
|
||||
)
|
||||
if use lua && use lua_single_target_luajit; then
|
||||
mycmakeargs+=( -DWITH_LUAJIT=1 )
|
||||
fi
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
|
||||
python_replicate_script $(grep -Flr '#!/usr/bin/python' "${ED}/usr/share/bcc/tools")
|
||||
python_foreach_impl python_optimize
|
||||
|
||||
newenvd "${FILESDIR}"/60bcc.env 60bcc.env
|
||||
local -A rename_tools=(
|
||||
[trace]=1
|
||||
)
|
||||
|
||||
local tool name
|
||||
for tool in "${ED}"/usr/share/bcc/tools/*; do
|
||||
[[ ! -x ${tool} && ! -L ${tool} || -d ${tool} ]] && continue
|
||||
name=${tool##*/}
|
||||
[[ -n ${rename_tools[${tool##*/}]} ]] && name=bcc-${tool}
|
||||
dosym8 -r "${tool#${ED}}" /usr/sbin/${name}
|
||||
done
|
||||
|
||||
docompress /usr/share/${PN}/man
|
||||
|
||||
newenvd - "70${P}" <<-_EOF_
|
||||
MANPATH="${EPREFIX}/usr/share/${PN}/man"
|
||||
_EOF_
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST bpftrace-0.14.0.tar.gz 991314 BLAKE2B 3222068d7f84c13f736197cef2d188fa31a25db6bd266afe5cbacb1c062155b5ebd5d0310fbad56c15574a795766a33b12624f0252b0bc0677bf05324f414df5 SHA512 78f2d9a4d54c0dda1947b924a828777b402befc3a05031b609da4d256907df1e64f946454a9be7317449f49706f02a881febc4e63d2ef2f4e76924ea19e36ddb
|
||||
DIST bpftrace-0.14.1.tar.gz 991481 BLAKE2B 832f213760eb86804d63df782ff1923f6355b63770b8c4d486dd2547ae3dc474f9e4923f3107bbefbf2066dc013c930d4765ef86ef4d10bda6757513e30c2de1 SHA512 0be06c209ba12f70a0d1140b168dac94945c1b034dbd0c7dae5460fca43eec10bb436e28c122ec37b259256bf6b9bb23a3c5e7f8435feb67eae1b9277debaf73
|
||||
|
@ -0,0 +1,92 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
LLVM_MAX_SLOT=13
|
||||
|
||||
inherit llvm linux-info cmake toolchain-funcs
|
||||
|
||||
DESCRIPTION="High-level tracing language for eBPF"
|
||||
HOMEPAGE="https://github.com/iovisor/bpftrace"
|
||||
MY_PV="${PV//_/}"
|
||||
SRC_URI="https://github.com/iovisor/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${MY_PV:-${PV}}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="fuzzing test"
|
||||
# lots of fixing needed
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libbpf:=
|
||||
>=dev-util/bcc-0.13.0:=
|
||||
dev-util/systemtap
|
||||
<sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):=
|
||||
<sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):=[llvm_targets_BPF(+)]
|
||||
sys-libs/binutils-libs:=
|
||||
virtual/libelf:=
|
||||
"
|
||||
DEPEND="
|
||||
${COMMON_DEPEND}
|
||||
dev-libs/cereal:=
|
||||
test? ( dev-cpp/gtest )
|
||||
"
|
||||
BDEPEND="
|
||||
sys-apps/sed
|
||||
app-arch/xz-utils
|
||||
sys-devel/flex
|
||||
sys-devel/bison
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
QA_DT_NEEDED="/usr/lib.*/libbpftraceresources.so"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/bpftrace-0.14.0-install-libs.patch"
|
||||
"${FILESDIR}/bpftrace-0.14.0-dont-compress-man.patch"
|
||||
"${FILESDIR}/bpftrace-0.14.0-fuzzing.patch"
|
||||
"${FILESDIR}/bpftrace-0.11.4-old-kernels.patch"
|
||||
"${FILESDIR}/bpftrace-0.12.0-fuzzing-build.patch"
|
||||
"${FILESDIR}/bpftrace-0.14-libbpf-0.6.patch"
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
local CONFIG_CHECK="
|
||||
~BPF
|
||||
~BPF_EVENTS
|
||||
~BPF_JIT
|
||||
~BPF_SYSCALL
|
||||
~FTRACE_SYSCALLS
|
||||
~HAVE_EBPF_JIT
|
||||
"
|
||||
|
||||
check_extra_config
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
llvm_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local -a mycmakeargs=(
|
||||
-DSTATIC_LINKING:BOOL=OFF
|
||||
# bug 809362, 754648
|
||||
-DBUILD_SHARED_LIBS:=OFF
|
||||
-DBUILD_TESTING:BOOL=OFF
|
||||
-DBUILD_FUZZ:BOOL=$(usex fuzzing)
|
||||
-DENABLE_MAN:BOOL=OFF
|
||||
-DLIBBPF_INCLUDE_DIRS="$($(tc-getPKG_CONFIG) --cflags-only-I libbpf | sed 's:-I::g')"
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
# bug 809362
|
||||
dostrip -x /usr/bin/bpftrace
|
||||
doman man/man8/*.?
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST byacc-20210808.tgz 891489 BLAKE2B e349e960cdbc654b148ec8412f8502e26976f8a933e3846fc4ff308440c8c8058b3422dbc0a709b792ec727c62f3b4ed7d0679d9d5da69fed8c4e08daa801625 SHA512 cde092dbd845364752aca228a838b97fc34378c7dd7f860c614d13c8ec7167b8416422ded82864d22e8c3c447b47b30abca591ef8ab667c49f9fa070d68114c4
|
||||
DIST byacc-20211224.tgz 894135 BLAKE2B 6b9e7686e66d9f23ba92f5d8129bda72f75b71a50a72792ec241270102d972279b775b6dcfba85f79dd3bad04470838c1a9f2a675d620322393c7251afafab25 SHA512 e2b9df443c5b05179815808d61e693e942549ca6484a5ab4fdb285b9468da9ed3a90e00d1950a0fbacd1890e5a69bcc03b6d7135a7bbfa59ab0995125b9a8642
|
||||
DIST byacc-20220101.tgz 895100 BLAKE2B a78b3530cae045453a6d19fb0dfe3b84034638c624183a32950a19d9b5dbf6b4e4f32ab943e3bad9e9e497107513763be1f758f7cfdf0ffcf31e23a0e2fa5ad9 SHA512 9aff85f0b4ea7f0c9b2e25a155537c99e0591582b2c76c251f08493987a343a812ff86b9cf3d8ecb0954140817c9b164328117de9116f7013e6ec0d91a27486e
|
||||
|
@ -0,0 +1,20 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="The best variant of the Yacc parser generator"
|
||||
HOMEPAGE="https://invisible-island.net/byacc/byacc.html"
|
||||
SRC_URI="ftp://ftp.invisible-island.net/byacc/${P}.tgz"
|
||||
# Seems to be unreliable (unstable tarballs): bug #820167.
|
||||
#SRC_URI="https://invisible-mirror.net/archives/byacc/${P}.tgz"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
DOCS=( ACKNOWLEDGEMENTS AUTHORS CHANGES NEW_FEATURES NOTES README )
|
||||
|
||||
src_configure() {
|
||||
econf --program-prefix=b
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
commit 9bcfa2a6d3eaa5df00ae728c44811faf08effbd3
|
||||
Author: John Helmert III <ajak@gentoo.org>
|
||||
Date: Thu Jan 6 11:12:58 2022 -0600
|
||||
|
||||
shlr/rizin-shell-parser/src: Never rebuild parser.c
|
||||
|
||||
This requires dev-libs/tree-sitter[ts-cli] and net-libs/nodejs, both
|
||||
of which would be heavy new dependencies. However, these are only
|
||||
needed to rebuild the already-existing tree-sitter parser, which
|
||||
doesn't do much for us (if anything) since it already exists. In this
|
||||
case, it's better to just reduce fragility by unconditionally
|
||||
disabling this.
|
||||
|
||||
Bug: https://bugs.gentoo.org/830068
|
||||
Signed-off-by: John Helmert III <ajak@gentoo.org>
|
||||
|
||||
diff --git a/shlr/rizin-shell-parser/src/meson.build b/shlr/rizin-shell-parser/src/meson.build
|
||||
index 0171183ae0..81dcc13b33 100644
|
||||
--- a/shlr/rizin-shell-parser/src/meson.build
|
||||
+++ b/shlr/rizin-shell-parser/src/meson.build
|
||||
@@ -1,14 +1,4 @@
|
||||
-tree_sitter_bin = find_program('tree-sitter', required: false)
|
||||
-node_bin = find_program('node', required: false)
|
||||
-if tree_sitter_bin.found() and node_bin.found() and tree_sitter_dep.type_name() != 'internal'
|
||||
- parser_c = custom_target('parser_src_c',
|
||||
- command: [tree_sitter_wrap_py, tree_sitter_bin, '@OUTDIR@/..', '@INPUT@'],
|
||||
- input: [grammar_js],
|
||||
- output: 'parser.c',
|
||||
- )
|
||||
-else
|
||||
- parser_c = files('parser.c')
|
||||
-endif
|
||||
+parser_c = files('parser.c')
|
||||
|
||||
shell_parser_files = [files('scanner.c'), parser_c]
|
||||
shell_parser_inc = [platform_inc, include_directories('tree_sitter')]
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue