WIP
All checks were successful
run tests / check (push) Successful in 25s
run tests / release (push) Successful in 15s

This commit is contained in:
2025-12-05 21:05:59 +01:00
parent bd50bef4ad
commit c5e2854f27
37 changed files with 2549 additions and 0 deletions

53
flake.nix Normal file
View File

@@ -0,0 +1,53 @@
{
description = "puzzleYOU release action";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
python = pkgs.python313.withPackages (ps: with ps; [
isort
flake8
semver
toml
requests
pyyaml
]);
pythonPackage = pkgs.python3Packages.buildPythonPackage {
name = "release-action";
src = ./.;
};
in
{
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.envsubst
pkgs.just
pkgs.gitea-actions-runner
python
];
};
packages.default = pkgs.writers.writePython3Bin
"release-action"
{
libraries = with pkgs.python3Packages; [
semver # TODO move to setup.py?
toml
requests
pythonPackage
pyyaml
];
}
(builtins.readFile ./src/main.py)
;
}
);
}