From bf408b8f15088b032f5d9ff9472fa6c19be9e6e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 18 Oct 2022 07:50:34 +0200 Subject: [PATCH 1/3] update license_file spelling in setup.cfg Fix the following deprecation warning: > The license_file parameter is deprecated, use license_files instead. --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 01fe2a4..a19032d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,7 +13,7 @@ create-wheel = yes universal = 1 [metadata] -license_file = LICENSE.rst +license_files = LICENSE.rst [tool:pytest] norecursedirs = .* env* docs *.egg src/icalendar/tests/hypothesis From bdc5b6317b69d540393fb7e14172749414de270b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 18 Oct 2022 07:53:14 +0200 Subject: [PATCH 2/3] use find_namespace_packages() to fix installing data subdirs Fixes the deprecation warnings resembling the following: Installing 'icalendar.tests.hypothesis' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'icalendar.tests.hypothesis' as an importable package, but it is not listed in the `packages` configuration of setuptools. 'icalendar.tests.hypothesis' has been automatically added to the distribution only because it may contain data files, but this behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'icalendar.tests.hypothesis' is included as a package by using the `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. This is one of two possible solutions. The other option is to add __init__.py files to all subdirectories of icalendar/tests. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b69195c..26f44fa 100644 --- a/setup.py +++ b/setup.py @@ -52,7 +52,7 @@ setuptools.setup( author_email='plone-developers@lists.sourceforge.net', url='https://github.com/collective/icalendar', license='BSD', - packages=setuptools.find_packages('src'), + packages=setuptools.find_namespace_packages('src'), package_dir={'': 'src'}, include_package_data=True, zip_safe=False, From ecde672d4e5ee85ea1c02705039261496e106d21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 18 Oct 2022 07:56:03 +0200 Subject: [PATCH 3/3] add changelog and credits entries --- CHANGES.rst | 2 +- docs/credits.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 7d70c4c..343308d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,7 +6,7 @@ Changelog Minor changes: -- ... +- fixed setuptools deprecation warnings [mgorny] Breaking changes: diff --git a/docs/credits.rst b/docs/credits.rst index 9722fde..22952c4 100644 --- a/docs/credits.rst +++ b/docs/credits.rst @@ -63,6 +63,7 @@ icalendar contributors - jacadzaca - Mauro Amico - Alexander Pitkin +- Michał Górny Find out who contributed::