Skip to content

Commit 1303bf0

Browse files
authored
Merge pull request #37 from mdellweg/update_codebase
Update the codebase
2 parents 7253f0b + beb6b3a commit 1303bf0

File tree

8 files changed

+35
-31
lines changed

8 files changed

+35
-31
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
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

.github/workflows/nightly.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ env:
1515

1616
jobs:
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

pulpcore/cli/deb/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from 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

45
from pulpcore.cli.deb.distribution import distribution
56
from pulpcore.cli.deb.publication import publication
@@ -9,7 +10,7 @@
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

pulpcore/cli/deb/distribution.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import gettext
22

33
import click
4-
from pulpcore.cli.common.context import PulpContext, pass_pulp_context
54
from pulpcore.cli.common.generic import (
5+
PulpCLIContext,
66
base_path_contains_option,
77
base_path_option,
88
create_command,
@@ -12,6 +12,7 @@
1212
label_select_option,
1313
list_command,
1414
name_option,
15+
pass_pulp_context,
1516
resource_option,
1617
show_command,
1718
update_command,
@@ -44,7 +45,7 @@
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:

pulpcore/cli/deb/publication.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import gettext
22

33
import click
4-
from pulpcore.cli.common.context import PulpContext, pass_pulp_context
54
from 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,
@@ -40,7 +41,7 @@
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":

pulpcore/cli/deb/remote.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import click
2-
from pulpcore.cli.common.context import PulpContext, pass_pulp_context
32
from pulpcore.cli.common.generic import (
3+
PulpCLIContext,
44
common_remote_create_options,
55
common_remote_update_options,
66
create_command,
@@ -10,6 +10,7 @@
1010
label_select_option,
1111
list_command,
1212
name_option,
13+
pass_pulp_context,
1314
show_command,
1415
update_command,
1516
)
@@ -31,7 +32,7 @@
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:

pulpcore/cli/deb/repository.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
from pulpcore.cli.common.context import (
55
EntityFieldDefinition,
66
PluginRequirement,
7-
PulpContext,
87
PulpEntityContext,
98
PulpRepositoryContext,
10-
pass_pulp_context,
11-
pass_repository_context,
129
)
1310
from 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,
@@ -55,7 +55,7 @@
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:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
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],

0 commit comments

Comments
 (0)