Skip to content

Commit

Permalink
Merge pull request #11 from seareport/package
Browse files Browse the repository at this point in the history
added package info
  • Loading branch information
tomsail authored Mar 1, 2024
2 parents 54a9eb6 + 24eb1b8 commit d5c6a31
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ dask = "*"
[tool.poetry.plugins."xarray.backends"]
selafin = "xarray_selafin_backend.xarray_backend:SelafinBackendEntrypoint"


[tool.poetry.group.dev.dependencies]
matplotlib = "*"
netcdf4 = "*"

[build-system]
requires = ["poetry-core"]
Expand Down
31 changes: 31 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[metadata]
name = xarray-selafin-backend
version = 0.1.0
author = tomsail
author_email = [email protected]
description = https://github.com/seareport/xarray-selafin
long_description = file: README.md
long_description_content_type = text/markdown
license_files = LICENSE

[options]
python_requires = >=3.9
install_requires =
numpy
pytest
scipy
shapely
xarray
netcdf4
include_package_data = True
packages = find:

[options.extras_require]
dask =
dask
dev =
matplotlib

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

setup(
name="xarray-selafin-backend",
version="0.1.0",
author="tomsail",
author_email="[email protected]",
description="https://github.com/seareport/xarray-selafin",
packages=find_packages(),
install_requires=[
"numpy",
"pytest",
"scipy",
"shapely",
"xarray",
"netcdf4",
],
extras_require={
"dask": ["dask"],
"dev": ["matplotlib"], # Assuming netcdf4 is listed intentionally in both main and dev dependencies
},
entry_points={
"xarray.backends": [
"selafin = xarray_selafin_backend.xarray_backend:SelafinBackendEntrypoint",
],
},
python_requires=">=3.9",
)

0 comments on commit d5c6a31

Please sign in to comment.