Open vsmelov opened 1 year ago
Also required to make a change in "tox.ini"
[testenv:lint]
deps =
black==22.1.0
flake8==3.9.1
isort==5.8.0
mypy==1.1.1. <<<<<<
Also I believe there should be a not to use python version below 3.10 because tox uses my last installed version "3.11" and I have this error
(venv) vladimirsmelov@Vladimirs-MacBook-Air vsmelov_brownie % tox -e lint
.pkg: _optional_hooks> python /opt/homebrew/Cellar/tox/4.4.7/libexec/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: get_requires_for_build_sdist> python /opt/homebrew/Cellar/tox/4.4.7/libexec/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: prepare_metadata_for_build_wheel> python /opt/homebrew/Cellar/tox/4.4.7/libexec/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
.pkg: build_sdist> python /opt/homebrew/Cellar/tox/4.4.7/libexec/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
lint: install_package_deps> python -I -m pip install aiohttp==3.8.3 aiosignal==1.2.0 asttokens==2.0.5 async-timeout==4.0.2 attrs==22.1.0 base58==2.1.1 bitarray==2.6.0 black==22.10.0 certifi==2022.9.24 charset-normalizer==2.1.1 click==8.1.3 cytoolz==0.12.0 dataclassy==0.11.1 eip712==0.1.0 eth-abi==2.2.0 eth-account==0.5.9 eth-event==1.2.3 'eth-hash[pycryptodome]==0.3.3' eth-keyfile==0.5.1 eth-keys==0.3.4 eth-rlp==0.2.1 eth-typing==2.3.0 eth-utils==1.10.0 execnet==1.9.0 frozenlist==1.3.1 hexbytes==0.2.3 hypothesis==6.27.3 idna==3.4 inflection==0.5.0 iniconfig==1.1.1 ipfshttpclient==0.8.0a2 jsonschema==3.2.0 lazy-object-proxy==1.7.1 lru-dict==1.1.8 multiaddr==0.0.9 multidict==6.0.2 mypy-extensions==0.4.3 mythx-models==1.9.1 netaddr==0.8.0 packaging==21.3 parsimonious==0.8.1 pathspec==0.10.1 platformdirs==2.5.2 pluggy==1.0.0 prompt-toolkit==3.0.31 protobuf==3.19.5 psutil==5.9.2 py-solc-ast==1.2.9 py-solc-x==1.1.1 py==1.11.0 pycryptodome==3.15.0 pygments-lexer-solidity==0.7.0 pygments==2.13.0 pyjwt==1.7.1 pyparsing==3.0.9 pyrsistent==0.18.1 pytest-forked==1.4.0 pytest-xdist==1.34.0 pytest==6.2.5 python-dateutil==2.8.1 python-dotenv==0.16.0 pythx==1.6.1 pyyaml==5.4.1 requests==2.28.1 rlp==2.0.1 semantic-version==2.10.0 six==1.16.0 sortedcontainers==2.4.0 toml==0.10.2 tomli==2.0.1 toolz==0.12.0 tqdm==4.64.1 typing-extensions==4.4.0 urllib3==1.26.12 varint==1.0.2 vvm==0.1.0 vyper==0.3.7 wcwidth==0.2.5 web3==5.31.3 websockets==9.1 wheel==0.37.1 wrapt==1.14.1 yarl==1.8.1
Collecting aiohttp==3.8.3
Using cached aiohttp-3.8.3-cp311-cp311-macosx_11_0_arm64.whl (332 kB)
Collecting aiosignal==1.2.0
Using cached aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
Collecting asttokens==2.0.5
Using cached asttokens-2.0.5-py2.py3-none-any.whl (20 kB)
Collecting async-timeout==4.0.2
Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting attrs==22.1.0
Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB)
Collecting base58==2.1.1
Using cached base58-2.1.1-py3-none-any.whl (5.6 kB)
Collecting bitarray==2.6.0
Using cached bitarray-2.6.0.tar.gz (102 kB)
Preparing metadata (setup.py) ... done
Collecting black==22.10.0
Using cached black-22.10.0-cp311-cp311-macosx_11_0_arm64.whl (1.2 MB)
Collecting certifi==2022.9.24
Using cached certifi-2022.9.24-py3-none-any.whl (161 kB)
Collecting charset-normalizer==2.1.1
Using cached charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Requirement already satisfied: click==8.1.3 in ./.tox/lint/lib/python3.11/site-packages (8.1.3)
Collecting cytoolz==0.12.0
Using cached cytoolz-0.12.0.tar.gz (502 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting dataclassy==0.11.1
Using cached dataclassy-0.11.1-py3-none-any.whl (23 kB)
Collecting eip712==0.1.0
Using cached eip712-0.1.0-py3-none-any.whl (13 kB)
Collecting eth-abi==2.2.0
Using cached eth_abi-2.2.0-py3-none-any.whl (28 kB)
Collecting eth-account==0.5.9
Using cached eth_account-0.5.9-py3-none-any.whl (101 kB)
Collecting eth-event==1.2.3
Using cached eth_event-1.2.3-py3-none-any.whl (7.3 kB)
Collecting eth-hash[pycryptodome]==0.3.3
Using cached eth_hash-0.3.3-py3-none-any.whl (8.9 kB)
Collecting eth-keyfile==0.5.1
Using cached eth_keyfile-0.5.1-py3-none-any.whl (8.3 kB)
Collecting eth-keys==0.3.4
Using cached eth_keys-0.3.4-py3-none-any.whl (21 kB)
Collecting eth-rlp==0.2.1
Using cached eth_rlp-0.2.1-py3-none-any.whl (5.0 kB)
Collecting eth-typing==2.3.0
Using cached eth_typing-2.3.0-py3-none-any.whl (6.2 kB)
Collecting eth-utils==1.10.0
Using cached eth_utils-1.10.0-py3-none-any.whl (24 kB)
Collecting execnet==1.9.0
Using cached execnet-1.9.0-py2.py3-none-any.whl (39 kB)
Collecting frozenlist==1.3.1
Using cached frozenlist-1.3.1.tar.gz (66 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting hexbytes==0.2.3
Using cached hexbytes-0.2.3-py3-none-any.whl (6.4 kB)
Collecting hypothesis==6.27.3
Using cached hypothesis-6.27.3-py3-none-any.whl (384 kB)
Collecting idna==3.4
Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting inflection==0.5.0
Using cached inflection-0.5.0-py2.py3-none-any.whl (5.8 kB)
Collecting iniconfig==1.1.1
Using cached iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting ipfshttpclient==0.8.0a2
Using cached ipfshttpclient-0.8.0a2-py3-none-any.whl (82 kB)
Collecting jsonschema==3.2.0
Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting lazy-object-proxy==1.7.1
Using cached lazy-object-proxy-1.7.1.tar.gz (41 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting lru-dict==1.1.8
Using cached lru-dict-1.1.8.tar.gz (10 kB)
Preparing metadata (setup.py) ... done
Collecting multiaddr==0.0.9
Using cached multiaddr-0.0.9-py2.py3-none-any.whl (16 kB)
Collecting multidict==6.0.2
Using cached multidict-6.0.2.tar.gz (50 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting mypy-extensions==0.4.3
Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Collecting mythx-models==1.9.1
Using cached mythx_models-1.9.1-py2.py3-none-any.whl (82 kB)
Collecting netaddr==0.8.0
Using cached netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)
Collecting packaging==21.3
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting parsimonious==0.8.1
Using cached parsimonious-0.8.1.tar.gz (45 kB)
Preparing metadata (setup.py) ... done
Collecting pathspec==0.10.1
Using cached pathspec-0.10.1-py3-none-any.whl (27 kB)
Collecting platformdirs==2.5.2
Using cached platformdirs-2.5.2-py3-none-any.whl (14 kB)
Collecting pluggy==1.0.0
Using cached pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Collecting prompt-toolkit==3.0.31
Using cached prompt_toolkit-3.0.31-py3-none-any.whl (382 kB)
Collecting protobuf==3.19.5
Using cached protobuf-3.19.5-py2.py3-none-any.whl (162 kB)
Collecting psutil==5.9.2
Using cached psutil-5.9.2.tar.gz (479 kB)
Preparing metadata (setup.py) ... done
Collecting py-solc-ast==1.2.9
Using cached py_solc_ast-1.2.9-py3-none-any.whl (10 kB)
Collecting py-solc-x==1.1.1
Using cached py_solc_x-1.1.1-py3-none-any.whl (15 kB)
Collecting py==1.11.0
Using cached py-1.11.0-py2.py3-none-any.whl (98 kB)
Collecting pycryptodome==3.15.0
Using cached pycryptodome-3.15.0.tar.gz (4.5 MB)
Preparing metadata (setup.py) ... done
Collecting pygments-lexer-solidity==0.7.0
Using cached pygments-lexer-solidity-0.7.0.tar.gz (7.3 kB)
Preparing metadata (setup.py) ... done
Collecting pygments==2.13.0
Using cached Pygments-2.13.0-py3-none-any.whl (1.1 MB)
Collecting pyjwt==1.7.1
Using cached PyJWT-1.7.1-py2.py3-none-any.whl (18 kB)
Collecting pyparsing==3.0.9
Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting pyrsistent==0.18.1
Using cached pyrsistent-0.18.1.tar.gz (100 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pytest-forked==1.4.0
Using cached pytest_forked-1.4.0-py3-none-any.whl (4.9 kB)
Collecting pytest-xdist==1.34.0
Using cached pytest_xdist-1.34.0-py2.py3-none-any.whl (36 kB)
Collecting pytest==6.2.5
Using cached pytest-6.2.5-py3-none-any.whl (280 kB)
Collecting python-dateutil==2.8.1
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting python-dotenv==0.16.0
Using cached python_dotenv-0.16.0-py2.py3-none-any.whl (18 kB)
Collecting pythx==1.6.1
Using cached pythx-1.6.1-py2.py3-none-any.whl (39 kB)
Collecting pyyaml==5.4.1
Using cached PyYAML-5.4.1.tar.gz (175 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting requests==2.28.1
Using cached requests-2.28.1-py3-none-any.whl (62 kB)
Collecting rlp==2.0.1
Using cached rlp-2.0.1-py2.py3-none-any.whl (20 kB)
Collecting semantic-version==2.10.0
Using cached semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)
Collecting six==1.16.0
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting sortedcontainers==2.4.0
Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Collecting toml==0.10.2
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Requirement already satisfied: tomli==2.0.1 in ./.tox/lint/lib/python3.11/site-packages (2.0.1)
Collecting toolz==0.12.0
Using cached toolz-0.12.0-py3-none-any.whl (55 kB)
Collecting tqdm==4.64.1
Using cached tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
Collecting typing-extensions==4.4.0
Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Collecting urllib3==1.26.12
Using cached urllib3-1.26.12-py2.py3-none-any.whl (140 kB)
Collecting varint==1.0.2
Using cached varint-1.0.2.tar.gz (1.9 kB)
Preparing metadata (setup.py) ... done
Collecting vvm==0.1.0
Using cached vvm-0.1.0-py3-none-any.whl (11 kB)
ERROR: Ignored the following versions that require a different python version: 0.3.0 Requires-Python >=3.7,<3.10; 0.3.1 Requires-Python >=3.7,<3.10; 0.3.2 Requires-Python >=3.7,<3.11; 0.3.3 Requires-Python >=3.7,<3.11; 0.3.4 Requires-Python >=3.7,<3.11; 0.3.5 Requires-Python >=3.7,<3.11; 0.3.6 Requires-Python >=3.7,<3.11; 0.3.7 Requires-Python >=3.7,<3.11; 3.0.0 Requires-Python >=3.6, <3.11; 3.1.0 Requires-Python >=3.6, <3.11
ERROR: Could not find a version that satisfies the requirement vyper==0.3.7 (from versions: 0.1.0b1, 0.1.0b2, 0.1.0b3, 0.1.0b4, 0.1.0b5, 0.1.0b6, 0.1.0b7, 0.1.0b8, 0.1.0b9, 0.1.0b10, 0.1.0b11, 0.1.0b12, 0.1.0b13, 0.1.0b14, 0.1.0b15, 0.1.0b16, 0.1.0b17, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.8, 0.2.9, 0.2.10, 0.2.11, 0.2.12, 0.2.13, 0.2.14, 0.2.15, 0.2.16)
ERROR: No matching distribution found for vyper==0.3.7
lint: exit 1 (24.69 seconds) /Users/vladimirsmelov/PycharmProjects/vsmelov_brownie> python -I -m pip install aiohttp==3.8.3 aiosignal==1.2.0 asttokens==2.0.5 async-timeout==4.0.2 attrs==22.1.0 base58==2.1.1 bitarray==2.6.0 black==22.10.0 certifi==2022.9.24 charset-normalizer==2.1.1 click==8.1.3 cytoolz==0.12.0 dataclassy==0.11.1 eip712==0.1.0 eth-abi==2.2.0 eth-account==0.5.9 eth-event==1.2.3 'eth-hash[pycryptodome]==0.3.3' eth-keyfile==0.5.1 eth-keys==0.3.4 eth-rlp==0.2.1 eth-typing==2.3.0 eth-utils==1.10.0 execnet==1.9.0 frozenlist==1.3.1 hexbytes==0.2.3 hypothesis==6.27.3 idna==3.4 inflection==0.5.0 iniconfig==1.1.1 ipfshttpclient==0.8.0a2 jsonschema==3.2.0 lazy-object-proxy==1.7.1 lru-dict==1.1.8 multiaddr==0.0.9 multidict==6.0.2 mypy-extensions==0.4.3 mythx-models==1.9.1 netaddr==0.8.0 packaging==21.3 parsimonious==0.8.1 pathspec==0.10.1 platformdirs==2.5.2 pluggy==1.0.0 prompt-toolkit==3.0.31 protobuf==3.19.5 psutil==5.9.2 py-solc-ast==1.2.9 py-solc-x==1.1.1 py==1.11.0 pycryptodome==3.15.0 pygments-lexer-solidity==0.7.0 pygments==2.13.0 pyjwt==1.7.1 pyparsing==3.0.9 pyrsistent==0.18.1 pytest-forked==1.4.0 pytest-xdist==1.34.0 pytest==6.2.5 python-dateutil==2.8.1 python-dotenv==0.16.0 pythx==1.6.1 pyyaml==5.4.1 requests==2.28.1 rlp==2.0.1 semantic-version==2.10.0 six==1.16.0 sortedcontainers==2.4.0 toml==0.10.2 tomli==2.0.1 toolz==0.12.0 tqdm==4.64.1 typing-extensions==4.4.0 urllib3==1.26.12 varint==1.0.2 vvm==0.1.0 vyper==0.3.7 wcwidth==0.2.5 web3==5.31.3 websockets==9.1 wheel==0.37.1 wrapt==1.14.1 yarl==1.8.1 pid=75211
.pkg: _exit> python /opt/homebrew/Cellar/tox/4.4.7/libexec/lib/python3.11/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__
lint: FAIL code 1 (25.08 seconds)
evaluation failed :( (25.12 seconds)
I fix it with
basepython=python3.9
inside "tox.ini"
Environment information
brownie
Version: master branchWhat was wrong?
I tried to follow https://github.com/eth-brownie/brownie/blob/master/CONTRIBUTING.md
How can it be fixed?
update
with
then you have pip install version
you fix it with
then
pip install -r requirements-dev.txt
worksthe final requirements-dev.txt