From nobody Mon Feb 19 21:04:28 2024 X-Original-To: dev-commits-ports-main@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 4Tdw5T12NBz59016; Mon, 19 Feb 2024 21:04:29 +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 4Tdw5T0TZPz4PZj; Mon, 19 Feb 2024 21:04:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708376669; 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=LnB4rvnv8JmjnOnaKRlrYl2RGy6PVIeDBT9Lm/QP9jc=; b=Vggo7GobzSfbItAldduqZLI7Cxb68XY3hS9j0spPkKNUI49lMoeKd4bIcFG8vQ8PqzO6e/ xWVw4PepudFOJ6YGqAzv0W0gYqb5SQumZ4mgChQyBbsr2DcW8fmuBNoX7qmvqjUhlprDqj C25h+WmA63WWWRkmie0amSsxti/LreCEawvWig1DcEwYIAxu1cPfhqsFg88Hfif0k3Bvxa 4zAPEeP7L8VFn5xUNrcZTYWSygly0fBRIyiqPP3M68dpIkJ3FE9G2AD0fOmCgGYPhsXj7l wmZPBqtCH46tBHaJHqQFmZBNIZMVPYhEm4PTx+feWyDhT4S7PsyxNKPbzsVeFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708376669; 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=LnB4rvnv8JmjnOnaKRlrYl2RGy6PVIeDBT9Lm/QP9jc=; b=qIS+f/dqwQ4ASQCYmlxe3Unap6ff5f9H7V9NTLxRgejhUIhd53SU4H457LUy03bOj2UuL6 TRKFodhlH6Ik/89XcX5J1Pg0dWv6AbOojtfhO7s50aGK6ZkvAGUY0mZhNyLksxrCRXpR0E CkN7On7yP60dbKgU5+153Trv5cfMRYzlv8nnDs8VQe0sclcg1CbCh+XvD4xHYldXxd4t+n /AL4t8kXadvXiNnnwVakzn4nYagV88rYuDQFq9Xw6XOqacdRFfWvskMm0BIC6ZwSW1pYLq Gc7/AFjs8UXQDXUUy0ERiKRTifVBKQ4eo11F88kiG38a3yktehV5cw5BtXcrhw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708376669; a=rsa-sha256; cv=none; b=VkruXQjMhIn2kz4kzycjCQUV2FNzTmuvtl662d1pflsYc5FftwKBzkqcqccyd6LQFnbzV+ tktBQm+ysWg4fljuLpyt4MRDQWTQOe4lo/9cRujs2sKuW8vvsZlBmMfMP5E6iT/CVJkOn9 b5pyV6oQcylo5i5DzqA3YfwqRrxcR34u3noBdcZJ5JOclBbaQDeWOktk06AGVAoZIkhtba BM2rcjFpwsHKZcJ/gkBDMkB5Nlh2IabVGdTG/NMf7m0x9kr2BfAFTGKCtQt2bvn8YWJBpF UEaW7uUHBmWm6Qg7ZOPHdIN+tM79bKzUppYKqUSdb5KcZaNs5R36773AmqAH1w== 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 4Tdw5S6fdLzrDY; Mon, 19 Feb 2024 21:04:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41JL4S2K035370; Mon, 19 Feb 2024 21:04:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41JL4SLF035367; Mon, 19 Feb 2024 21:04:28 GMT (envelope-from git) Date: Mon, 19 Feb 2024 21:04:28 GMT Message-Id: <202402192104.41JL4SLF035367@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dries Michiels Subject: git: 5cf0d90c7572 - main - devel/py-limits: add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: driesm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5cf0d90c757278b5c38c9b7c7dd90213a176b5d2 Auto-Submitted: auto-generated The branch main has been updated by driesm: URL: https://cgit.FreeBSD.org/ports/commit/?id=5cf0d90c757278b5c38c9b7c7dd90213a176b5d2 commit 5cf0d90c757278b5c38c9b7c7dd90213a176b5d2 Author: Dries Michiels AuthorDate: 2024-02-18 15:28:16 +0000 Commit: Dries Michiels CommitDate: 2024-02-19 21:04:19 +0000 devel/py-limits: add new port Rate limiting using various strategies and storage backends suchh as redis & memcached. --- www/Makefile | 1 + www/py-limits/Makefile | 23 +++++++++++++++++++++++ www/py-limits/distinfo | 3 +++ www/py-limits/pkg-descr | 5 +++++ 4 files changed, 32 insertions(+) diff --git a/www/Makefile b/www/Makefile index 4e3ab2b78769..44c67c184f35 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1747,6 +1747,7 @@ SUBDIR += py-lektor SUBDIR += py-lesscpy SUBDIR += py-libsass + SUBDIR += py-limits SUBDIR += py-livereload SUBDIR += py-mechanicalsoup SUBDIR += py-mechanize diff --git a/www/py-limits/Makefile b/www/py-limits/Makefile new file mode 100644 index 000000000000..0f0903fc4012 --- /dev/null +++ b/www/py-limits/Makefile @@ -0,0 +1,23 @@ +PORTNAME= limits +PORTVERSION= 3.9.0 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= driesm@FreeBSD.org +COMMENT= Perform rate limiting with commonly used storage backends +WWW= https://github.com/alisaifee/limits + +LICENSE= MIT + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}deprecated>=1.2:devel/py-deprecated@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}importlib-resources>=1.3:devel/py-importlib-resources@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>=21,<24:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0.8:devel/py-typing-extensions@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/www/py-limits/distinfo b/www/py-limits/distinfo new file mode 100644 index 000000000000..84d3a9feb1a0 --- /dev/null +++ b/www/py-limits/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1708269916 +SHA256 (limits-3.9.0.tar.gz) = 7b44aa4d05c539276928372681190136914958cccbb99c30ecc5df72a179661a +SIZE (limits-3.9.0.tar.gz) = 69561 diff --git a/www/py-limits/pkg-descr b/www/py-limits/pkg-descr new file mode 100644 index 000000000000..027cec87feac --- /dev/null +++ b/www/py-limits/pkg-descr @@ -0,0 +1,5 @@ +Rate limiting using various strategies and storage backends +such as redis & memcached. Different strategies are supported: + - Fixed Window + - Fixed Window (Elastic) + - Moving Window