Skip to content

Commit

Permalink
Fixes #37974 - support keep-latest-packages in python
Browse files Browse the repository at this point in the history
The pulp python backend supports keep-latest-packages. This should be
available on the UI, too.
  • Loading branch information
sbernhard committed Nov 4, 2024
1 parent c123c23 commit b1ad463
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/katello/repository_types/python.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
generic_remote_option :package_types, title: N_("Package Types"), type: Array, input_type: "text", delimiter: ",", default: [],
description: N_("Package types to sync for Python content, separated by comma. Leave empty to get every package type. Package types are: bdist_dmg, bdist_dumb, bdist_egg, bdist_msi, bdist_rpm, bdist_wheel, bdist_wininst, sdist.")

generic_remote_option :keep_latest_packages, title: N_("Keep latest packages"), type: Integer, input_type: "number", delimiter: ",", default: 0,
description: N_("The amount of latest versions of a package to keep on sync, includes pre-releases if synced. Default 0 keeps all versions.")

url_description N_("URL of a PyPI content source such as https://pypi.org.")

generic_content_type 'python_package',
Expand Down

0 comments on commit b1ad463

Please sign in to comment.