Date: Tue, 21 Mar 2023 19:29:50 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: e4da8123acdc - main - science/py-asdf-standard: Convert to USE_PYTHON=pep517 Message-ID: <202303211929.32LJTofj033642@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=e4da8123acdc6eb424585e1afa44053466fae438 commit e4da8123acdc6eb424585e1afa44053466fae438 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-03-21 18:47:26 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-03-21 19:21:15 +0000 science/py-asdf-standard: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for dependency and package change --- science/py-asdf-standard/Makefile | 10 ++++--- science/py-asdf-standard/files/setup.py | 48 --------------------------------- 2 files changed, 6 insertions(+), 52 deletions(-) diff --git a/science/py-asdf-standard/Makefile b/science/py-asdf-standard/Makefile index cb4ebbda5cfe..8c3fbf80a0e3 100644 --- a/science/py-asdf-standard/Makefile +++ b/science/py-asdf-standard/Makefile @@ -1,5 +1,6 @@ PORTNAME= asdf-standard PORTVERSION= 1.0.3 +PORTREVISION= 1 CATEGORIES= science python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,8 +13,12 @@ WWW= https://github.com/asdf-format/asdf-standard LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=42:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.4:devel/py-setuptools_scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + USES= python:3.8+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes @@ -23,7 +28,4 @@ NO_ARCH= yes RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-resources>=3:devel/py-importlib-resources@${PY_FLAVOR} .endif -post-patch: - @${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py - .include <bsd.port.post.mk> diff --git a/science/py-asdf-standard/files/setup.py b/science/py-asdf-standard/files/setup.py deleted file mode 100644 index f05bb19c8068..000000000000 --- a/science/py-asdf-standard/files/setup.py +++ /dev/null @@ -1,48 +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 = \ -['asdf_standard'] - -package_data = \ -{'': ['*']} - -package_dir = \ -{'': 'src'} - -extras_require = \ -{':python_version<"3.9"': ['importlib_resources >= 3'], - 'docs': ['toml', - 'sphinx', - 'sphinx-asdf >= 0.1.3', - 'sphinx-astropy', - 'graphviz', - 'matplotlib', - 'docutils', - 'sphinx-rtd-theme'], - 'test': ['pytest', - 'pyyaml', - 'asdf >= 2.8.0', - 'astropy >= 5.0.4', - 'gwcs', - 'packaging>=16.0']} - -entry_points = \ -{'asdf.resource_mappings': ['asdf_standard = ' - 'asdf_standard.integration:get_resource_mappings']} - -setup(name='asdf_standard', - version='%%PORTVERSION%%', - description='The ASDF Standard schemas', - author=None, - author_email='The ASDF Developers <help@stsci.edu>', - url=None, - packages=packages, - package_data=package_data, - package_dir=package_dir, - extras_require=extras_require, - entry_points=entry_points, - python_requires='>=3.8', - )
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303211929.32LJTofj033642>