generated from carbonplan/python-project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conform to newest versions of xarray-datatree (#55)
- Loading branch information
1 parent
6746e88
commit 03058b3
Showing
9 changed files
with
69 additions
and
77 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
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,5 +1,5 @@ | ||
# flake8: noqa | ||
|
||
from ._version import __version__ | ||
from .core import pyramid_coarsen, pyramid_reproject | ||
from .regrid import pyramid_regrid | ||
from ._version import __version__ |
This file was deleted.
Oops, something went wrong.
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
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,13 +1,54 @@ | ||
|
||
[build-system] | ||
requires = ["setuptools>=64", "setuptools-scm[toml]>=6.2", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "ndpyramid" | ||
description = "A small utility for generating ND array pyramids using Xarray and Zarr" | ||
readme = "README.md" | ||
license = { text = "MIT" } | ||
authors = [{ name = "CarbonPlan", email = "[email protected]" }] | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Topic :: Scientific/Engineering", | ||
] | ||
dynamic = ["version"] | ||
|
||
dependencies = ["cf_xarray", "xarray-datatree >= 0.0.11", "zarr"] | ||
|
||
[project.urls] | ||
repository = "https://github.com/carbonplan/ndpyramid" | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["ndpyramid*"] | ||
|
||
[tool.setuptools_scm] | ||
version_scheme = "post-release" | ||
local_scheme = "node-and-date" | ||
fallback_version = "999" | ||
write_to = "ndpyramid/_version.py" | ||
write_to_template = '__version__ = "{version}"' | ||
|
||
|
||
# [tool.setuptools.dynamic] | ||
# version = { attr = "ndpyramid.__version__" } | ||
|
||
|
||
[tool.black] | ||
line-length = 100 | ||
target-version = ['py39'] | ||
skip-string-normalization = true | ||
|
||
|
||
[build-system] | ||
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"] | ||
|
||
|
||
[tool.ruff] | ||
line-length = 100 | ||
target-version = "py39" | ||
|
@@ -38,11 +79,7 @@ per-file-ignores = {} | |
# E402: module level import not at top of file | ||
# E501: line too long - let black worry about that | ||
# E731: do not assign a lambda expression, use a def | ||
ignore = [ | ||
"E402", | ||
"E501", | ||
"E731", | ||
] | ||
ignore = ["E402", "E501", "E731"] | ||
select = [ | ||
# Pyflakes | ||
"F", | ||
|
This file was deleted.
Oops, something went wrong.