Change mamba version with update imports

Signed-off-by: Aleskei Chetaev <alex.chetaev@gmail.com>
This commit is contained in:
a.chetaev 2023-02-06 18:12:04 +01:00 committed by Aleksey Chetaev
parent 54ac125f40
commit cea3ab5126
7 changed files with 9 additions and 8 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
# ignore IDE files # ignore IDE files
.vscode .vscode
.idea
# ignore temp files under any path # ignore temp files under any path
.DS_Store .DS_Store

View file

@ -19,12 +19,12 @@ dependencies = [
"allure-python-commons>=2.9.45", "allure-python-commons>=2.9.45",
"docker>=4.4.0", "docker>=4.4.0",
"importlib_metadata>=5.0; python_version < '3.10'", "importlib_metadata>=5.0; python_version < '3.10'",
"neo-mamba==0.10.0", "neo-mamba==1.0.0",
"paramiko>=2.10.3", "paramiko>=2.10.3",
"pexpect>=4.8.0", "pexpect>=4.8.0",
"requests>=2.28.0", "requests>=2.28.0",
] ]
requires-python = ">=3.9" requires-python = ">=3.10"
[project.optional-dependencies] [project.optional-dependencies]
dev = ["black", "bumpver", "isort", "pre-commit"] dev = ["black", "bumpver", "isort", "pre-commit"]

View file

@ -1,7 +1,7 @@
allure-python-commons==2.9.45 allure-python-commons==2.9.45
docker==4.4.0 docker==4.4.0
importlib_metadata==5.0.0 importlib_metadata==5.0.0
neo-mamba==0.10.0 neo-mamba==1.0.0
paramiko==2.10.3 paramiko==2.10.3
pexpect==4.8.0 pexpect==4.8.0
requests==2.28.1 requests==2.28.1

View file

@ -3,7 +3,7 @@ import binascii
import json import json
import base58 import base58
from neo3 import wallet as neo3_wallet from neo3.wallet import wallet as neo3_wallet
def str_to_ascii_hex(input: str) -> str: def str_to_ascii_hex(input: str) -> str:

View file

@ -1,7 +1,8 @@
import json import json
import logging import logging
from neo3 import wallet as neo3_wallet from neo3.wallet import wallet as neo3_wallet
from neo3.wallet import account as neo3_account
logger = logging.getLogger("neofs.testlib.utils") logger = logging.getLogger("neofs.testlib.utils")
@ -14,7 +15,7 @@ def init_wallet(wallet_path: str, wallet_password: str):
wallet_password: The password for new wallet. wallet_password: The password for new wallet.
""" """
wallet = neo3_wallet.Wallet() wallet = neo3_wallet.Wallet()
account = neo3_wallet.Account.create_new(wallet_password) account = neo3_account.Account.create_new(wallet_password)
wallet.account_add(account) wallet.account_add(account)
with open(wallet_path, "w") as out: with open(wallet_path, "w") as out:
json.dump(wallet.to_json(), out) json.dump(wallet.to_json(), out)

View file

@ -3,7 +3,6 @@ from unittest import SkipTest, TestCase
from neofs_testlib.shell.interfaces import CommandOptions, InteractiveInput from neofs_testlib.shell.interfaces import CommandOptions, InteractiveInput
from neofs_testlib.shell.ssh_shell import SSHShell from neofs_testlib.shell.ssh_shell import SSHShell
from tests.helpers import format_error_details, get_output_lines from tests.helpers import format_error_details, get_output_lines

View file

@ -3,7 +3,7 @@ import os
from unittest import TestCase from unittest import TestCase
from uuid import uuid4 from uuid import uuid4
from neo3.wallet import Wallet from neo3.wallet.wallet import Wallet
from neofs_testlib.utils.wallet import init_wallet, get_last_address_from_wallet from neofs_testlib.utils.wallet import init_wallet, get_last_address_from_wallet