Skip to content

Conversation

@abrookins
Copy link
Collaborator

@abrookins abrookins commented Dec 24, 2025

This PR fixes packaging issues with Poetry 2.0+ and wheel builds.

Changes

  • Add redis_om to packages in pyproject.toml (from include redis_om package #718 by @dotlambda)
  • Add redis_om/README.md and redis_om/__init__.py placeholders so the directory exists in git
  • Update .gitignore to track placeholder files but ignore generated files
  • Update make_sync.py to preserve README.md when regenerating
  • Add include with format = ["sdist", "wheel"] to override .gitignore and include generated redis_om/ files in wheel builds
  • Remove docs/* and images/* from wheel builds (shouldn't be installed to site-packages)

Background

The redis_om/ directory is auto-generated by make sync from aredis_om/. Previously it was fully gitignored, but:

  1. Poetry 2.0+ validates that declared packages exist during install, causing CI failures
  2. Gitignored files weren't being included in wheel builds

Wheel Contents Verification

After this fix, make dist produces a wheel with both packages:

  • aredis_om/ - async version (source of truth)
  • redis_om/ - sync version (generated)
  • No docs/ or images/ directories (correctly excluded)

Closes #718
Closes #713
Closes #731

dotlambda and others added 3 commits September 30, 2025 10:37
- Add redis_om/README.md placeholder so package directory exists
- Update .gitignore to track README.md but ignore generated files
- Update make_sync.py to preserve README.md when regenerating
abrookins and others added 3 commits December 23, 2025 16:17
- Add redis_om to packages AND include with format=[sdist, wheel] to
  override .gitignore exclusion
- Remove docs/* and images/* from include (shouldn't be in wheels)

Fixes all issues from #713:
1. redis_om/ missing from wheel
2. docs/ and images/ incorrectly in wheel
3. python-ulid already updated in prior commit

Closes #713
Closes #731
@abrookins abrookins merged commit 82b917c into main Dec 24, 2025
15 checks passed
@abrookins abrookins deleted the patch-1 branch December 24, 2025 20:25
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.

Fix packaging issues for wheel builds Packaging issues

4 participants