pulp-python 3.12.1__tar.gz → 3.12.3__tar.gz
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.
- {pulp-python-3.12.1 → pulp-python-3.12.3}/CHANGES.md +18 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/PKG-INFO +1 -1
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/__init__.py +1 -1
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/models.py +5 -1
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/pypi/views.py +2 -1
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_crud_content_unit.py +14 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_download_content.py +29 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python.egg-info/PKG-INFO +1 -1
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python.egg-info/requires.txt +1 -1
- {pulp-python-3.12.1 → pulp-python-3.12.3}/requirements.txt +1 -1
- {pulp-python-3.12.1 → pulp-python-3.12.3}/setup.py +1 -1
- {pulp-python-3.12.1 → pulp-python-3.12.3}/COMMITMENT +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/COPYRIGHT +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/LICENSE +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/MANIFEST.in +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/README.md +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/functest_requirements.txt +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/__init__.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/global_access_conditions.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0001_initial.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0002_pythonpackagecontent_python_version.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0003_new_sync_filters.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0004_DATA_swap_distribution_model.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0005_pythonpackagecontent_sha256.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0006_pythonrepository_autopublish.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0007_pythonpackagecontent_mv-2-1.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0008_pythonpackagecontent_unique_sha256.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0009_pythondistribution_allow_uploads.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0010_update_json_field.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0011_alter_pythondistribution_distribution_ptr_and_more.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0012_add_domain.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0013_add_rbac_permissions.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/__init__.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/modelresource.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/pypi/__init__.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/pypi/serializers.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/replica.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/serializers.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/settings.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/tasks/__init__.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/tasks/publish.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/tasks/sync.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/tasks/upload.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/urls.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/utils.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/viewsets.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/webserver_snippets/__init__.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/webserver_snippets/apache.conf +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/webserver_snippets/nginx.conf +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/pytest_plugin.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/__init__.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/__init__.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/__init__.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_auto_publish.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_consume_content.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_crud_publications.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_crud_remotes.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_domains.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_export_import.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_full_mirror.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_pypi_apis.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_rbac.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_sync.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/constants.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/utils.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/unit/__init__.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/unit/test_models.py +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python.egg-info/SOURCES.txt +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python.egg-info/dependency_links.txt +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python.egg-info/entry_points.txt +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python.egg-info/top_level.txt +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/pyproject.toml +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/setup.cfg +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/test_requirements.txt +0 -0
- {pulp-python-3.12.1 → pulp-python-3.12.3}/unittest_requirements.txt +0 -0
|
@@ -8,6 +8,24 @@
|
|
|
8
8
|
|
|
9
9
|
[//]: # (towncrier release notes start)
|
|
10
10
|
|
|
11
|
+
## 3.12.3 (2024-08-26) {: #3.12.3 }
|
|
12
|
+
|
|
13
|
+
#### Bugfixes {: #3.12.3-bugfix }
|
|
14
|
+
|
|
15
|
+
- Fixed uploads not supporting packages using metadata spec 2.3
|
|
16
|
+
[#682](https://github.com/pulp/pulp_python/issues/682)
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# ## 3.12.2 (2024-08-21) {: #3.12.2 }
|
|
21
|
+
|
|
22
|
+
#### Bugfixes {: #3.12.2-bugfix }
|
|
23
|
+
|
|
24
|
+
- Fixed package name normalization issue preventing syncing packages with "." or "_" in their names.
|
|
25
|
+
[#716](https://github.com/pulp/pulp_python/issues/716)
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
11
29
|
## 3.12.1 (2024-06-27) {: #3.12.1 }
|
|
12
30
|
|
|
13
31
|
|
|
@@ -17,6 +17,7 @@ from pulpcore.plugin.responses import ArtifactResponse
|
|
|
17
17
|
|
|
18
18
|
from pathlib import PurePath
|
|
19
19
|
from .utils import (
|
|
20
|
+
canonicalize_name,
|
|
20
21
|
get_project_metadata_from_artifact,
|
|
21
22
|
parse_project_metadata,
|
|
22
23
|
python_content_to_json,
|
|
@@ -87,6 +88,8 @@ class PythonDistribution(Distribution, AutoAddObjPermsMixin):
|
|
|
87
88
|
).latest("pulp_created")
|
|
88
89
|
except ObjectDoesNotExist:
|
|
89
90
|
return None
|
|
91
|
+
if len(path.parts) == 2:
|
|
92
|
+
path = PurePath(f"simple/{canonicalize_name(path.parts[1])}")
|
|
90
93
|
rel_path = f"{path}/index.html"
|
|
91
94
|
try:
|
|
92
95
|
ca = (
|
|
@@ -103,8 +106,9 @@ class PythonDistribution(Distribution, AutoAddObjPermsMixin):
|
|
|
103
106
|
return ArtifactResponse(ca.artifact, headers=headers)
|
|
104
107
|
|
|
105
108
|
if name:
|
|
109
|
+
normalized = canonicalize_name(name)
|
|
106
110
|
package_content = PythonPackageContent.objects.filter(
|
|
107
|
-
pk__in=self.publication.repository_version.content,
|
|
111
|
+
pk__in=self.publication.repository_version.content, name__normalize=normalized
|
|
108
112
|
)
|
|
109
113
|
# TODO Change this value to the Repo's serial value when implemented
|
|
110
114
|
headers = {PYPI_LAST_SERIAL: str(PYPI_SERIAL_CONSTANT)}
|
|
@@ -327,7 +327,8 @@ class MetadataView(PyPIMixin, ViewSet):
|
|
|
327
327
|
elif meta_path.match("*/json"):
|
|
328
328
|
name = meta_path.parts[0]
|
|
329
329
|
if name:
|
|
330
|
-
|
|
330
|
+
normalized = canonicalize_name(name)
|
|
331
|
+
package_content = content.filter(name__normalize=normalized)
|
|
331
332
|
# TODO Change this value to the Repo's serial value when implemented
|
|
332
333
|
headers = {PYPI_LAST_SERIAL: str(PYPI_SERIAL_CONSTANT)}
|
|
333
334
|
if settings.DOMAIN_ENABLED:
|
{pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_crud_content_unit.py
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import pytest
|
|
2
2
|
|
|
3
3
|
from urllib.parse import urljoin
|
|
4
|
+
from pypi_simple import PyPISimple
|
|
4
5
|
|
|
5
6
|
from pulpcore.tests.functional.utils import PulpTaskError
|
|
6
7
|
from pulp_python.tests.functional.constants import (
|
|
@@ -108,3 +109,16 @@ def test_content_crud(
|
|
|
108
109
|
monitor_task(response.task)
|
|
109
110
|
msg = "The uploaded artifact's sha256 checksum does not match the one provided"
|
|
110
111
|
assert msg in e.value.task.error["description"]
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
@pytest.mark.parallel
|
|
115
|
+
def test_upload_metadata_23_spec(python_content_factory):
|
|
116
|
+
"""Test that packages using metadata spec 2.3 can be uploaded to pulp."""
|
|
117
|
+
filename = "urllib3-2.2.2-py3-none-any.whl"
|
|
118
|
+
with PyPISimple() as client:
|
|
119
|
+
page = client.get_project_page("urllib3")
|
|
120
|
+
for package in page.packages:
|
|
121
|
+
if package.filename == filename:
|
|
122
|
+
content = python_content_factory(filename, url=package.url)
|
|
123
|
+
assert content.metadata_version == "2.3"
|
|
124
|
+
break
|
{pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_download_content.py
RENAMED
|
@@ -87,3 +87,32 @@ def test_full_pulp_to_pulp_sync(
|
|
|
87
87
|
repo3 = python_repo_with_sync(remote3)
|
|
88
88
|
summary2 = python_content_summary(repository_version=repo3.latest_version_href)
|
|
89
89
|
assert summary2.present["python.python"]["count"] == PYTHON_MD_PACKAGE_COUNT
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
@pytest.mark.parallel
|
|
93
|
+
def test_pulp2pulp_sync_with_oddities(
|
|
94
|
+
python_repo_with_sync,
|
|
95
|
+
python_remote_factory,
|
|
96
|
+
python_publication_factory,
|
|
97
|
+
python_distribution_factory,
|
|
98
|
+
python_content_summary,
|
|
99
|
+
):
|
|
100
|
+
"""Test that Pulp can handle syncing packages with wierd names."""
|
|
101
|
+
remote = python_remote_factory(includes=["oslo.utils"], url="https://pypi.org")
|
|
102
|
+
repo = python_repo_with_sync(remote)
|
|
103
|
+
distro = python_distribution_factory(repository=repo)
|
|
104
|
+
summary = python_content_summary(repository_version=repo.latest_version_href)
|
|
105
|
+
# Test pulp 2 pulp full sync w/ live pypi apis
|
|
106
|
+
remote2 = python_remote_factory(includes=[], url=distro.base_url)
|
|
107
|
+
repo2 = python_repo_with_sync(remote2)
|
|
108
|
+
summary2 = python_content_summary(repository_version=repo2.latest_version_href)
|
|
109
|
+
assert summary2.present["python.python"]["count"] > 0
|
|
110
|
+
assert summary.present["python.python"]["count"] == summary2.present["python.python"]["count"]
|
|
111
|
+
# Test w/ publication
|
|
112
|
+
pub = python_publication_factory(repository=repo)
|
|
113
|
+
distro2 = python_distribution_factory(publication=pub)
|
|
114
|
+
remote3 = python_remote_factory(includes=[], url=distro2.base_url)
|
|
115
|
+
repo3 = python_repo_with_sync(remote3)
|
|
116
|
+
summary3 = python_content_summary(repository_version=repo3.latest_version_href)
|
|
117
|
+
assert summary3.present["python.python"]["count"] > 0
|
|
118
|
+
assert summary.present["python.python"]["count"] == summary3.present["python.python"]["count"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0003_new_sync_filters.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0010_update_json_field.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/app/migrations/0013_add_rbac_permissions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_auto_publish.py
RENAMED
|
File without changes
|
{pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_consume_content.py
RENAMED
|
File without changes
|
{pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_crud_publications.py
RENAMED
|
File without changes
|
{pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_crud_remotes.py
RENAMED
|
File without changes
|
|
File without changes
|
{pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_export_import.py
RENAMED
|
File without changes
|
{pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_full_mirror.py
RENAMED
|
File without changes
|
{pulp-python-3.12.1 → pulp-python-3.12.3}/pulp_python/tests/functional/api/test_pypi_apis.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|