diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-03-07 07:43:05 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-03-07 07:43:05 +0000 |
| commit | a35c8d9ce7b60a748d248eeb61092abb433d11a1 (patch) | |
| tree | f294b9cf7f1b887c9568885cacb2095f39825e19 /dev-python/aws-xray-sdk | |
| parent | cc45299ba3b46fb2671fc90bf76a36d1bb910664 (diff) | |
| download | baldeagleos-repo-a35c8d9ce7b60a748d248eeb61092abb433d11a1.tar.gz baldeagleos-repo-a35c8d9ce7b60a748d248eeb61092abb433d11a1.tar.xz baldeagleos-repo-a35c8d9ce7b60a748d248eeb61092abb433d11a1.zip | |
Adding metadata
Diffstat (limited to 'dev-python/aws-xray-sdk')
| -rw-r--r-- | dev-python/aws-xray-sdk/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/aws-xray-sdk/aws-xray-sdk-2.13.0.ebuild | 90 |
2 files changed, 91 insertions, 0 deletions
diff --git a/dev-python/aws-xray-sdk/Manifest b/dev-python/aws-xray-sdk/Manifest index 8af6bc8c09c5..e7832449086a 100644 --- a/dev-python/aws-xray-sdk/Manifest +++ b/dev-python/aws-xray-sdk/Manifest @@ -1 +1,2 @@ DIST aws-xray-sdk-python-2.12.1.gh.tar.gz 275525 BLAKE2B 7aae0cc3d6b733ee80b553d087bd85d02329c7da3a8902cb428823af4a53d47a14089a274cfccdfb197a77370dcb71775e1d111bb76205a1f09f9b60a5c92967 SHA512 3c830cf81f353a2805b641bda3d38d72a1286d413e0cd087bfeac78bfe00e7853c19ddab96f18275e7fd95317c2a6650d5e4b287d63c1d3900b25414a525c3dc +DIST aws-xray-sdk-python-2.13.0.gh.tar.gz 276162 BLAKE2B 60a8cf121139b5a704f47676a10534a7e9e5cbbcadc3a10e2f864f2d6baef8b0d8fe82ef9356d3e459d21628584ec98d4a89ad31b8d982dc8859d0cdb0240999 SHA512 c36907788a891a8adef94591172c53dcc0ebde5c0a3552154a313d93af66d50d88aa3422c1abeba89e629aa224beee5eb17e14f272ee312c76aa7f437fadb77c diff --git a/dev-python/aws-xray-sdk/aws-xray-sdk-2.13.0.ebuild b/dev-python/aws-xray-sdk/aws-xray-sdk-2.13.0.ebuild new file mode 100644 index 000000000000..f59239d1e583 --- /dev/null +++ b/dev-python/aws-xray-sdk/aws-xray-sdk-2.13.0.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +inherit distutils-r1 + +MY_P=aws-xray-sdk-python-${PV} +DESCRIPTION="AWS X-Ray SDK for Python" +HOMEPAGE=" + https://github.com/aws/aws-xray-sdk-python/ + https://pypi.org/project/aws-xray-sdk/ +" +SRC_URI=" + https://github.com/aws/aws-xray-sdk-python/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/botocore-1.12.122[${PYTHON_USEDEP}] + dev-python/wrapt[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/bottle[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/sqlalchemy[${PYTHON_USEDEP}] + dev-python/webtest[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local -x DJANGO_SETTINGS_MODULE=tests.ext.django.app.settings + local -x AWS_SECRET_ACCESS_KEY=fake_key + local -x AWS_ACCESS_KEY_ID=fake_id + + local EPYTEST_DESELECT=( + # Internet access + tests/test_patcher.py::test_external_file + tests/test_patcher.py::test_external_module + tests/test_patcher.py::test_external_submodules_full + tests/test_patcher.py::test_external_submodules_ignores_file + tests/test_patcher.py::test_external_submodules_ignores_module + # benchmark + tests/test_local_sampling_benchmark.py + # Fails, probably because above is ignored + tests/test_async_local_storage.py::test_localstorage_isolation + tests/test_async_recorder.py::test_capture + tests/test_async_recorder.py::test_concurrent_calls + tests/test_async_recorder.py::test_async_context_managers + # connects to local mysqld + tests/ext/sqlalchemy_core/test_dburl.py::test_db_url_with_special_char + # TODO + tests/test_lambda_context.py::test_disable + tests/test_lambda_context.py::test_facade_segment_generation + tests/test_lambda_context.py::test_put_subsegment + ) + local EPYTEST_IGNORE=( + # unpackaged deps + tests/ext/aiobotocore + tests/ext/pg8000 + tests/ext/psycopg2 + tests/ext/pymysql + tests/ext/pynamodb + tests/ext/sqlalchemy_core/test_postgres.py + tests/ext/django/test_db.py + # Internet access + tests/ext/httplib + tests/ext/httpx + tests/ext/requests + # requires old package vesions + tests/ext/aiohttp + tests/ext/django + tests/ext/flask_sqlalchemy + tests/ext/sqlalchemy + ) + + epytest -p no:django +} |
