science/py-asdf-standard: Convert to USE_PYTHON=pep517

- Bump PORTREVISION for dependency and package change
This commit is contained in:
Po-Chuan Hsieh 2023-03-22 02:47:26 +08:00
parent a3960e33fe
commit e4da8123ac
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
2 changed files with 6 additions and 52 deletions

View file

@ -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>

View file

@ -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',
)