From b2ea05c1dbd0e3364c91c8743d2ac4a787074efd Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Wed, 21 Jun 2023 10:12:51 +0200 Subject: [PATCH] Change license_file to license_files in setup.cfg (#5948) # Description During installation from source, the following message is presented: ``` ******************************************************************************** The license_file parameter is deprecated, use license_files instead. By 2023-Oct-30, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** ``` This PR changes the parameter name and bumps the minimum setuptools version. Maybe it is possible to use lower version, but they do not put such information anywhere. # References https://github.com/pypa/setuptools/pull/2676 ## Type of change - [x] Bug-fix (non-breaking change which fixes an issue) --- pyproject.toml | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0a793c6badb..81d4e8571f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] requires = [ - "setuptools >= 42", + "setuptools >= 56", "wheel", "setuptools_scm[toml]>=3.4" ] diff --git a/setup.cfg b/setup.cfg index 01d1b7598fc..d1b6e5fa378 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,7 +3,7 @@ name = napari url = https://napari.org download_url = https://github.com/napari/napari license = BSD 3-Clause -license_file = LICENSE +license_files = LICENSE description = n-dimensional array viewer in Python long_description = file: README.md long_description_content_type = text/markdown