Skip to content

respect CLI profile over pyproject.toml#2794

Merged
messense merged 1 commit intoPyO3:mainfrom
davidhewitt:release-on-cli
Oct 21, 2025
Merged

respect CLI profile over pyproject.toml#2794
messense merged 1 commit intoPyO3:mainfrom
davidhewitt:release-on-cli

Conversation

@davidhewitt
Copy link
Copy Markdown
Member

Fixes #2787

This tweaks the order of application of the --release flag so that it's merged into the --profile flag at the right time to respect precedence of

  • cli options
  • pyproject.toml configuration
  • default values

I verified it works well locally. I would love some guidance how to test this.

@davidhewitt
Copy link
Copy Markdown
Member Author

NB #2793 is related by ensuring the flags are not set at the same time, which protects the logic added here.

@messense messense merged commit bf33086 into PyO3:main Oct 21, 2025
43 checks passed
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Nov 20, 2025
https://build.opensuse.org/request/show/1318737
by user mia + anag_factory
Automatic submission by obs-autosubmit
- Update to 1.10.2
  * Fix tagging for iOS x86_64 simulator wheels.
  * Set entry type when adding to the tar file.

- Update to 1.10.1
  * Fix generated WHEEL Tag metadata to be spec compliant.
    gh#PyO3/maturin#2762
  * Export all Cargo URL metadata items to Python
    gh#PyO3/maturin#2760
  * Update maximum Python version to 3.14
    gh#PyO3/maturin#2763
  * Remove shebang from non-executable init.py file
    gh#PyO3/maturin#2775
  * Stop warning about missing extension-module feature on pyo3 0.26+
    gh#PyO3/maturin#2789
  * --profile conflicts with --release (and/or --debug)
    gh#PyO3/maturin#2793
  * Bump MSRV to 1.83.0
    gh#PyO3/maturin#2790
  * respect CLI profile over pyproject.toml
    gh#PyO3/maturin#2794
  * chore: add FreeBSD 14.3 a
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.

maturin develop --release ignores --release if profile = "dev" is set in pyproject.toml

2 participants