Skip to content

chore(packaging): add missing __init__.py for cvs.tests subpackages - #314

Open
speriaswamy-amd wants to merge 1 commit into
mainfrom
speriaswamy/xdit-01-packaging-init
Open

chore(packaging): add missing __init__.py for cvs.tests subpackages#314
speriaswamy-amd wants to merge 1 commit into
mainfrom
speriaswamy/xdit-01-packaging-init

Conversation

@speriaswamy-amd

Copy link
Copy Markdown
Contributor

Part 1 of 12 in a stack that replaces #184. Base: main.

Why

setup.py builds its package list with find_packages(where="cvs"), which only walks directories containing __init__.py. Most cvs/tests/* suite directories have none, so they are silently dropped from the sdist and from pip install / pip install -e ..

What changed

  • Added 15 empty __init__.py files under cvs/tests/.

This makes 17 subpackages discoverable. Two of them — tests.inference.pytorch_xdit and tests.training.jaxmaxtext — already had their own __init__.py and were excluded only because a parent directory did not.

No behaviour change for anyone running from a source checkout.

setup.py builds its package list with find_packages(where="cvs"), which only
walks directories containing __init__.py. Most cvs/tests/* suite directories
had none, so they were silently dropped from the sdist and from `pip install`
/ `pip install -e .` installs.

Adding the 15 missing files makes 17 subpackages discoverable, including
tests.inference.pytorch_xdit and tests.training.jaxmaxtext, which were
excluded only because an intermediate parent directory lacked __init__.py.

Co-Authored-By: Claude <noreply@anthropic.com>

@amd-droy amd-droy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me. Thanks Surya.

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.

2 participants