From 950e061e3cca1fac1cd1b17c083cb0b036579439 Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Tue, 20 Aug 2024 14:13:03 +0200 Subject: [PATCH] Fully migrate from setup.cfg to pyproject.toml --- pyproject.toml | 62 ++++++++++++++++++++++++++++++++++++++++++++++---- setup.cfg | 47 -------------------------------------- 2 files changed, 57 insertions(+), 52 deletions(-) delete mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml index 7cb0f76..db9de26 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,62 @@ +[project] +name = "salem" +description = "Geoscientific data I/O and map projections" +authors = [{name = "Fabien Maussion", email = "fabien.maussion@uibk.ac.at"}] +license = {text = "BSD 3-clause"} +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Science/Research", + "License :: OSI Approved :: BSD License", + "Topic :: Scientific/Engineering :: Atmospheric Science", + "Topic :: Scientific/Engineering :: GIS", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", +] +requires-python = ">=3.8" +dependencies = [ + "numpy", + "scipy", + "pyproj", + "joblib", + "netCDF4", + "pandas", + "xarray", +] +dynamic = ["version"] + +[tool.setuptools_scm] +fallback_version = "0.3.11" +version_file = "salem/_version.py" + +[project.urls] +Homepage = "https://salem.readthedocs.io" +Documentation = "https://salem.readthedocs.io" +Source = "https://github.com/fmaussion/salem" +Tracker = "https://github.com/fmaussion/salem/issues" + +[project.readme] +file = "README.rst" +content-type = "text/x-rst; charset=UTF-8" + [build-system] -build-backend = 'setuptools.build_meta' requires = [ - "setuptools>=61", - "setuptools_scm[toml]>=7.0", + "setuptools>=64", + "setuptools_scm>=8", "wheel", ] +build-backend = "setuptools.build_meta" -[tool.setuptools_scm] -fallback_version = "0.3.8" +[tool.setuptools] +platforms = ["any"] +include-package-data = true +license-files = ["LICENSE.rst"] + +[tool.setuptools.packages.find] +exclude = ["docs"] +namespaces = false + +[tool.distutils.bdist_wheel] +universal = 1 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 875ccd0..0000000 --- a/setup.cfg +++ /dev/null @@ -1,47 +0,0 @@ -[metadata] -name = salem -description = Geoscientific data I/O and map projections -long_description = file: README.rst -long_description_content_type = text/x-rst; charset=UTF-8 -url = https://salem.readthedocs.io -author = Fabien Maussion -author_email = fabien.maussion@uibk.ac.at -license = BSD 3-clause -license_file = LICENSE.rst -classifiers = - Development Status :: 3 - Alpha - Intended Audience :: Science/Research - License :: OSI Approved :: BSD License - Topic :: Scientific/Engineering :: Atmospheric Science - Topic :: Scientific/Engineering :: GIS - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 -project_urls = - Documentation = https://salem.readthedocs.io - Source = https://github.com/fmaussion/salem - Tracker = https://github.com/fmaussion/salem/issues - -[options] -platforms = any -python_requires = >=3.6 -packages = find: -include_package_data = True -setup_requires = - setuptools_scm -install_requires = - numpy - scipy - pyproj - joblib - netCDF4 - pandas - xarray - -[options.packages.find] -exclude = docs - -[bdist_wheel] -universal = 1