Skip to content

BLD: build and dev-cli dependency groups, remove assorted requirements files - #32966

Merged
mattip merged 11 commits into
numpy:mainfrom
andyfaff:build
Oct 11, 2026
Merged

mattip merged 11 commits into
numpy:mainfrom
andyfaff:build

Conversation

@andyfaff

@andyfaff andyfaff commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

PR summary

Creates build and dev-cli dependency groups.

dev-cli specifies the packages that were originally in requirements/build_requirements.txt, and is a superset of build.

build is cython, meson-python, ninja
dev-cli is those plus spin, build

Note that I haven't removed the build_requirements.txt file yet, this is because it's still pulled in by all_requirements.txt. Once I've created all the necessary groups in following PRs I'll finish up by removing all the requirements files.

Part of #24670.

AI Disclosure

No AI

@andyfaff

andyfaff commented Oct 9, 2026

Copy link
Copy Markdown
Member Author

There's one use of build_requirements left, in numpy/_core/src/npysort/x86-simd-sort/.github/workflows/build-numpy.yml. This is a submodule. How do I go about making a change there? Do I fork x86-simd-sort, and make a PR against that repo? How does it propagate through to the submodule?

@mattip

mattip commented Oct 9, 2026

Copy link
Copy Markdown
Member

Do I fork x86-simd-sort, and make a PR against that repo?

Yes. Once it is merged we update the submodule here. The synchronization is a bit problematic. Maybe keep the redundant build_requirements.txt for now, we can merge this PR, then update x86-simd-sort, then we can drop the file when we update the submodule here in a second PR.

@InessaPawson InessaPawson changed the title build and dev-cli dependency groups BLD: build and dev-cli dependency groups Oct 9, 2026
@andyfaff andyfaff changed the title BLD: build and dev-cli dependency groups BLD: build and dev-cli dependency groups, remove assorted requirements files Oct 10, 2026
@andyfaff

Copy link
Copy Markdown
Member Author

I've alse added doc and linter dependency groups. The next step is big - dependency groups for tests. I'll tackle that in a different PR.
The various test setups seem difficult to untangle.

@mattip mattip left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice. A few nits, do we need the file hash on the containers?

Comment thread .github/workflows/linux.yml Outdated
sudo apt-get update
sudo apt-get install libopenblas-dev ninja-build
pip install "asv<0.6.5" virtualenv packaging -r requirements/build_requirements.txt
pip install --group dev-cli "asv<0.6.5" virtualenv packaging

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we have a benchmarking dependency-group?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I can add. As I evaluate lines like this it's hard to figure out the full rationale behind the line.
e.g.

  • why asv < 0.6.5?
  • why packaging?

It'd be good if there were more comments about why specific pins exist.

Comment thread .github/workflows/linux_qemu.yml Resolved
Comment thread pyproject.toml
"asv<0.6.5",
"virtualenv",
"packaging",
]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You asked why we need this. Good question. Maybe at some point asv was broken?

@mattip
mattip merged commit e5122f5 into numpy:main Oct 11, 2026
91 checks passed
@mattip

mattip commented Oct 11, 2026

Copy link
Copy Markdown
Member

thanks @andyfaff, this is a nice improvement. I guess we could explore some of the pins in subsequent PRs

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