Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialise the repo with a current snapshot of Bunny #1

Merged
merged 7 commits into from
Jan 10, 2025
Merged

Conversation

beforan
Copy link
Member

@beforan beforan commented Jan 10, 2025

Pull Request Contents

🛠️ Repo maintenance

Description

This PR moves Bunny from the hutch-cohort-discovery monorepo to its own standalone repository.

As a result of the move:

  • source structure has changed somewhat to reflect a conventional "src folder" python package.
  • new, more standard pyproject.toml was bootstrapped with uv to better reflect the above convention
  • build tooling is now uv rather than poetry
    • uv will self install the hutch-bunny package as editable for decvelopment.
  • linting and formatting now uses ruff rather than black.
  • tests moved up a level
  • New Dockerfile based on uv's Debian slim image, instead of pure python Debian full using poetry
    • Bunny images are now c. 400MB vs 1.8GB
  • updated dev compose files:
    • standalone Bunny, assumes existing external Database and Upstream Task API.
    • Bunny with Relay and Postgres now references published Relay images, not built from source
  • Updated pandas and numpy; confirmed Bunny works with numpy 2.x
  • Bunny uses psycopg3 (psycopg) as its postgres driver now, rather than sqlalchemy's default of psycopg2. Confirmed working.
  • Bunny targets Python 3.13 now.

Related Issues or other material

  • This PR relates to one or more issues, detailed below

Screenshots, example outputs/behaviour etc.

✅ Added/updated tests?

  • This PR contains relevant tests
    • Or doesn't need to per the below explanation

Tests migrated from the old repo - confirmed passing in new structure / with new tooling.

[optional] What gif best describes this PR or how it makes you feel?

bird mgirating

  • I've completed all actions and tasks detailed in the PR Template

@beforan beforan merged commit 9cd1663 into main Jan 10, 2025
@beforan beforan deleted the repo-init branch January 10, 2025 16:06
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.

1 participant