-
Notifications
You must be signed in to change notification settings - Fork 27
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
78cca9f
commit 6f630c3
Showing
5 changed files
with
81 additions
and
65 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,7 @@ | ||
# flake8 does not support pyproject.toml (https://github.com/PyCQA/flake8/issues/234) | ||
|
||
[flake8] | ||
# E265: block comment should start with '#' | ||
# F821 undefined name | ||
extend-ignore = E265,F821,F841 | ||
extend-exclude = setup.py,__init__.py |
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,8 +1,73 @@ | ||
[project] | ||
name = "calcos" | ||
description = "Calibration software for COS (Cosmic Origins Spectrograph)" | ||
requires-python = ">=3.8" | ||
authors = [ | ||
{ name = "Phil Hodge" }, | ||
{ name = "Robert Jedrzejewski" }, | ||
] | ||
classifiers = [ | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: C", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
dependencies = [ | ||
"astropy>=5.0.4", | ||
"numpy", | ||
"scipystsci.tools>=4.0.0", | ||
] | ||
dynamic = [ | ||
"version", | ||
] | ||
|
||
[project.readme] | ||
file = "README.md" | ||
content-type = "text/markdown" | ||
|
||
[project.scripts] | ||
calcos = "calcos:main" | ||
|
||
[project.optional-dependencies] | ||
docs = [ | ||
"sphinx", | ||
] | ||
test = [ | ||
"ci-watson", | ||
"pytest", | ||
"pytest-cov", | ||
"codecov", | ||
] | ||
|
||
[build-system] | ||
requires = [ | ||
"setuptools>=42.0", | ||
"setuptools>=61.2", | ||
"setuptools_scm[toml]>=3.4", | ||
"wheel", | ||
"oldest-supported-numpy", | ||
] | ||
build-backend = 'setuptools.build_meta' | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools] | ||
include-package-data = false | ||
|
||
[tool.setuptools.packages.find] | ||
namespaces = false | ||
|
||
[tool.setuptools.package-data] | ||
calcos = [ | ||
"pars/*", | ||
"*.help", | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
minversion = "3.0" | ||
norecursedirs = [ | ||
"build", | ||
"doc/build", | ||
"src", | ||
] | ||
junit_family = "xunit2" | ||
|
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