Skip to content

Remove more uvx usages, add typos to check group - #21204

Merged
woodruffw merged 2 commits into
mainfrom
ww/pins2
Aug 18, 2026
Merged

woodruffw merged 2 commits into
mainfrom
ww/pins2

Conversation

@woodruffw

Copy link
Copy Markdown
Member

Summary

Supersedes #21154.

Test Plan

NFC, internal.

@woodruffw woodruffw self-assigned this Aug 18, 2026
@woodruffw woodruffw added the internal A refactor or improvement that is not user-facing label Aug 18, 2026
Comment thread scripts/smoke-test/commands.sh Outdated
Comment on lines +14 to +16
# Install a package with extension modules, e.g., `cryptography` and make sure it's importable
uv pip install cryptography==50.0.0 -v
uv run --no-project python -c "import cryptography; print(numpy.__version__)"

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.

Note: I intentionally changed this to cryptography, since it still has a native extension but is ~20% the size of NumPy.

Comment thread _typos.toml
@@ -1,5 +1,6 @@
[files]
extend-exclude = [
".git/**",

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.

NB: Running uv run --only-group=check typos locally caused it to scan my .git, which seems wrong. I think this is because it includes ignore-hidden = false.

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.

CC @epage for opinions 🙂

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why is ignore-hidden = false set?

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 suspect it's for .github etc.

@woodruffw
woodruffw requested a review from zanieb August 18, 2026 20:39
Signed-off-by: William Woodruff <[email protected]>
@woodruffw
woodruffw enabled auto-merge (squash) August 18, 2026 21:29
@woodruffw
woodruffw merged commit a7be819 into main Aug 18, 2026
102 of 104 checks passed
@woodruffw
woodruffw deleted the ww/pins2 branch August 18, 2026 21:35
@woodruffw

Copy link
Copy Markdown
Member Author

Sigh

DEBUG Searching for a compatible version of cryptography (>=50.0.0, <50.0.0+)
  × No solution found when resolving dependencies:
  ╰─▶ Because cryptography==50.0.0 has no usable wheels and you require
      cryptography==50.0.0, we can conclude that your requirements are
      unsatisfiable.

hint: Wheels are required for `cryptography` because building from source is disabled for all packages (i.e., with `--no-build`)

=============================================
command: uv run --no-project python -c import cryptography; print(cryptography.__version__)
exit code: 1

I'll revert back to NumPy later.

zanieb pushed a commit that referenced this pull request Aug 18, 2026
The smoke tests fail on macOS x86_64 and Windows ARM64 because
`cryptography==50.0.0` has no compatible wheels and the repository
disables source builds. Restore `numpy` for the native-extension import
check, pinned to `2.3.2`, which has wheels for every smoke-test target.
This preserves the wheel-only policy and the dependency pinning
introduced in #21204.

Fixes astral-sh#790.

Co-authored-by: zaniebot <[email protected]>

This branch was previously deployed

1 inactive deployment
automations — ed048056 Deployed Aug 18, 2026 by woodruffw via review / security review #44950
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants