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

Work around a packaging issue in biopython. #64

Merged
merged 3 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3.12-slim-bookworm AS build

RUN apt update && \
apt install -y make gcc && \
apt install -y make gcc git && \
apt clean

COPY requirements.txt .
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.12-slim-bookworm AS build
RUN apt-get update && \
apt-get install -y vim wget nginx nginx-extras procps ripgrep make gcc && \
apt-get install -y vim wget nginx nginx-extras procps ripgrep make gcc git && \
apt-get clean

ENV POETRY_VERSION=1.8
Expand Down
126 changes: 57 additions & 69 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ httpx = "^0.24.1"
[tool.poetry.dependencies]
python = "^3.12"
fastapi = "^0.110.0"
# biopython 1.83 fails installation on m1 macs. The issue is fixed upstream so we're pinning to a specific commit until the next release.
biopython = { git = "https://github.com/biopython/biopython.git", rev = "e0731edc892b653dee10b1f68acf795086e6f3f0" }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a comment or TODO here as why ^1.82 version failed and to upgrade when next build is available.

asyncpg = "^0.28.0"
alembic = "^1.11.1"
sgqlc = "^16.3"
Expand All @@ -47,7 +49,6 @@ strcase = "^1.0.0"
linkml-runtime = "^1.6.0"
sqlalchemy_utils = "^0.41.1"
strawberry-graphql = "^0.217.0"
biopython = "^1.82"

[build-system]
requires = ["poetry-core"]
Expand Down
Loading