pulp-cli-deb 0.4.0__tar.gz → 0.4.2__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.4.0 → pulp_cli_deb-0.4.2}/PKG-INFO +4 -2
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pulp_cli_deb.egg-info/PKG-INFO +4 -2
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pulp_cli_deb.egg-info/SOURCES.txt +2 -1
- pulp_cli_deb-0.4.2/pulp_cli_deb.egg-info/requires.txt +2 -0
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pulpcore/cli/deb/__init__.py +1 -1
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pyproject.toml +11 -21
- pulp_cli_deb-0.4.2/tests/test_help_pages.py +62 -0
- pulp-cli-deb-0.4.0/pulp_cli_deb.egg-info/requires.txt +0 -2
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pulp_cli_deb.egg-info/dependency_links.txt +0 -0
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pulp_cli_deb.egg-info/entry_points.txt +0 -0
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pulp_cli_deb.egg-info/top_level.txt +0 -0
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pulpcore/cli/deb/content.py +0 -0
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pulpcore/cli/deb/distribution.py +0 -0
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pulpcore/cli/deb/locale/de/LC_MESSAGES/messages.mo +0 -0
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pulpcore/cli/deb/publication.py +0 -0
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pulpcore/cli/deb/py.typed +0 -0
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pulpcore/cli/deb/remote.py +0 -0
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pulpcore/cli/deb/repository.py +0 -0
- {pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pulp-cli-deb
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
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+
|
|
@@ -16,3 +16,5 @@ Classifier: Topic :: System :: Software Distribution
|
|
|
16
16
|
Classifier: Typing :: Typed
|
|
17
17
|
Requires-Python: >=3.8
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
|
+
Requires-Dist: pulp-cli<0.38,>=0.23.2
|
|
20
|
+
Requires-Dist: pulp-glue-deb==0.4.2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pulp-cli-deb
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
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+
|
|
@@ -16,3 +16,5 @@ Classifier: Topic :: System :: Software Distribution
|
|
|
16
16
|
Classifier: Typing :: Typed
|
|
17
17
|
Requires-Python: >=3.8
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
|
+
Requires-Dist: pulp-cli<0.38,>=0.23.2
|
|
20
|
+
Requires-Dist: pulp-glue-deb==0.4.2
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pulp-cli-deb"
|
|
7
|
-
version = "0.4.
|
|
7
|
+
version = "0.4.2"
|
|
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
|
|
27
|
-
"pulp-glue-deb==0.4.
|
|
26
|
+
"pulp-cli<0.38,>=0.23.2",
|
|
27
|
+
"pulp-glue-deb==0.4.2",
|
|
28
28
|
]
|
|
29
29
|
|
|
30
30
|
[project.urls]
|
|
@@ -114,16 +114,6 @@ name = "Misc"
|
|
|
114
114
|
showcontent = true
|
|
115
115
|
|
|
116
116
|
|
|
117
|
-
[tool.black]
|
|
118
|
-
# This section is managed by the cookiecutter templates.
|
|
119
|
-
line-length = 100
|
|
120
|
-
|
|
121
|
-
[tool.isort]
|
|
122
|
-
# This section is managed by the cookiecutter templates.
|
|
123
|
-
profile = "black"
|
|
124
|
-
line_length = 100
|
|
125
|
-
extend_skip = ["pulp-glue-deb"]
|
|
126
|
-
|
|
127
117
|
[tool.pytest.ini_options]
|
|
128
118
|
markers = [
|
|
129
119
|
"script: tests provided as shell scripts",
|
|
@@ -152,7 +142,7 @@ ignore_missing_imports = true
|
|
|
152
142
|
|
|
153
143
|
[tool.bumpversion]
|
|
154
144
|
# This section is managed by the cookiecutter templates.
|
|
155
|
-
current_version = "0.4.
|
|
145
|
+
current_version = "0.4.2"
|
|
156
146
|
commit = false
|
|
157
147
|
tag = false
|
|
158
148
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\.(?P<release>[a-z]+))?"
|
|
@@ -200,12 +190,12 @@ search = "\"pulp-glue-deb=={current_version}\""
|
|
|
200
190
|
replace = "\"pulp-glue-deb=={new_version}\""
|
|
201
191
|
|
|
202
192
|
|
|
203
|
-
[tool.
|
|
193
|
+
[tool.ruff]
|
|
194
|
+
# This section is managed by the cookiecutter templates.
|
|
195
|
+
line-length = 100
|
|
196
|
+
extend-exclude = ["cookiecutter"]
|
|
197
|
+
|
|
198
|
+
[tool.ruff.lint]
|
|
204
199
|
# This section is managed by the cookiecutter templates.
|
|
205
|
-
|
|
206
|
-
ignore = ["W503", "Q000", "Q003", "D100", "D104", "D106", "D200", "D202", "D205", "D400", "D401", "D402"]
|
|
207
|
-
# E203: whitespace before ':'; https://github.com/psf/black/issues/279
|
|
208
|
-
# E401: multiple imports on one line
|
|
209
|
-
extend-ignore = ["E203", "E401"]
|
|
210
|
-
max-line-length = 100
|
|
200
|
+
extend-select = ["I"]
|
|
211
201
|
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import typing as t
|
|
2
|
+
|
|
3
|
+
import click
|
|
4
|
+
import pytest
|
|
5
|
+
from click.testing import CliRunner
|
|
6
|
+
from packaging.version import parse as parse_version
|
|
7
|
+
from pulp_cli import __version__ as PULP_CLI_VERSION
|
|
8
|
+
from pulp_cli import load_plugins, main
|
|
9
|
+
from pytest_subtests.plugin import SubTests
|
|
10
|
+
|
|
11
|
+
load_plugins()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def traverse_commands(command: click.Command, args: t.List[str]) -> t.Iterator[t.List[str]]:
|
|
15
|
+
yield args
|
|
16
|
+
|
|
17
|
+
if isinstance(command, click.Group):
|
|
18
|
+
for name, sub in command.commands.items():
|
|
19
|
+
yield from traverse_commands(sub, args + [name])
|
|
20
|
+
|
|
21
|
+
params = command.params
|
|
22
|
+
if params:
|
|
23
|
+
if "--type" in params[0].opts:
|
|
24
|
+
# iterate over commands with specific context types
|
|
25
|
+
assert isinstance(params[0].type, click.Choice)
|
|
26
|
+
for context_type in params[0].type.choices:
|
|
27
|
+
yield args + ["--type", context_type]
|
|
28
|
+
|
|
29
|
+
for name, sub in command.commands.items():
|
|
30
|
+
yield from traverse_commands(sub, args + ["--type", context_type, name])
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
@pytest.fixture
|
|
34
|
+
def no_api(monkeypatch: pytest.MonkeyPatch) -> None:
|
|
35
|
+
@property # type: ignore
|
|
36
|
+
def getter(self: t.Any) -> None:
|
|
37
|
+
pytest.fail("Invalid access to 'PulpContext.api'.", pytrace=False)
|
|
38
|
+
|
|
39
|
+
monkeypatch.setattr("pulp_glue.common.context.PulpContext.api", getter)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@pytest.mark.help_page
|
|
43
|
+
def test_access_help(no_api: None, subtests: SubTests) -> None:
|
|
44
|
+
"""Test, that all help screens are accessible without touching the api property."""
|
|
45
|
+
if parse_version(PULP_CLI_VERSION) < parse_version("0.24"):
|
|
46
|
+
pytest.skip("This test is incompatible with older cli versions.")
|
|
47
|
+
|
|
48
|
+
runner = CliRunner()
|
|
49
|
+
for args in traverse_commands(main.commands["deb"], ["deb"]):
|
|
50
|
+
with subtests.test(msg=" ".join(args)):
|
|
51
|
+
result = runner.invoke(main, args + ["--help"], catch_exceptions=False)
|
|
52
|
+
|
|
53
|
+
if result.exit_code == 2:
|
|
54
|
+
assert (
|
|
55
|
+
"not available in this context" in result.stdout
|
|
56
|
+
or "not available in this context" in result.stderr
|
|
57
|
+
)
|
|
58
|
+
else:
|
|
59
|
+
assert result.exit_code == 0
|
|
60
|
+
assert result.stdout.startswith("Usage:") or result.stdout.startswith(
|
|
61
|
+
"DeprecationWarning:"
|
|
62
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pulp-cli-deb-0.4.0 → pulp_cli_deb-0.4.2}/pulpcore/cli/deb/locale/de/LC_MESSAGES/messages.mo
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|