-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
setuptools version
setuptools==71.0.0, setuptools==71.0.1, setuptools==71.0.3
Python version
Python 3.10.0
OS
Ubuntu
Additional environment information
This is happening when installing internal packages at my firm which I cannot share, but am happy to get answer general questions.
Description
Since version 71.0.0 release, some of our services which depend on internal packages have been breaking, and all the errors are precisely this one:
Appears to be an issue with moving from .extern.packaging.utils.canonicalize_versions to setuptools .vendor.packaging.utils.canonicalize_version (as that is the change from version 70.3.0 -> 71.0.0 from what I can see in the setuptools diff, related to canonicalize_version).
Expected behavior
This happened while installing the internal packages in the docker environment for our service.
How to Reproduce
Steps to reproduce are a little difficult here, as I cannot provide the internal package.
Output
File "/home/dubizzle/venv/lib/python3.10/site-packages/setuptools/__init__.py", line 106, in setup
#12 15.35 return distutils.core.setup(**attrs)
#12 15.35 File "/home/dubizzle/venv/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 184, in setup
#12 15.35 return run_commands(dist)
#12 15.35 File "/home/dubizzle/venv/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
#12 15.35 dist.run_commands()
#12 15.35 File "/home/dubizzle/venv/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 970, in run_commands
#12 15.35 self.run_command(cmd)
#12 15.35 File "/home/dubizzle/venv/lib/python3.10/site-packages/setuptools/dist.py", line 974, in run_command
#12 15.35 super().run_command(command)
#12 15.35 File "/home/dubizzle/venv/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 989, in run_command
#12 15.35 cmd_obj.run()
#12 15.35 File "/home/dubizzle/venv/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 321, in run
#12 15.35 self.find_sources()
#12 15.35 File "/home/dubizzle/venv/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 329, in find_sources
#12 15.35 mm.run()
#12 15.35 File "/home/dubizzle/venv/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 555, in run
#12 15.35 self.prune_file_list()
#12 15.35 File "/home/dubizzle/venv/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 621, in prune_file_list
#12 15.35 base_dir = self.distribution.get_fullname()
#12 15.35 File "/home/dubizzle/venv/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 266, in get_fullname
#12 15.35 return _distribution_fullname(self.get_name(), self.get_version())
#12 15.35 File "/home/dubizzle/venv/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 284, in _distribution_fullname
#12 15.35 canonicalize_version(version, strip_trailing_zero=False),
#12 15.35 TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
#12 15.35 [end of output]
#12 15.35