Skip to content

Instantly share code, notes, and snippets.

View cutwater's full-sized avatar

Alexander Saprykin cutwater

  • Red Hat
  • Krakow, Poland
View GitHub Profile
@cutwater
cutwater / example-0.1.0.dist-info__METADATA
Created March 10, 2020 20:32
Poetry: Optional dependencies are built as required in wheel
Metadata-Version: 2.1
Name: example
Version: 0.1.0
Summary:
Author: Example User
Author-email: example@example.com
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: psycopg2 (>=2.8.4,<3.0.0)
@cutwater
cutwater / pyproject.toml
Created January 5, 2023 11:18
Bug: `poetry install --only-root` deletes installed extras
[tool.poetry]
name = "sample"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
psycopg2 = {version = "^2.9.5", optional = true}
@cutwater
cutwater / Dockerfile
Last active October 17, 2023 13:37
Django + Poetry Demo Dockerfile
FROM docker.io/library/python:3.11-slim AS base
ARG DEBIAN_FRONTEND=noninteractive
ENV VIRTUAL_ENV=/venv \
PATH="/venv/bin:${PATH}"
RUN set -eux; env apt-get update; \
apt-get install -y --no-install-recommends libpq5; \
rm -rf /var/lib/apt/lists/*