Skip to content

Commit 3150f10

Browse files
authored
Merge pull request #627 from mulkieran/develop-2.1.0-2.1.1
Develop 2.1.0 2.1.1
2 parents 76634be + 15018ba commit 3150f10

36 files changed

Lines changed: 459 additions & 105 deletions

.travis.yml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,33 @@ addons:
1010
branches:
1111
only:
1212
- master
13-
- develop-2.0.1
13+
- develop-2.1.0
1414

1515
jobs:
1616
include:
1717

1818
# MANDATORY CHECKS USING CURRENT DEVELOPMENT INTERPRETER
19-
- name: "run pylint using Python 3.7.6"
20-
python: "3.7.6"
19+
- name: "run pylint using Python 3.7.7"
20+
python: "3.7.7"
2121
install:
2222
- >
2323
pip
2424
install
25-
pylint==2.3.1
25+
pylint==2.4.4
2626
dbus-client-gen==0.4
2727
dbus-python-client-gen==0.7
2828
justbytes==0.11
2929
python-dateutil==2.8.0
30-
wcwidth==0.1.7
31-
psutil==5.4.3
30+
wcwidth==0.1.9
31+
psutil==5.6.7
3232
semantic_version==2.6.0
3333
script: PYTHONPATH=./src make -f Makefile lint
34-
- name: "check formatting using Python 3.7.6"
35-
python: "3.7.6"
36-
install: pip install black==19.3b0 isort==4.3.4
34+
- name: "check formatting using Python 3.7.7"
35+
python: "3.7.7"
36+
install: pip install black==19.10b0 isort==4.3.21
3737
env: TASK=fmt-travis
38-
- name: "run tests that do not require stratisd using Python 3.7.6"
39-
python: "3.7.6"
38+
- name: "run tests that do not require stratisd using Python 3.7.7"
39+
python: "3.7.7"
4040
install:
4141
- >
4242
pip
@@ -45,32 +45,31 @@ jobs:
4545
dbus-python-client-gen==0.7
4646
justbytes==0.11
4747
python-dateutil==2.8.0
48-
wcwidth==0.1.7
49-
psutil==5.4.3
48+
wcwidth==0.1.9
49+
psutil==5.6.7
5050
semantic_version==2.6.0
5151
script: PYTHONPATH=./src make -f Makefile test-travis
5252

5353
# MANDATORY CHECKS USING LOWEST SUPPORTED INTERPRETER
54-
- name: "run pylint using Python 3.6.8"
54+
- name: "run pylint using Python 3.6.8, omit optional wcwidth dependency"
5555
python: "3.6.8"
5656
install:
5757
- >
5858
pip
5959
install
60-
pylint==2.3.1
60+
pylint==2.4.4
6161
dbus-client-gen==0.4
6262
dbus-python-client-gen==0.7
6363
justbytes==0.11
64-
python-dateutil
65-
wcwidth
66-
psutil
64+
python-dateutil==2.6.1
65+
psutil==5.4.3
6766
semantic_version==2.6.0
6867
script: PYTHONPATH=./src make -f Makefile lint
6968

7069
# VERIFICATION OF TEST INFRASTRUCTURE
71-
- name: "run yamllint on .travis.yml"
72-
python: "3.7.6"
73-
install: pip install yamllint
74-
script: yamllint .travis.yml
70+
- name: "run yamllint 1.23.0 on .travis.yml"
71+
python: "3.7.7"
72+
install: pip install yamllint==1.23.0
73+
env: TASK=yamllint
7574

7675
script: make -f Makefile $TASK

CHANGES.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
stratis-cli 2.1.1
2+
=================
3+
Recommended Python interpreter: 3.7.7
4+
Lowest supported Python interpreter: 3.6.8
5+
Python linter: pylint (2.4.4)
6+
Python auto-formatter: black (19.10b0)
7+
Python import sorter: isort (4.3.21)
8+
YAML linter: yamllint (1.23.0)
9+
10+
- Do not terminate pool unlocking on failure to unlock one pool in a list:
11+
https://github.com/stratis-storage/stratis-cli/issues/618
12+
https://github.com/stratis-storage/stratis-cli/pull/624
13+
14+
- Expand man page entry on --keyfile-path and --capture-key options:
15+
https://github.com/stratis-storage/stratis-cli/pull/625
16+
17+
- Improve error message if no stratisd process running:
18+
https://github.com/stratis-storage/stratis-cli/issues/613
19+
https://github.com/stratis-storage/stratis-cli/pull/614
20+
21+
- Extend blackbox tests:
22+
https://github.com/stratis-storage/stratis-cli/pull/610
23+
24+
- Tidies and Maintenance:
25+
https://github.com/stratis-storage/stratis-cli/pull/623
26+
https://github.com/stratis-storage/stratis-cli/pull/620
27+
https://github.com/stratis-storage/stratis-cli/pull/616
28+
https://github.com/stratis-storage/stratis-cli/pull/615
29+
https://github.com/stratis-storage/stratis-cli/pull/608
30+
https://github.com/stratis-storage/stratis-cli/pull/603
31+
32+
133
stratis-cli 2.1.0
234
=================
335
Recommended Python interpreter: 3.7.6

check.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,6 @@
5353
],
5454
}
5555

56-
# FIXME: omit once disabling the new lint in the source # pylint: disable=fixme
57-
# See https://github.com/stratis-storage/project/issues/175
58-
try:
59-
import pylint
60-
61-
if pylint.__pkginfo__.numversion == (2, 4, 4):
62-
ARG_MAP["src/stratis_cli"].append("--disable=import-outside-toplevel")
63-
ARG_MAP["tests/whitebox"].append("--disable=import-outside-toplevel")
64-
except ImportError:
65-
# Must be running on Travis, and check.py is running outside the virtual
66-
# environment
67-
pass
68-
6956

7057
def get_parser():
7158
"""

docs/stratis.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,9 @@ blockdev list [pool_name]::
7373
List all blockdevs that make up the specified pool, or all pools, if
7474
no pool name is given.
7575
key set <(--keyfile-path <path> | --capture-key)> <key_desc>::
76-
Set a key in the kernel keyring for use with encryption either from a keyfile
77-
or captured interactively from user input.
76+
Set a key in the kernel keyring for use with encryption.
7877
key reset <(--keyfile-path <path> | --capture-key)> <key_desc>::
79-
Reset the key data of an existing key in the kernel keyring either from a keyfile
80-
or captured interactively from user input.
78+
Reset the key data of an existing key in the kernel keyring.
8179
key unset <key_desc>::
8280
Unset a key in the kernel keyring so it is no longer available for encryption
8381
operations.
@@ -99,6 +97,16 @@ OPTIONS
9997
The key description of the key that should be used to encrypt the
10098
created pool. The key description must correspond to a key
10199
set in the kernel keyring with the *key* command.
100+
--keyfile-path <path> | --capture-key::
101+
These mutually exclusive options allow a user to specify a key used
102+
for encryption in one of two ways. The *--keyfile-path* option requires
103+
an argument, the path to a file containing the key. If the
104+
*--capture-key* option is selected instead, the user must enter the key
105+
at the ensuing prompt. The key value is terminated at the first newline
106+
character that the user enters, and does not include the newline
107+
character. On the other hand, if the file specified as an argument for
108+
the *--keyfile-path* option contains a newline character anywhere, the
109+
newline character will be included in the key value.
102110

103111
ENVIRONMENT VARIABLES
104112
---------------------

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def local_file(name):
4949
"dbus-client-gen>=0.4",
5050
"dbus-python-client-gen>=0.7",
5151
"justbytes>=0.14",
52+
"psutil",
5253
"python-dateutil",
5354
"semantic_version",
5455
"wcwidth",

src/stratis_cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"""
1515
Top level of CLI.
1616
"""
17-
from ._main import run
1817
from ._errors import StratisCliEnvironmentError
1918
from ._exit import StratisCliErrorCodes, exit_
19+
from ._main import run

src/stratis_cli/_actions/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
Package mediating dbus actions.
1616
"""
1717

18-
from ._constants import BLOCKDEV_INTERFACE
19-
from ._constants import FILESYSTEM_INTERFACE
20-
from ._constants import POOL_INTERFACE
18+
from ._constants import BLOCKDEV_INTERFACE, FILESYSTEM_INTERFACE, POOL_INTERFACE
2119
from ._logical import LogicalActions
2220
from ._physical import PhysicalActions
2321
from ._stratis import StratisActions

src/stratis_cli/_actions/_logical.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def create_volumes(namespace):
4646
:raises StratisCliPartialChangeError:
4747
"""
4848
# pylint: disable=too-many-locals
49+
50+
# pylint: disable=import-outside-toplevel
4951
from ._data import MOFilesystem
5052
from ._data import ObjectManager
5153
from ._data import Pool
@@ -101,6 +103,7 @@ def list_volumes(namespace):
101103
"""
102104
List the volumes in a pool.
103105
"""
106+
# pylint: disable=import-outside-toplevel
104107
from ._data import FetchProperties
105108
from ._data import MOFilesystem
106109
from ._data import MOPool
@@ -185,6 +188,8 @@ def destroy_volumes(namespace):
185188
:raises StratisCliPartialChangeError:
186189
"""
187190
# pylint: disable=too-many-locals
191+
192+
# pylint: disable=import-outside-toplevel
188193
from ._data import MOFilesystem
189194
from ._data import ObjectManager
190195
from ._data import Pool
@@ -251,6 +256,7 @@ def snapshot_filesystem(namespace):
251256
:raises StratisCliEngineError:
252257
:raises StratisCliNoChangeError:
253258
"""
259+
# pylint: disable=import-outside-toplevel
254260
from ._data import ObjectManager
255261
from ._data import Pool
256262
from ._data import filesystems
@@ -289,6 +295,7 @@ def rename_fs(namespace):
289295
:raises StratisCliEngineError:
290296
:raises StratisCliNoChangeError:
291297
"""
298+
# pylint: disable=import-outside-toplevel
292299
from ._data import ObjectManager
293300
from ._data import Filesystem
294301
from ._data import filesystems

src/stratis_cli/_actions/_physical.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def list_devices(namespace):
3737
List devices. If a pool is specified in the namespace, list devices
3838
for that pool. Otherwise, list all devices for all pools.
3939
"""
40+
# pylint: disable=import-outside-toplevel
4041
from ._data import devs
4142
from ._data import pools
4243
from ._data import FetchProperties

src/stratis_cli/_actions/_stratis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def list_stratisd_version(_namespace):
3838
"""
3939
List the stratisd version.
4040
"""
41+
# pylint: disable=import-outside-toplevel
4142
from ._data import Manager
4243

4344
print("%s" % Manager.Properties.Version.Get(get_object(TOP_OBJECT)))

0 commit comments

Comments
 (0)