1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
|
[project]
name = 'asdf'
description = 'Python implementation of the ASDF Standard'
readme = 'README.rst'
requires-python = '>=3.8'
license = { file = 'LICENSE' }
authors = [{ name = 'The ASDF Developers', email = 'help@stsci.edu' }]
classifiers = [
"License :: OSI Approved :: BSD License",
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Development Status :: 5 - Production/Stable',
]
dependencies = [
'asdf-standard >=1.0.1',
'asdf-transform-schemas >=0.3.0',
'importlib_resources >=3; python_version <"3.9"',
'importlib-metadata >=4.11.4',
'jmespath >=0.6.2',
'jsonschema >=4.0.1',
'numpy >=1.18',
'packaging >=16.0',
'pyyaml >=3.10',
'semantic_version >=2.8',
]
dynamic = ['version']
[project.optional-dependencies]
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',
]
[project.urls]
'tracker' = 'https://github.com/asdf-format/asdf/issues'
'documentation' = 'https://asdf.readthedocs.io/en/stable'
'repository' = 'https://github.com/asdf-format/asdf'
[project.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' }
[build-system]
requires = [
'setuptools >=60',
'setuptools_scm[toml] >=3.4',
'wheel',
]
build-backend = 'setuptools.build_meta'
[tool.setuptools_scm]
write_to = "asdf/_version.py"
[tool.setuptools.packages.find]
include = ['asdf*', 'pytest_asdf*']
[tool.setuptools.package-data]
'asdf.commands.tests.data' = ["*"]
'asdf.tags.core.tests.data' = ["*"]
'asdf.tests.data' = ["*"]
[tool.pytest.ini_options]
testpaths = ['asdf', 'docs']
minversion = 4.6
norecursedirs = ['build', 'docs/_build', 'docs/sphinxext']
doctest_plus = 'enabled'
remote_data_strict = true
open_files_ignore = ['test.fits', 'asdf.fits']
# The asdf.asdftypes module emits a warning on import,
# which pytest trips over during collection:
filterwarnings = [
'error',
'ignore::astropy.utils.exceptions.AstropyDeprecationWarning',
'ignore::asdf.exceptions.AsdfDeprecationWarning:asdf.asdftypes',
'ignore:numpy.ndarray size changed:RuntimeWarning',
]
# Configuration for pytest-doctestplus
text_file_format = 'rst'
addopts = '--color=yes --doctest-rst'
[tool.coverage.run]
omit = [
'asdf/_astropy_init*',
'asdf/conftest*',
'asdf/cython_version*',
'asdf/setup_package*',
'asdf/*/setup_package*',
'asdf/*/*/setup_package*',
'asdf/testing/*',
'asdf/tests/*',
'asdf/*/tests/*',
'asdf/*/*/tests/*',
'asdf/version.*',
'asdf/compat*',
'asdf/extern*',
# And again for running against installed version
'*/asdf/_astropy_init*',
'*/asdf/conftest*',
'*/asdf/cython_version*',
'*/asdf/setup_package*',
'*/asdf/*/setup_package*',
'*/asdf/*/*/setup_package*',
'*/asdf/testing/*',
'*/asdf/tests/*',
'*/asdf/*/tests/*',
'*/asdf/*/*/tests/*',
'*/asdf/version.*',
'*/asdf/compat*',
'*/asdf/extern*',
]
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
'pragma: no cover',
# Don't complain about packages we have installed
'except ImportError',
# Don't complain if tests don't hit assertions
'raise AssertionError',
'raise NotImplementedError',
# Don't complain about script hooks
'def main\(.*\):',
# Ignore branches that don't pertain to this version of Python
'pragma: py{ ignore_python_version }',
]
[tool.black]
line-length = 120
force-exclude = '''
^/(
(
\.eggs
| \.git
| \.pytest_cache
| \.tox
| asdf/extern
| build
| dist
)/
)
'''
[tool.isort]
profile = "black"
filter_files = true
line_length = 120
extend_skip_glob = ["asdf/extern/*", ".eggs/*", ".tox/*"]
[tool.ruff]
line-length = 120
extend-exclude = ["asdf/extern/*", "docs/*"]
[tool.codespell]
skip="*.pdf,*.fits,*.asdf,.tox,asdf/extern,build,./tags,.git,docs/_build"
ignore-words-list="""
fo,
"""
|