Skip to content

Commit 97bfdd2

Browse files
committed
Remove repository_version serializer field from Distribution
Pulpcore now defines it universally, no need to do so ourselves.
1 parent 5831a88 commit 97bfdd2

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Pulpcore enabled a feature to allow users to specify "repository_version" on their distributions, which pulp_python already allowed. We no longer need to enable that field ourselves.

pulp_python/app/serializers.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ class PythonDistributionSerializer(core_serializers.DistributionSerializer):
7474
queryset=core_models.Publication.objects.exclude(complete=False),
7575
allow_null=True,
7676
)
77-
repository_version = core_serializers.RepositoryVersionRelatedField(
78-
required=False, help_text=_("RepositoryVersion to be served."), allow_null=True
79-
)
8077
base_url = serializers.SerializerMethodField(read_only=True)
8178
allow_uploads = serializers.BooleanField(
8279
default=True, help_text=_("Allow packages to be uploaded to this index.")
@@ -98,7 +95,6 @@ def get_base_url(self, obj):
9895
class Meta:
9996
fields = core_serializers.DistributionSerializer.Meta.fields + (
10097
"publication",
101-
"repository_version",
10298
"allow_uploads",
10399
"remote",
104100
)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ classifiers=[
2626
]
2727
requires-python = ">=3.11"
2828
dependencies = [
29-
"pulpcore>=3.85.3,<3.115",
29+
"pulpcore>=3.106.0,<3.115",
3030
"pkginfo>=1.12.0,<1.13.0",
3131
"bandersnatch>=6.6.0,<6.7",
3232
"pypi-simple>=1.8.0,<2.0",

0 commit comments

Comments
 (0)