Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/library/cli/eest.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The `eest` CLI

::: mkdocs-click
:module: cli.eest.cli
:module: ethereum_test_cli.eest.cli
:command: eest
:depth: 1
:list_subcommands: true
2 changes: 1 addition & 1 deletion docs/library/cli/evm_bytes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The `evm_bytes` CLI

::: mkdocs-click
:module: cli.evm_bytes
:module: ethereum_test_cli.evm_bytes
:command: evm_bytes
:depth: 1
:list_subcommands: true
2 changes: 1 addition & 1 deletion docs/scripts/gen_test_case_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
from click.testing import CliRunner

import pytest_plugins.filler.gen_test_doc.gen_test_doc as gen_test_doc
from cli.pytest_commands.fill import fill
from config import DocsConfig
from ethereum_test_cli.pytest_commands.fill import fill

importlib.reload(gen_test_doc) # get changes in plugin to trigger an update for `mkdocs serve`

Expand Down
52 changes: 26 additions & 26 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,30 +83,30 @@ docs = [
]

[project.scripts]
fill = "cli.pytest_commands.fill:fill"
phil = "cli.pytest_commands.fill:phil"
execute = "cli.pytest_commands.execute:execute"
attac = "cli.pytest_commands.execute:execute"
checkfixtures = "cli.check_fixtures:check_fixtures"
check_eip_versions = "cli.pytest_commands.check_eip_versions:check_eip_versions"
consume = "cli.pytest_commands.consume:consume"
protec = "cli.pytest_commands.consume:consume"
checklist = "cli.pytest_commands.checklist:checklist"
generate_checklist_stubs = "cli.generate_checklist_stubs:generate_checklist_stubs"
genindex = "cli.gen_index:generate_fixtures_index_cli"
gentest = "cli.gentest:generate"
eofwrap = "cli.eofwrap:eof_wrap"
pyspelling_soft_fail = "cli.tox_helpers:pyspelling"
markdownlintcli2_soft_fail = "cli.tox_helpers:markdownlint"
order_fixtures = "cli.order_fixtures:order_fixtures"
evm_bytes = "cli.evm_bytes:evm_bytes"
hasher = "cli.hasher:main"
eest = "cli.eest.cli:eest"
fillerconvert = "cli.fillerconvert.fillerconvert:main"
groupstats = "cli.show_pre_alloc_group_stats:main"
extract_config = "cli.extract_config:extract_config"
compare_fixtures = "cli.compare_fixtures:main"
modify_static_test_gas_limits = "cli.modify_static_test_gas_limits:main"
fill = "ethereum_test_cli.pytest_commands.fill:fill"
phil = "ethereum_test_cli.pytest_commands.fill:phil"
execute = "ethereum_test_cli.pytest_commands.execute:execute"
attac = "ethereum_test_cli.pytest_commands.execute:execute"
checkfixtures = "ethereum_test_cli.check_fixtures:check_fixtures"
check_eip_versions = "ethereum_test_cli.pytest_commands.check_eip_versions:check_eip_versions"
consume = "ethereum_test_cli.pytest_commands.consume:consume"
protec = "ethereum_test_cli.pytest_commands.consume:consume"
checklist = "ethereum_test_cli.pytest_commands.checklist:checklist"
generate_checklist_stubs = "ethereum_test_cli.generate_checklist_stubs:generate_checklist_stubs"
genindex = "ethereum_test_cli.gen_index:generate_fixtures_index_cli"
gentest = "ethereum_test_cli.gentest:generate"
eofwrap = "ethereum_test_cli.eofwrap:eof_wrap"
pyspelling_soft_fail = "ethereum_test_cli.tox_helpers:pyspelling"
markdownlintcli2_soft_fail = "ethereum_test_cli.tox_helpers:markdownlint"
order_fixtures = "ethereum_test_cli.order_fixtures:order_fixtures"
evm_bytes = "ethereum_test_cli.evm_bytes:evm_bytes"
hasher = "ethereum_test_cli.hasher:main"
eest = "ethereum_test_cli.eest.cli:eest"
fillerconvert = "ethereum_test_cli.fillerconvert.fillerconvert:main"
groupstats = "ethereum_test_cli.show_pre_alloc_group_stats:main"
extract_config = "ethereum_test_cli.extract_config:extract_config"
compare_fixtures = "ethereum_test_cli.compare_fixtures:main"
modify_static_test_gas_limits = "ethereum_test_cli.modify_static_test_gas_limits:main"

[tool.setuptools.packages.find]
where = ["src"]
Expand All @@ -119,8 +119,8 @@ exclude = ["tests/static/**"]
ethereum_test_forks = ["forks/contracts/*.bin"]
"pytest_plugins.execute" = ["eth_config/networks.yml"]
"pytest_plugins" = ["eels_resolutions.json"]
"cli.eest.make" = ["templates/*.j2"]
"cli.pytest_commands" = ["pytest_ini_files/*.ini"]
"ethereum_test_cli.eest.make" = ["templates/*.j2"]
"ethereum_test_cli.pytest_commands" = ["pytest_ini_files/*.ini"]
"ethereum_test_types" = ["kzg_trusted_setup.txt"]

[tool.ruff]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
shell:

```
from src.cli.pytest_commands.fill import fill
from src.ethereum_test_cli.pytest_commands.fill import fill
from click.testing import CliRunner

runner = CliRunner()
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from unittest.mock import patch

from cli.pytest_commands.fill import FillCommand
from ethereum_test_cli.pytest_commands.fill import FillCommand


def test_generate_all_formats_creates_two_phase_execution():
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/ethereum_test_specs/tests/test_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pytest
from click.testing import CliRunner

import cli.check_fixtures
import ethereum_test_cli.check_fixtures
from ethereum_clis import TransitionTool
from ethereum_test_base_types import AccessList, Account, Address, Hash
from ethereum_test_exceptions import TransactionException
Expand Down Expand Up @@ -52,7 +52,7 @@ def test_check_helper_fixtures():
"--quiet",
"--stop-on-error",
]
result = runner.invoke(cli.check_fixtures.check_fixtures, args)
result = runner.invoke(ethereum_test_cli.check_fixtures.check_fixtures, args)
assert result.exit_code == 0, (
"check_fixtures detected errors in the json fixtures:" + f"\n{result}"
)
Expand Down
2 changes: 1 addition & 1 deletion src/pytest_plugins/consume/consume.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import requests
import rich

from cli.gen_index import generate_fixtures_index
from ethereum_test_cli.gen_index import generate_fixtures_index
from ethereum_test_fixtures import BaseFixture
from ethereum_test_fixtures.consume import IndexFile, TestCases
from ethereum_test_forks import get_forks, get_relative_fork_markers, get_transition_forks
Expand Down
2 changes: 1 addition & 1 deletion src/pytest_plugins/filler/filler.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
from filelock import FileLock
from pytest_metadata.plugin import metadata_key # type: ignore

from cli.gen_index import generate_fixtures_index
from ethereum_clis import TransitionTool
from ethereum_clis.clis.geth import FixtureConsumerTool
from ethereum_test_base_types import Account, Address, Alloc, ReferenceSpec
from ethereum_test_cli.gen_index import generate_fixtures_index
from ethereum_test_fixtures import (
BaseFixture,
FixtureCollector,
Expand Down
4 changes: 3 additions & 1 deletion src/pytest_plugins/filler/tests/test_output_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def _run_fill(
disable_capture_output: bool = False,
) -> pytest.RunResult:
"""Run the fill command with the specified output directory and clean flag."""
pytester.copy_example(name="src/cli/pytest_commands/pytest_ini_files/pytest-fill.ini")
pytester.copy_example(
name="src/ethereum_test_cli/pytest_commands/pytest_ini_files/pytest-fill.ini"
)
args = [
"-c",
"pytest-fill.ini",
Expand Down
4 changes: 3 additions & 1 deletion src/pytest_plugins/filler/tests/test_prealloc_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,9 @@ def test_pre_alloc_grouping_by_test_type(
for i, test in enumerate(test_definitions):
test_module = tests_dir / f"test_{i}.py"
test_module.write_text(test.format())
pytester.copy_example(name="src/cli/pytest_commands/pytest_ini_files/pytest-fill.ini")
pytester.copy_example(
name="src/ethereum_test_cli/pytest_commands/pytest_ini_files/pytest-fill.ini"
)
args = [
"-c",
"pytest-fill.ini",
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ extras = docs
passenv =
GITHUB_ACTIONS
GITHUB_STEP_SUMMARY
commands = python -c "import src.cli.tox_helpers; src.cli.tox_helpers.codespell()"
commands = python -c "import src.ethereum_test_cli.tox_helpers; src.ethereum_test_cli.tox_helpers.codespell()"


[testenv:markdownlint]
description = Lint markdown files (markdownlint)
extras = docs
commands = python -c "import src.cli.tox_helpers; src.cli.tox_helpers.markdownlint()"
commands = python -c "import src.ethereum_test_cli.tox_helpers; src.ethereum_test_cli.tox_helpers.markdownlint()"

[testenv:changelog]
description = Validate changelog entries (changelog)
extras = docs
commands = python -c "import src.cli.tox_helpers; src.cli.tox_helpers.validate_changelog()"
commands = python -c "import src.ethereum_test_cli.tox_helpers; src.ethereum_test_cli.tox_helpers.validate_changelog()"

[testenv:mkdocs]
description = Build documentation in strict mode (mkdocs)
Expand Down
Loading