-
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.
Update pyproject.toml and remove setup.py (#143)
* Update pyproject.toml and remove setup.py - Update version control to hatch backend - Update pytest, coverage, and ruff via pyproject.toml * Update __init__.py * Delete versioneer.py * Update .gitignore * Create .git_archival.txt * Update .gitattributes * Create codespell.yml * Create ruff.yml * Update conf.py * Update conf.py * Update test_io_convert.py * Update CHANGELOG.md * Update base_tests_zarrio.py * Update test_fsspec_streaming.py * Update overview.rst * Update storage.rst * Update _version.py * Update utils.py * Update backend.py * Update backend.py * Update CHANGELOG.md * Update pyproject.toml * Update pyproject.toml * Update pyproject.toml * Update pyproject.toml Co-authored-by: Ryan Ly <[email protected]> * Delete setup.cfg * Delete setup.py * Delete src/hdmf_zarr/_version.py * Delete .github/workflows/run_flake8.yml --------- Co-authored-by: Ryan Ly <[email protected]>
- Loading branch information
Showing
21 changed files
with
169 additions
and
2,594 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,4 @@ | ||
node: $Format:%H$ | ||
node-date: $Format:%cI$ | ||
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ | ||
ref-names: $Format:%D$ |
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 +1 @@ | ||
src/hdmf_zarr/_version.py export-subst | ||
.git_archival.txt export-subst |
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,14 @@ | ||
name: Codespell | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
codespell: | ||
name: Check for spelling errors | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Codespell | ||
uses: codespell-project/actions-codespell@v2 |
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,11 @@ | ||
name: Ruff | ||
on: pull_request | ||
|
||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: Run ruff | ||
uses: chartboost/ruff-action@v1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,3 +142,6 @@ dmypy.json | |
|
||
# DS_Store | ||
.DS_Store | ||
|
||
# Version | ||
_version.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
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,3 +1,87 @@ | ||
[build-system] | ||
requires = ["hatchling", "hatch-vcs"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "hdmf_zarr" | ||
authors = [ | ||
{ name="Oliver Ruebel", email="[email protected]" }, | ||
{ name="Matthew Avaylon", email="[email protected]" }, | ||
] | ||
description = "A package defining a Zarr I/O backend for HDMF" | ||
readme = "README.rst" | ||
requires-python = ">=3.8" | ||
license = {text = "BSD"} | ||
classifiers = [ | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"License :: OSI Approved :: BSD License", | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: MacOS", | ||
"Operating System :: Unix", | ||
"Topic :: Scientific/Engineering :: Medical Science Apps." | ||
] | ||
dependencies = [ | ||
'hdmf>=3.9.0', | ||
'zarr>=2.11.0', | ||
'numpy>=1.24', | ||
'numcodecs>=0.9.1', | ||
'numcodecs==0.11.0', | ||
'pynwb>=2.5.0', | ||
'threadpoolctl>=3.1.0', | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
tqdm = ["tqdm>=4.41.0"] | ||
fsspec = ["fsspec"] | ||
s3fs = ["s3fs"] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/hdmf-dev/hdmf-zarr" | ||
"Bug Tracker" = "https://github.com/hdmf-dev/hdmf-zarr/issues" | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.hatch.build.hooks.vcs] | ||
# this file is created/updated when the package is installed and used in | ||
# src/hdmf_zarr/__init__.py to set `hdmf_zarr.__version__` | ||
# this allows the version to be accessible from python | ||
version-file = "src/hdmf_zarr/_version.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
exclude = [".git_archival.txt"] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/hdmf_zarr"] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "--cov --cov-report html" | ||
|
||
[tool.codespell] | ||
skip = "htmlcov,.git,.mypy_cache,.pytest_cache,.coverage,*.pdf,*.svg,venvs,.tox,./docs/_build/*,*.ipynb" | ||
ignore-words-list = "datas" | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
source = ["src/"] | ||
omit = [ | ||
"src/hdmf_zarr/_due.py", | ||
] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"pragma: no cover", | ||
"@abstract" | ||
] | ||
|
||
[tool.black] | ||
line-length = 120 | ||
target-version = ['py38'] | ||
|
@@ -25,3 +109,26 @@ force-exclude = ''' | |
/docs/* | ||
)\ | ||
''' | ||
|
||
[tool.ruff] | ||
select = ["E", "F", "T100", "T201", "T203"] | ||
exclude = [ | ||
".git", | ||
".tox", | ||
"__pycache__", | ||
"build/", | ||
"dist/", | ||
"docs/source/conf.py", | ||
"src/hdmf_zarr/_due.py", | ||
"docs/source/tutorials/", | ||
"docs/_build/", | ||
] | ||
line-length = 120 | ||
|
||
[tool.ruff.per-file-ignores] | ||
"docs/gallery/*" = ["E402", "T201"] | ||
"src/*/__init__.py" = ["F401"] | ||
"test_gallery.py" = ["T201"] | ||
|
||
[tool.ruff.mccabe] | ||
max-complexity = 17 |
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
Oops, something went wrong.