pulp-cli-deb 0.3.5__tar.gz → 0.4.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulp-cli-deb
3
- Version: 0.3.5
3
+ Version: 0.4.1
4
4
  Summary: Command line interface to talk to pulpcore's REST API. (Deb plugin commands)
5
5
  Author-email: Pulp Team <pulp-list@redhat.com>
6
6
  License: GPLv2+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulp-cli-deb
3
- Version: 0.3.5
3
+ Version: 0.4.1
4
4
  Summary: Command line interface to talk to pulpcore's REST API. (Deb plugin commands)
5
5
  Author-email: Pulp Team <pulp-list@redhat.com>
6
6
  License: GPLv2+
@@ -0,0 +1,2 @@
1
+ pulp-cli<0.36,>=0.23.2
2
+ pulp-glue-deb==0.4.1
@@ -9,7 +9,7 @@ from pulpcore.cli.deb.publication import publication
9
9
  from pulpcore.cli.deb.remote import remote
10
10
  from pulpcore.cli.deb.repository import repository
11
11
 
12
- __version__ = "0.3.5"
12
+ __version__ = "0.4.1"
13
13
 
14
14
 
15
15
  @pulp_group(name="deb")
@@ -307,6 +307,20 @@ content.add_command(
307
307
  help=_("An DEB binary"),
308
308
  allowed_with_contexts=(PulpDebPackageContext,),
309
309
  )
310
+ @pulp_option(
311
+ "--distribution",
312
+ type=str,
313
+ required=False,
314
+ help=_("The APT repo distribution the package should be uploaded to"),
315
+ allowed_with_contexts=(PulpDebPackageContext,),
316
+ )
317
+ @pulp_option(
318
+ "--component",
319
+ type=str,
320
+ required=False,
321
+ help=_("The APT repo component the package should be uploaded to"),
322
+ allowed_with_contexts=(PulpDebPackageContext,),
323
+ )
310
324
  @repository_option
311
325
  @pass_entity_context
312
326
  @pass_pulp_context
@@ -1,7 +1,11 @@
1
1
  import gettext
2
2
 
3
3
  import click
4
- from pulp_glue.deb.context import PulpAptDistributionContext, PulpAptRepositoryContext
4
+ from pulp_glue.common.context import PluginRequirement
5
+ from pulp_glue.deb.context import (
6
+ PulpAptDistributionContext,
7
+ PulpAptRepositoryContext,
8
+ )
5
9
  from pulpcore.cli.common.generic import (
6
10
  PulpCLIContext,
7
11
  base_path_contains_option,
@@ -14,6 +18,7 @@ from pulpcore.cli.common.generic import (
14
18
  list_command,
15
19
  name_option,
16
20
  pass_pulp_context,
21
+ pulp_option,
17
22
  resource_option,
18
23
  show_command,
19
24
  update_command,
@@ -32,6 +37,12 @@ repository_option = resource_option(
32
37
  " Specified as '[[<plugin>:]<type>:]<name>' or as href."
33
38
  ),
34
39
  )
40
+ checkpoint_option = pulp_option(
41
+ "--checkpoint/--not-checkpoint",
42
+ is_flag=True,
43
+ default=None,
44
+ needs_plugins=[PluginRequirement("deb", specifier=">=3.6.0")],
45
+ )
35
46
 
36
47
 
37
48
  @click.group()
@@ -57,6 +68,7 @@ update_options = [
57
68
  click.option("--base-path"),
58
69
  click.option("--publication", help=_("Publication to be served.")),
59
70
  repository_option,
71
+ checkpoint_option,
60
72
  ]
61
73
  create_options = update_options + [click.option("--name", required=True)]
62
74
 
@@ -1,6 +1,7 @@
1
1
  import gettext
2
2
 
3
3
  import click
4
+ from pulp_glue.common.context import PluginRequirement
4
5
  from pulp_glue.core.context import PulpSigningServiceContext
5
6
  from pulp_glue.deb.context import (
6
7
  PulpAptPublicationContext,
@@ -15,6 +16,7 @@ from pulpcore.cli.common.generic import (
15
16
  list_command,
16
17
  pass_pulp_context,
17
18
  publication_filter_options,
19
+ pulp_option,
18
20
  resource_option,
19
21
  show_command,
20
22
  )
@@ -28,6 +30,13 @@ repository_option = resource_option(
28
30
  default_type="apt",
29
31
  context_table={"deb:apt": PulpAptRepositoryContext},
30
32
  )
33
+ checkpoint_option = pulp_option(
34
+ "--checkpoint",
35
+ is_flag=True,
36
+ default=None,
37
+ help=_("Create a checkpoint publication"),
38
+ needs_plugins=[PluginRequirement("deb", specifier=">=3.6.0")],
39
+ )
31
40
 
32
41
 
33
42
  @click.group()
@@ -52,6 +61,7 @@ def publication(ctx: click.Context, pulp_ctx: PulpCLIContext, /, publication_typ
52
61
  lookup_options = [href_option]
53
62
  create_options = [
54
63
  repository_option,
64
+ checkpoint_option,
55
65
  click.option(
56
66
  "--version", type=int, help=_("a repository version number, leave blank for latest")
57
67
  ),
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pulp-cli-deb"
7
- version = "0.3.5"
7
+ version = "0.4.1"
8
8
  description = "Command line interface to talk to pulpcore's REST API. (Deb plugin commands)"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -23,8 +23,8 @@ classifiers=[
23
23
  "Typing :: Typed",
24
24
  ]
25
25
  dependencies = [
26
- "pulp-cli>=0.23.2,<0.34",
27
- "pulp-glue-deb==0.3.5",
26
+ "pulp-cli>=0.23.2,<0.36",
27
+ "pulp-glue-deb==0.4.1",
28
28
  ]
29
29
 
30
30
  [project.urls]
@@ -152,7 +152,7 @@ ignore_missing_imports = true
152
152
 
153
153
  [tool.bumpversion]
154
154
  # This section is managed by the cookiecutter templates.
155
- current_version = "0.3.5"
155
+ current_version = "0.4.1"
156
156
  commit = false
157
157
  tag = false
158
158
  parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\.(?P<release>[a-z]+))?"
@@ -1,2 +0,0 @@
1
- pulp-cli<0.34,>=0.23.2
2
- pulp-glue-deb==0.3.5
File without changes