Commit Graph

17 Commits

Author SHA1 Message Date
Jon Seager
3bb242fba6
snapcraft: disable failing test related to craft-parts 2.1.2
This is a red-herring, and I suspect due to a unit test that's
too close to the underlying implementation. I've tested building
a couple of snaps with the new version of craft-parts (including)
ones which use the `python` plugin, and things seem to work
fine.
2024-10-07 17:49:43 +01:00
Jon Seager
83be384908
snapcraft: 8.3.3 -> 8.4.1 2024-10-04 11:39:00 +01: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
R. Ryantm
7a533b24be snapcraft: 8.3.2 -> 8.3.3 2024-09-14 03:36:12 +00:00
Sandro Jäckel
ca355f14c8
treewide: replace all pytest-cov patching outside of pythonPackages with pytest-cov-stub 2024-08-27 20:47:13 +02:00
R. Ryantm
405945d6f2 snapcraft: 8.3.1 -> 8.3.2 2024-08-07 17:27:39 +00:00
adisbladis
e0816431a2 treewide: Pass self when overriding Python
Otherwise references to the Python interpreter inside the set are wrong, as demonstrated by:
``` nix
with import <nixpkgs> { };
let
  python' = python3.override {
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the _non_ overriden requests.

And the same with `self`:
```
with import <nixpkgs> { };
let
  python' = python3.override {
    self = python';
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the overriden requests.

This can manifest itself as file collisions when constructing environments or as subtly incorrect dependency graphs.
2024-08-03 12:18:56 +12:00
Robert Schütz
6fd9741c85 snapcraft: don't override pydantic 2024-07-24 10:51:39 -07:00
Robert Schütz
b969054329 snapcraft: do catch conflicts 2024-07-24 09:34:06 -07:00
Robert Schütz
85687388d6 snapcraft: pin pydantic-yaml 2024-07-24 09:34:06 -07:00
Robert Schütz
451746aa12 snapcraft: 8.2.12 -> 8.3.1
Diff: https://github.com/canonical/snapcraft/compare/refs/tags/8.2.12...8.3.1

Changelog: https://github.com/canonical/snapcraft/releases/tag/8.3.0
           https://github.com/canonical/snapcraft/releases/tag/8.3.1
2024-07-24 09:34:05 -07:00
Jon Seager
646456a7f3
snapcraft: run nixfmt-rfc-style 2024-07-10 16:43:58 +02:00
Jon Seager
57cf148d2b
snapcraft: 8.2.0 -> 8.2.12 2024-07-10 16:43:55 +02:00
Martin Weinelt
abdf5dc772
treewide: remove pythonRelaxDepsHook references
It is is now provided automatically, when `pythonRelaxDeps` or
`pythonRemoveDeps` is defined through `mk-python-derivation`.
2024-06-14 14:52:00 +02:00
R. Ryantm
d2b58349e3 snapcraft: 8.2.1 -> 8.2.5 2024-05-07 09:24:41 +00:00
R. Ryantm
4c1ddbda19 snapcraft: 8.2.0 -> 8.2.1 2024-04-30 09:43:02 +00:00
Jon Seager
fe0775e297
snapcraft: init at 8.2.0 2024-04-18 19:06:42 +01:00