Commit Graph

13 Commits

Author SHA1 Message Date
R. Ryantm
dfd0a8366e charmcraft: 3.2.1 -> 3.2.2 2024-10-23 03:10:05 +00:00
Jon Seager
41f15a899e
charmcraft: 3.1.2 -> 3.2.1 2024-10-04 11:39:02 +01:00
R. Ryantm
92d69dd2be charmcraft: 3.1.1 -> 3.1.2 2024-08-14 02:33:51 +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
Jon Seager
53dede4287
charmcraft: 2.7.0 -> 3.1.1 2024-07-25 09:49:09 +01:00
Robert Schütz
2e5a44fb24 charmcraft: add setuptools to dependencies 2024-07-24 09:34:06 -07:00
Robert Schütz
1ed734c6c1 charmcraft: pin pydantic-yaml 2024-07-24 09:34:06 -07:00
Jon Seager
de97b31f36
charmcraft: run nixfmt-rfc-style 2024-07-10 16:44:00 +02:00
Jon Seager
438d5c64ee
charmcraft: use setuptools.dist rather than distutils.util 2024-07-10 16:43:51 +02:00
Martin Weinelt
2096642430
Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
- pkgs/os-specific/windows/mingw-w64/default.nix
2024-06-23 19:09:00 +02:00
R. Ryantm
d6b36ce958 charmcraft: 2.6.0 -> 2.7.0 2024-06-22 12:27:01 +00: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
Jon Seager
f6e8d5fa87
charmcraft: init at 2.6.0 2024-04-16 10:57:08 +01:00