diff --git a/pyproject.toml b/pyproject.toml index eaaa742..3727d84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,63 @@ +[project] +name = "xee" +dynamic = ["version"] +description = "A Google Earth Engine extension for Xarray." +readme = "README.md" +requires-python = ">=3.9" +license = {text = "Apache-2.0"} +authors = [ + {name = "Google LLC", email = "noreply@google.com"}, +] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Science/Research", + "Intended Audience :: Developers", + "Intended Audience :: Information Technology", + "License :: OSI Approved :: Apache Software License", + "Operating System :: MacOS :: MacOS X", + "Operating System :: Microsoft :: Windows", + "Operating System :: POSIX", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Scientific/Engineering :: Atmospheric Science", +] +dependencies = [ + "xarray[parallel]", + "earthengine-api>=0.1.374", + "pyproj", + "affine", +] + +[project.entry-points."xarray.backends"] +ee = "xee:EarthEngineBackendEntrypoint" + +[project.optional-dependencies] +tests = [ + "absl-py", + "pytest", + "pyink", +] +examples = [ + "apache_beam[gcp]", + "xarray-beam", + "absl-py", + "gcsfs", +] + +[project.urls] +Homepage = "https://github.com/google/xee" +Issues = "https://github.com/google/Xee/issues" + +[build-system] +requires = ["setuptools>=64", "setuptools_scm>=8"] +build-backend = "setuptools.build_meta" + [tool.pyink] line-length = 80 preview = true pyink-indentation = 2 -pyink-use-majority-quotes = true \ No newline at end of file +pyink-use-majority-quotes = true + +[tool.setuptools_scm] \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index ab6ce73..0000000 --- a/setup.py +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 2023 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ============================================================================== -"""Setup Xee.""" -import setuptools - -# TODO(alxr): Add docs support. -# docs_requires = [ -# 'myst-nb', -# 'myst-parser', -# 'sphinx', -# 'sphinx_rtd_theme', -# 'scipy', -# ] - -tests_requires = [ - "absl-py", - "pytest", - "pyink", -] - -examples_require = [ - "apache_beam[gcp]", - "xarray-beam", - "absl-py", - "gcsfs", -] - -setuptools.setup( - name="xee", - version="0.0.2", - license="Apache 2.0", - author="Google LLC", - author_email="noreply@google.com", - description="A Google Earth Engine extension for Xarray.", - long_description=open("README.md", "r", encoding="utf-8").read(), - long_description_content_type="text/markdown", - install_requires=[ - "xarray[parallel]", - "earthengine-api>=0.1.374", - "pyproj", - "affine", - ], - extras_require={ - "tests": tests_requires, - "examples": examples_require, - }, - url="https://github.com/google/xee", - packages=setuptools.find_packages(exclude=["examples"]), - python_requires=">=3.9", - entry_points={ - "xarray.backends": ["ee=xee:EarthEngineBackendEntrypoint"], - }, - classifiers=[ - "Development Status :: 4 - Beta", - "Intended Audience :: Science/Research", - "Intended Audience :: Developers", - "Intended Audience :: Information Technology", - "License :: OSI Approved :: Apache Software License", - "Operating System :: MacOS :: MacOS X", - "Operating System :: Microsoft :: Windows", - "Operating System :: POSIX", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Topic :: Scientific/Engineering :: Atmospheric Science", - ], - project_urls={ - "Issue Tracking": "https://github.com/google/Xee/issues", - }, -)