Commit Graph

1652 Commits

Author SHA1 Message Date
github-actions[bot]
b9f01e6de3
Merge staging-next into staging 2024-10-14 12:06:08 +00:00
OTABI Tomoya
e4d95f4100
python3.tests: remove unnecessary condition and disable failing tests on 3.13 (#347206) 2024-10-14 18:09:39 +09:00
OTABI Tomoya
8f8f0badb3
buildPython*: Deprecate and remove (buildPython* { ... }).override (#333670) 2024-10-14 17:56:43 +09:00
OTABI Tomoya
0a77110029
mkPythonPackage, mkPythonApplication: handle passthru with stdenv.mkDerivation instead of lib.extendDerivation (#347130) 2024-10-14 17:46:49 +09:00
Martin Weinelt
48d0511af5 python312: 3.12.6 -> 3.12.7
https://docs.python.org/release/3.12.7/whatsnew/changelog.html
2024-10-13 11:09:54 +02:00
Randy Eckenrode
092b50a92c
python3: fix stdenv bootstrap on x86_64-darwin
The bootstrap tools linker sometimes crashes when trying to link the
sqlite3 tests, which causes the bootstrap Python not to have the sqlite3
module. This causes the freezegun module to fail to build later in the
bootstrap. Using the 11.0 SDK fixes the problem.

Upstream Python supports building with a newer SDK and back-deploying,
so this change should not negatively affect users on pre-11.0 releases.
2024-10-10 16:23:09 -04:00
Randy Eckenrode
3e5316cb96
python3: drop configd
configd is an alias for the SystemConfiguration framework, which is now
always part of the SDK. Removing this parameter because it effectively
does nothing now, which could be misleading to users.
2024-10-10 16:23:08 -04:00
Randy Eckenrode
b62e262366
python27: drop configd
configd is an alias for the SystemConfiguration framework, which is now
always part of the SDK. Removing this parameter because it effectively
does nothing now, which could be misleading to users.
2024-10-10 16:23:08 -04:00
Emily
e694240f77 Merge staging-next into staging 2024-10-10 01:23:52 +01:00
github-actions[bot]
1404154595
Merge master into staging-next 2024-10-10 00:14:06 +00:00
Martin Weinelt
222c70de4e
python313: 3.13.0.rc3 -> 3.13.0 (#347215) 2024-10-09 21:33:43 +02:00
github-actions[bot]
4b2bd47103
Merge staging-next into staging 2024-10-09 06:05:20 +00:00
github-actions[bot]
fc5d8c3e7d
Merge master into staging-next 2024-10-09 06:04:53 +00:00
Robert Hensing
729225e355 treewide: lib.isInOldestRelease -> lib.oldestSupportedReleaseIsAtLeast 2024-10-08 11:14:24 +02:00
natsukium
63e98c642a
python313: 3.13.0.rc3 -> 3.13.0
Changelog: https://docs.python.org/3.13/whatsnew/3.13.html
2024-10-08 10:57:48 +09:00
natsukium
a05b328b2e
python3.tests: remove unnecessary condition and disable failing tests on 3.13 2024-10-08 10:39:14 +09:00
Yueh-Shun Li
57c2e5683d buildPython hooks: format with shfmt 2024-10-08 07:42:21 +08:00
Yueh-Shun Li
58bfe74123 buildPython*: Deprecate and remove (buildPython* { ... }).override
Deprecate (buildPythonPackage { ... }).override for Python packages in
favour of overridePythonAttrs.

This change does not affect the override interface of most Python
packages, as the override interface is provided by callPackage and
shadows the locally defined override attribute.
2024-10-08 01:09:35 +08:00
Yueh-Shun Li
21a1cf9686 mkPythonPackage, mkPythonApplication: handle passthru with mkDerivation 2024-10-08 00:21:42 +08:00
github-actions[bot]
7ab01e096c
Merge master into staging-next 2024-10-06 18:03:58 +00:00
jfvillablanca
859d6cdd8e rustpython: 0.3.1 -> 0.4.0 2024-10-06 20:59:50 +08:00
github-actions[bot]
192fd67cc3
Merge master into staging-next 2024-10-03 18:04:30 +00:00
Martin Weinelt
62939616bc
python313: 3.13.0rc2 -> 3.13.0rc3
https://docs.python.org/3.13/whatsnew/changelog.html#python-3-13-0rc3
2024-10-02 02:05:13 +02:00
github-actions[bot]
27e693e46c
Merge master into staging-next 2024-09-30 18:04:40 +00:00
Martin Weinelt
a2ed02c4c2
cpython: add python team as maintainers 2024-09-30 19:41:04 +02:00
Artturin
f0e657f3b1 Merge branch 'master' into staging-next 2024-09-25 06:05:01 +03:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
OTABI Tomoya
fff13abe46
mk-python-derivation: don't expose check args when doCheck = false (#327264) 2024-09-15 17:09:15 +09:00
github-actions[bot]
2e6560786a
Merge staging-next into staging 2024-09-14 12:05:07 +00:00
Alyssa Ross
9316c5f8e8
update-python-libraries: enable nix-command consistently
This was already done for nix eval in _get_attr_value, but not in
other places.
2024-09-14 13:41:25 +02:00
github-actions[bot]
76f4ef688d
Merge staging-next into staging 2024-09-12 06:05:16 +00:00
K900
4e803e9656 Merge remote-tracking branch 'origin/staging-next' into staging 2024-09-12 07:00:07 +03:00
Martin Weinelt
d4df896127
python39: 3.9.19 -> 3.9.20; python310: 3.10.14 -> 3.10.15; python313: 3.13.0rc1 -> 3.13.0rc2 (#340330) 2024-09-12 04:27:49 +02:00
adisbladis
3fd64819c1
python3Packages.mkPythonEditablePackage: init (#339228) 2024-09-12 09:35:13 +12:00
Alyssa Ross
b2f01b8861 python3: get the triple from the build system
We don't need the sysconfigdata name at eval time, so trying to
reimplement platform_triplet.c in Nix is unnecessarily painful
compared to just getting it from the build system after the fact.
2024-09-10 17:32:02 +02:00
adisbladis
de1fdc9fe0 python3Packages.mkPythonEditablePackage: init 2024-09-08 17:13:21 +12:00
OTABI Tomoya
4ebf78a90d
python312: 3.12.5 -> 3.12.6; python311: 3.11.9 -> 3.11.10 (#340252) 2024-09-08 09:22:26 +09:00
Martin Weinelt
6868416e1a
python313: 3.13.0rc1 -> 3.13.0rc2
https://docs.python.org/3.13/whatsnew/changelog.html#python-3-13-0-release-candidate-2
2024-09-07 17:41:41 +02:00
Martin Weinelt
53a9c0f5a8
python310: 3.10.14 -> 3.10.15
https://docs.python.org/release/3.10.15/whatsnew/changelog.html
2024-09-07 17:40:41 +02:00
Martin Weinelt
f60667a875
python39: 3.9.19 -> 3.9.20
https://docs.python.org/release/3.9.20/whatsnew/changelog.html
2024-09-07 17:39:54 +02:00
Martin Weinelt
a161af2daa
python311: 3.11.9 -> 3.11.10
https://docs.python.org/release/3.11.10/whatsnew/changelog.html
2024-09-07 06:06:06 +02:00
Martin Weinelt
9550eb8922
python312: 3.12.5 -> 3.12.6
https://docs.python.org/release/3.12.6/whatsnew/changelog.html
2024-09-07 06:03:19 +02:00
Yueh-Shun Li
758056dac7 treewide: handle postPhases __structuredAttrs-agnostically
Always specify the postPhases attribute as a list instead of a string.

Append elements to the postPhases Bash variable using appendToVar
instead of string or Bash array concatenation.
2024-09-03 05:56:17 +08:00
Yueh-Shun Li
054c5f0e10 treewide: handle preDistPhases __structuredAttrs-agnostically
Always specify the preDistPhases attribute as a list instead of a string.

Append elements to the preDistPhases Bash variable using appendToVar
instead of string or Bash array concatenation.

Handle element insertion before a specific element using string
substitution as before, but handle both structured and unstructured
attributes.
2024-09-03 05:33:59 +08:00
Yueh-Shun Li
385d523a8e treewide: handle preInstallPhases __structuredAttrs-agnostically
Always specify the preInstallPhases attribute as a list instead of a
string.

Append elements to the preInstallPhases Bash variable using appendToVar
instead of string or Bash array concatenation.
2024-09-03 05:33:59 +08:00
github-actions[bot]
d8c78f272c
Merge staging-next into staging 2024-08-30 18:04:32 +00:00
github-actions[bot]
b857d97eec
Merge master into staging-next 2024-08-30 18:04:02 +00:00
OTABI Tomoya
afbde71a11
python313FreeThreading: fix build (#337791) 2024-08-31 01:07:18 +09:00
github-actions[bot]
4544f25eb8
Merge staging-next into staging 2024-08-30 06:04:59 +00:00
github-actions[bot]
b9ec6f58ab
Merge master into staging-next 2024-08-30 06:04:29 +00:00