Skip to content

Remove __init__.py from bin/ and eval/; add Copybara import rewriting#6

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
cl/930589857
Open

Remove __init__.py from bin/ and eval/; add Copybara import rewriting#6
copybara-service[bot] wants to merge 1 commit into
mainfrom
cl/930589857

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jun 11, 2026

Copy link
Copy Markdown

Remove init.py from bin/ and eval/; add Copybara import rewriting

  • Remove init.py from bin/ and eval/ so they are not treated as part of
    the core installable library.
  • Add reversible Copybara transformations to rewrite imports during export:
    from dpsynth.bin import Xfrom bin import X (and same for eval).
    Since bin/ and eval/ are at the repo root (not inside dpsynth/), the imports
    need rewriting. core.replace is reversible, so PR imports automatically get
    the inverse transformation.
  • Add pytest pythonpath config to pyproject.toml so namespace packages at the
    repo root are importable during test runs.
  • Change the test_local Copybara workflow mode from SQUASH to ITERATIVE so
    that individual commit descriptions are preserved when exporting to GitHub.

@copybara-service copybara-service Bot changed the title Remove __init__.py from bin/ and eval/ directories; update Copybara to not squash commits Remove __init__.py from bin/ and eval/ so they are not treated as part of Jun 11, 2026
- Remove __init__.py from bin/ and eval/ so they are not treated as part of
  the core installable library.
- Add reversible Copybara transformations to rewrite imports during export:
  `from dpsynth.bin import X` → `from bin import X` (and same for eval).
  Since bin/ and eval/ are at the repo root (not inside dpsynth/), the imports
  need rewriting. core.replace is reversible, so PR imports automatically get
  the inverse transformation.
- Add pytest pythonpath config to pyproject.toml so namespace packages at the
  repo root are importable during test runs.
- Change the test_local Copybara workflow mode from SQUASH to ITERATIVE so
  that individual commit descriptions are preserved when exporting to GitHub.

PiperOrigin-RevId: 930589857
@copybara-service copybara-service Bot changed the title Remove __init__.py from bin/ and eval/ so they are not treated as part of Remove __init__.py from bin/ and eval/; add Copybara import rewriting Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants