Skip to content

Commit 4fb0f4a

Browse files
committed
Fix distutils error and declare packaging dep
1 parent 556c056 commit 4fb0f4a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

pulp_python/tests/functional/api/test_full_mirror.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_pull_through_install(
3232
# Perform pull-through install
3333
host = urlsplit(distro.base_url).hostname
3434
url = f"{distro.base_url}simple/"
35-
cmd = ("pip", "install", "--trusted-host", host, "-i", url, PACKAGE)
35+
cmd = ("pip", "install", "--no-deps", "--trusted-host", host, "-i", url, PACKAGE)
3636
subprocess.run(cmd, check=True)
3737

3838
stdout = subprocess.run(("pip", "list"), capture_output=True).stdout.decode("utf-8")

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ classifiers=[
2727
requires-python = ">=3.11"
2828
dependencies = [
2929
"pulpcore>=3.105.0,<3.130",
30+
"packaging>=21.0,<27", # 21.0 removed distutils usage (removed in Python 3.12)
3031
"pkginfo>=1.12.0,<1.13.0",
3132
"bandersnatch>=6.6.0,<6.7",
3233
"pypi-simple>=1.8.0,<2.0",

0 commit comments

Comments
 (0)