From 50685beba299ab4b601b6aabb013bb8398c8bfb0 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 23 Nov 2022 18:06:34 -0800 Subject: [PATCH] Specify license --- Changelog | 2 ++ default.nix | 6 ++++++ git_cache.py | 7 +++++++ setup.py | 7 ++++++- test_git_cache.py | 7 +++++++ 5 files changed, 28 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 045293a..1336a09 100644 --- a/Changelog +++ b/Changelog @@ -1,4 +1,6 @@ ## [Unreleased] +### Changed +- Specify license ## [1.4.2] - 2022-11-23 diff --git a/default.nix b/default.nix index 265b450..a161d41 100644 --- a/default.nix +++ b/default.nix @@ -10,4 +10,10 @@ pkgs.python3Packages.callPackage checkInputs = [ nix git mypy ] ++ lib.optionals lint [ autopep8 pylint ]; doCheck = true; checkPhase = "./test.sh"; + meta = { + description = "Cache git content locally"; + homepage = "https://git.scottworley.com/git-cache"; + license = pkgs.lib.licenses.gpl3; + maintainers = with pkgs.lib.maintainers; [ chkno ]; + }; }) { } diff --git a/git_cache.py b/git_cache.py index c7bcdd2..a34c329 100644 --- a/git_cache.py +++ b/git_cache.py @@ -1,3 +1,10 @@ +# git-cache: Cache git content locally +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, version 3. + + # It would be nice if we could share the nix git cache, but as of the # time of writing it is transitioning from gitv2 (deprecated) to gitv3 # (not ready yet), and trying to straddle them both is too far into nix diff --git a/setup.py b/setup.py index e0ad3b1..434f4a7 100644 --- a/setup.py +++ b/setup.py @@ -3,6 +3,11 @@ from setuptools import setup setup( name="git_cache", version="1.4.2", - entry_points={'console_scripts': ['git-cache = git_cache:_main']}, + description="Cache git content locally", + author="Scott Worley", + author_email="scottworley@scottworley.com", + url="https://git.scottworley.com/git-cache", py_modules=['git_cache'], + license="GPL-3.0", + entry_points={'console_scripts': ['git-cache = git_cache:_main']}, ) diff --git a/test_git_cache.py b/test_git_cache.py index 529ac94..1845c01 100644 --- a/test_git_cache.py +++ b/test_git_cache.py @@ -1,3 +1,10 @@ +# git-cache: Cache git content locally +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, version 3. + + import os.path import tempfile import shutil -- 2.44.1