git: 9b383e552340 - main - science/py-asdf-transform-schemas: Update to 0.3.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 31 Aug 2022 11:44:28 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9b383e552340a4285968937064a7c120a132c9d6

commit 9b383e552340a4285968937064a7c120a132c9d6
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-31 11:24:14 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-31 11:41:13 +0000

    science/py-asdf-transform-schemas: Update to 0.3.0
    
    Changes:        https://github.com/asdf-format/asdf-transform-schemas/releases
---
 science/py-asdf-transform-schemas/Makefile       | 14 +++++--
 science/py-asdf-transform-schemas/distinfo       |  6 +--
 science/py-asdf-transform-schemas/files/setup.py | 48 ++++++++++++++++++++++++
 3 files changed, 62 insertions(+), 6 deletions(-)

diff --git a/science/py-asdf-transform-schemas/Makefile b/science/py-asdf-transform-schemas/Makefile
index a8781b2e1f67..7a9dc1467084 100644
--- a/science/py-asdf-transform-schemas/Makefile
+++ b/science/py-asdf-transform-schemas/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	asdf-transform-schemas
-PORTVERSION=	0.2.2
+PORTVERSION=	0.3.0
 CATEGORIES=	science python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,7 +11,6 @@ COMMENT=	ASDF schemas for transforms
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}asdf-standard>=1.0.1:science/py-asdf-standard@${PY_FLAVOR}
 
 USES=		python:3.8+
@@ -19,4 +18,13 @@ USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30900
+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-transform-schemas/distinfo b/science/py-asdf-transform-schemas/distinfo
index 164b2a45fb57..99a669a754e7 100644
--- a/science/py-asdf-transform-schemas/distinfo
+++ b/science/py-asdf-transform-schemas/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1646057860
-SHA256 (asdf_transform_schemas-0.2.2.tar.gz) = f71a9309ed3ebd09b1937ae857c94cec92887870440eb3e9868bbbed72656b15
-SIZE (asdf_transform_schemas-0.2.2.tar.gz) = 50356
+TIMESTAMP = 1661599315
+SHA256 (asdf_transform_schemas-0.3.0.tar.gz) = 0cf2ff7b22ccb408fe58ddd9b2441a59ba73fe323e416d59b9e0a4728a7d2dd6
+SIZE (asdf_transform_schemas-0.3.0.tar.gz) = 96822
diff --git a/science/py-asdf-transform-schemas/files/setup.py b/science/py-asdf-transform-schemas/files/setup.py
new file mode 100644
index 000000000000..6af53c0348e4
--- /dev/null
+++ b/science/py-asdf-transform-schemas/files/setup.py
@@ -0,0 +1,48 @@
+#!/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_transform_schemas']
+
+package_data = \
+{'': ['*']}
+
+package_dir = \
+{'': 'src'}
+
+install_requires = \
+['asdf-standard >= 1.0.1']
+
+extras_require = \
+{':python_version<"3.9"': ['importlib_resources >= 3'],
+ 'docs': ['toml',
+          'sphinx',
+          'sphinx-asdf >= 0.1.3',
+          'sphinx-astropy',
+          'astropy >= 5.0.4',
+          'graphviz',
+          'matplotlib',
+          'docutils',
+          'sphinx-rtd-theme'],
+ 'test': ['asdf >= 2.8.0', 'asdf-astropy', 'scipy', 'pytest']}
+
+entry_points = \
+{'asdf.resource_mappings': ['asdf_transform_schemas = '
+                            'asdf_transform_schemas.integration:get_resource_mappings']}
+
+setup(name='asdf_transform_schemas',
+      version='%%PORTVERSION%%',
+      description='ASDF schemas for transforms',
+      author=None,
+      author_email='The ASDF Developers <help@stsci.edu>',
+      url=None,
+      packages=packages,
+      package_data=package_data,
+      package_dir=package_dir,
+      install_requires=install_requires,
+      extras_require=extras_require,
+      entry_points=entry_points,
+      python_requires='>=3.8',
+     )