pulp-cli-deb 0.0.2__tar.gz → 0.0.5.dev0__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.
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/PKG-INFO +2 -6
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/pulp_cli_deb.egg-info/PKG-INFO +2 -6
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/pulp_cli_deb.egg-info/SOURCES.txt +2 -1
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/pulp_cli_deb.egg-info/entry_points.txt +0 -1
- pulp-cli-deb-0.0.5.dev0/pulp_cli_deb.egg-info/requires.txt +1 -0
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/pulpcore/cli/deb/__init__.py +3 -2
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/pulpcore/cli/deb/context.py +15 -30
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/pulpcore/cli/deb/distribution.py +3 -2
- pulp-cli-deb-0.0.5.dev0/pulpcore/cli/deb/locale/de/LC_MESSAGES/messages.mo +0 -0
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/pulpcore/cli/deb/publication.py +5 -4
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/pulpcore/cli/deb/remote.py +6 -5
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/pulpcore/cli/deb/repository.py +30 -7
- pulp-cli-deb-0.0.5.dev0/pyproject.toml +71 -0
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/setup.py +7 -4
- pulp-cli-deb-0.0.2/pulp_cli_deb.egg-info/requires.txt +0 -1
- pulp-cli-deb-0.0.2/pyproject.toml +0 -37
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/pulp_cli_deb.egg-info/dependency_links.txt +0 -0
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/pulp_cli_deb.egg-info/top_level.txt +0 -0
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/pulpcore/cli/deb/py.typed +0 -0
- {pulp-cli-deb-0.0.2 → pulp-cli-deb-0.0.5.dev0}/setup.cfg +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pulp-cli-deb
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.5.dev0
|
|
4
4
|
Summary: Command line interface to talk to pulpcore's REST API. (Debian plugin commands)
|
|
5
|
-
Home-page:
|
|
5
|
+
Home-page: https://github.com/pulp/pulp-cli-deb
|
|
6
6
|
License: GPLv2+
|
|
7
|
-
Platform: UNKNOWN
|
|
8
7
|
Classifier: Development Status :: 3 - Alpha
|
|
9
8
|
Classifier: Environment :: Console
|
|
10
9
|
Classifier: Intended Audience :: System Administrators
|
|
@@ -14,6 +13,3 @@ Classifier: Programming Language :: Python :: 3
|
|
|
14
13
|
Classifier: Topic :: System :: Software Distribution
|
|
15
14
|
Classifier: Typing :: Typed
|
|
16
15
|
Requires-Python: >=3.6
|
|
17
|
-
|
|
18
|
-
UNKNOWN
|
|
19
|
-
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pulp-cli-deb
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.5.dev0
|
|
4
4
|
Summary: Command line interface to talk to pulpcore's REST API. (Debian plugin commands)
|
|
5
|
-
Home-page:
|
|
5
|
+
Home-page: https://github.com/pulp/pulp-cli-deb
|
|
6
6
|
License: GPLv2+
|
|
7
|
-
Platform: UNKNOWN
|
|
8
7
|
Classifier: Development Status :: 3 - Alpha
|
|
9
8
|
Classifier: Environment :: Console
|
|
10
9
|
Classifier: Intended Audience :: System Administrators
|
|
@@ -14,6 +13,3 @@ Classifier: Programming Language :: Python :: 3
|
|
|
14
13
|
Classifier: Topic :: System :: Software Distribution
|
|
15
14
|
Classifier: Typing :: Typed
|
|
16
15
|
Requires-Python: >=3.6
|
|
17
|
-
|
|
18
|
-
UNKNOWN
|
|
19
|
-
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pulp-cli>=0.15.0
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from pulpcore.cli.common import main
|
|
2
|
-
from pulpcore.cli.common.context import PluginRequirement
|
|
2
|
+
from pulpcore.cli.common.context import PluginRequirement
|
|
3
|
+
from pulpcore.cli.common.generic import PulpCLIContext, pass_pulp_context
|
|
3
4
|
|
|
4
5
|
from pulpcore.cli.deb.distribution import distribution
|
|
5
6
|
from pulpcore.cli.deb.publication import publication
|
|
@@ -9,7 +10,7 @@ from pulpcore.cli.deb.repository import repository
|
|
|
9
10
|
|
|
10
11
|
@main.group()
|
|
11
12
|
@pass_pulp_context
|
|
12
|
-
def deb(pulp_ctx:
|
|
13
|
+
def deb(pulp_ctx: PulpCLIContext) -> None:
|
|
13
14
|
pulp_ctx.needs_plugin(PluginRequirement("deb"))
|
|
14
15
|
|
|
15
16
|
|
|
@@ -1,37 +1,32 @@
|
|
|
1
|
-
import gettext
|
|
2
1
|
from typing import ClassVar, Set
|
|
3
2
|
|
|
4
3
|
import click
|
|
5
4
|
from pulpcore.cli.common.context import (
|
|
6
5
|
EntityDefinition,
|
|
7
6
|
PulpEntityContext,
|
|
7
|
+
PulpException,
|
|
8
8
|
PulpRepositoryContext,
|
|
9
9
|
PulpRepositoryVersionContext,
|
|
10
10
|
registered_repository_contexts,
|
|
11
11
|
)
|
|
12
|
+
from pulpcore.cli.common.i18n import get_translation
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
translation = get_translation(__name__)
|
|
15
|
+
_ = translation.gettext
|
|
14
16
|
|
|
15
17
|
|
|
16
18
|
class PulpAptDistributionContext(PulpEntityContext):
|
|
17
19
|
ENTITY = _("apt distribution")
|
|
18
20
|
ENTITIES = _("apt distributions")
|
|
19
21
|
HREF = "deb_apt_distribution_href"
|
|
20
|
-
|
|
21
|
-
READ_ID = "distributions_deb_apt_read"
|
|
22
|
-
CREATE_ID = "distributions_deb_apt_create"
|
|
23
|
-
UPDATE_ID = "distributions_deb_apt_partial_update"
|
|
24
|
-
DELETE_ID = "distributions_deb_apt_delete"
|
|
22
|
+
ID_PREFIX = "distributions_deb_apt"
|
|
25
23
|
|
|
26
24
|
|
|
27
25
|
class PulpAptPublicationContext(PulpEntityContext):
|
|
28
26
|
ENTITY = _("apt publication")
|
|
29
27
|
ENTITIES = _("apt publications")
|
|
30
28
|
HREF = "deb_apt_publication_href"
|
|
31
|
-
|
|
32
|
-
READ_ID = "publications_deb_apt_read"
|
|
33
|
-
CREATE_ID = "publications_deb_apt_create"
|
|
34
|
-
DELETE_ID = "publications_deb_apt_delete"
|
|
29
|
+
ID_PREFIX = "publications_deb_apt"
|
|
35
30
|
|
|
36
31
|
def preprocess_body(self, body: EntityDefinition) -> EntityDefinition:
|
|
37
32
|
body = super().preprocess_body(body)
|
|
@@ -46,10 +41,7 @@ class PulpVerbatimPublicationContext(PulpEntityContext):
|
|
|
46
41
|
ENTITY = _("verbatim publication")
|
|
47
42
|
ENTITIES = _("verbatim publications")
|
|
48
43
|
HREF = "deb_verbatim_publication_href"
|
|
49
|
-
|
|
50
|
-
READ_ID = "publications_deb_verbatim_read"
|
|
51
|
-
CREATE_ID = "publications_deb_verbatim_create"
|
|
52
|
-
DELETE_ID = "publications_deb_verbatim_delete"
|
|
44
|
+
ID_PREFIX = "publications_deb_verbatim"
|
|
53
45
|
APT_ONLY: ClassVar[Set[str]] = {"simple", "structured", "signing_service"}
|
|
54
46
|
|
|
55
47
|
def preprocess_body(self, body: EntityDefinition) -> EntityDefinition:
|
|
@@ -70,11 +62,7 @@ class PulpAptRemoteContext(PulpEntityContext):
|
|
|
70
62
|
ENTITY = _("apt remote")
|
|
71
63
|
ENTITIES = _("apt remotes")
|
|
72
64
|
HREF = "deb_apt_remote_href"
|
|
73
|
-
|
|
74
|
-
READ_ID = "remotes_deb_apt_read"
|
|
75
|
-
CREATE_ID = "remotes_deb_apt_create"
|
|
76
|
-
UPDATE_ID = "remotes_deb_apt_partial_update"
|
|
77
|
-
DELETE_ID = "remotes_deb_apt_delete"
|
|
65
|
+
ID_PREFIX = "remotes_deb_apt"
|
|
78
66
|
NULLABLES = {"architectures", "components"}
|
|
79
67
|
|
|
80
68
|
@staticmethod
|
|
@@ -87,13 +75,15 @@ class PulpAptRemoteContext(PulpEntityContext):
|
|
|
87
75
|
If body[field_name] does not contain a tuple, the behaviour is undefined.
|
|
88
76
|
"""
|
|
89
77
|
field = body.pop(field_name, None)
|
|
90
|
-
if field
|
|
78
|
+
if field:
|
|
91
79
|
string_field = " ".join(field).strip()
|
|
92
80
|
body[field_name] = string_field if string_field else None
|
|
93
81
|
|
|
94
82
|
def preprocess_body(self, body: EntityDefinition) -> EntityDefinition:
|
|
95
83
|
body = super().preprocess_body(body)
|
|
96
84
|
self.tuple_to_whitespace_separated_string("distributions", body)
|
|
85
|
+
if "distributions" in body and body["distributions"] is None:
|
|
86
|
+
raise PulpException("Must have at least one distribution for remote.")
|
|
97
87
|
self.tuple_to_whitespace_separated_string("components", body)
|
|
98
88
|
self.tuple_to_whitespace_separated_string("architectures", body)
|
|
99
89
|
return body
|
|
@@ -102,19 +92,14 @@ class PulpAptRemoteContext(PulpEntityContext):
|
|
|
102
92
|
class PulpAptRepositoryVersionContext(PulpRepositoryVersionContext):
|
|
103
93
|
HREF = "deb_apt_repository_version_href"
|
|
104
94
|
REPOSITORY_HREF = "deb_apt_repository_href"
|
|
105
|
-
|
|
106
|
-
READ_ID = "repositories_deb_apt_versions_read"
|
|
107
|
-
DELETE_ID = "repositories_deb_apt_versions_delete"
|
|
95
|
+
ID_PREFIX = "repositories_deb_apt_versions"
|
|
108
96
|
|
|
109
97
|
|
|
110
98
|
class PulpAptRepositoryContext(PulpRepositoryContext):
|
|
99
|
+
ENTITY = _("apt repository")
|
|
100
|
+
ENTITIES = _("apt repositories")
|
|
111
101
|
HREF = "deb_apt_repository_href"
|
|
112
|
-
|
|
113
|
-
READ_ID = "repositories_deb_apt_read"
|
|
114
|
-
CREATE_ID = "repositories_deb_apt_create"
|
|
115
|
-
UPDATE_ID = "repositories_deb_apt_partial_update"
|
|
116
|
-
DELETE_ID = "repositories_deb_apt_delete"
|
|
117
|
-
SYNC_ID = "repositories_deb_apt_sync"
|
|
102
|
+
ID_PREFIX = "repositories_deb_apt"
|
|
118
103
|
VERSION_CONTEXT = PulpAptRepositoryVersionContext
|
|
119
104
|
|
|
120
105
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import gettext
|
|
2
2
|
|
|
3
3
|
import click
|
|
4
|
-
from pulpcore.cli.common.context import PulpContext, pass_pulp_context
|
|
5
4
|
from pulpcore.cli.common.generic import (
|
|
5
|
+
PulpCLIContext,
|
|
6
6
|
base_path_contains_option,
|
|
7
7
|
base_path_option,
|
|
8
8
|
create_command,
|
|
@@ -12,6 +12,7 @@ from pulpcore.cli.common.generic import (
|
|
|
12
12
|
label_select_option,
|
|
13
13
|
list_command,
|
|
14
14
|
name_option,
|
|
15
|
+
pass_pulp_context,
|
|
15
16
|
resource_option,
|
|
16
17
|
show_command,
|
|
17
18
|
update_command,
|
|
@@ -44,7 +45,7 @@ repository_option = resource_option(
|
|
|
44
45
|
)
|
|
45
46
|
@pass_pulp_context
|
|
46
47
|
@click.pass_context
|
|
47
|
-
def distribution(ctx: click.Context, pulp_ctx:
|
|
48
|
+
def distribution(ctx: click.Context, pulp_ctx: PulpCLIContext, distribution_type: str) -> None:
|
|
48
49
|
if distribution_type == "apt":
|
|
49
50
|
ctx.obj = PulpAptDistributionContext(pulp_ctx)
|
|
50
51
|
else:
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import gettext
|
|
2
2
|
|
|
3
3
|
import click
|
|
4
|
-
from pulpcore.cli.common.context import PulpContext, pass_pulp_context
|
|
5
4
|
from pulpcore.cli.common.generic import (
|
|
5
|
+
PulpCLIContext,
|
|
6
6
|
create_command,
|
|
7
7
|
destroy_command,
|
|
8
8
|
href_option,
|
|
9
9
|
list_command,
|
|
10
|
+
pass_pulp_context,
|
|
10
11
|
publication_filter_options,
|
|
11
12
|
resource_option,
|
|
12
13
|
show_command,
|
|
@@ -40,7 +41,7 @@ repository_option = resource_option(
|
|
|
40
41
|
)
|
|
41
42
|
@pass_pulp_context
|
|
42
43
|
@click.pass_context
|
|
43
|
-
def publication(ctx: click.Context, pulp_ctx:
|
|
44
|
+
def publication(ctx: click.Context, pulp_ctx: PulpCLIContext, publication_type: str) -> None:
|
|
44
45
|
if publication_type == "apt":
|
|
45
46
|
ctx.obj = PulpAptPublicationContext(pulp_ctx)
|
|
46
47
|
elif publication_type == "verbatim":
|
|
@@ -57,13 +58,13 @@ create_options = [
|
|
|
57
58
|
),
|
|
58
59
|
click.option(
|
|
59
60
|
"--simple",
|
|
60
|
-
|
|
61
|
+
is_flag=True,
|
|
61
62
|
default=None,
|
|
62
63
|
help=_("Apt only: Activate simple publishing mode"),
|
|
63
64
|
),
|
|
64
65
|
click.option(
|
|
65
66
|
"--structured",
|
|
66
|
-
|
|
67
|
+
is_flag=True,
|
|
67
68
|
default=None,
|
|
68
69
|
help=_("Apt only: Activate structured publishing mode"),
|
|
69
70
|
),
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import gettext
|
|
2
|
-
|
|
3
1
|
import click
|
|
4
|
-
from pulpcore.cli.common.context import PulpContext, pass_pulp_context
|
|
5
2
|
from pulpcore.cli.common.generic import (
|
|
3
|
+
PulpCLIContext,
|
|
6
4
|
common_remote_create_options,
|
|
7
5
|
common_remote_update_options,
|
|
8
6
|
create_command,
|
|
@@ -12,13 +10,16 @@ from pulpcore.cli.common.generic import (
|
|
|
12
10
|
label_select_option,
|
|
13
11
|
list_command,
|
|
14
12
|
name_option,
|
|
13
|
+
pass_pulp_context,
|
|
15
14
|
show_command,
|
|
16
15
|
update_command,
|
|
17
16
|
)
|
|
17
|
+
from pulpcore.cli.common.i18n import get_translation
|
|
18
18
|
|
|
19
19
|
from pulpcore.cli.deb.context import PulpAptRemoteContext
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
translation = get_translation(__name__)
|
|
22
|
+
_ = translation.gettext
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
@click.group()
|
|
@@ -31,7 +32,7 @@ _ = gettext.gettext
|
|
|
31
32
|
)
|
|
32
33
|
@pass_pulp_context
|
|
33
34
|
@click.pass_context
|
|
34
|
-
def remote(ctx: click.Context, pulp_ctx:
|
|
35
|
+
def remote(ctx: click.Context, pulp_ctx: PulpCLIContext, remote_type: str) -> None:
|
|
35
36
|
if remote_type == "apt":
|
|
36
37
|
ctx.obj = PulpAptRemoteContext(pulp_ctx)
|
|
37
38
|
else:
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import gettext
|
|
2
1
|
from typing import Any, Dict, Optional
|
|
3
2
|
|
|
4
3
|
import click
|
|
5
4
|
from pulpcore.cli.common.context import (
|
|
6
5
|
EntityFieldDefinition,
|
|
7
6
|
PluginRequirement,
|
|
8
|
-
PulpContext,
|
|
9
7
|
PulpEntityContext,
|
|
10
8
|
PulpRepositoryContext,
|
|
11
|
-
pass_pulp_context,
|
|
12
|
-
pass_repository_context,
|
|
13
9
|
)
|
|
14
10
|
from pulpcore.cli.common.generic import (
|
|
11
|
+
PulpCLIContext,
|
|
15
12
|
create_command,
|
|
16
13
|
destroy_command,
|
|
17
14
|
href_option,
|
|
@@ -19,6 +16,9 @@ from pulpcore.cli.common.generic import (
|
|
|
19
16
|
label_select_option,
|
|
20
17
|
list_command,
|
|
21
18
|
name_option,
|
|
19
|
+
pass_pulp_context,
|
|
20
|
+
pass_repository_context,
|
|
21
|
+
pulp_option,
|
|
22
22
|
repository_href_option,
|
|
23
23
|
repository_option,
|
|
24
24
|
resource_option,
|
|
@@ -27,11 +27,13 @@ from pulpcore.cli.common.generic import (
|
|
|
27
27
|
update_command,
|
|
28
28
|
version_command,
|
|
29
29
|
)
|
|
30
|
+
from pulpcore.cli.common.i18n import get_translation
|
|
30
31
|
from pulpcore.cli.core.generic import task_command
|
|
31
32
|
|
|
32
33
|
from pulpcore.cli.deb.context import PulpAptRemoteContext, PulpAptRepositoryContext
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
translation = get_translation(__name__)
|
|
36
|
+
_ = translation.gettext
|
|
35
37
|
|
|
36
38
|
|
|
37
39
|
remote_option = resource_option(
|
|
@@ -53,7 +55,7 @@ remote_option = resource_option(
|
|
|
53
55
|
)
|
|
54
56
|
@pass_pulp_context
|
|
55
57
|
@click.pass_context
|
|
56
|
-
def repository(ctx: click.Context, pulp_ctx:
|
|
58
|
+
def repository(ctx: click.Context, pulp_ctx: PulpCLIContext, repo_type: str) -> None:
|
|
57
59
|
if repo_type == "apt":
|
|
58
60
|
ctx.obj = PulpAptRepositoryContext(pulp_ctx)
|
|
59
61
|
else:
|
|
@@ -88,12 +90,30 @@ repository.add_command(label_command(decorators=nested_lookup_options))
|
|
|
88
90
|
@name_option
|
|
89
91
|
@href_option
|
|
90
92
|
@remote_option
|
|
91
|
-
@click.option(
|
|
93
|
+
@click.option(
|
|
94
|
+
"--mirror/--no-mirror",
|
|
95
|
+
default=None,
|
|
96
|
+
help=(
|
|
97
|
+
"Using mirror mode, will remove all content that is not present in the remote repository "
|
|
98
|
+
"during sync. When disabled, the sync is purely additive."
|
|
99
|
+
),
|
|
100
|
+
)
|
|
101
|
+
@pulp_option(
|
|
102
|
+
"--optimize/--no-optimize",
|
|
103
|
+
default=None,
|
|
104
|
+
help=(
|
|
105
|
+
"Using optimize sync, will skip the processing of metadata if the checksum has not changed "
|
|
106
|
+
"since the last sync. This greately improves re-sync performance in such cases. Disable if "
|
|
107
|
+
"the sync result does not match expectations."
|
|
108
|
+
),
|
|
109
|
+
needs_plugins=[PluginRequirement("deb", min="2.20.0.dev")],
|
|
110
|
+
)
|
|
92
111
|
@pass_repository_context
|
|
93
112
|
def sync(
|
|
94
113
|
repository_ctx: PulpRepositoryContext,
|
|
95
114
|
remote: EntityFieldDefinition,
|
|
96
115
|
mirror: Optional[bool],
|
|
116
|
+
optimize: Optional[bool],
|
|
97
117
|
) -> None:
|
|
98
118
|
repository = repository_ctx.entity
|
|
99
119
|
repository_href = repository_ctx.pulp_href
|
|
@@ -103,6 +123,9 @@ def sync(
|
|
|
103
123
|
if mirror is not None:
|
|
104
124
|
body["mirror"] = mirror
|
|
105
125
|
|
|
126
|
+
if optimize is not None:
|
|
127
|
+
body["optimize"] = optimize
|
|
128
|
+
|
|
106
129
|
if isinstance(remote, PulpEntityContext):
|
|
107
130
|
body["remote"] = remote.pulp_href
|
|
108
131
|
elif repository["remote"] is None:
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
[tool.towncrier]
|
|
2
|
+
package = "pulpcore.cli.deb"
|
|
3
|
+
filename = "CHANGES.md"
|
|
4
|
+
directory = "CHANGES/"
|
|
5
|
+
title_format = "## {version} ({project_date})"
|
|
6
|
+
template = "CHANGES/.TEMPLATE.md"
|
|
7
|
+
issue_format = "[#{issue}](https://github.com/pulp/pulp-cli-deb/issues/{issue})"
|
|
8
|
+
start_string = "[//]: # (towncrier release notes start)\n"
|
|
9
|
+
|
|
10
|
+
[[tool.towncrier.type]]
|
|
11
|
+
directory = "feature"
|
|
12
|
+
name = "Features"
|
|
13
|
+
showcontent = true
|
|
14
|
+
|
|
15
|
+
[[tool.towncrier.type]]
|
|
16
|
+
directory = "bugfix"
|
|
17
|
+
name = "Bugfixes"
|
|
18
|
+
showcontent = true
|
|
19
|
+
|
|
20
|
+
[[tool.towncrier.type]]
|
|
21
|
+
directory = "doc"
|
|
22
|
+
name = "Improved Documentation"
|
|
23
|
+
showcontent = true
|
|
24
|
+
|
|
25
|
+
[[tool.towncrier.type]]
|
|
26
|
+
directory = "removal"
|
|
27
|
+
name = "Deprecations and Removals"
|
|
28
|
+
showcontent = true
|
|
29
|
+
|
|
30
|
+
[[tool.towncrier.type]]
|
|
31
|
+
directory = "translation"
|
|
32
|
+
name = "Translations"
|
|
33
|
+
showcontent = true
|
|
34
|
+
|
|
35
|
+
[[tool.towncrier.type]]
|
|
36
|
+
directory = "devel"
|
|
37
|
+
name = "Developer Notes"
|
|
38
|
+
showcontent = true
|
|
39
|
+
|
|
40
|
+
[[tool.towncrier.type]]
|
|
41
|
+
directory = "misc"
|
|
42
|
+
name = "Misc"
|
|
43
|
+
showcontent = false
|
|
44
|
+
|
|
45
|
+
[tool.black]
|
|
46
|
+
line-length = 100
|
|
47
|
+
|
|
48
|
+
[tool.isort]
|
|
49
|
+
profile = "black"
|
|
50
|
+
line_length = 100
|
|
51
|
+
|
|
52
|
+
[tool.pytest.ini_options]
|
|
53
|
+
markers = [
|
|
54
|
+
"script: tests provided as shell scripts",
|
|
55
|
+
"help_page: tests that render help pages",
|
|
56
|
+
"pulp_deb: pulp_deb tests",
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
[tool.mypy]
|
|
60
|
+
strict = true
|
|
61
|
+
show_error_codes = true
|
|
62
|
+
files = "pulpcore/**/*.py"
|
|
63
|
+
namespace_packages = true
|
|
64
|
+
explicit_package_bases = true
|
|
65
|
+
|
|
66
|
+
[[tool.mypy.overrides]]
|
|
67
|
+
module = [
|
|
68
|
+
"click_shell.*",
|
|
69
|
+
"schema.*",
|
|
70
|
+
]
|
|
71
|
+
ignore_missing_imports = true
|
|
@@ -3,7 +3,9 @@ from setuptools import setup
|
|
|
3
3
|
try:
|
|
4
4
|
from setuptools import find_namespace_packages
|
|
5
5
|
|
|
6
|
-
plugin_packages = find_namespace_packages(
|
|
6
|
+
plugin_packages = find_namespace_packages(
|
|
7
|
+
include=["pulpcore.cli.*"], exclude=["pulpcore.cli.*.*"]
|
|
8
|
+
)
|
|
7
9
|
|
|
8
10
|
except ImportError:
|
|
9
11
|
# Old versions of setuptools do not provide `find_namespace_packages`
|
|
@@ -19,12 +21,13 @@ plugin_entry_points = [(package.rsplit(".", 1)[-1], package) for package in plug
|
|
|
19
21
|
setup(
|
|
20
22
|
name="pulp-cli-deb",
|
|
21
23
|
description="Command line interface to talk to pulpcore's REST API. (Debian plugin commands)",
|
|
22
|
-
|
|
24
|
+
url="https://github.com/pulp/pulp-cli-deb",
|
|
25
|
+
version="0.0.5.dev",
|
|
23
26
|
packages=plugin_packages,
|
|
24
|
-
package_data={
|
|
27
|
+
package_data={"": ["py.typed", "locale/*/LC_MESSAGES/*.mo"]},
|
|
25
28
|
python_requires=">=3.6",
|
|
26
29
|
install_requires=[
|
|
27
|
-
"pulp-cli>=0.
|
|
30
|
+
"pulp-cli>=0.15.0",
|
|
28
31
|
],
|
|
29
32
|
entry_points={
|
|
30
33
|
"pulp_cli.plugins": [f"{name}={module}" for name, module in plugin_entry_points],
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pulp-cli>=0.12.0
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
[tool.towncrier]
|
|
2
|
-
package = "pulpcore.cli.deb"
|
|
3
|
-
filename = "CHANGES.md"
|
|
4
|
-
directory = "CHANGES/"
|
|
5
|
-
title_format = "## {version} ({project_date})"
|
|
6
|
-
template = "CHANGES/.TEMPLATE.md"
|
|
7
|
-
issue_format = "[#{issue}](https://github.com/pulp/pulp-cli-deb/issues/{issue})"
|
|
8
|
-
start_string = "[//]: # (towncrier release notes start)\n"
|
|
9
|
-
|
|
10
|
-
[tool.black]
|
|
11
|
-
line-length = 100
|
|
12
|
-
|
|
13
|
-
[tool.isort]
|
|
14
|
-
profile = "black"
|
|
15
|
-
line_length = 100
|
|
16
|
-
|
|
17
|
-
[tool.pytest.ini_options]
|
|
18
|
-
markers = [
|
|
19
|
-
"script: Marks tests provided as shell scripts",
|
|
20
|
-
"pulp_deb: pulp_deb tests",
|
|
21
|
-
]
|
|
22
|
-
|
|
23
|
-
[tool.mypy]
|
|
24
|
-
strict = true
|
|
25
|
-
show_error_codes = true
|
|
26
|
-
files = "pulpcore/**/*.py"
|
|
27
|
-
namespace_packages = true
|
|
28
|
-
explicit_package_bases = true
|
|
29
|
-
|
|
30
|
-
[[tool.mypy.overrides]]
|
|
31
|
-
module = [
|
|
32
|
-
"urllib3.*",
|
|
33
|
-
"pygments.*",
|
|
34
|
-
"click_shell.*",
|
|
35
|
-
"schema.*",
|
|
36
|
-
]
|
|
37
|
-
ignore_missing_imports = true
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|