You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Py pi publication and automation (#33)
* chore: rename src/model to src/initium
* Adopt src/initium package layout
This commit migrates the project from top-level sibling imports to the conventional `initium.*` package namespace and updates the packaging metadata, entry points, and documentation to match the `src/initium` layout. It also adds the packaged `initium.setup_wheels` module and updates CI to invoke the wheel installer via `python -m initium.setup_wheels`.
* Fix test imports for package layout
Update test fixtures and checkpoint reload tests to import the training module from the package namespace (`initium.core_training`) instead of the top-level module. This matches the project layout and ensures the tests exercise the correct module during synthetic training and checkpoint restore flows.
* Fix dnc direct_url detection
Guard against `None` values when checking whether `dnc` was installed from a VCS checkout. This avoids false negatives when `direct_url.json` is missing and keeps the wheel setup logic aligned with git-based installs.
* Add GitHub workflow to publish to PyPI
Add .github/workflows/publish-pypi.yml which builds and validates source/wheel distributions and publishes them to PyPI on published releases. The workflow checks the release commit is reachable from main and that the release tag matches __version__ in src/__init__.py, uses Python 3.12, runs build and twine check, and publishes via pypa/gh-action-pypi-publish with OIDC (no stored PyPI token). Update README.md with publishing instructions and one-time Trusted Publisher setup for the pypi environment.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* formatted
* Rename PyPI package to initium-deeplearning
Update the package metadata and publishing workflow to publish the distribution under `initium-deeplearning` while keeping the Python import namespace as `initium`. The README now documents the new PyPI project name and Trusted Publisher setup so release instructions match the actual package configuration.
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>