science/py-asdf-unit-schemas: Add py-asdf-unit-schemas 0.1.0

asdf-unit-schemas provides ASDF schemas for validating unit tags. Users should
not need to install this directly; instead, install an implementation package
such as asdf-astropy, which includes asdf-unit-schemas as a dependency.
This commit is contained in:
Po-Chuan Hsieh 2023-01-30 20:21:08 +08:00
parent db1c3e41b3
commit 3de7714032
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
5 changed files with 86 additions and 0 deletions

View File

@ -298,6 +298,7 @@
SUBDIR += py-asdf
SUBDIR += py-asdf-standard
SUBDIR += py-asdf-transform-schemas
SUBDIR += py-asdf-unit-schemas
SUBDIR += py-ase
SUBDIR += py-atomium
SUBDIR += py-avogadrolibs

View File

@ -0,0 +1,31 @@
PORTNAME= asdf-unit-schemas
PORTVERSION= 0.1.0
CATEGORIES= science python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= asdf_unit_schemas-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= ASDF schemas for units
WWW= https://github.com/asdf-format/asdf-unit-schemas
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asdf-standard>=1.0.1:science/py-asdf-standard@${PY_FLAVOR}
USES= python:3.8+
USE_PYTHON= autoplist concurrent distutils
NO_ARCH= yes
.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>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1674588062
SHA256 (asdf_unit_schemas-0.1.0.tar.gz) = 42b78d67213efe4ffd4529fb0e58d9c7a0dab5cbf8839b230f1bc0a446bff999
SIZE (asdf_unit_schemas-0.1.0.tar.gz) = 50607

View File

@ -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_unit_schemas']
package_data = \
{'': ['*']}
package_dir = \
{'': 'src'}
install_requires = \
['asdf-standard >= 1.0.1']
extras_require = \
{':python_version<"3.9"': ['importlib_resources >= 3'],
'docs': ['tomli',
'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_unit_schemas = '
'asdf_unit_schemas.integration:get_resource_mappings']}
setup(name='asdf_unit_schemas',
version='%%PORTVERSION%%',
description='ASDF schemas for units',
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',
)

View File

@ -0,0 +1,3 @@
asdf-unit-schemas provides ASDF schemas for validating unit tags. Users should
not need to install this directly; instead, install an implementation package
such as asdf-astropy, which includes asdf-unit-schemas as a dependency.