Skip to content

Commit

Permalink
require Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Mar 14, 2024
1 parent 26c0b37 commit dea0a38
Showing 1 changed file with 60 additions and 63 deletions.
123 changes: 60 additions & 63 deletions pyproject.toml
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",
Expand All @@ -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]
Expand All @@ -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"

0 comments on commit dea0a38

Please sign in to comment.