Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2023 19:27:45 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: 506a0e866388 - main - devel/py-mediapy: Convert to USE_PYTHON=pep517
Message-ID:  <202303211927.32LJRjIk031300@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=506a0e8663882a48bf65df4216e7510d69e3b9cd

commit 506a0e8663882a48bf65df4216e7510d69e3b9cd
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-03-21 18:44:20 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-03-21 19:20:45 +0000

    devel/py-mediapy: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for dependency and package change
---
 devel/py-mediapy/Makefile       |  7 +++----
 devel/py-mediapy/files/setup.py | 29 -----------------------------
 2 files changed, 3 insertions(+), 33 deletions(-)

diff --git a/devel/py-mediapy/Makefile b/devel/py-mediapy/Makefile
index 6ccaf1774be6..104c39feca99 100644
--- a/devel/py-mediapy/Makefile
+++ b/devel/py-mediapy/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mediapy
 PORTVERSION=	1.1.4
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,17 +12,15 @@ WWW=		https://github.com/google/mediapy
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}flit-core>=3.5<4:devel/py-flit-core@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ipython>=0:devel/ipython@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR}
 
 USES=		python:3.8+
-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-mediapy/files/setup.py b/devel/py-mediapy/files/setup.py
deleted file mode 100644
index 03dc36b2fb64..000000000000
--- a/devel/py-mediapy/files/setup.py
+++ /dev/null
@@ -1,29 +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
-
-packages = \
-['mediapy']
-
-package_data = \
-{'': ['*']}
-
-install_requires = \
-['ipython', 'matplotlib', 'numpy', 'Pillow']
-
-extras_require = \
-{'dev': ['absl-py', 'pytest', 'pytest-xdist', 'pylint>=2.6.0']}
-
-setup(name='mediapy',
-      version='%%PORTVERSION%%',
-      description='Read/write/show images and videos in an IPython notebook',
-      author=None,
-      author_email='Google LLC <mediapy-owners@google.com>',
-      url=None,
-      packages=packages,
-      package_data=package_data,
-      install_requires=install_requires,
-      extras_require=extras_require,
-      python_requires='>=3.8',
-     )



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