From a3960e33fea0273bd714ea7695c008d070d3dae6 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Wed, 22 Mar 2023 02:47:24 +0800 Subject: science/py-asdf: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for dependency and package change --- science/py-asdf/Makefile | 11 ++++--- science/py-asdf/files/setup.py | 69 ------------------------------------------ 2 files changed, 6 insertions(+), 74 deletions(-) delete mode 100644 science/py-asdf/files/setup.py (limited to 'science') diff --git a/science/py-asdf/Makefile b/science/py-asdf/Makefile index 87abdff5ec68..ae6b49f0de41 100644 --- a/science/py-asdf/Makefile +++ b/science/py-asdf/Makefile @@ -1,5 +1,6 @@ PORTNAME= asdf PORTVERSION= 2.14.3 +PORTREVISION= 1 CATEGORIES= science python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,10 +12,13 @@ WWW= https://github.com/asdf-format/asdf LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=60: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} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asdf-standard>=1.0.1:science/py-asdf-standard@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}asdf-transform-schemas>=0.2.2:science/py-asdf-transform-schemas@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}asdf-unit-schemas>=0.1.0:science/py-asdf-unit-schemas@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=4.8.1:devel/py-importlib-metadata@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=4.11.4:devel/py-importlib-metadata@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jmespath>=0.6.2:devel/py-jmespath@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jsonschema>=4.0.1:devel/py-jsonschema@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}lz4>=0.10:archivers/py-lz4@${PY_FLAVOR} \ @@ -24,7 +28,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asdf-standard>=1.0.1:science/py-asdf-standar ${PYTHON_PKGNAMEPREFIX}semantic-version>=2.8:devel/py-semantic-version@${PY_FLAVOR} USES= python:3.8+ -USE_PYTHON= autoplist concurrent distutils +USE_PYTHON= autoplist concurrent pep517 NO_ARCH= yes @@ -34,7 +38,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 diff --git a/science/py-asdf/files/setup.py b/science/py-asdf/files/setup.py deleted file mode 100644 index 78c9ae328948..000000000000 --- a/science/py-asdf/files/setup.py +++ /dev/null @@ -1,69 +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', - 'asdf.commands', - 'asdf.commands.tests', - 'asdf.commands.tests.data', - 'asdf.compat', - 'asdf.extension', - 'asdf.extern', - 'asdf.tags', - 'asdf.tags.core', - 'asdf.tags.core.tests', - 'asdf.tags.core.tests.data', - 'asdf.testing', - 'asdf.tests', - 'asdf.tests.data'] - -package_data = \ -{'': ['*']} - -install_requires = \ -['asdf-standard >=1.0.1', - 'asdf-transform-schemas >=0.3.0', - 'asdf-unit-schemas >=0.1.0', - 'importlib-metadata >=4.8.1', - 'jmespath >=0.6.2', - 'jsonschema >=4.0.1', - 'numpy >=1.18', - 'packaging >=16.0', - 'pyyaml >=3.10', - 'semantic_version >=2.8'] - -extras_require = \ -{':python_version <"3.9"': ['importlib_resources >=3'], - 'all': ['lz4 >=0.10'], - 'docs': ['tomli', 'sphinx-asdf >=0.1.4'], - 'tests': ['astropy >=5.0.4', - 'gwcs', - 'pytest >=6.0.0', - 'pytest-doctestplus', - 'pytest-remotedata', - 'pytest-openfiles', - 'psutil', - 'lz4 >=0.10', - 'fsspec[http] >=2022.8.2']} - -entry_points = \ -{'console_scripts': ['asdftool = asdf.commands.main:main'], - 'asdf_extensions': ['builtin = asdf.extension:BuiltinExtension'], - 'asdf.resource_mappings': ['asdf = asdf.resource:get_json_schema_resource_mappings'], - 'pytest11': ['asdf_schema_tester = pytest_asdf.plugin']} - -setup(name='asdf', - version='%%PORTVERSION%%', - description='Python implementation of the ASDF Standard', - author=None, - author_email='The ASDF Developers ', - url=None, - packages=packages, - package_data=package_data, - install_requires=install_requires, - extras_require=extras_require, - entry_points=entry_points, - python_requires='>=3.8', - ) -- cgit v1.2.3