utils/pypi: readability tweak.

This commit is contained in:
Mike McQuaid 2024-01-09 08:50:08 +00:00 committed by GitHub
parent ecc60a13e0
commit 8486ff88f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,7 +258,7 @@ module PyPI
extra_packages = (extra_packages || []).map { |p| Package.new p } extra_packages = (extra_packages || []).map { |p| Package.new p }
exclude_packages = (exclude_packages || []).map { |p| Package.new p } exclude_packages = (exclude_packages || []).map { |p| Package.new p }
exclude_packages += %w[argparse pip wsgiref].map { |p| Package.new p } exclude_packages += %w[argparse pip wsgiref].map { |p| Package.new p }
if python_deps.first && python_deps.first.version < Version.new("3.12") if (newest_python = python_deps.first) && newest_python.version < Version.new("3.12")
exclude_packages.append(Package.new("setuptools")) exclude_packages.append(Package.new("setuptools"))
end end
# remove packages from the exclude list if we've explicitly requested them as an extra package # remove packages from the exclude list if we've explicitly requested them as an extra package