-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from csiro-coasts/task/switch-to-pyproject-toml
Switch to using pyproject.toml for all project metadata
- Loading branch information
Showing
6 changed files
with
93 additions
and
98 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,3 @@ | ||
[flake8] | ||
extend-select = E,W | ||
extend-ignore = E501,W503,E731 |
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 |
---|---|---|
|
@@ -4,6 +4,89 @@ requires = [ | |
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "emsarray" | ||
version = "0.6.1" | ||
description = "xarray extension that supports multiple geometry conventions" | ||
authors = [ | ||
{name = "Coastal Environmental Modelling team, Oceans and Atmosphere, CSIRO", email = "[email protected]"}, | ||
] | ||
license = {file = "LICENSE"} | ||
requires-python = ">=3.10" | ||
dependencies = [ | ||
"bottleneck >=1.3", | ||
"geojson >=3.0", | ||
"netcdf4 >=1.6.4", | ||
"numpy >=1.24", | ||
"packaging >=23.1", | ||
"shapely >=2.0", | ||
"pyshp >=2.3", | ||
"xarray[parallel] >=2023.5", | ||
] | ||
|
||
dynamic = ["readme"] | ||
|
||
[project.urls] | ||
Documentation = "https://emsarray.readthedocs.io/" | ||
"Release notes" = "https://emsarray.readthedocs.io/en/stable/releases/0.6.1/" | ||
Source = "https://github.com/csiro-coasts/emsarray/" | ||
|
||
[project.optional-dependencies] | ||
plot = [ | ||
"cartopy >=0.21", | ||
"matplotlib >=3.7", | ||
"pykdtree >=1.3", | ||
"cfunits >= 3.3", | ||
] | ||
|
||
tutorial = [ | ||
"pooch >=1.7", | ||
] | ||
|
||
complete = [ | ||
"emsarray[plot,tutorial]", | ||
] | ||
|
||
docs = [ | ||
"emsarray[complete]", | ||
"sphinx ~=6.2.1", | ||
"sphinx_book_theme ~=1.0.1", | ||
"livereload~=2.6.3", | ||
] | ||
|
||
testing = [ | ||
"emsarray[complete]", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-mpl", | ||
"mypy", | ||
"pandas-stubs", | ||
"types-pytz", | ||
"flake8", | ||
"isort", | ||
] | ||
|
||
[project.scripts] | ||
emsarray = "emsarray.cli:main" | ||
|
||
[project.entry-points."emsarray.conventions"] | ||
ArakawaC = "emsarray.conventions.arakawa_c:ArakawaC" | ||
CFGrid1D = "emsarray.conventions.grid:CFGrid1D" | ||
CFGrid2D = "emsarray.conventions.grid:CFGrid2D" | ||
ShocSimple = "emsarray.conventions.shoc:ShocSimple" | ||
ShocStandard = "emsarray.conventions.shoc:ShocStandard" | ||
UGrid = "emsarray.conventions.ugrid:UGrid" | ||
# emsarray.conventions end - marker used by docs | ||
|
||
[tool.setuptools.dynamic] | ||
readme = {file = ["README.md"], content-type = "text/markdown"} | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[tool.setuptools.package-data] | ||
mypkg = ["py.typed"] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = [ | ||
# TODO Work around till the mpl-baseline-path ini option is included in the | ||
|