Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn on missing python-source contents #1607

Merged
merged 2 commits into from
May 14, 2023
Merged

Conversation

konstin
Copy link
Member

@konstin konstin commented May 12, 2023

Warns when the user explicitly set python-source but that folder doesn't contain a python module.

This came up in ruff (astral-sh/ruff#4397, astral-sh/ruff#4399), where the crate name is ruff_cli and i didn't realize this takes precedence as module name over the package name.

The extra boolean isn't pretty but i wanted to avoid refactoring the entire method just for that.

@netlify
Copy link

netlify bot commented May 12, 2023

Deploy Preview for maturin-guide ready!

Name Link
🔨 Latest commit df606c7
🔍 Latest deploy log https://app.netlify.com/sites/maturin-guide/deploys/646076acaa32f50008b23246
😎 Deploy Preview https://deploy-preview-1607--maturin-guide.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@messense
Copy link
Member

Just need to resolve the conflict.

Warns when the user explicitly set `python-source` but that folder doesn't contain a python module.

This came up in ruff (astral-sh/ruff#4397, astral-sh/ruff#4399), where the crate name is `ruff_cli` and i didn't realize this takes precedence as module name over the package name.

The extra boolean isn't pretty but i wanted to avoid refactoring the entire method just for that.
@konstin konstin force-pushed the warn_on_missing_python_source branch from 937fd0a to 2e9b861 Compare May 13, 2023 08:06
@messense messense enabled auto-merge May 13, 2023 08:11
@messense messense added this pull request to the merge queue May 13, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 13, 2023
@konstin konstin added this pull request to the merge queue May 13, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 13, 2023
@messense messense enabled auto-merge May 14, 2023 05:50
@messense messense added this pull request to the merge queue May 14, 2023
Merged via the queue into main with commit 9fbf8fa May 14, 2023
@messense messense deleted the warn_on_missing_python_source branch May 14, 2023 06:43
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request May 21, 2023
https://build.opensuse.org/request/show/1088131
by user mia + dimstar_suse
- Update to v0.15.3:
  * Fix cross-compile to Apple universal2 in the other platform
    gh#PyO3/maturin#1613
  * Remove serde(flatten) to improve error messages
    gh#PyO3/maturin#1616
  * Allow syn 2.0
    gh#PyO3/maturin#1617
  * describe the need for module-name
    gh#PyO3/maturin#1604
  * Add PEP 517 config_settings support
    gh#PyO3/maturin#1619
  * Keep file mode on Unix
    gh#PyO3/maturin#1622
- Changes in v0.15.2:
  * Remove bors
    gh#PyO3/maturin#1602
  * When determining the python module name, use pyproject.toml
    project.name over Cargo.toml package.name.
    gh#PyO3/maturin#1608
  * Warn on missing python-source contents
    gh#PyO3/maturin#1607
  * Fix rewriting dev-dependencies in sdist
    gh#PyO3/maturin#1610
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