-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
buildPythonPackage, buildPythonApplication: support __structuredAttrs = true
#347194
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
Merged
wolfgangwalther
merged 14 commits into
NixOS:staging
from
ShamrockLee:build-python-structured-attrs
Jan 10, 2025
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
26f0976
pytestCheckHook: support __structuredAttrs
ShamrockLee 24729aa
python3Packages.pytest-xdist: use pytestFlags
ShamrockLee 9bf387a
python3Packages.pytest-forked: use pytestFlags
ShamrockLee ec6f585
pytestCheckHook: lint with ShellCheck
ShamrockLee d8c36cb
setuptoolsBuildHook: support __structuredAttrs
ShamrockLee 1c9b35c
python3packages.mysql-connector: specify setupPyBuildFlags directly w…
ShamrockLee 71e47c9
python3Packages.vowpalwabbit: specify setupPyBuildFlags without Bash-…
ShamrockLee 76f6a3b
setuptoolsBuildHook: lint with ShellCheck
ShamrockLee 1e8f391
unittestCheckHook: handle unittestFlagsArray `__structuredAttrs`-agno…
ShamrockLee 9b07602
unittestCheckHook: lint with ShellCheck
ShamrockLee 8be69ae
doc: python: elaborate the makeWrapperArgs behaviour
ShamrockLee 4fae2f5
rl-2505.section.md: add entries about buildPython*'s __structuredAttr…
ShamrockLee 53da121
python3Packages.conda: use __structuredAttrs = true
ShamrockLee 625cf90
python3Packages.tensorflow: use __structuredAttrs = true
ShamrockLee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wolfgangwalther marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 27 additions & 18 deletions
45
pkgs/development/interpreters/python/hooks/pytest-check-hook.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 12 additions & 8 deletions
20
pkgs/development/interpreters/python/hooks/setuptools-build-hook.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 11 additions & 2 deletions
13
pkgs/development/interpreters/python/hooks/unittest-check-hook.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,26 @@ | ||
| # Setup hook for unittest. | ||
| # shellcheck shell=bash | ||
|
|
||
| echo "Sourcing unittest-check-hook" | ||
|
|
||
| unittestCheckPhase() { | ||
| echo "Executing unittestCheckPhase" | ||
| runHook preCheck | ||
|
|
||
| eval "@pythonCheckInterpreter@ -m unittest discover $unittestFlagsArray" | ||
| local -a flagsArray=() | ||
|
|
||
| # Compatibility layer to the obsolete unittestFlagsArray | ||
| eval "flagsArray+=(${unittestFlagsArray[*]-})" | ||
|
|
||
| concatTo flagsArray unittestFlags | ||
| echoCmd 'unittest flags' "${flagsArray[@]}" | ||
| @pythonCheckInterpreter@ -m unittest discover "${flagsArray[@]}" | ||
|
|
||
| runHook postCheck | ||
| echo "Finished executing unittestCheckPhase" | ||
| } | ||
|
|
||
| if [ -z "${dontUseUnittestCheck-}" ] && [ -z "${installCheckPhase-}" ]; then | ||
| if [[ -z "${dontUseUnittestCheck-}" ]] && [[ -z "${installCheckPhase-}" ]]; then | ||
| echo "Using unittestCheckPhase" | ||
| appendToVar preDistPhases unittestCheckPhase | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.