Skip to content

Modernize project build script#13997

Open
sbidoul wants to merge 1 commit into
pypa:mainfrom
sbidoul:build-project-pylock
Open

Modernize project build script#13997
sbidoul wants to merge 1 commit into
pypa:mainfrom
sbidoul:build-project-pylock

Conversation

@sbidoul
Copy link
Copy Markdown
Member

@sbidoul sbidoul commented May 17, 2026

  • use pylock.toml instead of requirements.txt
  • generate pylock.toml from a dependency group with pip lock

The drawback, maybe, is that dependabot does not support this.

@sbidoul sbidoul changed the title Modernize project build-script Modernize project build script May 17, 2026
@sbidoul sbidoul added the skip news Does not need a NEWS file entry (eg: trivial changes) label May 17, 2026
@notatallshaw
Copy link
Copy Markdown
Member

notatallshaw commented May 18, 2026

Here's the depandabot issue: dependabot/dependabot-core#12094

Comment thread build-project/README.md

Running `python build-project.py` will produce pip build artifacts in `../dist`.

Update `pylock.toml` with `pip lock --group build`.
Copy link
Copy Markdown
Member

@notatallshaw notatallshaw May 18, 2026

Choose a reason for hiding this comment

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

We should create a CI job that does this, in the current state of supply chain attacks I do not want it to be a requirement that the reviewer should hand verify to protect against name or hash confusion attacks on submitted PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news Does not need a NEWS file entry (eg: trivial changes)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants