-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: python dependencies in integration tests are old (#1325)
* Problem: python dependencies in integration tests are old Solution: - update python to 3.11 - update dependencies fix lint add eth-bloom add eth-bloom use eth_hash inplace of pysha3 gen pb2.py with protoc fix format fix format fix test Revert "gen pb2.py with protoc" This reverts commit cbb83ca. fix dup proto fix sha fix web3.py fix test cleanup amount_dict * hexdigest * remove any_pb2 * fix test * cleanup * rm b64encode --------- Co-authored-by: mmsqe <[email protected]>
- Loading branch information
Showing
11 changed files
with
1,566 additions
and
1,290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,30 +5,27 @@ description = "" | |
authors = ["chain-dev <[email protected]>"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
pytest = "^7.0.1" | ||
pytest-github-actions-annotate-failures = "^0.1.1" | ||
flake8 = "^4.0.1" | ||
black = "^22.3.0" | ||
flake8-black = "^0.3.2" | ||
flake8-isort = "^6.1.1" | ||
pep8-naming = "^0.11.1" | ||
protobuf = "^3.13.0" | ||
grpcio = "^1.53.2" | ||
pyyaml = "^6.0.1" | ||
python-dateutil = "^2.8.1" | ||
web3 = "^6.0.0b6" | ||
eth-bloom = "^1.0.4" | ||
python-dotenv = "^0.19.2" | ||
pystarport = { git = "https://github.com/crypto-com/pystarport.git", branch = "main", rev = "403b845" } | ||
websockets = "^10.3" | ||
toml = "^0.10.2" | ||
pysha3 = "^1.0.2" | ||
jsonnet = "^0.18.0" | ||
eth-account = "^0.7.0" | ||
python = "^3.9" | ||
pytest = "^8.0" | ||
pytest-github-actions-annotate-failures = "^0.2" | ||
flake8 = "^7.0" | ||
black = "^24.2" | ||
flake8-black = "^0.3" | ||
flake8-isort = "^6.1" | ||
pep8-naming = "^0.13" | ||
protobuf = "^4.25" | ||
python-dateutil = "^2.8" | ||
web3 = "^6.15" | ||
python-dotenv = "^1.0" | ||
pystarport = { git = "https://github.com/crypto-com/pystarport.git", branch = "main" } | ||
websockets = "^12.0" | ||
toml = "^0" | ||
jsonnet = "^0" | ||
eth-account = "^0.11" | ||
cprotobuf = "^0.1.11" | ||
pathspec = "^0.10.1" | ||
flaky = "^3.7.0" | ||
flaky = "^3.7" | ||
eth-bloom = "^3.0" | ||
eth-hash = "^0" | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,26 @@ | ||
{ poetry2nix, lib, python310 }: | ||
{ poetry2nix, lib, python311 }: | ||
poetry2nix.mkPoetryEnv { | ||
projectDir = ../integration_tests; | ||
python = python310; | ||
overrides = poetry2nix.overrides.withDefaults (lib.composeManyExtensions [ | ||
(self: super: | ||
let | ||
buildSystems = { | ||
eth-bloom = [ "setuptools" ]; | ||
pystarport = [ "poetry-core" ]; | ||
cprotobuf = [ "setuptools" ]; | ||
durations = [ "setuptools" ]; | ||
multitail2 = [ "setuptools" ]; | ||
pytest-github-actions-annotate-failures = [ "setuptools" ]; | ||
flake8-black = [ "setuptools" ]; | ||
flake8-isort = [ "hatchling" ]; | ||
multiaddr = [ "setuptools" ]; | ||
}; | ||
in | ||
lib.mapAttrs | ||
(attr: systems: super.${attr}.overridePythonAttrs | ||
(old: { | ||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ map (a: self.${a}) systems; | ||
})) | ||
buildSystems | ||
) | ||
(self: super: { | ||
eth-bloom = super.eth-bloom.overridePythonAttrs { | ||
preConfigure = '' | ||
substituteInPlace setup.py --replace \'setuptools-markdown\' "" | ||
''; | ||
python = python311; | ||
overrides = poetry2nix.overrides.withDefaults (self: super: | ||
let | ||
buildSystems = { | ||
pystarport = [ "poetry-core" ]; | ||
cprotobuf = [ "setuptools" ]; | ||
durations = [ "setuptools" ]; | ||
multitail2 = [ "setuptools" ]; | ||
pytest-github-actions-annotate-failures = [ "setuptools" ]; | ||
flake8-black = [ "setuptools" ]; | ||
flake8-isort = [ "hatchling" ]; | ||
pyunormalize = [ "setuptools" ]; | ||
eth-bloom = [ "setuptools" ]; | ||
}; | ||
pyyaml-include = super.pyyaml-include.overridePythonAttrs { | ||
preConfigure = '' | ||
substituteInPlace setup.py --replace "setup()" "setup(version=\"1.3\")" | ||
''; | ||
}; | ||
}) | ||
]); | ||
in | ||
lib.mapAttrs | ||
(attr: systems: super.${attr}.overridePythonAttrs | ||
(old: { | ||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ map (a: self.${a}) systems; | ||
})) | ||
buildSystems | ||
); | ||
} |