Skip to content

Commit

Permalink
[pipy] refactor into xarray-selafin
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsail committed Mar 1, 2024
1 parent be30c8a commit 7834354
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[tool.poetry]
name = "xarray-selafin-backend"
version = "0.1.3-beta1"
name = "xarray-selafin"
version = "0.1.1"
description = ""
authors = ["tomsail <[email protected]>", "lucduron <[email protected]>"]
readme = "README.md"
repository = "https://github.com/seareport/xarray-selafin/"
include = [
"xarray_selafin_backend/data/*",
"xarray_selafin_backend/variable/*"
"xarray_selafin/data/*",
"xarray_selafin/variable/*"
]

[tool.poetry.dependencies]
Expand All @@ -23,7 +23,7 @@ netcdf4 = "*"
dask = "*"

[tool.poetry.plugins."xarray.backends"]
selafin = "xarray_selafin_backend.xarray_backend:SelafinBackendEntrypoint"
selafin = "xarray_selafin.xarray_backend:SelafinBackendEntrypoint"

[tool.poetry.group.dev.dependencies]
matplotlib = "*"
Expand Down
10 changes: 5 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = xarray-selafin-backend
version = 0.1.3-beta1
name = xarray-selafin
version = 0.1.1
author = tomsail, lucduron
author_email = [email protected], [email protected]
description = https://github.com/seareport/xarray-selafin
Expand All @@ -21,14 +21,14 @@ include_package_data = True
packages = find:

[options.package_data]
xarray_selafin_backend = data/*, variable/*
xarray_selafin = data/*, variable/*

[options.extras_require]
dask =
dask =
dask
dev =
matplotlib

[options.entry_points]
xarray.backends =
selafin = xarray_selafin_backend.xarray_backend:SelafinBackendEntrypoint
selafin = xarray_selafin.xarray_backend:SelafinBackendEntrypoint
16 changes: 9 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
from setuptools import setup, find_packages
from setuptools import find_packages
from setuptools import setup

setup(
name="xarray-selafin-backend",
version="0.1.3-beta1",
name="xarray-selafin",
version="0.1.1",
author=["tomsail", "lucduron"],
author_email="[email protected]",
description="https://github.com/seareport/xarray-selafin",
packages=find_packages(),
package_data={
# If your data files are in a package called 'xarray_selafin_backend' under 'data'
"xarray_selafin_backend": ["data/*", "variable/*"],
"xarray_selafin": ["data/*", "variable/*"],
},
install_requires=[
"numpy",
Expand All @@ -21,11 +21,13 @@
],
extras_require={
"dask": ["dask"],
"dev": ["matplotlib"], # Assuming netcdf4 is listed intentionally in both main and dev dependencies
"dev": [
"matplotlib"
], # Assuming netcdf4 is listed intentionally in both main and dev dependencies
},
entry_points={
"xarray.backends": [
"selafin = xarray_selafin_backend.xarray_backend:SelafinBackendEntrypoint",
"selafin = xarray_selafin.xarray_backend:SelafinBackendEntrypoint",
],
},
python_requires=">=3.9",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from xarray.backends import BackendEntrypoint
from xarray.core import indexing

from xarray_selafin_backend import Serafin
from . import Serafin


def compute_duration_between_datetime(t0, time_serie):
Expand Down

0 comments on commit 7834354

Please sign in to comment.