git: f9ac96b9e2b2 - main - devel/py-ddtrace: Update to 2.8.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Apr 2024 19:47:59 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f9ac96b9e2b28ed3dd8ee42d78a8c71e23c3bb8e commit f9ac96b9e2b28ed3dd8ee42d78a8c71e23c3bb8e Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-04-10 19:47:33 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-04-10 19:47:33 +0000 devel/py-ddtrace: Update to 2.8.0 Changes: https://github.com/DataDog/dd-trace-py/releases --- devel/py-ddtrace/Makefile | 14 +++++++++---- devel/py-ddtrace/distinfo | 6 +++--- ...ace-appsec-_iast-_taint_tracking-CMakeLists.txt | 8 ++++---- devel/py-ddtrace/files/patch-pyproject.toml | 4 ++-- devel/py-ddtrace/files/patch-setup.py | 23 +++++++++++++--------- 5 files changed, 33 insertions(+), 22 deletions(-) diff --git a/devel/py-ddtrace/Makefile b/devel/py-ddtrace/Makefile index 5e2bc4b4c3a0..9a011490a85b 100644 --- a/devel/py-ddtrace/Makefile +++ b/devel/py-ddtrace/Makefile @@ -1,5 +1,5 @@ PORTNAME= ddtrace -PORTVERSION= 2.1.8 +PORTVERSION= 2.8.0 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -20,16 +20,18 @@ BUILD_DEPENDS= cmake:devel/cmake-core \ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=4:devel/py-setuptools-scm@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=20:devel/py-attrs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}bytecode>=0.15.0:devel/py-bytecode@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}cattrs>=0:devel/py-cattrs@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}ddsketch>=2.0.1:devel/py-ddsketch@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}envier>=0:devel/py-envier@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ddsketch>=3.0.0:devel/py-ddsketch@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}envier>=0.5<1:devel/py-envier@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}opentelemetry-api>=1:devel/py-opentelemetry-api@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}protobuf>=3,1:devel/py-protobuf@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}six>=1.12.0:devel/py-six@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sqlparse>=0.2.2:databases/py-sqlparse@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}xmltodict>=0.12:devel/py-xmltodict@${PY_FLAVOR} -USES= compiler:c++17-lang python +USES= compiler:c++17-lang python shebangfix USE_PYTHON= autoplist concurrent cython pep517 USE_GITHUB= nodefault @@ -37,6 +39,10 @@ GH_TUPLE= abseil:abseil-cpp:20230802.1:abseil_abseil_cpp/ddtrace/appsec/_iast/_t PORTSCOUT= limit:^[0-9]*\.[0-9]*\.[0-9]* +SHEBANG_FILES= ddtrace/internal/datadog/profiling/cmake/tools/fetch_infer.sh \ + ddtrace/internal/datadog/profiling/cmake/tools/fetch_libdatadog.sh \ + ddtrace/internal/datadog/profiling/setup_custom.sh + OPTIONS_DEFINE= OPENTRACING OPTIONS_DEFAULT=OPENTRACING OPENTRACING_DESC= OpenTracing support diff --git a/devel/py-ddtrace/distinfo b/devel/py-ddtrace/distinfo index 9aa5ac19692d..744f87ed0b39 100644 --- a/devel/py-ddtrace/distinfo +++ b/devel/py-ddtrace/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1700759768 -SHA256 (ddtrace-2.1.8.tar.gz) = 0d5e4c3b8115e6b983ac739c095cb3c318a949cfebe3dc62300b463f11e8dd31 -SIZE (ddtrace-2.1.8.tar.gz) = 6331368 +TIMESTAMP = 1712772393 +SHA256 (ddtrace-2.8.0.tar.gz) = 84567dd92782337d58210170add37249767d9c23fe5c00edee0dda9139c47258 +SIZE (ddtrace-2.8.0.tar.gz) = 6968464 SHA256 (abseil-abseil-cpp-20230802.1_GH0.tar.gz) = 987ce98f02eefbaf930d6e38ab16aa05737234d7afbab2d5c4ea7adbe50c28ed SIZE (abseil-abseil-cpp-20230802.1_GH0.tar.gz) = 2157158 diff --git a/devel/py-ddtrace/files/patch-ddtrace-appsec-_iast-_taint_tracking-CMakeLists.txt b/devel/py-ddtrace/files/patch-ddtrace-appsec-_iast-_taint_tracking-CMakeLists.txt index b1531c42bd40..f0a51a7cb23c 100644 --- a/devel/py-ddtrace/files/patch-ddtrace-appsec-_iast-_taint_tracking-CMakeLists.txt +++ b/devel/py-ddtrace/files/patch-ddtrace-appsec-_iast-_taint_tracking-CMakeLists.txt @@ -1,15 +1,15 @@ ---- ddtrace/appsec/_iast/_taint_tracking/CMakeLists.txt.orig 2023-11-13 15:24:48 UTC +--- ddtrace/appsec/_iast/_taint_tracking/CMakeLists.txt.orig 2024-04-04 15:25:08 UTC +++ ddtrace/appsec/_iast/_taint_tracking/CMakeLists.txt -@@ -24,11 +24,7 @@ unset(BUILD_MACOS CACHE) +@@ -24,11 +24,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "Release") if(CMAKE_BUILD_TYPE STREQUAL "Release") message("Release mode: using abseil") - FetchContent_Declare( - absl -- URL "https://github.com/abseil/abseil-cpp/archive/refs/tags/20211102.0.zip" +- URL "https://github.com/abseil/abseil-cpp/archive/refs/tags/20230802.1.zip" - ) - FetchContent_MakeAvailable(absl) -+ add_subdirectory(_deps) ++ add_subdirectory(_deps) else() message("Debug mode: not using abseil") endif() diff --git a/devel/py-ddtrace/files/patch-pyproject.toml b/devel/py-ddtrace/files/patch-pyproject.toml index 08cd53accb43..4ecfd7f3e372 100644 --- a/devel/py-ddtrace/files/patch-pyproject.toml +++ b/devel/py-ddtrace/files/patch-pyproject.toml @@ -1,8 +1,8 @@ ---- pyproject.toml.orig 2023-11-13 15:24:48 UTC +--- pyproject.toml.orig 2024-04-04 15:25:08 UTC +++ pyproject.toml @@ -1,5 +1,5 @@ [build-system] --requires = ["setuptools_scm[toml]>=4", "cython", "cmake>=3.24.2; python_version>='3.7'"] +-requires = ["setuptools_scm[toml]>=4", "cython", "cmake>=3.24.2,<3.28; python_version>='3.7'"] +requires = ["setuptools_scm[toml]>=4", "cython"] build-backend = "setuptools.build_meta" diff --git a/devel/py-ddtrace/files/patch-setup.py b/devel/py-ddtrace/files/patch-setup.py index 87482d31c689..790f04b29ea4 100644 --- a/devel/py-ddtrace/files/patch-setup.py +++ b/devel/py-ddtrace/files/patch-setup.py @@ -1,18 +1,23 @@ ---- setup.py.orig 2023-11-13 15:24:48 UTC +--- setup.py.orig 2024-04-04 15:25:08 UTC +++ setup.py -@@ -566,7 +566,6 @@ setup( - tests_require=["flake8"], +@@ -8,9 +8,7 @@ import tarfile + import sysconfig + import tarfile + +-import cmake + +- + from setuptools import Extension, find_packages, setup # isort: skip + from setuptools.command.build_ext import build_ext # isort: skip + from setuptools.command.build_py import build_py as BuildPyCommand # isort: skip +@@ -481,10 +479,9 @@ setup( + # funcsigs backport required for vendored debtcollector cmdclass={ "build_ext": CMakeBuild, - "build_py": LibraryDownloader, "clean": CleanLibraries, }, - entry_points={ -@@ -593,7 +592,7 @@ setup( - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - ], -- setup_requires=["setuptools_scm[toml]>=4", "cython", "cmake>=3.24.2"], +- setup_requires=["setuptools_scm[toml]>=4", "cython", "cmake>=3.24.2,<3.28"], + setup_requires=["setuptools_scm[toml]>=4", "cython"], ext_modules=ext_modules + cythonize(