Skip to content

Publish v0.2.1 to PyPI (prefLabel search fix) #12

@damienriehl

Description

@damienriehl

What needs to happen

v0.2.1 has been released on GitHub but not yet published to PyPI. The current PyPI version (0.2.0) is missing the prefLabel search fix, so anyone installing via pip install folio-python gets a version where search_by_prefix("School") can't find entities with skos:prefLabel = "School".

Option A: Manual upload (one-time)

The built dist files are attached to the v0.2.1 release. To publish:

# Download the dist files from the release, or build locally:
python -m build

# Upload to PyPI:
twine upload dist/folio_python-0.2.1*

Option B: Set up trusted publishing (recommended, one-time setup)

A publish workflow has been added (.github/workflows/publish.yml) that auto-publishes to PyPI whenever a GitHub release is created. To activate it:

  1. Go to https://pypi.org/manage/project/folio-python/settings/publishing/
  2. Click "Add a new publisher"
  3. Fill in:
    • Owner: alea-institute
    • Repository: folio-python
    • Workflow name: publish.yml
    • Environment: pypi
  4. Click "Add"

After this one-time setup, all future GitHub releases will auto-publish to PyPI. For v0.2.1 specifically, you can either:

  • Re-create the release to trigger the workflow, or
  • Do the manual upload above

What's in v0.2.1

  • fix: Index preferred_label (skos:prefLabel) for search — adds prefLabel to alt_label_to_index during class parsing and property_label_to_index during property parsing, so entities are findable by their canonical name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions