Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Feb 2023 18:46:31 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 626d176070e5 - main - devel/py-typing-extensions: Convert to USE_PYTHON=pep517
Message-ID:  <202302121846.31CIkVGB097851@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=626d176070e5bed575e4e159c0678fd1adbf97aa

commit 626d176070e5bed575e4e159c0678fd1adbf97aa
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-02-12 18:36:53 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-02-12 18:41:46 +0000

    devel/py-typing-extensions: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for dependency and package change
---
 devel/py-typing-extensions/Makefile       |  8 ++++----
 devel/py-typing-extensions/files/setup.py | 18 ------------------
 2 files changed, 4 insertions(+), 22 deletions(-)

diff --git a/devel/py-typing-extensions/Makefile b/devel/py-typing-extensions/Makefile
index 4e366bc2639d..4c7e712a13f5 100644
--- a/devel/py-typing-extensions/Makefile
+++ b/devel/py-typing-extensions/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	typing-extensions
 PORTVERSION=	4.4.0
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,12 +13,11 @@ WWW=		https://github.com/python/typing_extensions
 LICENSE=	PSFL
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.4<4:devel/py-flit-core@${PY_FLAVOR}
+
 USES=		python:3.7+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
-post-patch:
-	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
-
 .include <bsd.port.mk>
diff --git a/devel/py-typing-extensions/files/setup.py b/devel/py-typing-extensions/files/setup.py
deleted file mode 100644
index 01dbbe73a6ae..000000000000
--- a/devel/py-typing-extensions/files/setup.py
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env python
-# setup.py generated by flit for tools that don't yet use PEP 517
-
-from distutils.core import setup
-
-package_dir = \
-{'': 'src'}
-
-setup(name='typing_extensions',
-      version='%%PORTVERSION%%',
-      description='Backported and Experimental Type Hints for Python 3.7+',
-      author=None,
-      author_email='"Guido van Rossum, Jukka Lehtosalo, Ɓukasz Langa, Michael Lee" <levkivskyi@gmail.com>',
-      url=None,
-      py_modules=['typing_extensions'],
-      package_dir=package_dir,
-      python_requires='>=3.7',
-     )



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302121846.31CIkVGB097851>