Skip to content

Commit 3e0250a

Browse files
Merge pull request #703 from valory-xyz/release/v1.43.0.post2
Release v1.43.0.post2
2 parents 24bc01d + d49ca08 commit 3e0250a

File tree

23 files changed

+71
-26
lines changed

23 files changed

+71
-26
lines changed

.spelling

+1
Original file line numberDiff line numberDiff line change
@@ -381,3 +381,4 @@ pyyaml
381381
1.39.0.post1
382382
1.41.0.post1
383383
1.43.0.post1
384+
1.43.0.post2

HISTORY.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
# Release History - open AEA
22

3+
## 1.43.0.post2 (2023-12-26)
4+
5+
AEA:
6+
- Fixes the default environment variable parsing for the base types
7+
38
## 1.43.0.post1 (2023-12-19)
49

510
AEA:
6-
- Fixes the default environment variable parsing
11+
- Fixes the default environment variable parsing for the list types
712

813
## 1.43.0 (2023-12-14)
914

aea/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
__title__ = "open-aea"
2424
__description__ = "Open Autonomous Economic Agent framework (without vendor lock-in)"
2525
__url__ = "https://github.com/valory-xyz/open-aea.git"
26-
__version__ = "1.43.0.post1"
26+
__version__ = "1.43.0.post2"
2727
__author__ = "Valory AG"
2828
__license__ = "Apache-2.0"
2929
__copyright__ = "2021 Valory AG, 2019 Fetch.AI Limited"

aea/helpers/env_vars.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,12 @@ def replace_with_env_var(
9191

9292
if var_name in env_variables:
9393
var_value = env_variables[var_name]
94-
elif type_str == "list" and var_name == default_var_name:
94+
elif type_str == "list":
9595
var_value = parse_list(
9696
var_prefix=var_name,
9797
env_variables=env_variables,
9898
)
99+
var_value = (default or var_value) if var_value == "[]" else var_value
99100
elif default is not None:
100101
var_value = default
101102
elif default_value is not NotSet:
@@ -107,7 +108,6 @@ def replace_with_env_var(
107108

108109
if type_str is not None:
109110
var_value = convert_value_str_to_type(var_value, type_str)
110-
111111
return var_value
112112

113113

deploy-image/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN apk add --no-cache go
1616

1717
# aea installation
1818
RUN pip install --upgrade pip
19-
RUN pip install --upgrade --force-reinstall open-aea[all]==1.43.0.post1 "open-aea-cli-ipfs<2.0.0,>=1.43.0.post1"
19+
RUN pip install --upgrade --force-reinstall open-aea[all]==1.43.0.post2 "open-aea-cli-ipfs<2.0.0,>=1.43.0.post2"
2020

2121
# directories and aea cli config
2222
WORKDIR /home/agents

deploy-image/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The example uses the `fetchai/my_first_aea` project. You will likely want to mod
1111
Install subversion, then download the example directory to your local working directory
1212

1313
``` bash
14-
svn checkout https://github.com/valory-xyz/open-aea/tags/v1.43.0.post1/packages packages
14+
svn checkout https://github.com/valory-xyz/open-aea/tags/v1.43.0.post2/packages packages
1515
```
1616

1717
### Modify scripts

develop-image/docker-env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Swap the following lines if you want to work with 'latest'
4-
DOCKER_IMAGE_TAG=valory/open-aea-develop:1.43.0.post1
4+
DOCKER_IMAGE_TAG=valory/open-aea-develop:1.43.0.post2
55
# DOCKER_IMAGE_TAG=valory/open-aea-develop:latest
66

77
DOCKER_BUILD_CONTEXT_DIR=..

docs/upgrading.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ Below we describe the additional manual steps required to upgrade between differ
99

1010
### Upgrade guide
1111

12-
## `v1.42.0` to `v1.43.0.post1`
12+
## `v1.43.0.post1` to `v1.43.0.post2`
13+
14+
- No backwards incompatible changes
15+
16+
## `v1.43.0` to `v1.43.0.post1`
17+
18+
- No backwards incompatible changes
19+
20+
## `v1.42.0` to `v1.43.0`
1321

1422
- No backwards incompatible changes
1523

examples/tac_deploy/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN apk add --no-cache go
1919

2020
# aea installation
2121
RUN python -m pip install --upgrade pip
22-
RUN pip install --upgrade --force-reinstall open-aea[all]==1.43.0.post1
22+
RUN pip install --upgrade --force-reinstall open-aea[all]==1.43.0.post2
2323

2424
# directories and aea cli config
2525
COPY /.aea /home/.aea

plugins/aea-cli-benchmark/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
setup(
2828
name="open-aea-cli-benchmark",
29-
version="1.43.0.post1",
29+
version="1.43.0.post2",
3030
author="Valory AG",
3131
license="Apache-2.0",
3232
description="CLI extension for AEA framework benchmarking.",

plugins/aea-cli-ipfs/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
setup(
3030
name="open-aea-cli-ipfs",
31-
version="1.43.0.post1",
31+
version="1.43.0.post2",
3232
author="Valory AG",
3333
license="Apache-2.0",
3434
description="CLI extension for open AEA framework wrapping IPFS functionality.",

plugins/aea-ledger-cosmos/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
setup(
2828
name="open-aea-ledger-cosmos",
29-
version="1.43.0.post1",
29+
version="1.43.0.post2",
3030
author="Valory AG",
3131
license="Apache-2.0",
3232
description="Python package wrapping the public and private key cryptography and ledger api of Cosmos.",

plugins/aea-ledger-ethereum-flashbots/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
setup(
2727
name="open-aea-ledger-ethereum-flashbots",
28-
version="1.43.0.post1",
28+
version="1.43.0.post2",
2929
author="Valory AG",
3030
license="Apache-2.0",
3131
description="Python package extending the default open-aea ethereum ledger plugin to add support for flashbots.",
@@ -41,7 +41,7 @@
4141
},
4242
python_requires=">=3.9,<4.0",
4343
install_requires=[
44-
"open-aea-ledger-ethereum~=1.43.0.post1",
44+
"open-aea-ledger-ethereum~=1.43.0.post2",
4545
"open-aea-flashbots==1.4.0",
4646
],
4747
tests_require=["pytest"],

plugins/aea-ledger-ethereum-hwi/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
setup(
2727
name="open-aea-ledger-ethereum-hwi",
28-
version="1.43.0.post1",
28+
version="1.43.0.post2",
2929
author="Valory AG",
3030
license="Apache-2.0",
3131
description="Python package wrapping the public and private key cryptography and support for hardware wallet interactions.",
@@ -42,7 +42,7 @@
4242
"web3>=6.0.0,<7",
4343
"ipfshttpclient==0.8.0a2",
4444
"eth-account>=0.8.0,<0.9.0",
45-
"open-aea-ledger-ethereum~=1.43.0.post1",
45+
"open-aea-ledger-ethereum~=1.43.0.post2",
4646
"ledgerwallet==0.1.3",
4747
"protobuf<4.25.0,>=4.21.6",
4848
"construct<=2.10.61",

plugins/aea-ledger-ethereum/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
setup(
2828
name="open-aea-ledger-ethereum",
29-
version="1.43.0.post1",
29+
version="1.43.0.post2",
3030
author="Valory AG",
3131
license="Apache-2.0",
3232
description="Python package wrapping the public and private key cryptography and ledger api of Ethereum.",

plugins/aea-ledger-fetchai/setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
setup(
3333
name="open-aea-ledger-fetchai",
34-
version="1.43.0.post1",
34+
version="1.43.0.post2",
3535
author="Valory AG",
3636
license="Apache-2.0",
3737
description="Python package wrapping the public and private key cryptography and ledger API of Fetch.AI.",
@@ -44,7 +44,7 @@
4444
"test_tools/data/*",
4545
]
4646
},
47-
install_requires=["open-aea-ledger-cosmos~=1.43.0.post1"],
47+
install_requires=["open-aea-ledger-cosmos~=1.43.0.post2"],
4848
tests_require=["pytest"],
4949
entry_points={
5050
"aea.cryptos": ["fetchai = aea_ledger_fetchai:FetchAICrypto"],

plugins/aea-ledger-solana/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
setup(
2727
name="open-aea-ledger-solana",
28-
version="1.43.0.post1",
28+
version="1.43.0.post2",
2929
author="dassy23",
3030
license="Apache-2.0",
3131
description="Python package wrapping the public and private key cryptography and ledger api of solana.",

scripts/install.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function instal_choco_golang_gcc {
3434
}
3535
function install_aea {
3636
echo "Install aea"
37-
$output=pip install open-aea[all]==1.43.0.post1 --force --no-cache-dir 2>&1 |out-string;
37+
$output=pip install open-aea[all]==1.43.0.post2 --force --no-cache-dir 2>&1 |out-string;
3838
if ($LastExitCode -ne 0) {
3939
echo $output
4040
echo "AEA install failed!"

scripts/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function is_python_version_ok() {
4242

4343
function install_aea (){
4444
echo "Install AEA"
45-
output=$(pip3 install --user open-aea[all]==1.43.0.post1 --force --no-cache-dir)
45+
output=$(pip3 install --user open-aea[all]==1.43.0.post2 --force --no-cache-dir)
4646
if [[ $? -ne 0 ]];
4747
then
4848
echo "$output"

skaffold.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
build:
66
tagPolicy:
77
envTemplate:
8-
template: "1.43.0.post1"
8+
template: "1.43.0.post2"
99
artifacts:
1010
- image: valory/open-aea-develop
1111
docker:
@@ -24,7 +24,7 @@ profiles:
2424
build:
2525
tagPolicy:
2626
envTemplate:
27-
template: "1.43.0.post1"
27+
template: "1.43.0.post2"
2828
artifacts:
2929
- image: valory/open-aea-docs
3030
docker:

tests/test_helpers/test_env_vars.py

+31
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,37 @@ def test_match_export_parse_consistency(export_data, template) -> None:
226226
assert parsed_data == export_data
227227

228228

229+
@pytest.mark.parametrize(
230+
("template", "parsed"),
231+
argvalues=[
232+
(
233+
{"value": "${str:john}"},
234+
{"value": "john"},
235+
),
236+
(
237+
{"value": "${int:3}"},
238+
{"value": 3},
239+
),
240+
(
241+
{"value": "${bool:false}"},
242+
{"value": False},
243+
),
244+
(
245+
{"value": '${list:["foo","bar"]}'},
246+
{"value": ["foo", "bar"]},
247+
),
248+
(
249+
{"value": '${dict:{"foo":"bar"}}'},
250+
{"value": {"foo": "bar"}},
251+
),
252+
],
253+
)
254+
def test_parse_defaults(template, parsed) -> None:
255+
"""Test default value parsing."""
256+
parsed_data = apply_env_variables(template, env_variables={})
257+
assert parsed_data == parsed
258+
259+
229260
def test_apply_env_variables_on_agent_config():
230261
"""Test apply_env_variables_on_agent_config function."""
231262
result = apply_env_variables_on_agent_config(

user-image/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV LANG C.UTF-8
77
RUN apt update && apt install -y python3.11-dev python3-pip -y && apt autoremove && apt autoclean
88

99
RUN pip3 install --upgrade pip
10-
RUN pip3 install "open-aea[all]==1.43.0.post1" open-aea-cli-ipfs==1.43.0.post1
10+
RUN pip3 install "open-aea[all]==1.43.0.post2" open-aea-cli-ipfs==1.43.0.post2
1111

1212
COPY user-image/openssl.cnf /etc/ssl
1313

user-image/docker-env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Swap the following lines if you want to work with 'latest'
4-
DOCKER_IMAGE_TAG=valory/open-aea-user:1.43.0.post1
4+
DOCKER_IMAGE_TAG=valory/open-aea-user:1.43.0.post2
55
# DOCKER_IMAGE_TAG=valory/open-aea-user:latest
66

77
DOCKER_BUILD_CONTEXT_DIR=..

0 commit comments

Comments
 (0)