-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SCSB-145] require Python 3.10 (#330)
- Loading branch information
1 parent
26c0b37
commit 62d7c96
Showing
3 changed files
with
62 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,83 @@ | ||
[project] | ||
name = 'roman_datamodels' | ||
description = 'data models supporting calibration of the Nancy Grace Roman Space Telescope' | ||
readme = 'README.md' | ||
requires-python = '>=3.9' | ||
license = { file = 'LICENSE' } | ||
authors = [{ name = 'STScI', email = '[email protected]' }] | ||
name = "roman_datamodels" | ||
description = "data models supporting calibration of the Nancy Grace Roman Space Telescope" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
authors = [ | ||
{ name = "STScI", email = "[email protected]" }, | ||
] | ||
classifiers = [ | ||
'Intended Audience :: Science/Research', | ||
'Topic :: Scientific/Engineering :: Astronomy', | ||
'License :: OSI Approved :: BSD License', | ||
'Programming Language :: Python :: 3', | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Scientific/Engineering :: Astronomy", | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python :: 3", | ||
] | ||
dependencies = [ | ||
'asdf >=2.15.0', | ||
'asdf-astropy >=0.5.0', | ||
'gwcs >=0.18.1', | ||
'numpy >=1.22', | ||
'astropy >=5.3.0', | ||
# 'rad >=0.18.0', | ||
'rad @ git+https://github.com/spacetelescope/rad.git', | ||
'asdf-standard >=1.0.3', | ||
"asdf >=2.15.0", | ||
"asdf-astropy >=0.5.0", | ||
"gwcs >=0.18.1", | ||
"numpy >=1.22", | ||
"astropy >=5.3.0", | ||
"rad @ git+https://github.com/spacetelescope/rad.git", | ||
"asdf-standard >=1.0.3", | ||
] | ||
dynamic = [ | ||
"version", | ||
] | ||
dynamic = ['version'] | ||
|
||
[project.license] | ||
file = "LICENSE" | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
'pytest >=6.0.0', | ||
'pytest-doctestplus', | ||
'pytest-doctestplus >=0.10.0', | ||
'pytest-env >= 0.8' | ||
"pytest >=6.0.0", | ||
"pytest-doctestplus", | ||
"pytest-doctestplus >=0.10.0", | ||
"pytest-env >= 0.8", | ||
] | ||
aws = [ | ||
'stsci-aws-utils >= 0.1.2', | ||
"stsci-aws-utils >= 0.1.2", | ||
] | ||
docs = [ | ||
'sphinx', | ||
'sphinx-automodapi', | ||
'sphinx-rtd-theme', | ||
'sphinx-astropy', | ||
'tomli; python_version <"3.11"', | ||
"sphinx", | ||
"sphinx-automodapi", | ||
"sphinx-rtd-theme", | ||
"sphinx-astropy", | ||
"tomli; python_version <\"3.11\"", | ||
] | ||
|
||
[project.urls] | ||
'issues' = 'https://github.com/spacetelescope/roman_datamodels/issues' | ||
'repository' = 'https://github.com/spacetelescope/roman_datamodels' | ||
issues = "https://github.com/spacetelescope/roman_datamodels/issues" | ||
repository = "https://github.com/spacetelescope/roman_datamodels" | ||
|
||
[project.entry-points] | ||
'asdf.extensions' = { roman_datamodels = 'roman_datamodels.stnode._integration:get_extensions' } | ||
[project.entry-points."asdf.extensions"] | ||
roman_datamodels = "roman_datamodels.stnode._integration:get_extensions" | ||
|
||
[build-system] | ||
requires = ["setuptools >=61", "setuptools_scm[toml] >=3.4", "wheel"] | ||
requires = [ | ||
"setuptools >=61", | ||
"setuptools_scm[toml] >=3.4", | ||
"wheel", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/roman_datamodels/_version.py" | ||
|
||
[tool.setuptools.packages.find] | ||
where = ['src'] | ||
where = [ | ||
"src", | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
minversion = 4.6 | ||
doctest_plus = true | ||
doctest_rst = true | ||
text_file_format = 'rst' | ||
addopts = '--color=yes --doctest-rst' | ||
testpaths = ['tests'] | ||
text_file_format = "rst" | ||
addopts = "--color=yes --doctest-rst" | ||
testpaths = [ | ||
"tests", | ||
] | ||
filterwarnings = [ | ||
"error", | ||
"ignore:numpy.ndarray size changed:RuntimeWarning", | ||
|
@@ -76,18 +89,13 @@ env = [ | |
|
||
[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\(.*\):', | ||
'if __name__ == \(.*\):', | ||
# Don't complain if non-runnable code isn't run | ||
'pass\n', | ||
"pragma: no cover", | ||
"except ImportError", | ||
"raise AssertionError", | ||
"raise NotImplementedError", | ||
"def main\\(.*\\):", | ||
"if __name__ == \\(.*\\):", | ||
"pass\\n", | ||
] | ||
|
||
[tool.isort] | ||
|
@@ -97,21 +105,10 @@ line_length = 130 | |
|
||
[tool.black] | ||
line-length = 130 | ||
force-exclude = ''' | ||
^/( | ||
( | ||
\.eggs | ||
| \.git | ||
| \.pytest_cache | ||
| \.tox | ||
)/ | ||
) | ||
''' | ||
force-exclude = "^/(\n (\n \\.eggs\n | \\.git\n | \\.pytest_cache\n | \\.tox\n )/\n)\n" | ||
|
||
[tool.ruff] | ||
line-length = 130 | ||
|
||
[tool.codespell] | ||
skip="*.pdf,*.fits,*.asdf,.tox,build,./tags,.git,docs/_build" | ||
# ignore-words-list=""" | ||
# """ | ||
skip = "*.pdf,*.fits,*.asdf,.tox,build,./tags,.git,docs/_build" |