Commit Graph

25 Commits

Author SHA1 Message Date
R. Ryantm
74642b6962 git-machete: 3.45.0 -> 3.46.0 2026-09-24 15:24:00 +00:00
R. Ryantm
baf0c2a5b1 git-machete: 3.44.1 -> 3.45.0 2026-09-14 07:19:31 +00:00
R. Ryantm
06ade5193f git-machete: 3.44.0 -> 3.44.1 2026-07-10 06:58:20 +00:00
R. Ryantm
5e1a906996 git-machete: 3.41.0 -> 3.44.0 2026-07-01 06:09:49 +00:00
R. Ryantm
fb156cd807 git-machete: 3.40.1 -> 3.41.0 2026-05-26 12:23:30 +00:00
R. Ryantm
a0fd7a8f25 git-machete: 3.40.0 -> 3.40.1 2026-05-01 16:14:36 +00:00
R. Ryantm
efa29fb7e1 git-machete: 3.39.2 -> 3.40.0 2026-04-06 15:56:32 +00:00
R. Ryantm
7a8bf4ac11 git-machete: 3.39.1 -> 3.39.2 2026-03-28 20:58:52 +00:00
R. Ryantm
9c4286cb06 git-machete: 3.39.0 -> 3.39.1 2026-03-11 20:54:30 +00:00
quantenzitrone
18dc8a95fb various: switch buildPythonApplication packages to use finalAttrs
this shouldn't create any rebuilds

the following script was used to generate this:
```fish
#!/usr/bin/env fish

# nix shell .#nixfmt nixpkgs#{nixf-diagnose,ripgrep,sd}

set base (git rev-parse HEAD)

set scope pkgs/by-name
set builder buildPythonApplication

set files (rg --files-with-matches -F "$builder rec {" $scope | sort -u)

for file in $files
    echo $file
    sd -F "$builder rec {" "$builder (finalAttrs: {" $file
    # version
    sd -F 'version}' 'finalAttrs.version}' $file
    sd -F '${version' '${finalAttrs.version' $file
    sd -F '= version' '= finalAttrs.version' $file
    sd -F 'inherit version;' 'inherit (finalAttrs) version;' $file
    sd -F ' + version;' ' + finalAttrs.version;' $file
    sd 'replaceStrings (.*) version' 'replaceStrings $1 finalAttrs.version' $file
    sd -F 'splitVersion version' 'splitVersion finalAttrs.version' $file
    sd -F 'versionAtLeast version' 'versionAtLeast finalAttrs.version' $file
    sd 'versions\.([a-z]+) version' 'versions.$1 finalAttrs.version' $file
    # src
    sd -F 'src}' 'finalAttrs.src}' $file
    sd -F '${src' '${finalAttrs.src' $file
    sd -F '= src' '= finalAttrs.src' $file
    sd -F 'inherit src;' 'inherit (finalAttrs) src;' $file
    sd -F 'inherit (src' 'inherit (finalAttrs.src' $file
    # meta
    sd -F '${meta' '${finalAttrs.meta' $file
    sd -F '= meta' '= finalAttrs.meta' $file
    sd -F 'inherit (meta' 'inherit (finalAttrs.meta' $file
    # pname (restored afterwards)
    sd -F 'pname}' 'finalAttrs.pname}' $file
    sd -F '${pname' '${finalAttrs.pname' $file
    sd -F '= pname' '= finalAttrs.pname' $file
    # combinations
    sd -F 'inherit version src;' 'inherit (finalAttrs) version src;' $file
    sd -F 'inherit src version;' 'inherit (finalAttrs) src version;' $file
    sd -F 'inherit version pname;' 'inherit (finalAttrs) version pname;' $file
    sd -F 'inherit pname version;' 'inherit (finalAttrs) pname version;' $file
    sd -F 'inherit pname src version;' 'inherit (finalAttrs) pname src version;' $file
    sd -F 'inherit pname version src;' 'inherit (finalAttrs) pname version src;' $file
    sd -F 'inherit src pname version;' 'inherit (finalAttrs) src pname version;' $file
    sd -F 'inherit src version pname;' 'inherit (finalAttrs) src version pname;' $file
    sd -F 'inherit version pname src;' 'inherit (finalAttrs) version pname src;' $file
    sd -F 'inherit version src pname;' 'inherit (finalAttrs) version src pname;' $file
    # other
    sd -F 'makeLibraryPath buildInputs' 'makeLibraryPath finalAttrs.buildInputs' $file
    sd -F 'nativeBuildInputs}' 'finalAttrs.nativeBuildInputs}' $file
    sd -F 'buildInputs}' 'finalAttrs.buildInputs}' $file
    sd -F 'propagatedBuildInputs}' 'finalAttrs.propagatedBuildInputs}' $file
    sd -F 'desktopItem}' 'finalAttrs.desktopItem}' $file
    sd -F 'runtimeLibs}' 'finalAttrs.runtimeLibs}' $file
    sd -F 'makePythonPath dependencies' 'makePythonPath finalAttrs.dependencies' $file
    sd -F 'makePythonPath propagatedBuildInputs' 'makePythonPath finalAttrs.propagatedBuildInputs' $file
    sd -F 'libPath}' 'finalAttrs.libPath}' $file
    sd -F 'runtimeDependencies}' 'finalAttrs.runtimeDependencies}' $file
    sd -F 'runtimeDeps}' 'finalAttrs.runtimeDeps}' $file
    sd -F 'nativeRuntimeInputs}' 'finalAttrs.nativeRuntimeInputs}' $file
    sd -F '(!doCheck)' '(!finalAttrs.doCheck)' $file
    sd -F 'optional doCheck' 'optional finalAttrs.doCheck' $file
    sd -F 'optionals doCheck' 'optionals finalAttrs.doCheck' $file
    sd -F '++ runtimeDependencies' '++ finalAttrs.runtimeDependencies' $file
    # close finalAttrs lambda
    echo ')' >>$file
    # catch some errors early
    if ! nixfmt $file
        git restore $file
        continue
    end
    if ! nixf-diagnose -i sema-primop-overridden $file
        git restore $file
        continue
    end
end

set torestore (rg -F .finalAttrs --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end
set torestore (rg -F finalAttrs.pname --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end

# commit for faster eval times
git add pkgs
git commit --no-gpg-sign -m temp
set torestore

for file in $files
    # file hasn't changed
    if git diff --quiet $base $file
        continue
    end
    # try to eval the package to definitely catch all errors
    echo $file
    set pname (string split / $file -f 4)
    if ! nix eval .#$pname
        set torestore $torestore $file
    end
end

# restore files that don't eval
git reset --soft $base
git restore --staged .
if test (count $torestore) -gt 0
    git restore $torestore
end
```

after that some manual cleanup was done:
- restoring files that cause changes in the number of lines
- restoring files that cause rebuilds
- restoring files that cause merge conflicts with staging
2026-02-07 10:06:06 +01:00
R. Ryantm
eb9f97b00f git-machete: 3.38.1 -> 3.39.0 2026-02-01 21:13:06 +00:00
R. Ryantm
d7c1af4db4 git-machete: 3.38.0 -> 3.38.1 2026-01-06 12:33:51 +00:00
R. Ryantm
b8c3041d0c git-machete: 3.37.1 -> 3.38.0 2025-12-05 16:25:09 +00:00
R. Ryantm
ec41bc958b git-machete: 3.37.0 -> 3.37.1 2025-11-22 20:19:25 +00:00
R. Ryantm
0198606a05 git-machete: 3.36.4 -> 3.37.0 2025-10-11 23:34:43 +00:00
Fabian Affolter
300c2f6d29 git-machete: refactor 2025-08-13 18:36:27 +02:00
R. Ryantm
436da3c2d4 git-machete: 3.36.3 -> 3.36.4 2025-08-13 14:11:28 +00:00
R. Ryantm
0f9850b127 git-machete: 3.36.1 -> 3.36.3 2025-07-26 20:26:20 +00:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
R. Ryantm
80363bfd8d git-machete: 3.36.0 -> 3.36.1 2025-07-10 05:18:28 +00:00
TomaSajt
2bad2b0f4f pkgs/by-name/{e,f,g,h}*: migrate to format = "pyproject" 2025-07-09 21:05:40 +02:00
Martin Weinelt
ae4a1a485a treewide: add explicit format attribute for Python packages
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
2025-07-02 05:56:47 +02:00
Guy Chronister
0a1fbd450c treewide: replace pname with string literal 2025-06-18 15:06:16 +00:00
R. Ryantm
1f90655241 git-machete: 3.34.1 -> 3.36.0 2025-06-10 22:05:44 +00:00
Julian Stecklina
853e5dd921 git-machete: move to pkgs/by-name 2025-06-09 11:14:56 +02:00