Skip to content

Commit

Permalink
Merge pull request #2799 from fetchai/develop
Browse files Browse the repository at this point in the history
release 1.2.2
  • Loading branch information
solarw authored Nov 1, 2022
2 parents 9d50b14 + afb529e commit 813bd60
Show file tree
Hide file tree
Showing 718 changed files with 14,765 additions and 11,375 deletions.
96 changes: 25 additions & 71 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,14 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-python@v3
with:
python-version: 3.9
python-version: 3.8
- name: Install dependencies (ubuntu-latest)
run: |
sudo apt-get update --fix-missing
sudo apt-get install libmbedtls-dev
sudo apt-get autoremove
sudo apt-get autoclean
sudo pip install pipenv
- name: Pipenv install requirements and check it can be locked
run: |
pipenv install --dev --skip-lock --clear
pipenv run pip install -e .[all]
pipenv run pip install --no-deps file:plugins/aea-ledger-ethereum
pipenv run pip install --no-deps file:plugins/aea-ledger-cosmos
pipenv run pip install --no-deps file:plugins/aea-ledger-fetchai
pipenv lock
- name: Check plugin consistency
run: |
# these two files should not be different;
Expand All @@ -50,12 +42,12 @@ jobs:
common_checks_2:
continue-on-error: False
runs-on: ubuntu-latest
timeout-minutes: 10
timeout-minutes: 20
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v3
with:
python-version: 3.6
python-version: 3.8
- uses: actions/setup-go@v3
with:
go-version: '^1.17.0'
Expand Down Expand Up @@ -86,14 +78,14 @@ jobs:
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
with:
version: v1.45.2
version: v1.48.0
working-directory: libs/go/libp2p_node
- name: Golang code style check (aealite)
uses: golangci/[email protected]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
with:
version: v1.45.2
version: v1.48.0
working-directory: libs/go/aealite

common_checks_3:
Expand All @@ -104,7 +96,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-python@v3
with:
python-version: 3.6
python-version: 3.8
- name: Install dependencies (ubuntu-latest)
run: |
sudo apt-get update --fix-missing
Expand All @@ -124,7 +116,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-python@v3
with:
python-version: 3.6
python-version: 3.8
- uses: actions/setup-go@v3
with:
go-version: '^1.17.0'
Expand Down Expand Up @@ -176,7 +168,7 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-python@v3
with:
python-version: 3.7
python-version: 3.8
- uses: actions/setup-node@v1
with:
node-version: 12.x
Expand All @@ -196,39 +188,6 @@ jobs:
- name: Check spelling
run: tox -e spell_check

dependencies_checks:
continue-on-error: False
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python_version: [3.7]
timeout-minutes: 10
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python_version }}
- if: matrix.os == 'ubuntu-latest'
name: Install dependencies (ubuntu-latest)
run: |
sudo apt-get update --fix-missing
sudo apt-get install libmbedtls-dev
sudo apt-get autoremove
sudo apt-get autoclean
- name: Install tox
run : |
pip install tox
- name: Check Pipfile and tox.ini consistency
run : |
python ./scripts/check_pipfile_and_toxini.py
- name: Install current aea
run: |
pip install -e .[all]
- name: Check aea dependenices and imports
run: |
tox -e dependencies_check
plugins_install_check:
continue-on-error: False
runs-on: ${{ matrix.sys.os }}
Expand All @@ -238,7 +197,7 @@ jobs:
- { os: windows-latest, shell: 'msys2 {0}' }
- { os: ubuntu-latest, shell: bash }
- { os: macos-latest, shell: bash }
python_version: [3.7]
python_version: [3.8]
timeout-minutes: 10
steps:
- uses: actions/checkout@master
Expand Down Expand Up @@ -278,10 +237,10 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-python@v3
with:
python-version: 3.6
python-version: 3.8
- uses: actions/setup-go@v3
with:
go-version: '^1.14.0'
go-version: '^1.17.0'
- name: Install protolint (ubuntu-latest)
run: |
sudo apt-get update --fix-missing
Expand All @@ -299,7 +258,6 @@ jobs:
- common_checks_2
- common_checks_3
- common_checks_4
- dependencies_checks
- plugins_install_check
runs-on: ubuntu-latest
timeout-minutes: 60
Expand All @@ -310,7 +268,7 @@ jobs:
python-version: 3.8
- uses: actions/setup-go@v3
with:
go-version: '^1.14.0'
go-version: '^1.17.0'
- name: Setup GCloud - production
uses: google-github-actions/setup-gcloud@v0
with:
Expand Down Expand Up @@ -346,7 +304,6 @@ jobs:
- common_checks_2
- common_checks_3
- common_checks_4
- dependencies_checks
- plugins_install_check
runs-on: ubuntu-latest
timeout-minutes: 60
Expand Down Expand Up @@ -382,13 +339,12 @@ jobs:
- common_checks_2
- common_checks_3
- common_checks_4
- dependencies_checks
- plugins_install_check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python_version: [3.7, 3.8, 3.9, '3.10']
python_version: [3.8, 3.9, '3.10']
timeout-minutes: 90
steps:
- uses: actions/checkout@master
Expand All @@ -397,7 +353,7 @@ jobs:
python-version: ${{ matrix.python_version }}
- uses: actions/setup-go@v3
with:
go-version: '^1.14.0'
go-version: '^1.17.0'
- if: matrix.os == 'ubuntu-latest'
name: Install dependencies (ubuntu-latest)
run: |
Expand Down Expand Up @@ -461,7 +417,6 @@ jobs:
- common_checks_2
- common_checks_3
- common_checks_4
- dependencies_checks
- plugins_install_check
runs-on: ubuntu-latest
timeout-minutes: 60
Expand All @@ -472,7 +427,7 @@ jobs:
python-version: 3.8
- uses: actions/setup-go@v3
with:
go-version: '^1.14.0'
go-version: '^1.17.0'
- name: Install dependencies (ubuntu-latest)
run: |
sudo apt-get update --fix-missing
Expand All @@ -495,13 +450,12 @@ jobs:
- common_checks_2
- common_checks_3
- common_checks_4
- dependencies_checks
- plugins_install_check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6]
python-version: [3.8]
timeout-minutes: 45
steps:
- uses: actions/checkout@master
Expand All @@ -510,7 +464,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- uses: actions/setup-go@v3
with:
go-version: '^1.14.0'
go-version: '^1.17.0'
- if: matrix.os == 'macos-latest'
working-directory: ./libs/go/libp2p_node
run: |
Expand All @@ -519,22 +473,22 @@ jobs:
sudo cp $LINKPATH ${LINKPATH}_orig
sudo cp link $LINKPATH
sudo chmod a+x $LINKPATH
- if: matrix.python-version == '3.6'
- if: matrix.python-version == '3.8'
name: Golang unit tests (libp2p_node)
working-directory: ./libs/go/libp2p_node
run: make test
- if: matrix.python-version == '3.6'
- if: matrix.python-version == '3.8'
name: Golang unit tests (aealite)
working-directory: ./libs/go/aealite
run: go test -p 1 -timeout 0 -count 1 -v ./...
libp2p_coverage:
name: libp2p_coverage
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.14
- name: Set up Go 1.17
uses: actions/setup-go@v1
with:
go-version: 1.14
go-version: 1.17
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
Expand Down Expand Up @@ -570,10 +524,10 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-python@v3
with:
python-version: 3.7
python-version: 3.8
- uses: actions/setup-go@v3
with:
go-version: '^1.14.0'
go-version: '^1.17.0'
- name: Install dependencies (ubuntu-latest)
run: |
sudo apt-get update --fix-missing
Expand All @@ -590,8 +544,8 @@ jobs:
# sudo apt-get install -y protobuf-compiler
- name: Run all tests
run: |
tox -e py3.7-cov -- --ignore=tests/test_docs --ignore=tests/test_examples --ignore=tests/test_packages/test_skills_integration -m 'not unstable'
tox -e plugins-py3.7-cov -- --cov-append -m 'not unstable'
tox -e py3.8-cov -- --ignore=tests/test_docs --ignore=tests/test_examples --ignore=tests/test_packages/test_skills_integration -m 'not unstable'
tox -e plugins-py3.8-cov -- --cov-append -m 'not unstable'
continue-on-error: true
- name: Show full coverage report
run: |
Expand Down
15 changes: 15 additions & 0 deletions .spelling
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,20 @@ dockerised
Mermaid-JS
darglint
aea-cli-ipfs
tensorflow
ethereum
mypy
ipfshttpclient
0.8.0a2
int64
int32
cosmpy
tx
asyncio
golang
basecontracttesttool
linter
stargateworld
- docs/language-agnostic-definition.md
fetchai
protocol_id
Expand All @@ -236,6 +250,7 @@ CosmWasm
- docs/ledger-integration.md
atestfet
v0.2.x
dorado-1
- docs/questions-and-answers.md
state_update
txt
Expand Down
17 changes: 17 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
# Release History


## 1.2.1 (2022-10-17)

AEA:
- Dependency management switched from pipenv to poetry.
- Protocol generator updated to support Unions
- Dependencies versions updates: click, mypy, black, ipfshttpclient
- Small code format improvements

Plugins:
- Update web3 to version 5.31
- Small code format improvements
- ipfshttpclient dependency version updated to 0.8.0a2

Packages:
- Protocols regenerated according to the latest protocol generator improvements: Union support
- Small code format improvements

## 1.2.1 (2022-07-12)

AEA:
Expand Down
26 changes: 10 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ security:
plugins/aea-ledger-cosmos/aea_ledger_cosmos \
plugins/aea-cli-ipfs/aea_cli_ipfs
bandit -s B101 -r tests scripts
safety check -i 37524 -i 38038 -i 37776 -i 38039 -i 39621 -i 40291 -i 39706
safety check -i 37524 -i 38038 -i 37776 -i 38039 -i 39621 -i 40291 -i 39706 -i 44610 -i 50473

.PHONY: static
static:
Expand Down Expand Up @@ -106,16 +106,12 @@ test-all:

.PHONY: install
install: clean
python3 setup.py install
pip install .[all]

.PHONY: dist
dist: clean
python setup.py sdist
WIN_BUILD_WHEEL=1 python setup.py bdist_wheel --plat-name=win_amd64
WIN_BUILD_WHEEL=1 python setup.py bdist_wheel --plat-name=win32
python setup.py bdist_wheel --plat-name=manylinux1_x86_64
python setup.py bdist_wheel --plat-name=manylinux2014_aarch64
python setup.py bdist_wheel --plat-name=macosx_10_9_x86_64
poetry build


h := $(shell git rev-parse --abbrev-ref HEAD)

Expand All @@ -136,14 +132,12 @@ v := $(shell pip -V | grep virtualenvs)
new_env: clean
if [ -z "$v" ];\
then\
pipenv --rm;\
pipenv --python 3.7;\
pipenv install --dev --skip-lock --clear;\
pipenv run pip install -e .[all];\
pipenv run pip install --no-deps file:plugins/aea-ledger-ethereum;\
pipenv run pip install --no-deps file:plugins/aea-ledger-cosmos;\
pipenv run pip install --no-deps file:plugins/aea-ledger-fetchai;\
pipenv run pip install --no-deps file:plugins/aea-cli-ipfs;\
poetry install --with dev,docs,packages,tools,testing;\
poetry run pip install -e .[all];\
poetry run pip install --no-deps file:plugins/aea-ledger-ethereum;\
poetry run pip install --no-deps file:plugins/aea-ledger-cosmos;\
poetry run pip install --no-deps file:plugins/aea-ledger-fetchai;\
poetry run pip install --no-deps file:plugins/aea-cli-ipfs;\
echo "Enter virtual environment with all development dependencies now: 'pipenv shell'.";\
else\
echo "In a virtual environment! Exit first: 'exit'.";\
Expand Down
Loading

0 comments on commit 813bd60

Please sign in to comment.