-
Notifications
You must be signed in to change notification settings - Fork 1
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 #128 from josephnowak/feature/use-pyproject
Feature/use pyproject
- Loading branch information
Showing
37 changed files
with
283 additions
and
200 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
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,82 @@ | ||
[tool.pdm] | ||
|
||
[project] | ||
name = "TensorDB" | ||
version = "0.32.0" | ||
description = "Database based in a file system storage combined with Xarray and Zarr" | ||
keywords = ["Database Files Xarray Handler Zarr Store Read Write Append Update Upsert Backup Delete S3"] | ||
readme = "README.md" | ||
authors = [ | ||
{ name = "Joseph Nowak", email = "josephgonowak97@gmail.com" }, | ||
] | ||
classifiers = [ | ||
"Development Status :: 1 - Beta", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: General", | ||
"Intended Audience :: Science/Research", | ||
"Natural Language :: English", | ||
"Programming Language :: Python :: 3.9", | ||
] | ||
dependencies = [ | ||
"dask[complete]>=2024.0.0", | ||
"loguru>=0.7.0", | ||
"more-itertools>=10.0.0", | ||
"numbagg>=0.8.0", | ||
"numpy>=1.26.0", | ||
"orjson>=3.0.0", | ||
"pandas>=2.0.0", | ||
"pydantic>=2.0.0", | ||
"xarray[accel]>=2023.0.0", | ||
"zarr>=2.0.0", | ||
] | ||
requires-python = ">=3.11" | ||
|
||
[build-system] | ||
requires = ["pdm-backend"] | ||
build-backend = "pdm.backend" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"ruff", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-env", | ||
"pytest-xdist", | ||
"sphinx", | ||
] | ||
|
||
[tool.ruff] | ||
|
||
[tool.ruff.lint] | ||
# 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 | ||
extend-safe-fixes = [ | ||
"TID252", # absolute imports | ||
] | ||
ignore = [ | ||
"E402", | ||
"E501", | ||
"E731", | ||
"UP007", | ||
"UP038" | ||
] | ||
extend-select = [ | ||
"B", # flake8-bugbear | ||
"F", # Pyflakes | ||
"E", # Pycodestyle | ||
"W", | ||
"TID", # flake8-tidy-imports (absolute imports) | ||
"I", # isort | ||
"UP", # Pyupgrade | ||
] | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
# don't enforce absolute imports | ||
|
||
[tool.ruff.lint.isort] | ||
known-first-party = ["tensordb"] | ||
|
||
[tool.ruff.lint.flake8-tidy-imports] | ||
# Disallow all relative imports. | ||
ban-relative-imports = "all" |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from tensordb import tensor_definition, utils | ||
from tensordb.algorithms import Algorithms | ||
from tensordb.clients import BaseTensorClient, FileCacheTensorClient, TensorClient | ||
from tensordb.tensor_definition import TensorDefinition | ||
from tensordb.utils.tools import extract_paths_from_formula | ||
|
||
__all__ = ( | ||
"tensor_definition", | ||
"utils", | ||
"Algorithms", | ||
"TensorClient", | ||
"FileCacheTensorClient", | ||
"BaseTensorClient", | ||
"TensorDefinition", | ||
"extract_paths_from_formula", | ||
) |
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
2 changes: 2 additions & 0 deletions
2
tensordb/clients/__init__.py → src/tensordb/clients/__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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from tensordb.clients.base import BaseTensorClient | ||
from tensordb.clients.file_cache_tensor_client import FileCacheTensorClient | ||
from tensordb.clients.tensor_client import TensorClient | ||
|
||
__all__ = ("BaseTensorClient", "FileCacheTensorClient", "TensorClient") |
Oops, something went wrong.