pulp-python 3.13.6__py3-none-any.whl → 3.13.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. pulp_python/__init__.py +1 -1
  2. pulp_python/app/__init__.py +5 -3
  3. pulp_python/app/global_access_conditions.py +0 -1
  4. pulp_python/app/management/commands/repair-python-metadata.py +5 -4
  5. pulp_python/app/modelresource.py +1 -0
  6. pulp_python/app/models.py +8 -7
  7. pulp_python/app/pypi/serializers.py +11 -9
  8. pulp_python/app/pypi/views.py +69 -54
  9. pulp_python/app/replica.py +3 -2
  10. pulp_python/app/serializers.py +187 -110
  11. pulp_python/app/settings.py +1 -1
  12. pulp_python/app/tasks/publish.py +24 -25
  13. pulp_python/app/tasks/sync.py +15 -29
  14. pulp_python/app/tasks/upload.py +7 -8
  15. pulp_python/app/urls.py +5 -5
  16. pulp_python/app/utils.py +54 -47
  17. pulp_python/app/viewsets.py +43 -46
  18. pulp_python/pytest_plugin.py +14 -5
  19. pulp_python/tests/functional/api/test_consume_content.py +0 -1
  20. pulp_python/tests/functional/api/test_crud_content_unit.py +8 -5
  21. pulp_python/tests/functional/api/test_crud_publications.py +9 -6
  22. pulp_python/tests/functional/api/test_crud_remotes.py +3 -2
  23. pulp_python/tests/functional/api/test_domains.py +9 -7
  24. pulp_python/tests/functional/api/test_download_content.py +2 -2
  25. pulp_python/tests/functional/api/test_export_import.py +7 -4
  26. pulp_python/tests/functional/api/test_full_mirror.py +4 -4
  27. pulp_python/tests/functional/api/test_pypi_apis.py +13 -18
  28. pulp_python/tests/functional/api/test_rbac.py +6 -5
  29. pulp_python/tests/functional/api/test_repair.py +3 -2
  30. pulp_python/tests/functional/api/test_sync.py +28 -19
  31. pulp_python/tests/functional/constants.py +15 -33
  32. pulp_python/tests/functional/utils.py +15 -6
  33. {pulp_python-3.13.6.dist-info → pulp_python-3.13.8.dist-info}/METADATA +1 -1
  34. {pulp_python-3.13.6.dist-info → pulp_python-3.13.8.dist-info}/RECORD +38 -38
  35. {pulp_python-3.13.6.dist-info → pulp_python-3.13.8.dist-info}/WHEEL +0 -0
  36. {pulp_python-3.13.6.dist-info → pulp_python-3.13.8.dist-info}/entry_points.txt +0 -0
  37. {pulp_python-3.13.6.dist-info → pulp_python-3.13.8.dist-info}/licenses/LICENSE +0 -0
  38. {pulp_python-3.13.6.dist-info → pulp_python-3.13.8.dist-info}/top_level.txt +0 -0
@@ -1,14 +1,15 @@
1
- import pytest
2
-
3
1
  from urllib.parse import urljoin
2
+
3
+ import pytest
4
4
  from pypi_simple import PyPISimple
5
5
 
6
6
  from pulpcore.tests.functional.utils import PulpTaskError
7
+
7
8
  from pulp_python.tests.functional.constants import (
8
- PYTHON_FIXTURES_URL,
9
- PYTHON_PACKAGE_DATA,
10
9
  PYTHON_EGG_FILENAME,
11
10
  PYTHON_EGG_URL,
11
+ PYTHON_FIXTURES_URL,
12
+ PYTHON_PACKAGE_DATA,
12
13
  PYTHON_SM_FIXTURE_CHECKSUMS,
13
14
  )
14
15
 
@@ -102,7 +103,9 @@ def test_content_crud(
102
103
  monitor_task(pulpcore_bindings.OrphansCleanupApi.cleanup({"orphan_protection_time": 0}).task)
103
104
  mismatch_sha256 = PYTHON_SM_FIXTURE_CHECKSUMS["aiohttp-3.3.0.tar.gz"]
104
105
  content_body = {
105
- "relative_path": PYTHON_EGG_FILENAME, "file": python_file, "sha256": mismatch_sha256
106
+ "relative_path": PYTHON_EGG_FILENAME,
107
+ "file": python_file,
108
+ "sha256": mismatch_sha256,
106
109
  }
107
110
  with pytest.raises(PulpTaskError) as e:
108
111
  response = python_bindings.ContentPackagesApi.create(**content_body)
@@ -1,12 +1,13 @@
1
- import pytest
2
1
  import random
3
2
  from urllib.parse import urljoin
4
3
 
4
+ import pytest
5
+
5
6
  from pulp_python.tests.functional.constants import (
6
- PYTHON_SM_PROJECT_SPECIFIER,
7
- PYTHON_SM_FIXTURE_RELEASES,
8
- PYTHON_SM_FIXTURE_CHECKSUMS,
9
7
  PYTHON_EGG_FILENAME,
8
+ PYTHON_SM_FIXTURE_CHECKSUMS,
9
+ PYTHON_SM_FIXTURE_RELEASES,
10
+ PYTHON_SM_PROJECT_SPECIFIER,
10
11
  PYTHON_WHEEL_FILENAME,
11
12
  )
12
13
  from pulp_python.tests.functional.utils import ensure_simple
@@ -17,6 +18,7 @@ def python_publication_workflow(
17
18
  python_repo_with_sync, python_remote_factory, python_publication_factory
18
19
  ):
19
20
  """Create repo, remote, sync & then publish."""
21
+
20
22
  def _publish_workflow(repository=None, remote=None, **remote_body):
21
23
  if not remote:
22
24
  remote = python_remote_factory(**remote_body)
@@ -55,8 +57,9 @@ def test_all_content_published(python_publication_workflow, python_distribution_
55
57
  distro = python_distribution_factory(publication=pub)
56
58
 
57
59
  url = urljoin(distro.base_url, "simple/")
58
- proper, msgs = ensure_simple(url, PYTHON_SM_FIXTURE_RELEASES,
59
- sha_digests=PYTHON_SM_FIXTURE_CHECKSUMS)
60
+ proper, msgs = ensure_simple(
61
+ url, PYTHON_SM_FIXTURE_RELEASES, sha_digests=PYTHON_SM_FIXTURE_CHECKSUMS
62
+ )
60
63
  assert proper is True, msgs
61
64
 
62
65
 
@@ -1,11 +1,12 @@
1
- import pytest
2
1
  import uuid
3
2
 
3
+ import pytest
4
+
4
5
  from pulp_python.tests.functional.constants import (
5
6
  BANDERSNATCH_CONF,
6
7
  DEFAULT_BANDER_REMOTE_BODY,
7
- PYTHON_INVALID_SPECIFIER_NO_NAME,
8
8
  PYTHON_INVALID_SPECIFIER_BAD_VERSION,
9
+ PYTHON_INVALID_SPECIFIER_NO_NAME,
9
10
  PYTHON_VALID_SPECIFIER_NO_VERSION,
10
11
  )
11
12
 
@@ -1,17 +1,17 @@
1
- import pytest
2
- import uuid
3
1
  import json
4
2
  import subprocess
3
+ import uuid
4
+ from urllib.parse import urlsplit
5
+
6
+ import pytest
5
7
 
6
- from pulpcore.app import settings
8
+ from pulpcore.app import settings # noqa: TID251
7
9
 
8
10
  from pulp_python.tests.functional.constants import (
9
11
  PYTHON_EGG_FILENAME,
10
- PYTHON_SM_PROJECT_SPECIFIER,
11
12
  PYTHON_SM_PACKAGE_COUNT,
13
+ PYTHON_SM_PROJECT_SPECIFIER,
12
14
  )
13
- from urllib.parse import urlsplit
14
-
15
15
 
16
16
  pytestmark = pytest.mark.skipif(not settings.DOMAIN_ENABLED, reason="Domain not enabled")
17
17
 
@@ -72,7 +72,9 @@ def test_domain_object_creation(
72
72
 
73
73
  with pytest.raises(python_bindings.ApiException) as e:
74
74
  distro_body = {
75
- "name": str(uuid.uuid4()), "base_path": str(uuid.uuid4()), "repository": repo.pulp_href
75
+ "name": str(uuid.uuid4()),
76
+ "base_path": str(uuid.uuid4()),
77
+ "repository": repo.pulp_href,
76
78
  }
77
79
  python_bindings.DistributionsPypiApi.create(distro_body)
78
80
  assert e.value.status == 400
@@ -1,10 +1,10 @@
1
1
  import pytest
2
2
 
3
3
  from pulp_python.tests.functional.constants import (
4
- PYTHON_MD_PROJECT_SPECIFIER,
4
+ PYTHON_LG_PACKAGE_COUNT,
5
5
  PYTHON_LG_PROJECT_SPECIFIER,
6
6
  PYTHON_MD_PACKAGE_COUNT,
7
- PYTHON_LG_PACKAGE_COUNT,
7
+ PYTHON_MD_PROJECT_SPECIFIER,
8
8
  )
9
9
 
10
10
 
@@ -4,15 +4,18 @@ Tests PulpExporter and PulpExport functionality.
4
4
  NOTE: assumes ALLOWED_EXPORT_PATHS setting contains "/tmp" - all tests will fail if this is not
5
5
  the case.
6
6
  """
7
- import pytest
7
+
8
8
  import uuid
9
9
 
10
- from pulpcore.app import settings
10
+ import pytest
11
+
12
+ from pulpcore.app import settings # noqa: TID251
13
+
11
14
  from pulp_python.tests.functional.constants import (
12
- PYTHON_XS_PROJECT_SPECIFIER, PYTHON_SM_PROJECT_SPECIFIER
15
+ PYTHON_SM_PROJECT_SPECIFIER,
16
+ PYTHON_XS_PROJECT_SPECIFIER,
13
17
  )
14
18
 
15
-
16
19
  pytestmark = [
17
20
  pytest.mark.skipif(settings.DOMAIN_ENABLED, reason="Domains do not support export."),
18
21
  pytest.mark.skipif(
@@ -1,15 +1,15 @@
1
+ import subprocess
2
+ from urllib.parse import urljoin, urlsplit
3
+
1
4
  import pytest
2
5
  import requests
3
- import subprocess
6
+ from pypi_simple import ProjectPage
4
7
 
5
8
  from pulp_python.tests.functional.constants import (
6
9
  PYPI_URL,
7
10
  PYTHON_XS_FIXTURE_CHECKSUMS,
8
11
  )
9
12
 
10
- from pypi_simple import ProjectPage
11
- from urllib.parse import urljoin, urlsplit
12
-
13
13
 
14
14
  def test_pull_through_install(
15
15
  python_bindings, python_remote_factory, python_distribution_factory, delete_orphans_pre
@@ -1,27 +1,25 @@
1
- import pytest
2
- import requests
3
1
  import subprocess
4
-
5
2
  from urllib.parse import urljoin
6
3
 
4
+ import pytest
5
+ import requests
6
+
7
7
  from pulp_python.tests.functional.constants import (
8
- PYTHON_SM_PROJECT_SPECIFIER,
9
- PYTHON_SM_FIXTURE_RELEASES,
10
- PYTHON_SM_FIXTURE_CHECKSUMS,
11
- PYTHON_MD_PROJECT_SPECIFIER,
12
- PYTHON_MD_PYPI_SUMMARY,
13
8
  PYTHON_EGG_FILENAME,
14
- PYTHON_EGG_URL,
15
9
  PYTHON_EGG_SHA256,
10
+ PYTHON_EGG_URL,
11
+ PYTHON_MD_PROJECT_SPECIFIER,
12
+ PYTHON_MD_PYPI_SUMMARY,
13
+ PYTHON_SM_FIXTURE_CHECKSUMS,
14
+ PYTHON_SM_FIXTURE_RELEASES,
15
+ PYTHON_SM_PROJECT_SPECIFIER,
16
16
  PYTHON_WHEEL_FILENAME,
17
- PYTHON_WHEEL_URL,
18
17
  PYTHON_WHEEL_SHA256,
18
+ PYTHON_WHEEL_URL,
19
19
  SHELF_PYTHON_JSON,
20
20
  )
21
-
22
21
  from pulp_python.tests.functional.utils import ensure_simple
23
22
 
24
-
25
23
  PYPI_LAST_SERIAL = "X-PYPI-LAST-SERIAL"
26
24
  PYPI_SERIAL_CONSTANT = 1000000000
27
25
 
@@ -29,6 +27,7 @@ PYPI_SERIAL_CONSTANT = 1000000000
29
27
  @pytest.fixture
30
28
  def python_empty_repo_distro(python_repo_factory, python_distribution_factory):
31
29
  """Returns an empty repo with and distribution serving it."""
30
+
32
31
  def _generate_empty_repo_distro(repo_body=None, distro_body=None):
33
32
  repo_body = repo_body or {}
34
33
  distro_body = distro_body or {}
@@ -302,9 +301,7 @@ def test_pypi_last_serial(
302
301
  repo = python_repo_with_sync(remote)
303
302
  pub = python_publication_factory(repository=repo)
304
303
  distro = python_distribution_factory(publication=pub)
305
- content_url = urljoin(
306
- pulp_content_url, f"{distro.base_path}/pypi/shelf-reader/json"
307
- )
304
+ content_url = urljoin(pulp_content_url, f"{distro.base_path}/pypi/shelf-reader/json")
308
305
  pypi_url = urljoin(distro.base_url, "pypi/shelf-reader/json/")
309
306
  for url in [content_url, pypi_url]:
310
307
  response = requests.get(url)
@@ -317,9 +314,7 @@ def assert_pypi_json(package):
317
314
  assert SHELF_PYTHON_JSON["last_serial"] == package["last_serial"]
318
315
  assert SHELF_PYTHON_JSON["info"].items() <= package["info"].items()
319
316
  assert len(SHELF_PYTHON_JSON["urls"]) == len(package["urls"])
320
- assert_download_info(
321
- SHELF_PYTHON_JSON["urls"], package["urls"], "Failed to match URLS"
322
- )
317
+ assert_download_info(SHELF_PYTHON_JSON["urls"], package["urls"], "Failed to match URLS")
323
318
  assert SHELF_PYTHON_JSON["releases"].keys() <= package["releases"].keys()
324
319
  for version in SHELF_PYTHON_JSON["releases"].keys():
325
320
  assert_download_info(
@@ -1,6 +1,7 @@
1
- import pytest
2
1
  import uuid
3
2
 
3
+ import pytest
4
+
4
5
  from pulp_python.tests.functional.constants import (
5
6
  PYTHON_EGG_FILENAME,
6
7
  PYTHON_EGG_SHA256,
@@ -44,9 +45,9 @@ def try_action(python_bindings, monitor_task):
44
45
  except python_bindings.module.ApiException as e:
45
46
  assert e.status == outcome, f"{e}"
46
47
  else:
47
- assert (
48
- status_code == outcome
49
- ), f"User performed {action} when they shouldn't been able to"
48
+ assert status_code == outcome, (
49
+ f"User performed {action} when they shouldn't been able to"
50
+ )
50
51
  return data
51
52
 
52
53
  return _try_action
@@ -238,7 +239,7 @@ def test_pypi_apis(
238
239
  python_distribution_factory,
239
240
  anonymous_user,
240
241
  download_python_file,
241
- try_action
242
+ try_action,
242
243
  ):
243
244
  alice, bob, charlie = gen_users(["pythonrepository", "pythondistribution"])
244
245
  with bob:
@@ -1,6 +1,7 @@
1
- import pytest
2
1
  import subprocess
3
2
 
3
+ import pytest
4
+
4
5
  from pulp_python.tests.functional.constants import PYTHON_EGG_FILENAME
5
6
 
6
7
 
@@ -65,7 +66,7 @@ def test_metadata_repair_command(
65
66
  move_to_repository(python_repo.pulp_href, [content.pulp_href])
66
67
  process = subprocess.run(
67
68
  ["pulpcore-manager", "repair-python-metadata", "--repositories", python_repo.pulp_href],
68
- capture_output=True
69
+ capture_output=True,
69
70
  )
70
71
  assert process.returncode == 0
71
72
  output = process.stdout.decode().strip()
@@ -1,21 +1,21 @@
1
1
  import pytest
2
2
 
3
3
  from pulp_python.tests.functional.constants import (
4
- PYTHON_XS_PACKAGE_COUNT,
5
- PYTHON_PRERELEASE_TEST_SPECIFIER,
6
- PYTHON_WITH_PRERELEASE_COUNT,
7
- PYTHON_WITHOUT_PRERELEASE_COUNT,
8
- PYTHON_XS_PROJECT_SPECIFIER,
9
- PYTHON_MD_PROJECT_SPECIFIER,
4
+ DJANGO_LATEST_3,
5
+ PYTHON_LG_FIXTURE_COUNTS,
6
+ PYTHON_LG_PACKAGE_COUNT,
7
+ PYTHON_LG_PROJECT_SPECIFIER,
10
8
  PYTHON_MD_PACKAGE_COUNT,
11
- PYTHON_SM_PROJECT_SPECIFIER,
9
+ PYTHON_MD_PROJECT_SPECIFIER,
10
+ PYTHON_PRERELEASE_TEST_SPECIFIER,
12
11
  PYTHON_SM_PACKAGE_COUNT,
12
+ PYTHON_SM_PROJECT_SPECIFIER,
13
13
  PYTHON_UNAVAILABLE_PACKAGE_COUNT,
14
14
  PYTHON_UNAVAILABLE_PROJECT_SPECIFIER,
15
- PYTHON_LG_PROJECT_SPECIFIER,
16
- PYTHON_LG_PACKAGE_COUNT,
17
- PYTHON_LG_FIXTURE_COUNTS,
18
- DJANGO_LATEST_3,
15
+ PYTHON_WITH_PRERELEASE_COUNT,
16
+ PYTHON_WITHOUT_PRERELEASE_COUNT,
17
+ PYTHON_XS_PACKAGE_COUNT,
18
+ PYTHON_XS_PROJECT_SPECIFIER,
19
19
  SCIPY_COUNTS,
20
20
  )
21
21
 
@@ -213,7 +213,7 @@ def test_sync_package_type(python_repo_with_sync, python_remote_factory, python_
213
213
 
214
214
  @pytest.mark.parallel
215
215
  def test_sync_platform_exclude(
216
- python_repo_with_sync, python_remote_factory, python_content_summary
216
+ python_repo_with_sync, python_remote_factory, python_content_summary
217
217
  ):
218
218
  """
219
219
  Tests for platform specific packages not being synced when specified
@@ -226,8 +226,11 @@ def test_sync_platform_exclude(
226
226
  1 any platform release
227
227
  """
228
228
  # Tests that no windows packages are synced
229
- remote = python_remote_factory(includes=["scipy"], exclude_platforms=["windows"],
230
- prereleases=True, )
229
+ remote = python_remote_factory(
230
+ includes=["scipy"],
231
+ exclude_platforms=["windows"],
232
+ prereleases=True,
233
+ )
231
234
  repo = python_repo_with_sync(remote)
232
235
 
233
236
  summary = python_content_summary(repository_version=repo.latest_version_href)
@@ -235,8 +238,11 @@ def test_sync_platform_exclude(
235
238
  assert summary.present["python.python"]["count"] == diff_count
236
239
 
237
240
  # Tests that no macos packages are synced
238
- remote = python_remote_factory(includes=["scipy"], exclude_platforms=["macos"],
239
- prereleases=True, )
241
+ remote = python_remote_factory(
242
+ includes=["scipy"],
243
+ exclude_platforms=["macos"],
244
+ prereleases=True,
245
+ )
240
246
  repo = python_repo_with_sync(remote)
241
247
 
242
248
  summary = python_content_summary(repository_version=repo.latest_version_href)
@@ -244,8 +250,11 @@ def test_sync_platform_exclude(
244
250
  assert summary.present["python.python"]["count"] == diff_count
245
251
 
246
252
  # Tests that no linux packages are synced
247
- remote = python_remote_factory(includes=["scipy"], exclude_platforms=["linux"],
248
- prereleases=True, )
253
+ remote = python_remote_factory(
254
+ includes=["scipy"],
255
+ exclude_platforms=["linux"],
256
+ prereleases=True,
257
+ )
249
258
  repo = python_repo_with_sync(remote)
250
259
 
251
260
  summary = python_content_summary(repository_version=repo.latest_version_href)
@@ -273,7 +282,7 @@ def test_sync_multiple_filters(
273
282
  includes=PYTHON_LG_PROJECT_SPECIFIER,
274
283
  package_types=["bdist_wheel"],
275
284
  keep_latest_packages=1,
276
- prereleases=False
285
+ prereleases=False,
277
286
  )
278
287
  repo = python_repo_with_sync(remote)
279
288
 
@@ -1,7 +1,6 @@
1
1
  import os
2
2
  from urllib.parse import urljoin
3
3
 
4
-
5
4
  PULP_FIXTURES_BASE_URL = os.environ.get(
6
5
  "REMOTE_FIXTURES_ORIGIN", "https://fixtures.pulpproject.org/"
7
6
  )
@@ -25,9 +24,7 @@ PYTHON_UNAVAILABLE_PROJECT_SPECIFIER = [
25
24
  "pylint", # matches 0
26
25
  ]
27
26
  PYTHON_UNAVAILABLE_PACKAGE_COUNT = 5
28
- PYTHON_UNAVAILABLE_FIXTURE_SUMMARY = {
29
- PYTHON_CONTENT_NAME: PYTHON_UNAVAILABLE_PACKAGE_COUNT
30
- }
27
+ PYTHON_UNAVAILABLE_FIXTURE_SUMMARY = {PYTHON_CONTENT_NAME: PYTHON_UNAVAILABLE_PACKAGE_COUNT}
31
28
 
32
29
  # no "name" field
33
30
  PYTHON_INVALID_SPECIFIER_NO_NAME = [
@@ -51,13 +48,9 @@ PYTHON_PRERELEASE_TEST_SPECIFIER = [
51
48
  "Django",
52
49
  ]
53
50
  PYTHON_WITH_PRERELEASE_COUNT = 46
54
- PYTHON_WITH_PRERELEASE_FIXTURE_SUMMARY = {
55
- PYTHON_CONTENT_NAME: PYTHON_WITH_PRERELEASE_COUNT
56
- }
51
+ PYTHON_WITH_PRERELEASE_FIXTURE_SUMMARY = {PYTHON_CONTENT_NAME: PYTHON_WITH_PRERELEASE_COUNT}
57
52
  PYTHON_WITHOUT_PRERELEASE_COUNT = 30
58
- PYTHON_WITHOUT_PRERELEASE_FIXTURE_SUMMARY = {
59
- PYTHON_CONTENT_NAME: PYTHON_WITHOUT_PRERELEASE_COUNT
60
- }
53
+ PYTHON_WITHOUT_PRERELEASE_FIXTURE_SUMMARY = {PYTHON_CONTENT_NAME: PYTHON_WITHOUT_PRERELEASE_COUNT}
61
54
 
62
55
  # Specifier for basic sync / publish tests.
63
56
  PYTHON_XS_PROJECT_SPECIFIER = ["shelf-reader"] # matches 2
@@ -93,21 +86,15 @@ PYTHON_SM_FIXTURE_CHECKSUMS = {
93
86
  "aiohttp-3.2.1.tar.gz": "1b95d53f8dac13898f0a3e4af76f6f36d540fbfaefc4f4c9f43e436fa0e53d22",
94
87
  "aiohttp-3.2.0.tar.gz": "1be3903fe6a36d20492e74efb326522dd4702bf32b45ffc7acbc0fb34ab240a6",
95
88
  "Django-1.10.4.tar.gz": "fff7f062e510d812badde7cfc57745b7779edb4d209b2bc5ea8d954c22305c2b",
96
- "Django-1.10.4-py2.py3-none-any.whl":
97
- "a8e1a552205cda15023c39ecf17f7e525e96c5b0142e7879e8bd0c445351f2cc",
89
+ "Django-1.10.4-py2.py3-none-any.whl": "a8e1a552205cda15023c39ecf17f7e525e96c5b0142e7879e8bd0c445351f2cc",
98
90
  "Django-1.10.3.tar.gz": "6f92f08dee8a1bd7680e098a91bf5acd08b5cdfe74137f695b60fd79f4478c30",
99
- "Django-1.10.3-py2.py3-none-any.whl":
100
- "94426cc28d8721fbf13c333053f08d32427671a4ca7986f7030fc82bdf9c88c1",
91
+ "Django-1.10.3-py2.py3-none-any.whl": "94426cc28d8721fbf13c333053f08d32427671a4ca7986f7030fc82bdf9c88c1",
101
92
  "Django-1.10.2.tar.gz": "e127f12a0bfb34843b6e8c82f91e26fff6445a7ca91d222c0794174cf97cbce1",
102
- "Django-1.10.2-py2.py3-none-any.whl":
103
- "4d48ab8e84a7c8b2bc4b2f4f199bc3a8bfcc9cbdbc29e355ac5c44a501d73a1a",
93
+ "Django-1.10.2-py2.py3-none-any.whl": "4d48ab8e84a7c8b2bc4b2f4f199bc3a8bfcc9cbdbc29e355ac5c44a501d73a1a",
104
94
  "Django-1.10.1.tar.gz": "d6e6c5b25cb67f46afd7c82f536529b11981183423dad8932e15bce93d1a24f3",
105
- "Django-1.10.1-py2.py3-none-any.whl":
106
- "3d689905cd0635bbb33b87f9a5df7ca70a3db206faae4ec58cda5e7f5f47050d",
107
- "celery-4.2.0-py2.py3-none-any.whl":
108
- "2082cbd82effa8ac8a8a58977d70bb203a9f362817e3b66f4578117b9f93d8a9",
109
- "celery-4.1.1-py2.py3-none-any.whl":
110
- "6fc4678d1692af97e137b2a9f1c04efd8e7e2fb7134c5c5ad60738cdd927762f",
95
+ "Django-1.10.1-py2.py3-none-any.whl": "3d689905cd0635bbb33b87f9a5df7ca70a3db206faae4ec58cda5e7f5f47050d",
96
+ "celery-4.2.0-py2.py3-none-any.whl": "2082cbd82effa8ac8a8a58977d70bb203a9f362817e3b66f4578117b9f93d8a9",
97
+ "celery-4.1.1-py2.py3-none-any.whl": "6fc4678d1692af97e137b2a9f1c04efd8e7e2fb7134c5c5ad60738cdd927762f",
111
98
  }
112
99
 
113
100
  PYTHON_MD_PROJECT_SPECIFIER = [
@@ -159,9 +146,7 @@ PYTHON_EGG_SHA256 = "04cfd8bb4f843e35d51bfdef2035109bdea831b55a57c3e6a154d14be11
159
146
 
160
147
  # Intended to be used with the XS specifier
161
148
  PYTHON_WHEEL_FILENAME = "shelf_reader-0.1-py2-none-any.whl"
162
- PYTHON_WHEEL_URL = urljoin(
163
- urljoin(PYTHON_FIXTURES_URL, "packages/"), PYTHON_WHEEL_FILENAME
164
- )
149
+ PYTHON_WHEEL_URL = urljoin(urljoin(PYTHON_FIXTURES_URL, "packages/"), PYTHON_WHEEL_FILENAME)
165
150
  PYTHON_WHEEL_SHA256 = "2eceb1643c10c5e4a65970baf63bde43b79cbdac7de81dae853ce47ab05197e9"
166
151
 
167
152
  PYTHON_XS_FIXTURE_CHECKSUMS = {
@@ -269,7 +254,7 @@ DEFAULT_BANDER_REMOTE_BODY = {
269
254
  "download_concurrency": 3,
270
255
  "policy": "on_demand",
271
256
  "prereleases": False,
272
- "excludes": ["example1", "example2"]
257
+ "excludes": ["example1", "example2"],
273
258
  }
274
259
 
275
260
  BANDERSNATCH_CONF = b"""
@@ -333,7 +318,7 @@ SHELF_BDIST_PYTHON_DOWNLOAD = {
333
318
  "requires_python": None,
334
319
  "size": 22455,
335
320
  "yanked": False,
336
- "yanked_reason": None
321
+ "yanked_reason": None,
337
322
  }
338
323
 
339
324
  SHELF_SDIST_PYTHON_DOWNLOAD = {
@@ -351,7 +336,7 @@ SHELF_SDIST_PYTHON_DOWNLOAD = {
351
336
  "requires_python": None,
352
337
  "size": 19097,
353
338
  "yanked": False,
354
- "yanked_reason": None
339
+ "yanked_reason": None,
355
340
  }
356
341
 
357
342
  SHELF_0DOT1_RELEASE = [SHELF_BDIST_PYTHON_DOWNLOAD, SHELF_SDIST_PYTHON_DOWNLOAD]
@@ -359,9 +344,6 @@ SHELF_0DOT1_RELEASE = [SHELF_BDIST_PYTHON_DOWNLOAD, SHELF_SDIST_PYTHON_DOWNLOAD]
359
344
  SHELF_PYTHON_JSON = {
360
345
  "info": PYTHON_INFO_DATA,
361
346
  "last_serial": 0,
362
- "releases": {
363
- "0.1": SHELF_0DOT1_RELEASE
364
- },
365
- "urls": SHELF_0DOT1_RELEASE
366
-
347
+ "releases": {"0.1": SHELF_0DOT1_RELEASE},
348
+ "urls": SHELF_0DOT1_RELEASE,
367
349
  }
@@ -1,6 +1,6 @@
1
- import requests
2
-
3
1
  from urllib.parse import urljoin
2
+
3
+ import requests
4
4
  from lxml import html
5
5
 
6
6
 
@@ -16,6 +16,7 @@ def ensure_simple(simple_url, packages, sha_digests=None):
16
16
  in the simple index and thus be accessible from the distribution, but if one can't see it
17
17
  how would one know that it's there?*
18
18
  """
19
+
19
20
  def explore_links(page_url, page_name, links_found, msgs):
20
21
  legit_found_links = []
21
22
  page = html.fromstring(requests.get(page_url).text)
@@ -48,8 +49,16 @@ def ensure_simple(simple_url, packages, sha_digests=None):
48
49
  package = package_link.split("/")[-1]
49
50
  if sha_digests[package] != sha:
50
51
  msgs += f"\nRelease has bad sha256 attached to it {package}"
51
- msgs += "".join(map(lambda x: f"\nSimple link not found for {x}",
52
- [name for name, val in packages_found.items() if not val]))
53
- msgs += "".join(map(lambda x: f"\nReleases link not found for {x}",
54
- [name for name, val in releases_found.items() if not val]))
52
+ msgs += "".join(
53
+ map(
54
+ lambda x: f"\nSimple link not found for {x}",
55
+ [name for name, val in packages_found.items() if not val],
56
+ )
57
+ )
58
+ msgs += "".join(
59
+ map(
60
+ lambda x: f"\nReleases link not found for {x}",
61
+ [name for name, val in releases_found.items() if not val],
62
+ )
63
+ )
55
64
  return len(msgs) == 0, msgs
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulp-python
3
- Version: 3.13.6
3
+ Version: 3.13.8
4
4
  Summary: pulp-python plugin for the Pulp Project
5
5
  Author-email: Pulp Team <pulp-list@redhat.com>
6
6
  Project-URL: Homepage, https://pulpproject.org
@@ -1,18 +1,18 @@
1
- pulp_python/__init__.py,sha256=BfGFMACxdZWJMiAhkn0BW-k_iKULe-nVCcQ6g0sX89k,65
2
- pulp_python/pytest_plugin.py,sha256=VYkopWyPqdeh7nQKh-v9fZFIRNHNBnB-p8-0FOyq_KM,7515
3
- pulp_python/app/__init__.py,sha256=VE5k2JIaOz7IX9geYy9NCdT3OZPwu2FIjP5886CIK-M,2488
4
- pulp_python/app/global_access_conditions.py,sha256=y8NwdgAoaB5iY7EzSBoCQOgVopSHpVMc55FKJmCGGlI,1081
5
- pulp_python/app/modelresource.py,sha256=dogoBWibBmQyFpcV-Hp1lu7D2WwSECa5PEShWSIg7mg,1248
6
- pulp_python/app/models.py,sha256=NiwmFI0cQmSn3zdiR1dCv-QCqaUB7iMTTOY42r0ugIU,10440
7
- pulp_python/app/replica.py,sha256=LOMWtJP_QOKoli3uATsuSlbUJVgwmNCqcfv_96rpwuQ,1956
8
- pulp_python/app/serializers.py,sha256=BkqQ7Pg6vMAh2McoLetY-yFB8U0VOrAPRPMIHmPlGXc,14922
9
- pulp_python/app/settings.py,sha256=F-TFLcol3nXK2IHpb9yIv-KIXj2OPibQ8FuyCCCFCT0,227
10
- pulp_python/app/urls.py,sha256=kqS_rEVxrATP9qJzxefUy6so7CqQf0074K_0x7k_bQw,1086
11
- pulp_python/app/utils.py,sha256=C5ypuchrz8_CWRkqpDiutiHh_TYzqRz2_a-Nj-Wa9ZA,13778
12
- pulp_python/app/viewsets.py,sha256=S_hZm5SMrEkVxw6Oiq2LmnRpcJgjr9cZG30Yp8HD8aY,23114
1
+ pulp_python/__init__.py,sha256=GIuTLoBTc-07dSLJUh8xrZPRz8x-jJ61pfR0J1IjnzI,65
2
+ pulp_python/pytest_plugin.py,sha256=CZlTqBlugIQibYYsgFmHOZemwPe1tJujCgKLipUwPc4,7524
3
+ pulp_python/app/__init__.py,sha256=L_3uG-dEGS8Oh3CmXC6MjB1Soh93j0_4nn27rn2X85Q,2490
4
+ pulp_python/app/global_access_conditions.py,sha256=MZJtyoVsr-4hRaty6mKDqh3caOHd5UKJjEWLV2crOLs,1080
5
+ pulp_python/app/modelresource.py,sha256=4SFAdqk6lozi_cZz4uqDIqhqPAZF-7l5jJwPn-xGZFs,1249
6
+ pulp_python/app/models.py,sha256=kfsI3GnWKTHHsjwdxZ7Pp_LDHEjbQTwjORRM_mNNppQ,10441
7
+ pulp_python/app/replica.py,sha256=jasF2TawOTkCG_EPF-5aApaCC2fmJ6wjsG1tiaklTTU,1957
8
+ pulp_python/app/serializers.py,sha256=1x2C73CsKQ2XPO4kpV_07aPLtb8D6ht6aQ1_SR1k2hs,15636
9
+ pulp_python/app/settings.py,sha256=HXJK3rr0LVTOv1xBS5cZvVtz6j4SvFZl0PH3sLTcu2w,227
10
+ pulp_python/app/urls.py,sha256=bnuW89roIlPipROo3QcJktvRPAxikI1tV7-XX425QQg,1089
11
+ pulp_python/app/utils.py,sha256=XQ4xvAlqArcm_V4GyMWfRjkjzvfwXOeGOpguWif4Z54,13872
12
+ pulp_python/app/viewsets.py,sha256=1a8SfoltNYUmB2bTjkuZLV_HyrCUy9mHjCOMBkKITpM,23037
13
13
  pulp_python/app/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  pulp_python/app/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- pulp_python/app/management/commands/repair-python-metadata.py,sha256=Low8OO9exZCySOQPt3eKyxTUh0eCx0u7OMFbAefD1tA,4271
15
+ pulp_python/app/management/commands/repair-python-metadata.py,sha256=fbzMang83hdsep-pjApA4MYKVfXhyV1cP1x20Bc7BTw,4273
16
16
  pulp_python/app/migrations/0001_initial.py,sha256=8mtcB30iKJdXmaEg0nfdfsXbX6aT7b9XvyDKv4cS5l4,5059
17
17
  pulp_python/app/migrations/0002_pythonpackagecontent_python_version.py,sha256=bTAhH-D6to2kohCfl5U1VDglzh5codHo27-qB93Opug,427
18
18
  pulp_python/app/migrations/0003_new_sync_filters.py,sha256=yBee3Jb1pJAmUXqhs-_2Aw2ndp8zQJ1mIGpRyGGFMfk,1310
@@ -28,38 +28,38 @@ pulp_python/app/migrations/0012_add_domain.py,sha256=2BXsLNH3bOpY58t_ZX71w6KxUzj
28
28
  pulp_python/app/migrations/0013_add_rbac_permissions.py,sha256=ynnxHNW4SXo5YL7hRAqk6rdTBqcL4btpLcMV2mN702w,1431
29
29
  pulp_python/app/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  pulp_python/app/pypi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
- pulp_python/app/pypi/serializers.py,sha256=6ivjOQx0cuokiyy4DZNPHR7YnMAZLQ-rnr_7i9sGtwM,3295
32
- pulp_python/app/pypi/views.py,sha256=IBBFYkDRYWy_kMY7B5phcSB551kKsF3m0Cy98NTpEGc,15787
31
+ pulp_python/app/pypi/serializers.py,sha256=qU3lZEVs0luqMlYrG1KxxfGpNo9exYzWool1bERtLIY,3310
32
+ pulp_python/app/pypi/views.py,sha256=1_kdeseKXmgNkVL_Wn6DAdrmY8biZy0BY_AwCSNd_6E,15799
33
33
  pulp_python/app/tasks/__init__.py,sha256=wAbWAJEZDXPRChUjdxDXNHP1KVnWgH5Q_P_cHeG8LH4,172
34
- pulp_python/app/tasks/publish.py,sha256=H-7uqzHNqfCbkh7D5DmZqy060paTLGk3XpyGVCmVeHQ,4064
35
- pulp_python/app/tasks/sync.py,sha256=oRjpvXGBXkDp5HWZwBKHH8Xyx--tV3i1lYVntjuaRH8,10434
36
- pulp_python/app/tasks/upload.py,sha256=5dC5LP0aH6YADZ1DypxvZDoon0hNVRHVj3eVPsFM1CQ,3537
34
+ pulp_python/app/tasks/publish.py,sha256=85WX0SZBDlSo46olt05p7qnzCE2xohZSTb0cg5JrNmw,4076
35
+ pulp_python/app/tasks/sync.py,sha256=EslG8iFOXUr4StO7crG95ZSVMU6SRcuF8zW-h9ZXmtw,10236
36
+ pulp_python/app/tasks/upload.py,sha256=mYDUK0cwjiZc7h6DQCpge-C21CbHTI29qhEJkrm0GtY,3516
37
37
  pulp_python/app/webserver_snippets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  pulp_python/app/webserver_snippets/apache.conf,sha256=3frHSl2YV_8pJPscaFxMVo7HmxGJdb8XVmfdLtCxzoA,97
39
39
  pulp_python/app/webserver_snippets/nginx.conf,sha256=gMqZGFefsTJVVx9YRxpHVS7NMEll9CzOseYdtLr3Avc,344
40
40
  pulp_python/tests/__init__.py,sha256=4Yz43a8s-KyhdHFb5eEhIIvH72807Y84uAHnG5bO5y0,31
41
41
  pulp_python/tests/functional/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
- pulp_python/tests/functional/constants.py,sha256=tm3TtrlC2ppEv3Ans1HIKBnABc-6rPZjvr8WuUmQ7p0,12446
43
- pulp_python/tests/functional/utils.py,sha256=JPCEAqdbLFx89OC8J0WBtot1QD4go7hgUhG-8CWg8tQ,2705
42
+ pulp_python/tests/functional/constants.py,sha256=zlBXQWa47fEcVcLbosasf48LCZzO8Jw-W6hsWQJ5bPM,12362
43
+ pulp_python/tests/functional/utils.py,sha256=pl8oyqPSRKvJl8jZY4cv-y0apgbP01s3QJnUjFrJNL0,2756
44
44
  pulp_python/tests/functional/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
45
  pulp_python/tests/functional/api/test_auto_publish.py,sha256=uCIt4LsO61oMk3bDs3LMQDJI8zkKqvY0b1uX16bTxzM,1747
46
- pulp_python/tests/functional/api/test_consume_content.py,sha256=QUOZ_bQ_Ortzitc7sjlMEJzRhPm00wayxjZvEeK18jI,1000
47
- pulp_python/tests/functional/api/test_crud_content_unit.py,sha256=-rRQasHnNVhipVfzozjhXme-hDcdnBIleOeSJ1XmsNg,6742
48
- pulp_python/tests/functional/api/test_crud_publications.py,sha256=FyjkyM3qMzo-Um6GZP-qGssz4sZPBx34dD2Oux3qlm0,4448
49
- pulp_python/tests/functional/api/test_crud_remotes.py,sha256=uRo51X3MDWIls4Fdxw5unvU47_JyyLEg2w41ByvDcmY,5811
50
- pulp_python/tests/functional/api/test_domains.py,sha256=qlWJNHUHNKiaMGBFk78XP4dmBNaVoRhs88GGz46126E,10428
51
- pulp_python/tests/functional/api/test_download_content.py,sha256=msnsKpU6TGT8eNu6e0uFa4fte6hj85OTexwOHdf66-c,4950
52
- pulp_python/tests/functional/api/test_export_import.py,sha256=-nxRdaG_adFgJTkilLLsVmAeH6f74ludb6qqZrm_bGA,4597
53
- pulp_python/tests/functional/api/test_full_mirror.py,sha256=zQGMl19xSoefTIdso6NXBjfoWuA5wDCHZ7YdPsYmKYg,2877
54
- pulp_python/tests/functional/api/test_pypi_apis.py,sha256=FB5F6jqa5cHjXHyBB-WQyaC7Uc-C62jlV9-WAFAaEfM,12208
55
- pulp_python/tests/functional/api/test_rbac.py,sha256=mC_cH69cWktEgTpPnqRfoR6cVl2QrWwTP-_fpH6unrA,10511
56
- pulp_python/tests/functional/api/test_repair.py,sha256=_kTa4XwxUuBbRlVFofSXWnBg1edbCnm1AEE5elIvuW8,2833
57
- pulp_python/tests/functional/api/test_sync.py,sha256=EYMnscBllEQxzZAKRv2QcrT2n_r5ny0NJzsH5XrjsSY,12645
46
+ pulp_python/tests/functional/api/test_consume_content.py,sha256=-7b6KOrIT3NLSUafeu1tzXEXRPddDbS5VeMHxMIy2n8,999
47
+ pulp_python/tests/functional/api/test_crud_content_unit.py,sha256=7FIKi6XC-xTr5gn3yVxWDyqprs6esPbgMqcF2ELfnp8,6760
48
+ pulp_python/tests/functional/api/test_crud_publications.py,sha256=OVpDsvl_VeB2j80ds8WwhV6m70xTu9QLpM0fCXN5CRM,4431
49
+ pulp_python/tests/functional/api/test_crud_remotes.py,sha256=clFFhgG5udyKzWOLwxpmwjhiVz8r5JEPAQHkztcAf9w,5812
50
+ pulp_python/tests/functional/api/test_domains.py,sha256=vMm7rZD96nlmVdpU-Y7mZVtj5j9xHfTs_NYgLJuRhAc,10469
51
+ pulp_python/tests/functional/api/test_download_content.py,sha256=5IuaHXyLakPkjm5sLTxtTl7Dq0yl7N36HpObnIa0Sks,4950
52
+ pulp_python/tests/functional/api/test_export_import.py,sha256=Lf_RS_WfQwVqA5FHeGrKtjVcqgGcGu78p0UdIjt64wg,4620
53
+ pulp_python/tests/functional/api/test_full_mirror.py,sha256=s1JqqyfrSU_uegQoKF3aG3Oez8zPkD9ZGtNjXG6V8mc,2877
54
+ pulp_python/tests/functional/api/test_pypi_apis.py,sha256=lMPh7CbSNJqZaVkg6xZCs3CZa1YZsUkPQYJMbqLxx7k,12179
55
+ pulp_python/tests/functional/api/test_rbac.py,sha256=-xNWqvKKU-v1uC6tCRGBK0aWaff25K9C-AfzQkdHhhI,10513
56
+ pulp_python/tests/functional/api/test_repair.py,sha256=KGAm-Yt1x6d9KsLBwMy40casnbAjR20e02DnEZQuqnE,2835
57
+ pulp_python/tests/functional/api/test_sync.py,sha256=oE2gJx9bnbQudq45dGVB7xE_ZBijE9bK_44t73NryeQ,12624
58
58
  pulp_python/tests/unit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
59
59
  pulp_python/tests/unit/test_models.py,sha256=TBI0yKsrdbnJSPeBFfxSqhXK7zaNvR6qg5JehGH3Pds,229
60
- pulp_python-3.13.6.dist-info/licenses/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
61
- pulp_python-3.13.6.dist-info/METADATA,sha256=rieHwzNb3YhHVWDmMi39J_aAryLpVTJZheejgSDrZhg,1582
62
- pulp_python-3.13.6.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
63
- pulp_python-3.13.6.dist-info/entry_points.txt,sha256=HvqLEXjw_dS5jqAwnE5JiRZFE6f-y5SRtitKLPml2To,115
64
- pulp_python-3.13.6.dist-info/top_level.txt,sha256=X0hXgXc_bpbiKqVrkt8jD5_QEiQviKbHDwveQcOcJjo,12
65
- pulp_python-3.13.6.dist-info/RECORD,,
60
+ pulp_python-3.13.8.dist-info/licenses/LICENSE,sha256=2ylvL381vKOhdO-w6zkrOxe9lLNBhRQpo9_0EbHC_HM,18046
61
+ pulp_python-3.13.8.dist-info/METADATA,sha256=hoyefBxj_QsznLnKmZTitTzTAxH9f9_d6NYkxS2h0Wc,1582
62
+ pulp_python-3.13.8.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
63
+ pulp_python-3.13.8.dist-info/entry_points.txt,sha256=HvqLEXjw_dS5jqAwnE5JiRZFE6f-y5SRtitKLPml2To,115
64
+ pulp_python-3.13.8.dist-info/top_level.txt,sha256=X0hXgXc_bpbiKqVrkt8jD5_QEiQviKbHDwveQcOcJjo,12
65
+ pulp_python-3.13.8.dist-info/RECORD,,