reanahub / reana-client

REANA command-line client
http://reana-client.readthedocs.io/
MIT License
10 stars 44 forks source link

DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 #717

Open matthewfeickert opened 2 weeks ago

matthewfeickert commented 2 weeks ago

cgi is used in

https://github.com/reanahub/reana-client/blob/9a4dfc2d5dccf6d3bc0290719f0ad6bb3dc3735a/reana_client/api/client.py#L10

but in the recast-atlas tests reana-client is raising

 DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13

as cgi is

Deprecated since version 3.11, will be removed in version 3.13: The cgi module is deprecated (see PEP 594 for details and alternatives).

The FieldStorage class can typically be replaced with urllib.parse.parse_qsl() for GET and HEAD requests, and the email.message module or multipart for POST and PUT. Most utility functions have replacements.

matthewfeickert commented 2 weeks ago

As cgi was added in PR https://github.com/reanahub/reana-client/pull/490 could @mvidalgarcia and @audrium take a look at this?