aboutsummaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-03-21 18:47:24 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-03-21 19:21:15 +0000
commita3960e33fea0273bd714ea7695c008d070d3dae6 (patch)
tree2943fb5304902d13f3cefa99158a82185b7ae575 /science
parentb6f4dd5309a849c26267e7a4c1aed84cf95449ee (diff)
downloadports-a3960e33fea0273bd714ea7695c008d070d3dae6.tar.gz
ports-a3960e33fea0273bd714ea7695c008d070d3dae6.zip
Diffstat (limited to 'science')
-rw-r--r--science/py-asdf/Makefile11
-rw-r--r--science/py-asdf/files/setup.py69
2 files changed, 6 insertions, 74 deletions
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 <bsd.port.post.mk>
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 <help@stsci.edu>',
- url=None,
- packages=packages,
- package_data=package_data,
- install_requires=install_requires,
- extras_require=extras_require,
- entry_points=entry_points,
- python_requires='>=3.8',
- )