From 4a34d6f28daa6927f8168a06ccb0c54a5cf436b1 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Thu, 31 Oct 2024 15:05:27 -0600 Subject: [PATCH] MNT: Switch over to pyproject.toml for package info --- pyproject.toml | 60 ++++++++++++++++++++++++++++++++++++- setup.cfg | 80 -------------------------------------------------- 2 files changed, 59 insertions(+), 81 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e222add60..b193a67f7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,63 @@ -requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"] +requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=3.4"] build-backend = "setuptools.build_meta" +[project] +name = "siphon" +description = "A collection of Python utilities for interacting with the Unidata technology stack." +readme = "README.rst" +dynamic = ["version"] +maintainers = [{name = "Siphon Developers", email = "support-python@unidata.ucar.edu"}] +license = {text = "BSD-3-Clause"} +keywords = ["meteorology", "weather"] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Programming Language :: Python", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Scientific/Engineering", + "Topic :: Scientific/Engineering :: Atmospheric Science", + "Intended Audience :: Science/Research", + "Operating System :: OS Independent", + "License :: OSI Approved :: BSD License" +] +requires-python = ">=3.10" +dependencies = [ + "beautifulsoup4>=4.6", + "numpy>=1.16", + "pandas>=0.25.0", + "protobuf>=3.7.0", + "requests>=2.21.0" +] + +[project.optional-dependencies] +doc = [ + "sphinx>=3.0", + "sphinx-gallery>=0.4", + "myst-parser", + "sphinx-rtd-theme" +] +examples = [ + "matplotlib>=1.3", + "cartopy>=0.13.1", + "scipy" +] +test = [ + "pytest>=5.0", + "netCDF4>=1.1.0", + "vcrpy~=1.5,!=1.7.0,!=1.7.1,!=1.7.2,!=1.7.3", + "xarray>=0.10.2" +] +extras = [ + "xarray>=0.10.2" +] + +[project.urls] +"homepage" = "https://github.com/Unidata/siphon" +"Documentation" = "https://unidata.github.io/siphon/" +"Release Notes" = "https://github.com/Unidata/siphon/releases" +"Bug Tracker" = "https://github.com/Unidata/siphon/issues" +"Source Code" = "https://github.com/Unidata/siphon" + [tool.setuptools_scm] version_scheme = "post-release" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 8316ba68f..f97fd3b58 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,83 +1,3 @@ -[metadata] -name = siphon -description = A collection of Python utilities for interacting with the Unidata technology stack. -description_file = README.rst -author = Unidata Development Team -author_email = support-python@unidata.ucar.edu -maintainer = Siphon Developers -maintainer_email = support-python@unidata.ucar.edu -license = BSD 3-Clause -license_file = LICENSE -platform = any -keywords = meteorology, weather -classifiers = - Development Status :: 3 - Alpha - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Topic :: Scientific/Engineering - Intended Audience :: Science/Research - Operating System :: OS Independent - License :: OSI Approved :: BSD Licens -url = https://github.com/Unidata/siphon -project_urls = - Documentation = https://unidata.github.io/siphon/ - Release Notes = https://github.com/Unidata/siphon/releases - Bug Tracker = https://github.com/Unidata/siphon/issues - Source Code = https://github.com/Unidata/siphon - -[options] -package_dir = - = src -packages = find: -python_requires = >=3.6 -install_requires = - beautifulsoup4>=4.6 - numpy>=1.16 - pandas>=0.25.0 - protobuf>=3.7.0 - requests>=2.21.0 - -[options.packages.find] -where = src - -[options.extras_require] -test = - pytest - pytest-flake8 - pytest-runner - netCDF4>=1.1.0 - flake8>3.2.0 - flake8-builtins - flake8-comprehensions - flake8-copyright - flake8-docstrings - flake8-import-order - flake8-mutable - flake8-pep3101 - flake8-print - flake8-quotes - flake8-rst-docstrings - pep8-naming - vcrpy~=1.5,!=1.7.0,!=1.7.1,!=1.7.2,!=1.7.3 - xarray>=0.10.2 -doc = - sphinx>=1.3,!=1.6.4 - sphinx-gallery - doc8 - m2r -# SciPy needed for cartopy; we don't use cartopy[plotting] because -# that will pull in GDAL. -examples = - matplotlib>=1.3 - cartopy>=0.13.1 - scipy - metpy -netcdf = netCDF4>=1.1.0 -dev = ipython[all]>=3.1 - [flake8] max-line-length = 95 application-import-names = siphon