setuptools
Advanced tools
+1
-1
| Metadata-Version: 2.4 | ||
| Name: setuptools | ||
| Version: 80.8.0 | ||
| Version: 80.9.0 | ||
| Summary: Easily download, build, install, upgrade, and uninstall Python packages | ||
@@ -5,0 +5,0 @@ Author-email: Python Packaging Authority <distutils-sig@python.org> |
+1
-1
@@ -13,3 +13,3 @@ [build-system] | ||
| name = "setuptools" | ||
| version = "80.8.0" | ||
| version = "80.9.0" | ||
| authors = [ | ||
@@ -16,0 +16,0 @@ { name = "Python Packaging Authority", email = "distutils-sig@python.org" }, |
+2
-2
@@ -87,4 +87,4 @@ [pytest] | ||
| # suppress known deprecation | ||
| ignore:pkg_resources is deprecated:DeprecationWarning | ||
| # suppress known deprecation pypa/setuptools#3085 | ||
| ignore:pkg_resources is deprecated:UserWarning | ||
@@ -91,0 +91,0 @@ # Dependencies might not have been updated yet |
| Metadata-Version: 2.4 | ||
| Name: setuptools | ||
| Version: 80.8.0 | ||
| Version: 80.9.0 | ||
| Summary: Easily download, build, install, upgrade, and uninstall Python packages | ||
@@ -5,0 +5,0 @@ Author-email: Python Packaging Authority <distutils-sig@python.org> |
@@ -25,3 +25,3 @@ from __future__ import annotations | ||
| "`setuptools.command._install` was an internal implementation detail " | ||
| + "that was left in for numpy<1.9 support.", | ||
| "that was left in for numpy<1.9 support.", | ||
| due_date=(2025, 5, 2), # Originally added on 2024-11-01 | ||
@@ -28,0 +28,0 @@ ) |
@@ -33,3 +33,3 @@ from __future__ import annotations | ||
| 'k', | ||
| "keep the distribution tree around after creating " + "archive file(s)", | ||
| "keep the distribution tree around after creating archive file(s)", | ||
| ), | ||
@@ -36,0 +36,0 @@ ( |
@@ -10,6 +10,6 @@ """wheel tests""" | ||
| import pathlib | ||
| import shutil | ||
| import stat | ||
| import subprocess | ||
| import sys | ||
| import sysconfig | ||
| import zipfile | ||
@@ -21,5 +21,4 @@ from typing import Any | ||
| from packaging.tags import parse_tag | ||
| from packaging.utils import canonicalize_name | ||
| from pkg_resources import PY_MAJOR, Distribution, PathMetadata | ||
| from setuptools._importlib import metadata | ||
| from setuptools.wheel import Wheel | ||
@@ -145,3 +144,3 @@ | ||
| x.format( | ||
| py_version=PY_MAJOR, | ||
| py_version=sysconfig.get_python_version(), | ||
| platform=get_platform(), | ||
@@ -165,13 +164,11 @@ shlib_ext=get_config_var('EXT_SUFFIX') or get_config_var('SO'), | ||
| metadata = PathMetadata(egg_path, os.path.join(egg_path, 'EGG-INFO')) | ||
| dist = Distribution.from_filename(egg_path, metadata=metadata) | ||
| assert dist.project_name == project_name | ||
| assert dist.version == version | ||
| if requires_txt is None: | ||
| assert not dist.has_metadata('requires.txt') | ||
| else: | ||
| # Order must match to ensure reproducibility. | ||
| assert requires_txt == dist.get_metadata('requires.txt').lstrip() | ||
| (dist,) = metadata.Distribution.discover(path=[egg_path]) | ||
| # pyright is nitpicky; fine to assume dist.metadata.__getitem__ will fail or return None | ||
| # (https://github.com/pypa/setuptools/pull/5006#issuecomment-2894774288) | ||
| assert dist.metadata['Name'] == project_name # pyright: ignore # noqa: PGH003 | ||
| assert dist.metadata['Version'] == version # pyright: ignore # noqa: PGH003 | ||
| assert dist.read_text('requires.txt') == requires_txt | ||
| class Record: | ||
@@ -413,3 +410,4 @@ def __init__(self, id, **kwargs): | ||
| }, | ||
| requires_txt=DALS( | ||
| requires_txt='\n' | ||
| + DALS( | ||
| """ | ||
@@ -586,24 +584,2 @@ [extra] | ||
| def test_wheel_install_pep_503(): | ||
| project_name = 'Foo_Bar' # PEP 503 canonicalized name is "foo-bar" | ||
| version = '1.0' | ||
| with ( | ||
| build_wheel( | ||
| name=project_name, | ||
| version=version, | ||
| ) as filename, | ||
| tempdir() as install_dir, | ||
| ): | ||
| new_filename = filename.replace(project_name, canonicalize_name(project_name)) | ||
| shutil.move(filename, new_filename) | ||
| _check_wheel_install( | ||
| new_filename, | ||
| install_dir, | ||
| None, | ||
| canonicalize_name(project_name), | ||
| version, | ||
| None, | ||
| ) | ||
| def test_wheel_no_dist_dir(): | ||
@@ -610,0 +586,0 @@ project_name = 'nodistinfo' |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
5097971
-0.01%85610
-0.02%