-
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.
move build configuration into
pyproject.toml
- Loading branch information
1 parent
43d7f7b
commit fccc3da
Showing
5 changed files
with
93 additions
and
101 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# flake8 does not support pyproject.toml (https://github.com/PyCQA/flake8/issues/234) | ||
|
||
[flake8] | ||
select = F, W, E101, E111, E112, E113, E401, E402, E501, E711, E722 | ||
# We should set max line length to 88 eventually | ||
max-line-length = 130 | ||
exclude = | ||
docs, | ||
ignore = E203, W503, W504, W605 |
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,6 +1,85 @@ | ||
[project] | ||
name = 'roman_datamodels' | ||
description = 'data models supporting calibration of the Nancy Grace Roman Space Telescope' | ||
readme = 'README.md' | ||
requires-python = '>=3.8' | ||
license = { file = 'LICENSE' } | ||
authors = [{ name = 'STScI', email = '[email protected]' }] | ||
classifiers = [ | ||
'Intended Audience :: Science/Research', | ||
'Topic :: Scientific/Engineering :: Astronomy', | ||
'License :: OSI Approved :: BSD License', | ||
'Programming Language :: Python :: 3', | ||
] | ||
dependencies = [ | ||
'asdf >=2.13.0', | ||
'asdf-astropy >=0.2.0', | ||
'psutil >=5.7.2', | ||
'numpy', | ||
'astropy >=5.0.4', | ||
'rad >=0.13.1', | ||
'asdf-standard >=1.0.3', | ||
] | ||
dynamic = ['version'] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
'pytest >=6.0.0', | ||
'pytest-doctestplus', | ||
'pytest-openfiles >=0.5.0', | ||
'pytest-doctestplus >=0.10.0', | ||
] | ||
aws = [ | ||
'stsci-aws-utils >= 0.1.2', | ||
] | ||
|
||
[project.urls] | ||
'issues' = 'https://github.com/spacetelescope/roman_datamodels/issues' | ||
'repository' = 'https://github.com/spacetelescope/roman_datamodels' | ||
|
||
[project.entry-points] | ||
'asdf.extensions' = { roman_datamodels = 'roman_datamodels.integration:get_extensions' } | ||
|
||
[build-system] | ||
requires = ["setuptools>=42", "setuptools_scm[toml]>=3.4", "wheel"] | ||
requires = ["setuptools >=60", "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'] | ||
|
||
[tool.pytest.ini_options] | ||
minversion = 4.6 | ||
doctest_plus = true | ||
doctest_rst = true | ||
text_file_format = 'rst' | ||
addopts = '--show-capture=no --open-files' | ||
testpaths = ['tests'] | ||
|
||
[tool.coverage.run] | ||
omit = [ | ||
'roman_datamodels/pyproject.toml', | ||
'roman_datamodels/tests', | ||
'roman_datamodels/src/roman_datamodels/stnode_test.py', | ||
# And list these again for running against installed version | ||
'*/roman_datamodels/pyproject.toml', | ||
'*/roman_datamodels/tests', | ||
'*/roman_datamodels/src/roman_datamodels/mktest.py', | ||
'*/roman_datamodels/src/roman_datamodels/stnode_test.py', | ||
] | ||
|
||
[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__ == \'__main__\':', | ||
] |