Skip to content

use immutable dependencies#5

Draft
paulschwoerer wants to merge 2 commits into
mainfrom
chore/immutable-dependencies
Draft

use immutable dependencies#5
paulschwoerer wants to merge 2 commits into
mainfrom
chore/immutable-dependencies

Conversation

@paulschwoerer
Copy link
Copy Markdown
Contributor

@paulschwoerer paulschwoerer commented May 19, 2026

NOTE: sollte gesquash-merged werden

@paulschwoerer paulschwoerer requested a review from lu28282 May 19, 2026 13:28
@paulschwoerer paulschwoerer marked this pull request as draft May 19, 2026 13:29
Comment thread requirements.txt
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ich glaube man will --allow-unsafe nutzen:

pip-compile -v --generate-hashes --allow-unsafe --output-file=requirements.txt requirements.in
--allow-unsafe / --no-allow-unsafe
Pin packages considered unsafe: distribute,
pip, setuptools.

WARNING: Future versions of pip-tools will
enable this behavior by default. Use --no-
allow-unsafe to keep the old behavior. It is
recommended to pass the --allow-unsafe now
to adapt to the upcoming change.

Comment thread .envrc
Copy link
Copy Markdown

@lu28282 lu28282 May 20, 2026

Choose a reason for hiding this comment

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

So in etwa könnte eine .envrc aussehen:

ls .venv &> /dev/null || python3 -mvenv .venv || exit 1
source .venv/bin/activate || exit 1

pip install pip-tools pip-audit|| exit 1

if [ ! -f "requirements.txt" ]; then
  echo "requirements.txt not found. Compiling from requirements.in..."
  pip-compile -v --generate-hashes --allow-unsafe --output-file=requirements.txt requirements.in || exit 1
fi

echo "Auditing locked dependencies..."
pip-audit --strict --require-hashes -r requirements.txt || exit 1

echo "Installing with strict hash verification..."
pip install --require-hashes --only-binary :all: -r requirements.txt || exit 1

pre-commit install

Comment thread pyproject.toml
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nach guten Rückfragen durch die anderen und daraus hervorgehender Recherche glaube ich, dass wir nur im http_request_recorder eine pyproject.toml brauchen. Meines Wissens nach ist das die einzige lib die bei Pypi liegt. Alles andere ließe sich durch eine requirements.in abbilden

Copy link
Copy Markdown

@lu28282 lu28282 May 20, 2026

Choose a reason for hiding this comment

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

Diskussion hier
TLDR: Wir sind wieder bei *.toml ohne *.in file wegen den formattern

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.

2 participants