update-python-libraries: support pyproject and flit formats

Generally, this is determined by the fetcher. The
notable exception would be the "wheel" format.

authored by

Jonathan Ringer and committed by
Jonathan Ringer
ce0a9077 d016f26c

+3 -5
+3 -5
pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py
··· 242 242 243 243 FORMATS = { 244 244 'setuptools' : DEFAULT_SETUPTOOLS_EXTENSION, 245 - 'wheel' : 'whl' 245 + 'wheel' : 'whl', 246 + 'pyproject' : 'tar.gz', 247 + 'flit' : 'tar.gz' 246 248 } 247 249 248 250 def _determine_fetcher(text): ··· 281 283 if extension is None: 282 284 if src_format is None: 283 285 src_format = 'setuptools' 284 - elif src_format == 'flit': 285 - raise ValueError("Don't know how to update a Flit package.") 286 286 elif src_format == 'other': 287 287 raise ValueError("Don't know how to update a format='other' package.") 288 - elif src_format == 'pyproject': 289 - raise ValueError("Don't know how to update a pyproject package.") 290 288 extension = FORMATS[src_format] 291 289 292 290 elif fetcher == 'fetchurl':