Skip to content

Fix packaging issues for wheel builds #731

@abrookins

Description

@abrookins

Problem

Several packaging issues prevent clean installation:

  1. redis_om/ package not included in wheel - The sync version of the library is missing from built wheels
  2. docs/ and images/ incorrectly in wheel - Non-code files are being installed to site-packages
  3. python-ulid pinned too restrictively - Version constraint ^1.0.3 is outdated (v3 released in 2024)

Current State

packages = [
    { "include" = "aredis_om" },
]
include=[
    "docs/*",
    "images/*",
    "redis_om/**/*",
]

Solution

Update pyproject.toml:

packages = [
    { "include" = "aredis_om" },
    { "include" = "redis_om" },
]
# Remove docs and images from include, or use exclude for wheel

Update dependency:

python-ulid = ">=1.0.3,<4.0.0"

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions