diff --git a/pyproject.toml b/pyproject.toml index 0e2011e1..f2ac856a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,35 @@ +[build-system] +requires = ["setuptools>=42", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "xcdat" +version = "0.7.3" +description = "Xarray Climate Data Analysis Tools" +readme = "README.rst" +requires-python = ">=3.9" +license = { text = "Apache-2.0" } +authors = [{ name = "xCDAT developers" }] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache-2.0 License", + "Natural Language :: English", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] +keywords = ["xcdat"] +dependencies = [] + +[project.optional-dependencies] +test = ["pytest>=3"] + +[tool.setuptools.packages.find] +include = ["xcdat", "xcdat.*"] + [tool.ruff] # Exclude a variety of commonly ignored directories. exclude = [ diff --git a/setup.py b/setup.py deleted file mode 100755 index aba2d7c2..00000000 --- a/setup.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python - -"""The setup script.""" - -from setuptools import find_packages, setup - -with open("README.rst") as readme_file: - readme = readme_file.read() - -with open("HISTORY.rst") as history_file: - history = history_file.read() - -test_requires = ["pytest>=3"] - -setup( - author="xCDAT developers", - python_requires=">=3.9", - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Intended Audience :: Developers", - "License :: OSI Approved :: Apache-2.0 License", - "Natural Language :: English", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", - ], - description="Xarray Climate Data Analysis Tools", - license="Apache-2.0", - long_description=readme + "\n\n" + history, - include_package_data=True, - keywords="xcdat", - name="xcdat", - packages=find_packages(include=["xcdat", "xcdat.*"]), - test_suite="tests", - tests_require=test_requires, - url="https://github.com/xCDAT/xcdat", - version="0.7.3", - zip_safe=False, -)