File tree Expand file tree Collapse file tree 8 files changed +35
-31
lines changed
Expand file tree Collapse file tree 8 files changed +35
-31
lines changed Original file line number Diff line number Diff line change 4141 - name : Lint code
4242 run : make lint
4343 test :
44- runs-on : ubuntu-latest
44+ runs-on : ubuntu-20.04
4545 needs :
4646 - lint
4747 strategy :
@@ -51,16 +51,16 @@ jobs:
5151 - python : " 3.9"
5252 image_tag : " nightly"
5353 - python : " 3.6"
54- image_tag : " 3.16 "
54+ image_tag : " 3.21 "
5555 - python : " 3.7"
56- image_tag : " 3.15 "
56+ image_tag : " 3.20 "
5757 - python : " 3.8"
58- image_tag : " 3.14 "
58+ image_tag : " 3.19 "
5959 - python : " 3.9"
60- image_tag : " 3.13 "
60+ image_tag : " 3.18 "
6161 - python : " 3.10"
62- pulp_cli : " 0.13 .0"
63- image_tag : " 3.12 "
62+ pulp_cli : " 0.15 .0"
63+ image_tag : " 3.17 "
6464 steps :
6565 - uses : actions/checkout@v2
6666 - name : Set up Python
Original file line number Diff line number Diff line change 1515
1616jobs :
1717 test :
18- runs-on : ubuntu-latest
18+ runs-on : ubuntu-20.04
1919 strategy :
2020 fail-fast : false
2121 matrix :
2222 include :
2323 - python : " 3.9"
2424 image_tag : " nightly"
25- - python : " 3.9"
26- image_tag : " 3.16"
27- - python : " 3.8"
28- image_tag : " 3.15"
29- - python : " 3.7"
30- image_tag : " 3.14"
31- - python : " 3.6"
32- image_tag : " 3.13"
3325 - python : " 3.6"
34- pulp_cli : " 0.12.0"
35- image_tag : " 3.12"
26+ image_tag : " 3.21"
27+ - python : " 3.7"
28+ image_tag : " 3.20"
29+ - python : " 3.8"
30+ image_tag : " 3.19"
31+ - python : " 3.9"
32+ image_tag : " 3.18"
33+ - python : " 3.10"
34+ pulp_cli : " 0.15.0"
35+ image_tag : " 3.17"
3636 steps :
3737 - uses : actions/checkout@v2
3838 - name : Set up Python
Original file line number Diff line number Diff line change 11from pulpcore .cli .common import main
2- from pulpcore .cli .common .context import PluginRequirement , PulpContext , pass_pulp_context
2+ from pulpcore .cli .common .context import PluginRequirement
3+ from pulpcore .cli .common .generic import PulpCLIContext , pass_pulp_context
34
45from pulpcore .cli .deb .distribution import distribution
56from pulpcore .cli .deb .publication import publication
910
1011@main .group ()
1112@pass_pulp_context
12- def deb (pulp_ctx : PulpContext ) -> None :
13+ def deb (pulp_ctx : PulpCLIContext ) -> None :
1314 pulp_ctx .needs_plugin (PluginRequirement ("deb" ))
1415
1516
Original file line number Diff line number Diff line change 11import gettext
22
33import click
4- from pulpcore .cli .common .context import PulpContext , pass_pulp_context
54from pulpcore .cli .common .generic import (
5+ PulpCLIContext ,
66 base_path_contains_option ,
77 base_path_option ,
88 create_command ,
1212 label_select_option ,
1313 list_command ,
1414 name_option ,
15+ pass_pulp_context ,
1516 resource_option ,
1617 show_command ,
1718 update_command ,
4445)
4546@pass_pulp_context
4647@click .pass_context
47- def distribution (ctx : click .Context , pulp_ctx : PulpContext , distribution_type : str ) -> None :
48+ def distribution (ctx : click .Context , pulp_ctx : PulpCLIContext , distribution_type : str ) -> None :
4849 if distribution_type == "apt" :
4950 ctx .obj = PulpAptDistributionContext (pulp_ctx )
5051 else :
Original file line number Diff line number Diff line change 11import gettext
22
33import click
4- from pulpcore .cli .common .context import PulpContext , pass_pulp_context
54from pulpcore .cli .common .generic import (
5+ PulpCLIContext ,
66 create_command ,
77 destroy_command ,
88 href_option ,
99 list_command ,
10+ pass_pulp_context ,
1011 publication_filter_options ,
1112 resource_option ,
1213 show_command ,
4041)
4142@pass_pulp_context
4243@click .pass_context
43- def publication (ctx : click .Context , pulp_ctx : PulpContext , publication_type : str ) -> None :
44+ def publication (ctx : click .Context , pulp_ctx : PulpCLIContext , publication_type : str ) -> None :
4445 if publication_type == "apt" :
4546 ctx .obj = PulpAptPublicationContext (pulp_ctx )
4647 elif publication_type == "verbatim" :
Original file line number Diff line number Diff line change 11import click
2- from pulpcore .cli .common .context import PulpContext , pass_pulp_context
32from pulpcore .cli .common .generic import (
3+ PulpCLIContext ,
44 common_remote_create_options ,
55 common_remote_update_options ,
66 create_command ,
1010 label_select_option ,
1111 list_command ,
1212 name_option ,
13+ pass_pulp_context ,
1314 show_command ,
1415 update_command ,
1516)
3132)
3233@pass_pulp_context
3334@click .pass_context
34- def remote (ctx : click .Context , pulp_ctx : PulpContext , remote_type : str ) -> None :
35+ def remote (ctx : click .Context , pulp_ctx : PulpCLIContext , remote_type : str ) -> None :
3536 if remote_type == "apt" :
3637 ctx .obj = PulpAptRemoteContext (pulp_ctx )
3738 else :
Original file line number Diff line number Diff line change 44from pulpcore .cli .common .context import (
55 EntityFieldDefinition ,
66 PluginRequirement ,
7- PulpContext ,
87 PulpEntityContext ,
98 PulpRepositoryContext ,
10- pass_pulp_context ,
11- pass_repository_context ,
129)
1310from pulpcore .cli .common .generic import (
11+ PulpCLIContext ,
1412 create_command ,
1513 destroy_command ,
1614 href_option ,
1715 label_command ,
1816 label_select_option ,
1917 list_command ,
2018 name_option ,
19+ pass_pulp_context ,
20+ pass_repository_context ,
2121 pulp_option ,
2222 repository_href_option ,
2323 repository_option ,
5555)
5656@pass_pulp_context
5757@click .pass_context
58- def repository (ctx : click .Context , pulp_ctx : PulpContext , repo_type : str ) -> None :
58+ def repository (ctx : click .Context , pulp_ctx : PulpCLIContext , repo_type : str ) -> None :
5959 if repo_type == "apt" :
6060 ctx .obj = PulpAptRepositoryContext (pulp_ctx )
6161 else :
Original file line number Diff line number Diff line change 2626 package_data = {"" : ["py.typed" , "locale/*/LC_MESSAGES/*.mo" ]},
2727 python_requires = ">=3.6" ,
2828 install_requires = [
29- "pulp-cli>=0.13 .0" ,
29+ "pulp-cli>=0.15 .0" ,
3030 ],
3131 entry_points = {
3232 "pulp_cli.plugins" : [f"{ name } ={ module } " for name , module in plugin_entry_points ],
You can’t perform that action at this time.
0 commit comments