Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/+remove-serializer-fields.misc
Original file line number Diff line number Diff line change
@@ -0,0 +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.
4 changes: 0 additions & 4 deletions pulp_python/app/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ class PythonDistributionSerializer(core_serializers.DistributionSerializer):
queryset=core_models.Publication.objects.exclude(complete=False),
allow_null=True,
)
repository_version = core_serializers.RepositoryVersionRelatedField(
required=False, help_text=_("RepositoryVersion to be served."), allow_null=True
)
base_url = serializers.SerializerMethodField(read_only=True)
allow_uploads = serializers.BooleanField(
default=True, help_text=_("Allow packages to be uploaded to this index.")
Expand All @@ -98,7 +95,6 @@ def get_base_url(self, obj):
class Meta:
fields = core_serializers.DistributionSerializer.Meta.fields + (
"publication",
"repository_version",
"allow_uploads",
"remote",
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers=[
]
requires-python = ">=3.11"
dependencies = [
"pulpcore>=3.85.3,<3.115",
"pulpcore>=3.106.0,<3.115",
"pkginfo>=1.12.0,<1.13.0",
"bandersnatch>=6.6.0,<6.7",
"pypi-simple>=1.8.0,<2.0",
Expand Down
Loading