diff --git a/.gitignore b/.gitignore index 76a254f..5d2e818 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /work *.egg-info __pycache__ +result diff --git a/flake.nix b/flake.nix index dd6343e..967cc15 100644 --- a/flake.nix +++ b/flake.nix @@ -15,8 +15,12 @@ name = "fc-release"; src = ./.; pyproject = true; - nativeBuildInputs = [ ppkgs.setuptools-scm ]; - propagatedBuildInputs = [ ppkgs.setuptools pkgs.scriv pkgs.gh ]; + build-system = [ ppkgs.setuptools-scm ]; + dependencies = [ + ppkgs.setuptools + pkgs.scriv + pkgs.gh + ]; }; }); diff --git a/pyproject.toml b/pyproject.toml index eba05eb..62e9776 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,4 +18,4 @@ dependencies = [ ] [project.scripts] -fc-release = "fc_release:main" +fc-release = "release.fc_release:main" diff --git a/src/release/__init__.py b/src/release/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/fc_release.py b/src/release/fc_release.py similarity index 99% rename from src/fc_release.py rename to src/release/fc_release.py index dd9774e..7cdb6fc 100755 --- a/src/fc_release.py +++ b/src/release/fc_release.py @@ -7,7 +7,7 @@ from pathlib import Path from subprocess import CalledProcessError, check_output, run -from nixpkgs_changelog import ( +from release.nixpkgs_changelog import ( filter_and_merge_commit_msgs, get_interesting_commit_msgs, version_diff_lines, diff --git a/src/nixpkgs_changelog.py b/src/release/nixpkgs_changelog.py similarity index 100% rename from src/nixpkgs_changelog.py rename to src/release/nixpkgs_changelog.py