git: 65aa1a6e39eb - main - devel/py-traitlets: Update 5.1.1 -> 5.4.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 14 Oct 2022 17:26:16 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=65aa1a6e39eb0d95e4c089dde54f0fa1fe5516cb

commit 65aa1a6e39eb0d95e4c089dde54f0fa1fe5516cb
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-10-14 15:12:51 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-10-14 17:26:13 +0000

    devel/py-traitlets: Update 5.1.1 -> 5.4.0
---
 devel/py-traitlets/Makefile | 14 ++++++++------
 devel/py-traitlets/distinfo |  6 +++---
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/devel/py-traitlets/Makefile b/devel/py-traitlets/Makefile
index 4e7e251d7ffb..f3d2c7f3854b 100644
--- a/devel/py-traitlets/Makefile
+++ b/devel/py-traitlets/Makefile
@@ -1,12 +1,12 @@
 PORTNAME=	traitlets
-PORTVERSION=	5.1.1
+DISTVERSION=	5.4.0
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Configuration system for Python applications
-WWW=		https://pypi.org/project/traitlets/
+WWW=		https://github.com/ipython/traitlets
 
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING.md
@@ -14,11 +14,13 @@ LICENSE_FILE=	${WRKSRC}/COPYING.md
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ipython_genutils>0:devel/py-ipython_genutils@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
 
-USES=		python:3.5+
-USE_PYTHON=	autoplist distutils
+USES=		python:3.7+
+USE_PYTHON=	distutils autoplist pytest
+
 NO_ARCH=	yes
 
-do-test:
-	@(cd ${TEST_WRKSRC} && py.test-${PYTHON_VER} traitlets)
+# upstream stopped providing setup.py
+post-patch:
+	@${ECHO_CMD} 'import setuptools; setuptools.setup()' > ${WRKSRC}/setup.py
 
 .include <bsd.port.mk>
diff --git a/devel/py-traitlets/distinfo b/devel/py-traitlets/distinfo
index c5bd9d29fcf6..356efaeb5ade 100644
--- a/devel/py-traitlets/distinfo
+++ b/devel/py-traitlets/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1640401937
-SHA256 (traitlets-5.1.1.tar.gz) = 059f456c5a7c1c82b98c2e8c799f39c9b8128f6d0d46941ee118daace9eb70c7
-SIZE (traitlets-5.1.1.tar.gz) = 130629
+TIMESTAMP = 1665767514
+SHA256 (traitlets-5.4.0.tar.gz) = 3f2c4e435e271592fe4390f1746ea56836e3a080f84e7833f0f801d9613fec39
+SIZE (traitlets-5.4.0.tar.gz) = 134340