git: c68da46518bf - main - net/py-urllib3: Fix SetuptoolsDeprecationWarning and _DeprecatedConfig
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 31 Jul 2023 20:44:48 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c68da46518bf4c27ec6d7d7bb4f5c57443d3a0de
commit c68da46518bf4c27ec6d7d7bb4f5c57443d3a0de
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-07-31 20:09:19 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-07-31 20:44:28 +0000
net/py-urllib3: Fix SetuptoolsDeprecationWarning and _DeprecatedConfig
/usr/local/lib/python3.9/site-packages/setuptools/dist.py:745: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
********************************************************************************
Usage of dash-separated 'provides-extra' will not be supported in future
versions. Please use the underscore name 'provides_extra' instead.
By 2023-Sep-26, 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.
********************************************************************************
!!
opt = self.warn_dash_deprecation(opt, section)
/usr/local/lib/python3.9/site-packages/setuptools/dist.py:745: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
********************************************************************************
Usage of dash-separated 'requires-dist' will not be supported in future
versions. Please use the underscore name 'requires_dist' instead.
By 2023-Sep-26, 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.
********************************************************************************
!!
opt = self.warn_dash_deprecation(opt, section)
/usr/local/lib/python3.9/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
!!
********************************************************************************
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.
********************************************************************************
!!
Reference: https://setuptools.pypa.io/en/latest/userguide/declarative_config.html
---
net/py-urllib3/files/patch-setup.cfg | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/net/py-urllib3/files/patch-setup.cfg b/net/py-urllib3/files/patch-setup.cfg
new file mode 100644
index 000000000000..1fc3780800e4
--- /dev/null
+++ b/net/py-urllib3/files/patch-setup.cfg
@@ -0,0 +1,18 @@
+--- setup.cfg.orig 2023-05-23 10:51:13 UTC
++++ setup.cfg
+@@ -7,12 +7,12 @@ max-line-length = 99
+ universal = 1
+
+ [metadata]
+-license_file = LICENSE.txt
+-provides-extra =
++license_files = LICENSE.txt
++provides_extra =
+ secure
+ socks
+ brotli
+-requires-dist =
++requires_dist =
+ pyOpenSSL>=0.14; extra == 'secure'
+ cryptography>=1.3.4; extra == 'secure'
+ idna>=2.0.0; extra == 'secure'