Skip to content

Conversation

@andreatgretel
Copy link
Contributor

πŸ“‹ Summary

Adds a hatchling metadata hook to automatically copy the root README.md to the data-designer package during builds, eliminating the need for manual copy steps in the Makefile.

πŸ”„ Changes

✨ Added

πŸ”§ Changed

πŸ—‘οΈ Removed

  • Manual cp README.md steps from 6 Makefile targets: install, install-dev, install-dev-notebooks, test-interface-isolated, test-e2e, build-interface

πŸ” Attention Areas

⚠️ Reviewers: Please pay special attention to the following:

  • packages/data-designer/hatch_build.py - This is a metadata hook (not a build hook) because hatchling validates README existence during metadata resolution, before build hooks run. This was tested to work correctly.

πŸ€– Generated with AI

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This might seem a weird location for the file but it's hatchling's default, we could change it

Copy link
Contributor

Choose a reason for hiding this comment

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

it does kind of weird me out a bit lol

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to /dev-tools/hatch_build.py

@andreatgretel andreatgretel marked this pull request as ready for review January 29, 2026 14:36
@andreatgretel andreatgretel requested a review from a team as a code owner January 29, 2026 14:36
@andreatgretel
Copy link
Contributor Author

Checked that this works as intended (delete README > run uv sync, uv build, make commands etc. > README created). Merging

@andreatgretel andreatgretel force-pushed the andreatgretel/fix/uv-sync-or-build-requires-copying-README branch from dc1ddf5 to 2583e4a Compare January 29, 2026 16:08
@andreatgretel andreatgretel merged commit e46fbd0 into main Jan 29, 2026
46 checks passed
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.

3 participants