Skip to content

lablink-allocator-service v0.0.2a0

Pre-release
Pre-release

Choose a tag to compare

@eberrigan eberrigan released this 03 Oct 21:11
· 32 commits to main since this release
f8061d2

lablink-allocator-service v0.0.2a0

πŸŽ‰ Major Changes

Package-based Architecture (#179)

  • Restructured allocator as installable Python package published to PyPI
  • Added console script entry points: lablink-allocator, generate-init-sql
  • Production Docker images now install from PyPI instead of copying source
  • Enabled version pinning and reproducible builds

πŸ“¦ Installation

Using pip:

pip install lablink-allocator-service==0.0.2a0

Using uv (recommended):

uv pip install lablink-allocator-service==0.0.2a0

Running:

generate-init-sql    # Generate PostgreSQL init script
lablink-allocator    # Start Flask application

✨ New Features

  • Console script entry points: lablink-allocator, generate-init-sql
  • Module execution support: python -m lablink_allocator_service
  • Entry point callable verification in CI/CD

πŸ› Bug Fixes

  • Fixed empty main() function that prevented Flask from starting
  • Consolidated duplicate if __name__ == "__main__" blocks
  • Fixed incorrect indentation making main() unreachable
  • Renamed generate-init-sql.py β†’ generate_init_sql.py (Python convention)

πŸ”§ Improvements

  • Virtual environment support in dev and production Docker images
  • Entry point callable tests (catches scope/indentation bugs)
  • Better error detection before deployment

πŸ“‹ Requirements

  • Python β‰₯3.9
  • PostgreSQL (for production)

πŸ€– Generated with Claude Code