|
| 1 | +[project] |
| 2 | +name = 'crds' |
| 3 | +description = 'Calibration Reference Data System, HST/JWST/Roman reference file management' |
| 4 | +readme = 'README.md' |
| 5 | +requires-python = '>=3.8' |
| 6 | +license = { file = 'LICENSE.txt' } |
| 7 | +authors = [{ name = 'STScI CRDS s/w developers' }] |
| 8 | +classifiers = [ |
| 9 | + 'Intended Audience :: Science/Research', |
| 10 | + 'License :: OSI Approved :: BSD License', |
| 11 | + 'Operating System :: POSIX :: Linux', |
| 12 | + 'Operating System :: MacOS :: MacOS X', |
| 13 | + 'Programming Language :: Python :: 3', |
| 14 | + 'Topic :: Scientific/Engineering :: Astronomy', |
| 15 | +] |
| 16 | +dependencies = [ |
| 17 | + "asdf", |
| 18 | + "astropy", |
| 19 | + "filelock", |
| 20 | + "lxml", |
| 21 | + "numpy", |
| 22 | + "parsley", |
| 23 | + "requests", |
| 24 | +] |
| 25 | +dynamic = ['version'] |
| 26 | + |
| 27 | +[project.optional-dependencies] |
| 28 | +jwst = [ |
| 29 | + "jwst", |
| 30 | +] |
| 31 | +roman = [ |
| 32 | + "roman_datamodels", |
| 33 | +] |
| 34 | +submission = [ |
| 35 | + "requests", |
| 36 | + "lxml", |
| 37 | + "parsley", |
| 38 | +] |
| 39 | +dev = [ |
| 40 | + "ipython", |
| 41 | + "jupyterlab", |
| 42 | + "ansible", |
| 43 | + "helm", |
| 44 | + "nose-cprof", |
| 45 | + "coverage", |
| 46 | +] |
| 47 | +test = [ |
| 48 | + "lockfile", |
| 49 | + "mock", |
| 50 | + "nose", |
| 51 | + "pytest", |
| 52 | + "pylint", |
| 53 | + "flake8", |
| 54 | + "bandit", |
| 55 | +] |
| 56 | +docs = [ |
| 57 | + "sphinx", |
| 58 | + "sphinx_rtd_theme", |
| 59 | + "docutils", |
| 60 | + "sphinx_automodapi", |
| 61 | + "sphinx-tabs", |
| 62 | + 'tomli; python_version <"3.11"', |
| 63 | +] |
| 64 | +aws = [ |
| 65 | + "boto3", |
| 66 | + "awscli", |
| 67 | +] |
| 68 | +synphot = [ |
| 69 | + "stsynphot", |
| 70 | + "pysynphot", |
| 71 | +] |
| 72 | + |
| 73 | +[project.urls] |
| 74 | +'documentation' = 'https://hst-crds.stsci.edu/static/users_guide/index.html' |
| 75 | +'tracker' = 'https://github.com/spacetelescope/crds/issues/' |
| 76 | +'repository' = 'https://github.com/spacetelescope/crds/' |
| 77 | +'help' = 'https://hsthelp.stsci.edu/' |
| 78 | + |
1 | 79 | [build-system]
|
2 |
| -requires = ["setuptools>=42", "setuptools_scm[toml]>=3.4", "wheel"] |
3 |
| -build-backend = "setuptools.build_meta" |
| 80 | +requires = [ |
| 81 | + 'setuptools >=61', |
| 82 | + 'setuptools_scm[toml] >=3.4', |
| 83 | + 'wheel', |
| 84 | +] |
| 85 | +build-backend = 'setuptools.build_meta' |
4 | 86 |
|
5 | 87 | [tool.setuptools_scm]
|
6 | 88 | write_to = "crds/_version.py"
|
| 89 | + |
| 90 | +[tool.setuptools] |
| 91 | +packages = [ |
| 92 | + 'crds', |
| 93 | + 'crds.bestrefs', |
| 94 | + 'crds.certify', |
| 95 | + 'crds.certify.validators', |
| 96 | + 'crds.client', |
| 97 | + 'crds.core', |
| 98 | + 'crds.io', |
| 99 | + 'crds.submit', |
| 100 | + 'crds.misc', |
| 101 | + 'crds.misc.synphot', |
| 102 | + 'crds.refactoring', |
| 103 | + 'crds.hst', |
| 104 | + 'crds.jwst', |
| 105 | + 'crds.tobs', |
| 106 | + 'crds.roman', |
| 107 | + 'crds.tests', |
| 108 | +] |
| 109 | + |
| 110 | +[tool.setuptools.package_dir] |
| 111 | +'crds' = 'crds' |
| 112 | +'crds.bestrefs' = 'crds/bestrefs' |
| 113 | +'crds.certify' = 'crds/certify' |
| 114 | +'crds.certify.validators' = 'crds/certify/validators' |
| 115 | +'crds.client' = 'crds/client' |
| 116 | +'crds.core' = 'crds/core' |
| 117 | +'crds.io' = 'crds/io' |
| 118 | +'crds.submit' = 'crds/submit' |
| 119 | + |
| 120 | +'crds.misc' = 'crds/misc' |
| 121 | +'crds.misc.synphot' = 'crds/misc/synphot' |
| 122 | +'crds.refactoring' = 'crds/refactoring' |
| 123 | + |
| 124 | +'crds.hst' = 'crds/hst' |
| 125 | +'crds.jwst' = 'crds/jwst' |
| 126 | +'crds.roman' = 'crds/roman' |
| 127 | +'crds.tobs' = 'crds/tobs' |
| 128 | + |
| 129 | +'crds.tests' = 'crds/tests' |
| 130 | + |
| 131 | +# Define data files included by each observatory package relative |
| 132 | +# to each observatory/mission directory. |
| 133 | +[tool.setuptools.package-data] |
| 134 | +'crds.hst' = [ |
| 135 | + '*.dat', |
| 136 | + '*.yaml', |
| 137 | + '*.json', |
| 138 | + 'tpns/*.tpn', |
| 139 | + 'tpns/includes/*.tpn', |
| 140 | + 'specs/*.spec', |
| 141 | + 'specs/*.rmap', |
| 142 | + 'specs/*.json', |
| 143 | +] |
| 144 | +'crds.jwst' = [ |
| 145 | + '*.dat', |
| 146 | + '*.yaml', |
| 147 | + '*.json', |
| 148 | + 'tpns/*.tpn', |
| 149 | + 'tpns/includes/*.tpn', |
| 150 | + 'specs/*.spec', |
| 151 | + 'specs/*.rmap', |
| 152 | + 'specs/*.json', |
| 153 | +] |
| 154 | +'crds.roman' = [ |
| 155 | + '*.dat', |
| 156 | + '*.yaml', |
| 157 | + '*.json', |
| 158 | + 'tpns/*.tpn', |
| 159 | + 'tpns/includes/*.tpn', |
| 160 | + 'specs/*.spec', |
| 161 | + 'specs/*.rmap', |
| 162 | + 'specs/*.json', |
| 163 | +] |
| 164 | +'crds.tobs' = [ |
| 165 | + '*.dat', |
| 166 | + '*.yaml', |
| 167 | + '*.json', |
| 168 | + 'tpns/*.tpn', |
| 169 | + 'tpns/includes/*.tpn', |
| 170 | + 'specs/*.spec', |
| 171 | + 'specs/*.rmap', |
| 172 | + 'specs/*.json', |
| 173 | +] |
| 174 | + |
| 175 | +[tool.nosetests] |
| 176 | +verbosity = 2 |
| 177 | +detailed-errors = 1 |
| 178 | +# with-coverage=1 |
| 179 | +# cover-erase=1 |
| 180 | +# cover-branches=1 |
| 181 | +# cover-package=application |
| 182 | +# cover-html=1 |
| 183 | +# cover-html-dir=htmlcov |
| 184 | +where = 'crds' |
| 185 | +with-doctest = 1 |
| 186 | +doctest-tests = 1 |
| 187 | +doctest-options = ['+ELLIPSIS', '+NORMALIZE_WHITESPACE', '+IGNORE_EXCEPTION_DETAIL'] |
| 188 | +logging-clear-handlers = 1 |
0 commit comments