pulp-python 3.12.4__tar.gz → 3.12.5__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.4 → pulp-python-3.12.5}/CHANGES.md +9 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/MANIFEST.in +1 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/PKG-INFO +1 -1
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/__init__.py +1 -1
- pulp-python-3.12.5/pulp_python/app/fields.py +12 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/pypi/serializers.py +4 -3
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/serializers.py +7 -6
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python.egg-info/PKG-INFO +1 -1
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python.egg-info/SOURCES.txt +1 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/setup.py +1 -1
- {pulp-python-3.12.4 → pulp-python-3.12.5}/COMMITMENT +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/COPYRIGHT +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/LICENSE +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/README.md +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/functest_requirements.txt +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/__init__.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/global_access_conditions.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/migrations/0001_initial.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/migrations/0002_pythonpackagecontent_python_version.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/migrations/0003_new_sync_filters.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/migrations/0004_DATA_swap_distribution_model.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/migrations/0005_pythonpackagecontent_sha256.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/migrations/0006_pythonrepository_autopublish.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/migrations/0007_pythonpackagecontent_mv-2-1.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/migrations/0008_pythonpackagecontent_unique_sha256.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/migrations/0009_pythondistribution_allow_uploads.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/migrations/0010_update_json_field.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/migrations/0011_alter_pythondistribution_distribution_ptr_and_more.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/migrations/0012_add_domain.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/migrations/0013_add_rbac_permissions.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/migrations/__init__.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/modelresource.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/models.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/pypi/__init__.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/pypi/views.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/replica.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/settings.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/tasks/__init__.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/tasks/publish.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/tasks/sync.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/tasks/upload.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/urls.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/utils.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/viewsets.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/webserver_snippets/__init__.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/webserver_snippets/apache.conf +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/app/webserver_snippets/nginx.conf +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/pytest_plugin.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/__init__.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/__init__.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/__init__.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_auto_publish.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_consume_content.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_crud_content_unit.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_crud_publications.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_crud_remotes.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_domains.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_download_content.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_export_import.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_full_mirror.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_pypi_apis.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_rbac.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_sync.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/constants.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/utils.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/unit/__init__.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/unit/test_models.py +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python.egg-info/dependency_links.txt +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python.egg-info/entry_points.txt +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python.egg-info/requires.txt +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python.egg-info/top_level.txt +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/pyproject.toml +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/requirements.txt +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/setup.cfg +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/test_requirements.txt +0 -0
- {pulp-python-3.12.4 → pulp-python-3.12.5}/unittest_requirements.txt +0 -0
|
@@ -8,6 +8,15 @@
|
|
|
8
8
|
|
|
9
9
|
[//]: # (towncrier release notes start)
|
|
10
10
|
|
|
11
|
+
## 3.12.5 (2024-10-25) {: #3.12.5 }
|
|
12
|
+
|
|
13
|
+
#### Bugfixes {: #3.12.5-bugfix }
|
|
14
|
+
|
|
15
|
+
- Fixed the JSONField specification so it doesn't break ruby bindings.
|
|
16
|
+
See context [here](https://github.com/pulp/pulp_rpm/issues/3639).
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
11
20
|
## 3.12.4 (2024-10-14) {: #3.12.4 }
|
|
12
21
|
|
|
13
22
|
#### Bugfixes {: #3.12.4-bugfix }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from drf_spectacular.utils import extend_schema_field
|
|
2
|
+
from drf_spectacular.types import OpenApiTypes
|
|
3
|
+
from rest_framework import serializers
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@extend_schema_field(OpenApiTypes.OBJECT)
|
|
7
|
+
class JSONObjectField(serializers.JSONField):
|
|
8
|
+
"""A drf JSONField override to force openapi schema to use 'object' type.
|
|
9
|
+
|
|
10
|
+
Not strictly correct, but we relied on that for a long time.
|
|
11
|
+
See: https://github.com/tfranzel/drf-spectacular/issues/1095
|
|
12
|
+
"""
|
|
@@ -3,6 +3,7 @@ from gettext import gettext as _
|
|
|
3
3
|
|
|
4
4
|
from rest_framework import serializers
|
|
5
5
|
from pulp_python.app.utils import DIST_EXTENSIONS
|
|
6
|
+
from pulp_python.app import fields
|
|
6
7
|
from pulpcore.plugin.models import Artifact
|
|
7
8
|
from pulpcore.plugin.util import get_domain
|
|
8
9
|
from django.db.utils import IntegrityError
|
|
@@ -28,9 +29,9 @@ class PackageMetadataSerializer(serializers.Serializer):
|
|
|
28
29
|
"""
|
|
29
30
|
|
|
30
31
|
last_serial = serializers.IntegerField(help_text=_("Cache value from last PyPI sync"))
|
|
31
|
-
info =
|
|
32
|
-
releases =
|
|
33
|
-
urls =
|
|
32
|
+
info = fields.JSONObjectField(help_text=_("Core metadata of the package"))
|
|
33
|
+
releases = fields.JSONObjectField(help_text=_("List of all the releases of the package"))
|
|
34
|
+
urls = fields.JSONObjectField()
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
class PackageUploadSerializer(serializers.Serializer):
|
|
@@ -8,6 +8,7 @@ from pulpcore.plugin import serializers as core_serializers
|
|
|
8
8
|
from pulpcore.plugin.util import get_domain
|
|
9
9
|
|
|
10
10
|
from pulp_python.app import models as python_models
|
|
11
|
+
from pulp_python.app import fields
|
|
11
12
|
from pulp_python.app.utils import get_project_metadata_from_artifact, parse_project_metadata
|
|
12
13
|
|
|
13
14
|
|
|
@@ -157,7 +158,7 @@ class PythonPackageContentSerializer(core_serializers.SingleArtifactContentUploa
|
|
|
157
158
|
required=False, allow_blank=True,
|
|
158
159
|
help_text=_('A browsable URL for the project and a label for it, separated by a comma.')
|
|
159
160
|
)
|
|
160
|
-
project_urls =
|
|
161
|
+
project_urls = fields.JSONObjectField(
|
|
161
162
|
required=False, default=dict,
|
|
162
163
|
help_text=_('A dictionary of labels and URLs for the project.')
|
|
163
164
|
)
|
|
@@ -170,28 +171,28 @@ class PythonPackageContentSerializer(core_serializers.SingleArtifactContentUploa
|
|
|
170
171
|
required=False, allow_blank=True,
|
|
171
172
|
help_text=_('Field to specify the OS and CPU for which the binary package was compiled. ')
|
|
172
173
|
)
|
|
173
|
-
requires_dist =
|
|
174
|
+
requires_dist = fields.JSONObjectField(
|
|
174
175
|
required=False, default=list,
|
|
175
176
|
help_text=_('A JSON list containing names of some other distutils project '
|
|
176
177
|
'required by this distribution.')
|
|
177
178
|
)
|
|
178
|
-
provides_dist =
|
|
179
|
+
provides_dist = fields.JSONObjectField(
|
|
179
180
|
required=False, default=list,
|
|
180
181
|
help_text=_('A JSON list containing names of a Distutils project which is contained'
|
|
181
182
|
' within this distribution.')
|
|
182
183
|
)
|
|
183
|
-
obsoletes_dist =
|
|
184
|
+
obsoletes_dist = fields.JSONObjectField(
|
|
184
185
|
required=False, default=list,
|
|
185
186
|
help_text=_('A JSON list containing names of a distutils project\'s distribution which '
|
|
186
187
|
'this distribution renders obsolete, meaning that the two projects should not '
|
|
187
188
|
'be installed at the same time.')
|
|
188
189
|
)
|
|
189
|
-
requires_external =
|
|
190
|
+
requires_external = fields.JSONObjectField(
|
|
190
191
|
required=False, default=list,
|
|
191
192
|
help_text=_('A JSON list containing some dependency in the system that the distribution '
|
|
192
193
|
'is to be used.')
|
|
193
194
|
)
|
|
194
|
-
classifiers =
|
|
195
|
+
classifiers = fields.JSONObjectField(
|
|
195
196
|
required=False, default=list,
|
|
196
197
|
help_text=_('A JSON list containing classification values for a Python package.')
|
|
197
198
|
)
|
|
@@ -19,6 +19,7 @@ pulp_python.egg-info/entry_points.txt
|
|
|
19
19
|
pulp_python.egg-info/requires.txt
|
|
20
20
|
pulp_python.egg-info/top_level.txt
|
|
21
21
|
pulp_python/app/__init__.py
|
|
22
|
+
pulp_python/app/fields.py
|
|
22
23
|
pulp_python/app/global_access_conditions.py
|
|
23
24
|
pulp_python/app/modelresource.py
|
|
24
25
|
pulp_python/app/models.py
|
|
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.4 → pulp-python-3.12.5}/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.4 → pulp-python-3.12.5}/pulp_python/app/migrations/0010_update_json_field.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp-python-3.12.4 → pulp-python-3.12.5}/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.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_auto_publish.py
RENAMED
|
File without changes
|
{pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_consume_content.py
RENAMED
|
File without changes
|
{pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_crud_content_unit.py
RENAMED
|
File without changes
|
{pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_crud_publications.py
RENAMED
|
File without changes
|
{pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_crud_remotes.py
RENAMED
|
File without changes
|
|
File without changes
|
{pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_download_content.py
RENAMED
|
File without changes
|
{pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_export_import.py
RENAMED
|
File without changes
|
{pulp-python-3.12.4 → pulp-python-3.12.5}/pulp_python/tests/functional/api/test_full_mirror.py
RENAMED
|
File without changes
|
{pulp-python-3.12.4 → pulp-python-3.12.5}/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
|
|
File without changes
|