From nobody Tue Jun 27 06:03:20 2023 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 4QqvK45DZ3z4kV03; Tue, 27 Jun 2023 06:03:20 +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 4QqvK44jhDz3lph; Tue, 27 Jun 2023 06:03:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687845800; 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=wM+9v9aNbqaYx4Ltv1kj2VYpJvkpQKsrWuqXVf70rR0=; b=GHznFpz0RwbpklJaOfn2qvMFp95hr2G3VnMZ5x9sRMHmTwdEXi0rBwWsWX7ifqKKW9EZrU As4Dy7op/de4D2NA9ZSHDQO9C/v2uW97s8PW4tXusEAZWsjSoIUV9GdN7FOe3GCWpiqwPJ ZctKC0k2wM3bnB+cTyhq+tWPVjNepEzmiKsrouv0n1Lv8tpK03ilX2+Rjl1jiVo0eCCPbB dcYlMu+yjBwJAgFYdnbmrrnNOKwF6zhKffBazwq/52bnFIh2WpJvat0qmR1wP1a9qitEIW mcc1qwvjeAIp1uSKBY4M8/zDGEN5zsgDBQkqzUJN3Pd0rQuG//1kV0c6lwRxfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687845800; 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=wM+9v9aNbqaYx4Ltv1kj2VYpJvkpQKsrWuqXVf70rR0=; b=dMFLC452/GifX+yvWnHniYm3IBRETnQAKPwfLsdOGwD5Rr6os8dmPgGdlwrfBH92Dfxs6c xrRzsKvU59K+CVX8+m3Sj7dxe0ApbntZ2lij7VvrVLw0sMXvSF8wt78P6kTYglM9TFhq18 LnV76RSoOrXK97bUaOdNNvDy58PK/KQ1Vp/R3bUv66gTXjPdDIN9hHaOhGXAx7dIzxgcyH lBJBeS4rrY+xu7mZyBXnUqEWCM5OxyIwYxkZ15UnnJlNnLdtGn57qY4Y6hOzvvmT0JVbSY rEBVlpcEfGGqoJjT/8ibbL3EgVHN5mHI2HkzBqy0xkp6Hiungxp4H63CQoG5jQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687845800; a=rsa-sha256; cv=none; b=xuqK9GyRnIqmL5Vica0kJYTtBrnpwj919smEno8rEI03l/QJ+mtw3Yz5ZepcQkMd3hT7BV vLPVm2kUvOVG2GbVMIoGVMds0vJEV7KrukHGhvK4kT/CrQBK7cjERqifV0Bo8TcFkAgy4T icy/F5PTwRuCxfws+PaAP2fRMPvY/SDfYW7zZy/kkdLeiRk+lUdjvfV6OpNOrog0Ip0iTy jHnZsJh9BkymPxPGDKYzBQstB2O4WIl6pT+dxNmlXr8kV9AE32S73/rqlWq3GOSI03Arj+ C7Wk1x72y+F9uKi4p2LPa3VutuRKeYBlM6w25JjPmAnSU9H7RcHjxXnC93V6Sg== 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 4QqvK43hHvzgyq; Tue, 27 Jun 2023 06:03:20 +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 35R63KHU085578; Tue, 27 Jun 2023 06:03:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35R63Kao085577; Tue, 27 Jun 2023 06:03:20 GMT (envelope-from git) Date: Tue, 27 Jun 2023 06:03:20 GMT Message-Id: <202306270603.35R63Kao085577@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kai Knoblich Subject: git: 5152c6e87601 - main - www/py-dj41-django-timezone-field: Update to 5.1 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: kai X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5152c6e87601176454af6c661820c6999e758c09 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=5152c6e87601176454af6c661820c6999e758c09 commit 5152c6e87601176454af6c661820c6999e758c09 Author: Kai Knoblich AuthorDate: 2023-06-27 05:45:01 +0000 Commit: Kai Knoblich CommitDate: 2023-06-27 05:45:01 +0000 www/py-dj41-django-timezone-field: Update to 5.1 * Switch to PEP-517 build and remove no longer required patch. Changelog: https://github.com/mfogel/django-timezone-field/compare/5.0...5.1 --- www/py-dj41-django-timezone-field/Makefile | 7 +++--- www/py-dj41-django-timezone-field/distinfo | 6 ++--- .../files/patch-timezone__field_fields.py | 27 ---------------------- 3 files changed, 7 insertions(+), 33 deletions(-) diff --git a/www/py-dj41-django-timezone-field/Makefile b/www/py-dj41-django-timezone-field/Makefile index 1a6a41869dfa..348209c5882f 100644 --- a/www/py-dj41-django-timezone-field/Makefile +++ b/www/py-dj41-django-timezone-field/Makefile @@ -1,9 +1,9 @@ PORTNAME= django-timezone-field -DISTVERSION= 5.0 -PORTREVISION= 1 +DISTVERSION= 5.1 CATEGORIES= www python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj41- +DISTNAME= django_timezone_field-${DISTVERSION} MAINTAINER= kai@FreeBSD.org COMMENT= Provides database and form fields for pytz timezone objects for Django @@ -12,11 +12,12 @@ WWW= https://github.com/mfogel/django-timezone-field LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django41>=2.2:www/py-django41@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} USES= python:3.8+ -USE_PYTHON= distutils autoplist +USE_PYTHON= autoplist pep517 CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME} diff --git a/www/py-dj41-django-timezone-field/distinfo b/www/py-dj41-django-timezone-field/distinfo index 8933b4e95c22..d2242caf5e48 100644 --- a/www/py-dj41-django-timezone-field/distinfo +++ b/www/py-dj41-django-timezone-field/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1645108464 -SHA256 (django-timezone-field-5.0.tar.gz) = 15746ed367a5a32eda76cfa2886eeec1de8cda79f519b7c5e12f87ed7cdbd663 -SIZE (django-timezone-field-5.0.tar.gz) = 11838 +TIMESTAMP = 1687762789 +SHA256 (django_timezone_field-5.1.tar.gz) = 73fc49519273cd5da1c7f16abc04a4bcad87b00cc02968d0d384c0fecf9a8a86 +SIZE (django_timezone_field-5.1.tar.gz) = 11525 diff --git a/www/py-dj41-django-timezone-field/files/patch-timezone__field_fields.py b/www/py-dj41-django-timezone-field/files/patch-timezone__field_fields.py deleted file mode 100644 index 72b10b78da49..000000000000 --- a/www/py-dj41-django-timezone-field/files/patch-timezone__field_fields.py +++ /dev/null @@ -1,27 +0,0 @@ -From 0257f2e9c7c488e8a859ee924c93d9f38afa4dc7 Mon Sep 17 00:00:00 2001 -From: jeremystretch -Date: Fri, 12 Aug 2022 10:03:27 -0400 -Subject: [PATCH] Fixes #94: Catch ZoneInfoNotFoundError exception when - populating timezones - -Obtained from: - -https://github.com/mfogel/django-timezone-field/commit/0257f2e9c7c488e8a859ee924c93d9f38afa4dc7 - ---- timezone_field/fields.py.orig 2022-02-09 04:42:10 UTC -+++ timezone_field/fields.py -@@ -38,7 +38,13 @@ class TimeZoneField(models.Field): - # existing migration files will need to be accomodated. - default_max_length = 63 - default_pytz_tzs = [pytz.timezone(tz) for tz in pytz.common_timezones] -- default_zoneinfo_tzs = [ZoneInfo(tz) for tz in pytz.common_timezones] -+ default_zoneinfo_tzs = [] -+ for tz in pytz.common_timezones: -+ try: -+ default_zoneinfo_tzs.append(ZoneInfo(tz)) -+ except ZoneInfoNotFoundError: -+ # ZoneInfo does not yet exist for this timezone -+ pass - - def __init__(self, *args, **kwargs): - # allow some use of positional args up until the args we customize