Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/__main__.py", line 53, in <module>
sys.exit(main())
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/__main__.py", line 28, in main
result = cli.dispatch(sys.argv[1:])
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/cli.py", line 68, in dispatch
return main(args.args)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/commands/upload.py", line 197, in main
return upload(upload_settings, parsed_args.dists)
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/commands/upload.py", line 126, in upload
repository = upload_settings.create_repository()
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/settings.py", line 329, in create_repository
repo = repository.Repository(
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/repository.py", line 72, in __init__
self.session.mount(scheme, self._make_adapter_with_retries())
File "/opt/hostedtoolcache/Python/3.9.10/x64/lib/python3.9/site-packages/twine/repository.py", line 80, in _make_adapter_with_retries
retry = urllib3.Retry(
TypeError: __init__() got an unexpected keyword argument 'allowed_methods'
Uploading distributions to https://upload.pypi.org/legacy/
I can confirm that pinning twine's version to the previous one (twine==3.7.1) works fine
Your Environment
I am running an automated github workflow
Your operating system:
ubuntu-latest on github actions
Version of python you are running:
3.9
How did you install twine? Did you use your operating system's package manager or pip or something else?
python3 -m pip install setuptools wheel twineVersion of twine you have installed (include complete output of):
latest: 3.8.0
Which package repository are you targeting?
https://pypi.org/project/thothlibrary/
The Issue
Since yesterday's release I am receiving the following error:
I can confirm that pinning twine's version to the previous one (twine==3.7.1) works fine