Skip to content

Commit f0652ca

Browse files
committed
Declare compatibility with pulpcore 3.70
1 parent 86f5710 commit f0652ca

File tree

7 files changed

+13
-26
lines changed

7 files changed

+13
-26
lines changed

.github/workflows/scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ minio_access_key: "'$MINIO_ACCESS_KEY'"\
9797
minio_secret_key: "'$MINIO_SECRET_KEY'"\
9898
pulp_scenario_settings: {"domain_enabled": true}\
9999
pulp_scenario_env: {}\
100-
test_storages_compat_layer: false\
100+
test_storages_compat_layer: true\
101101
' vars/main.yaml
102102
export PULP_API_ROOT="/rerouted/djnd/"
103103
fi

CHANGES/+pulpcore-3.70.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added pulpcore 3.70 compatibility

pulp_python/app/fields.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

pulp_python/app/pypi/serializers.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
from rest_framework import serializers
55
from pulp_python.app.utils import DIST_EXTENSIONS
6-
from pulp_python.app import fields
76
from pulpcore.plugin.models import Artifact
87
from pulpcore.plugin.util import get_domain
98
from django.db.utils import IntegrityError
@@ -29,9 +28,9 @@ class PackageMetadataSerializer(serializers.Serializer):
2928
"""
3029

3130
last_serial = serializers.IntegerField(help_text=_("Cache value from last PyPI sync"))
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()
31+
info = serializers.JSONField(help_text=_("Core metadata of the package"))
32+
releases = serializers.JSONField(help_text=_("List of all the releases of the package"))
33+
urls = serializers.JSONField()
3534

3635

3736
class PackageUploadSerializer(serializers.Serializer):

pulp_python/app/serializers.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from pulpcore.plugin.util import get_domain
99

1010
from pulp_python.app import models as python_models
11-
from pulp_python.app import fields
1211
from pulp_python.app.utils import artifact_to_python_content_data
1312

1413

@@ -158,7 +157,7 @@ class PythonPackageContentSerializer(core_serializers.SingleArtifactContentUploa
158157
required=False, allow_blank=True,
159158
help_text=_('A browsable URL for the project and a label for it, separated by a comma.')
160159
)
161-
project_urls = fields.JSONObjectField(
160+
project_urls = serializers.JSONField(
162161
required=False, default=dict,
163162
help_text=_('A dictionary of labels and URLs for the project.')
164163
)
@@ -171,28 +170,28 @@ class PythonPackageContentSerializer(core_serializers.SingleArtifactContentUploa
171170
required=False, allow_blank=True,
172171
help_text=_('Field to specify the OS and CPU for which the binary package was compiled. ')
173172
)
174-
requires_dist = fields.JSONObjectField(
173+
requires_dist = serializers.JSONField(
175174
required=False, default=list,
176175
help_text=_('A JSON list containing names of some other distutils project '
177176
'required by this distribution.')
178177
)
179-
provides_dist = fields.JSONObjectField(
178+
provides_dist = serializers.JSONField(
180179
required=False, default=list,
181180
help_text=_('A JSON list containing names of a Distutils project which is contained'
182181
' within this distribution.')
183182
)
184-
obsoletes_dist = fields.JSONObjectField(
183+
obsoletes_dist = serializers.JSONField(
185184
required=False, default=list,
186185
help_text=_('A JSON list containing names of a distutils project\'s distribution which '
187186
'this distribution renders obsolete, meaning that the two projects should not '
188187
'be installed at the same time.')
189188
)
190-
requires_external = fields.JSONObjectField(
189+
requires_external = serializers.JSONField(
191190
required=False, default=list,
192191
help_text=_('A JSON list containing some dependency in the system that the distribution '
193192
'is to be used.')
194193
)
195-
classifiers = fields.JSONObjectField(
194+
classifiers = serializers.JSONField(
196195
required=False, default=list,
197196
help_text=_('A JSON list containing classification values for a Python package.')
198197
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ classifiers=[
2727
]
2828
requires-python = ">=3.9"
2929
dependencies = [
30-
"pulpcore>=3.49.0,<3.70",
30+
"pulpcore>=3.49.0,<3.85",
3131
"pkginfo>=1.10.0,<1.12.0", # Twine has <1.11 in their requirements
3232
"bandersnatch>=6.3,<7.0", # Anything >6.3 requires Python 3.10+
3333
"pypi-simple>=1.5.0,<2.0",

template_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ test_lowerbounds: true
6868
test_performance: false
6969
test_reroute: true
7070
test_s3: true
71-
test_storages_compat_layer: false
71+
test_storages_compat_layer: true
7272
use_issue_template: true
7373

0 commit comments

Comments
 (0)