From nobody Fri Mar 25 13:43:48 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 5AC311A2B61D; Fri, 25 Mar 2022 13:43:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KQ3GF0bjBz3LqL; Fri, 25 Mar 2022 13:43:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648215829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FZqV2+BLpsThMjz+sxOtwWMTuCaRUIKY7thULLrZRxA=; b=svNbzIUNFWxIokLUO3fcHwMO68Fr8sd9wSAmydcD8cvXbYkNC45IqKK0M019YwbW8fyInJ E5ksQO8+X6T+urNTSonQrZPy+wW3DIOvfODLPcl8123/6MbBp9Ew4Ys91ojIhMBT7W4lK5 iBoCQML3vGKrOV3RgLJqg2rmqG9guu0kKrcuNdyp3CISivXeqGtlRFLj/i8ZRiWfSfdARu MX1ce+WC5zTfZn7lDPUMTPAwu3h0au+T7ZisScSU+Ve2yWzSUXB7Tbcirr589mKgbB9+jT sBghnLulNh9Gv1y8At3VSYuBNrpr2iVCLazx4UVFlKje/qjcyCNHEmWd80DF9w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5AFC654CD; Fri, 25 Mar 2022 13:43:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22PDhmZL019868; Fri, 25 Mar 2022 13:43:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22PDhmlP019867; Fri, 25 Mar 2022 13:43:48 GMT (envelope-from git) Date: Fri, 25 Mar 2022 13:43:48 GMT Message-Id: <202203251343.22PDhmlP019867@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: d55d59c98748 - main - devel/py-datadog: Update to 0.44.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d55d59c987481b2cc00997ead330d992e23b9225 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648215829; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FZqV2+BLpsThMjz+sxOtwWMTuCaRUIKY7thULLrZRxA=; b=cwV+205c4P9ruUKgyw+Jq/gHWehYL6ogjYeldoSp5Lj/Vj7zWGth3I38vSaGAJaTXsYGeN lvn51EOWunzgr8+iXY7M5EsKyY+l7wXoo0sVx8QYH6RJlyayiFzs2m3NT+iIO2sf0jlLVS 7l+sfS8wvQQR5TQW+9NOZKhw7GP8Eq4//2f59gecE2dCTLmQxj9GHJ0iMl/x6aIWETQYUL LKwgOoHSRyZnnw86ELv5WuuTCaf4DuXgy+zwxZhdAvlHjrWhbnLcYMDDv73IwJZ9IaBnPw ICfsEwhvvdqrEHhDadiM7yRiZhFEn0jFM1/ozijqX/JwxdiirrjV2h7DM207rg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648215829; a=rsa-sha256; cv=none; b=Im/Id7jlEBbUSsDYOj/9Qwa4mcuUHzAF3H7uAJ/GSWscasKLMlBzKGZ0cZzVcPUOuSqyiW tjBdSJ9/Fd/KgS0C2EyqDF0JgG4usECVHyH43ds2bSkiX1vuwC67B1H6POPGNpN9WG9CJH z+WMGbokqya9dbfNGkFeYvut7IXbbxBN+YAa7/KMX46ub10f5HheAHNTmSOV43jQ+zBEEe yZVHgmXSRjt1fZwiQV5ySDP3z7P1nyF/7AOLjKS0zcBXsXLAYqmc0Ua/gFGHJSSZNAhym7 D1Z+GUqHNlP9tAcwsqbXe3/vc60swPAfXv8k0GE3USuaBWTV/wWuPx5sqmulIA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=d55d59c987481b2cc00997ead330d992e23b9225 commit d55d59c987481b2cc00997ead330d992e23b9225 Author: Po-Chuan Hsieh AuthorDate: 2022-03-25 12:59:35 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-03-25 13:36:53 +0000 devel/py-datadog: Update to 0.44.0 Changes: https://github.com/DataDog/datadogpy/releases --- devel/py-datadog/Makefile | 7 ++++-- devel/py-datadog/distinfo | 6 ++--- devel/py-datadog/files/setup.py | 53 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 5 deletions(-) diff --git a/devel/py-datadog/Makefile b/devel/py-datadog/Makefile index fe3268f76b9c..c226b395a32f 100644 --- a/devel/py-datadog/Makefile +++ b/devel/py-datadog/Makefile @@ -1,7 +1,7 @@ # Created by: Po-Chuan Hsieh PORTNAME= datadog -PORTVERSION= 0.43.0 +PORTVERSION= 0.44.0 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -14,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=2.6.0:www/py-requests@${PY_FLAVOR} -USES= python:3.6+ +USES= python:3.7+ USE_PYTHON= autoplist concurrent distutils NO_ARCH= yes @@ -22,4 +22,7 @@ NO_ARCH= yes # bin/dog CONFLICTS_INSTALL= dog +post-patch: + @${CP} ${FILESDIR}/setup.py ${WRKSRC}/ + .include diff --git a/devel/py-datadog/distinfo b/devel/py-datadog/distinfo index b2e7b903497e..6bed4a8a0d68 100644 --- a/devel/py-datadog/distinfo +++ b/devel/py-datadog/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1641045908 -SHA256 (datadog-0.43.0.tar.gz) = 1f2123083d9e1add6f238c62714b76ac2fc134d7d1c435cd82b976487b191b96 -SIZE (datadog-0.43.0.tar.gz) = 348833 +TIMESTAMP = 1647264522 +SHA256 (datadog-0.44.0.tar.gz) = 071170f0c7ef22511dbf7f9bd76c4be500ee2d3d52072900a5c87b5495d2c733 +SIZE (datadog-0.44.0.tar.gz) = 340022 diff --git a/devel/py-datadog/files/setup.py b/devel/py-datadog/files/setup.py new file mode 100644 index 000000000000..dafa20eac958 --- /dev/null +++ b/devel/py-datadog/files/setup.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +from setuptools import setup + +setup( + name='datadog', + version='0.44.0', + description='The Datadog Python library', + long_description='# The Datadog Python library\n\n[![Unit Tests](https://dev.azure.com/datadoghq/datadogpy/_apis/build/status/DataDog.datadogpy.unit?branchName=master)](https://dev.azure.com/datadoghq/datadogpy/_build/latest?definitionId=10&branchName=master)\n[![Integration Tests](https://dev.azure.com/datadoghq/datadogpy/_apis/build/status/DataDog.datadogpy.integration?branchName=master)](https://dev.azure.com/datadoghq/datadogpy/_build/latest?definitionId=13&branchName=master)\n[![Documentation Status](https://readthedocs.org/projects/datadogpy/badge/?version=latest)](https://readthedocs.org/projects/datadogpy/?badge=latest)\n[![PyPI - Version](https://img.shields.io/pypi/v/datadog.svg)](https://pypi.org/project/datadog)\n[![PyPI - Downloads](https://pepy.tech/badge/datadog)](https://pepy.tech/project/datadog)\n\nThe Datadog Python Library is a collection of tools suitable for inclusion in existing Python projects or for the development of standalone scripts. It provides an a bstraction on top of Datadog\'s raw HTTP interface and the Agent\'s DogStatsD metrics aggregation server, to interact with Datadog and efficiently report events and metrics.\n\n- Library Documentation: https://datadogpy.readthedocs.io/en/latest/\n- HTTP API Documentation: https://docs.datadoghq.com/api/\n- DatadogHQ: https://datadoghq.com\n\nSee [CHANGELOG.md](https://github.com/DataDog/datadogpy/blob/master/CHANGELOG.md) for changes.\n\n## Installation\n\nTo install from pip:\n\n pip install datadog\n\nTo install from source:\n\n python setup.py install\n\n## Datadog API\n\nTo support all Datadog HTTP APIs, a generated library is\navailable which will expose all the endpoints:\n[datadog-api-client-python](https://github.com/DataDog/datadog-api-client-python).\n\nFind below a working example for submitting an event to your Event Stream:\n\n```python\nfrom datadog import initialize, api\n\noptions = {\n "api_key": "",\n "app_key": "",\n}\n\nini tialize(**options)\n\ntitle = "Something big! happened!"\ntext = "And let me tell you all about it here!"\ntags = ["version:1", "application:web"]\n\napi.Event.create(title=title, text=text, tags=tags)\n```\n\n**Consult the full list of supported Datadog API endpoints with working code examples in [the Datadog API documentation](https://docs.datadoghq.com/api/latest/?code-lang=python).**\n\n**Note**: The full list of available Datadog API endpoints is also available in the [Datadog Python Library documentation](https://datadogpy.readthedocs.io/en/latest/)\n\n#### Environment Variables\n\nAs an alternate method to using the `initialize` function with the `options` parameters, set the environment variables `DATADOG_API_KEY` and `DATADOG_APP_KEY` within the context of your application.\n\nIf `DATADOG_API_KEY` or `DATADOG_APP_KEY` are not set, the library attempts to fall back to Datadog\'s APM environment variable prefixes: `DD_API_KEY` and `DD_APP_KEY`.\n\n```python\nfrom datadog import initialize, api\n\n# Assuming you\'ve set `DD_API_KEY` and `DD_APP_KEY` in your env,\n# initialize() will pick it up automatically\ninitialize()\n\ntitle = "Something big happened!"\ntext = "And let me tell you all about it here!"\ntags = ["version:1", "application:web"]\n\napi.Event.create(title=title, text=text, tags=tags)\n```\n\nIn development, you can disable any `statsd` metric collection using `DD_DOGSTATSD_DISABLE=True` (or any not-empty value).\n\n## DogStatsD\n\nIn order to use DogStatsD metrics, the Agent must be [running and available](https://docs.datadoghq.com/developers/dogstatsd/?code-lang=python).\n\n### Instantiate the DogStatsD client with UDP\n\nOnce the Datadog Python Library is installed, instantiate the StatsD client using UDP in your code:\n\n```python\nfrom datadog import initialize, statsd\n\noptions = {\n "statsd_host": "127.0.0.1",\n "statsd_port": 8125,\n}\n\ninitialize(**options)\n```\n\nSee the full list of available [DogStatsD client instantiation parameters](https://docs.datadoghq.com/ developers/dogstatsd/?code-lang=python#clien! t-instant! iation-parameters).\n\n#### Instantiate the DogStatsd client with UDS\n\nOnce the Datadog Python Library is installed, instantiate the StatsD client using UDS in your code:\n```python\n\nfrom datadog import initialize, statsd\n\noptions = {\n "statsd_socket_path": PATH_TO_SOCKET,\n}\n\ninitialize(**options)\n```\n\n#### Origin detection over UDP and UDS\n\nOrigin detection is a method to detect which pod `DogStatsD` packets are coming from in order to add the pod\'s tags to the tag list.\nThe `DogStatsD` client attaches an internal tag, `entity_id`. The value of this tag is the content of the `DD_ENTITY_ID` environment variable if found, which is the pod\'s UID. The Datadog Agent uses this tag to add container tags to the metrics. To avoid overwriting this global tag, make sure to only `append` to the `constant_tags` list.\n\nTo enable origin detection over UDP, add the following lines to your application manifest\n```yaml\nenv:\n - name: DD_ENTITY_ID\n valueFrom:\n fiel dRef:\n fieldPath: metadata.uid\n```\n\n### Usage\n#### Metrics\n\nAfter the client is created, you can start sending custom metrics to Datadog. See the dedicated [Metric Submission: DogStatsD documentation](https://docs.datadoghq.com/metrics/dogstatsd_metrics_submission/?code-lang=python) to see how to submit all supported metric types to Datadog with working code examples:\n\n* [Submit a COUNT metric](https://docs.datadoghq.com/metrics/dogstatsd_metrics_submission/?code-lang=python#count).\n* [Submit a GAUGE metric](https://docs.datadoghq.com/metrics/dogstatsd_metrics_submission/?code-lang=python#gauge).\n* [Submit a SET metric](https://docs.datadoghq.com/metrics/dogstatsd_metrics_submission/?code-lang=python#set)\n* [Submit a HISTOGRAM metric](https://docs.datadoghq.com/metrics/dogstatsd_metrics_submission/?code-lang=python#histogram)\n* [Submit a TIMER metric](https://docs.datadoghq.com/metrics/dogstatsd_metrics_submission/?code-lang=python#timer)\n* [Submit a DISTRIBUTIO N metric](https://docs.datadoghq.com/metrics! /dogstats! d_metrics_submission/?code-lang=python#distribution)\n\nSome options are supported when submitting metrics, like [applying a Sample Rate to your metrics](https://docs.datadoghq.com/metrics/dogstatsd_metrics_submission/?code-lang=python#metric-submission-options) or [tagging your metrics with your custom tags](https://docs.datadoghq.com/metrics/dogstatsd_metrics_submission/?code-lang=python#metric-tagging).\n\n#### Events\n\nAfter the client is created, you can start sending events to your Datadog Event Stream. See the dedicated [Event Submission: DogStatsD documentation](https://docs.datadoghq.com/events/guides/dogstatsd/?code-lang=python) to see how to submit an event to your Datadog Event Stream.\n\n#### Service Checks\n\nAfter the client is created, you can start sending Service Checks to Datadog. See the dedicated [Service Check Submission: DogStatsD documentation](https://docs.datadoghq.com/developers/service_checks/dogstatsd_service_checks_submission/?code-lang=python) to see how to submit a Service Check to Datadog.\n\n### Monitoring this client\n\nThis client automatically injects telemetry about itself in the DogStatsD stream.\nThose metrics will not be counted as custom and will not be billed. This feature can be disabled using the `statsd.disable_telemetry()` method.\n\nSee [Telemetry documentation](https://docs.datadoghq.com/developers/dogstatsd/high_throughput/?code-lang=python#client-side-telemetry) to learn more about it.\n\n### Benchmarks\n\n_Note: You will need to install `psutil` package before running the benchmarks._\n\nIf you would like to get an approximate idea on the throughput that your DogStatsD library\ncan handle on your system, you can run the included local benchmark code:\n\n```sh-session\n$ # Python 2 Example\n$ python2 -m unittest -vvv tests.performance.test_statsd_throughput\n\n$ # Python 3 Example\n$ python3 -m unittest -vvv tests.performance.test_statsd_throughput\n```\n\nYou can also add set `BENCHMARK_*` to customize the r uns:\n```sh-session\n$ # Example #1\n$ BENCH! MARK_NUM_! RUNS=10 BENCHMARK_NUM_THREADS=1 BENCHMARK_NUM_DATAPOINTS=5000 BENCHMARK_TRANSPORT="UDP" python2 -m unittest -vvv tests.performance.test_statsd_throughput\n\n$ # Example #2\n$ BENCHMARK_NUM_THREADS=10 BENCHMARK_TRANSPORT="UDS" python3 -m unittest -vvv tests.performance.test_statsd_throughput\n```\n\n## Maximum packets size in high-throughput scenarios\n\nIn order to have the most efficient use of this library in high-throughput scenarios,\ndefault values for the maximum packets size have already been set for both UDS (8192 bytes)\nand UDP (1432 bytes) in order to have the best usage of the underlying network.\nHowever, if you perfectly know your network and you know that a different value for the maximum packets\nsize should be used, you can set it with the parameter `max_buffer_len`. Example:\n\n```python\nfrom datadog import initialize\n\noptions = {\n "api_key": "",\n "app_key": "",\n "max_buffer_len": 4096,\n}\n\ninitialize(**options)\n```\n\n ## Thread Safety\n\n`DogStatsD` and `ThreadStats` are thread-safe.\n', + author_email='"Datadog, Inc." ', + classifiers=[ + 'License :: OSI Approved :: BSD License', + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: Implementation :: CPython', + 'Programming Language :: Python :: Implementation :: PyPy', + ], + install_requires=[ + 'configparser<5; python_version < "3.0"', + 'requests>=2.6.0', + 'typing; python_version < "3.5"', + ], + entry_points={ + 'console_scripts': [ + 'dog = datadog.dogshell:main', + 'dogshell = datadog.dogshell:main', + 'dogshellwrap = datadog.dogshell.wrap:main', + 'dogwrap = datadog.dogshell.wrap:main', + ], + }, + packages=[ + 'datadog', + 'datadog.api', + 'datadog.dogshell', + 'datadog.dogstatsd', + 'datadog.threadstats', + 'datadog.util', + 'tests', + 'tests.integration', + 'tests.integration.api', + 'tests.integration.dogshell', + 'tests.performance', + 'tests.unit', + 'tests.unit.api', + 'tests.unit.dogstatsd', + 'tests.unit.dogwrap', + 'tests.unit.threadstats', + 'tests.unit.util', + 'tests.util', + ], +)