From e6db33224e6765f441019b02eca1c66e03fac341 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 19 Mar 2025 13:40:32 -0700 Subject: [PATCH 1/5] fix: SetuptoolsDeprecationWarning: Invalid dash-separated options /home/anders/.cache/uv/builds-v0/.tmpXAxITl/lib/python3.12/site-packages/setuptools/dist.py:589: SetuptoolsDeprecationWarning: Invalid dash-separated options !! ******************************************************************************** Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! opt = self.warn_dash_deprecation(opt, section) Signed-off-by: Anders Kaseorg --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 0df04dde4d..dd59fc74a6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,7 +2,7 @@ universal = 1 [metadata] -description-file = README.md +description_file = README.md license = MIT [flake8] From 8246af9b6f1e12507f0866163076cd9d0e838d75 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 19 Mar 2025 13:45:47 -0700 Subject: [PATCH 2/5] fix: UserWarning: Unknown distribution option: 'help_center' /home/anders/.cache/uv/builds-v0/.tmpXAxITl/lib/python3.12/site-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'help_center' warnings.warn(msg) Signed-off-by: Anders Kaseorg --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index fc58de0ec1..ee5a0a881d 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,9 @@ version="9.5.0", description="Twilio API client and TwiML generator", author="Twilio", - help_center="https://www.twilio.com/help/contact", + project_urls={ + "Help Center": "https://www.twilio.com/help/contact", + }, url="https://github.com/twilio/twilio-python/", keywords=["twilio", "twiml"], python_requires=">=3.7.0", From fe6f5fd8565f84b00bed39844bd7e88baaf90fb3 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 19 Mar 2025 13:48:06 -0700 Subject: [PATCH 3/5] fix: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated /home/anders/.cache/uv/builds-v0/.tmpi6bxu5/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:135: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated !! ******************************************************************************** With Python 2.7 end-of-life, support for building universal wheels (i.e., wheels that support both Python 2 and Python 3) is being obviated. Please discontinue using this option, or if you still need it, file an issue with pypa/setuptools describing your use case. By 2025-Aug-30, you need to update your project and remove deprecated calls or your builds will no longer be supported. ******************************************************************************** !! self.finalize_options() Signed-off-by: Anders Kaseorg --- setup.cfg | 3 --- 1 file changed, 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index dd59fc74a6..36fcefc104 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,3 @@ -[bdist_wheel] -universal = 1 - [metadata] description_file = README.md license = MIT From 937fda2755e5c88ef332cf6b0467b6e934aae491 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 19 Mar 2025 13:52:15 -0700 Subject: [PATCH 4/5] fix: SetuptoolsDeprecationWarning: License classifiers are deprecated. /home/anders/.cache/uv/builds-v0/.tmpXAxITl/lib/python3.12/site-packages/setuptools/dist.py:751: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: MIT License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() Signed-off-by: Anders Kaseorg --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index ee5a0a881d..4d272707d7 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,6 @@ classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.7", From 51904bafcdcede11e89559ec3739966d39490b93 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 19 Mar 2025 13:55:55 -0700 Subject: [PATCH 5/5] fix: warning: no files found matching '*' under directory 'twilio/conf' Commit d75a66b20a005594ee9c5d2f10f783fb8ba06776 (#376) should have removed this. Signed-off-by: Anders Kaseorg --- MANIFEST.in | 2 -- 1 file changed, 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index bc75be523a..1aba38f67a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1 @@ -# Include the SSL certificate file in the package distributed by pip -recursive-include twilio/conf * include LICENSE