From 7380b93579e3432ee56e8792844a166234dad208 Mon Sep 17 00:00:00 2001 From: actionless Date: Thu, 5 Jul 2018 18:29:23 +0200 Subject: [PATCH] chore: add license info to source files closes #195 --- Makefile | 2 ++ maintenance_scripts/Dockerfile | 2 ++ maintenance_scripts/docker_test.sh | 3 +++ maintenance_scripts/tag_release.sh | 3 +++ maintenance_scripts/vulture_whitelist.py | 3 +++ packaging/usr/bin/pikaur | 1 + pikaur.py | 1 + pikaur/__init__.py | 14 ++++++++++++++ pikaur/args.py | 2 ++ pikaur/aur.py | 2 ++ pikaur/aur_deps.py | 2 ++ pikaur/build.py | 2 ++ pikaur/config.py | 2 ++ pikaur/conflicts.py | 2 ++ pikaur/core.py | 2 ++ pikaur/exceptions.py | 2 ++ pikaur/i18n.py | 2 ++ pikaur/install_cli.py | 2 ++ pikaur/install_info_fetcher.py | 2 ++ pikaur/main.py | 2 ++ pikaur/makepkg_config.py | 2 ++ pikaur/news.py | 2 ++ pikaur/pacman.py | 2 ++ pikaur/pikspect.py | 2 ++ pikaur/pprint.py | 2 ++ pikaur/print_department.py | 2 ++ pikaur/progressbar.py | 2 ++ pikaur/prompt.py | 2 ++ pikaur/search_cli.py | 2 ++ pikaur/srcinfo.py | 2 ++ pikaur/threading.py | 2 ++ pikaur/updates.py | 2 ++ pikaur/version.py | 2 ++ pikaur_test/helpers.py | 5 ++--- run_tests.py | 2 ++ 35 files changed, 83 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a1512460..e8123891 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +# This file is licensed under GPLv3, see https://www.gnu.org/licenses/ + LANGS := fr ru pt de is tr da nl es LOCALEDIR := locale diff --git a/maintenance_scripts/Dockerfile b/maintenance_scripts/Dockerfile index 5affdd82..2935a83d 100644 --- a/maintenance_scripts/Dockerfile +++ b/maintenance_scripts/Dockerfile @@ -1,3 +1,5 @@ +# This file is licensed under GPLv3, see https://www.gnu.org/licenses/ + FROM base/archlinux WORKDIR /opt/app-build/ diff --git a/maintenance_scripts/docker_test.sh b/maintenance_scripts/docker_test.sh index 68504f25..0f758099 100755 --- a/maintenance_scripts/docker_test.sh +++ b/maintenance_scripts/docker_test.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash + +# This file is licensed under GPLv3, see https://www.gnu.org/licenses/ + #set -euo pipefail IFS=$'\n\t' diff --git a/maintenance_scripts/tag_release.sh b/maintenance_scripts/tag_release.sh index d26af860..9b73d2ff 100755 --- a/maintenance_scripts/tag_release.sh +++ b/maintenance_scripts/tag_release.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash # shellcheck disable=SC2016 + +# This file is licensed under GPLv3, see https://www.gnu.org/licenses/ + set -euo pipefail IFS=$'\n\t' aur_repo_dir=~/build/pikaur diff --git a/maintenance_scripts/vulture_whitelist.py b/maintenance_scripts/vulture_whitelist.py index a197d21c..d8eb5226 100644 --- a/maintenance_scripts/vulture_whitelist.py +++ b/maintenance_scripts/vulture_whitelist.py @@ -1,5 +1,8 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + from vulture.whitelist_utils import Whitelist + whitelist = Whitelist() whitelist.build.PackageBuild._get_deps.deps_destination diff --git a/packaging/usr/bin/pikaur b/packaging/usr/bin/pikaur index 83a103ff..e3fed262 100755 --- a/packaging/usr/bin/pikaur +++ b/packaging/usr/bin/pikaur @@ -1,5 +1,6 @@ #!/usr/bin/python3 # -*- coding: utf-8 -*- +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ from pikaur.main import main diff --git a/pikaur.py b/pikaur.py index 83a103ff..e3fed262 100755 --- a/pikaur.py +++ b/pikaur.py @@ -1,5 +1,6 @@ #!/usr/bin/python3 # -*- coding: utf-8 -*- +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ from pikaur.main import main diff --git a/pikaur/__init__.py b/pikaur/__init__.py index e69de29b..1347958d 100644 --- a/pikaur/__init__.py +++ b/pikaur/__init__.py @@ -0,0 +1,14 @@ +""" + 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, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +""" diff --git a/pikaur/args.py b/pikaur/args.py index 1c0f23c4..9f4f62f3 100644 --- a/pikaur/args.py +++ b/pikaur/args.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import sys from typing import List, Any, Tuple diff --git a/pikaur/aur.py b/pikaur/aur.py index fe8cdf6b..69860a61 100644 --- a/pikaur/aur.py +++ b/pikaur/aur.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import gzip import json from multiprocessing.pool import ThreadPool diff --git a/pikaur/aur_deps.py b/pikaur/aur_deps.py index 312677a8..a82ea862 100644 --- a/pikaur/aur_deps.py +++ b/pikaur/aur_deps.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + from multiprocessing.pool import ThreadPool from typing import List, Dict diff --git a/pikaur/build.py b/pikaur/build.py index b905f4f3..8b2eba79 100644 --- a/pikaur/build.py +++ b/pikaur/build.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import os import sys import shutil diff --git a/pikaur/config.py b/pikaur/config.py index e9091e62..a9479d13 100644 --- a/pikaur/config.py +++ b/pikaur/config.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import os import sys import configparser diff --git a/pikaur/conflicts.py b/pikaur/conflicts.py index f3cd4b4e..0650ad51 100644 --- a/pikaur/conflicts.py +++ b/pikaur/conflicts.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + from typing import List, Dict from .pacman import PackageDB diff --git a/pikaur/core.py b/pikaur/core.py index 1830053e..cad0ae86 100644 --- a/pikaur/core.py +++ b/pikaur/core.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import os import shutil import subprocess diff --git a/pikaur/exceptions.py b/pikaur/exceptions.py index d756fcc3..cd2430b0 100644 --- a/pikaur/exceptions.py +++ b/pikaur/exceptions.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + from typing import TYPE_CHECKING, List, Optional from .core import DataType diff --git a/pikaur/i18n.py b/pikaur/i18n.py index b863b1e1..37d5090c 100644 --- a/pikaur/i18n.py +++ b/pikaur/i18n.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import gettext diff --git a/pikaur/install_cli.py b/pikaur/install_cli.py index 80e0764e..5435c89a 100644 --- a/pikaur/install_cli.py +++ b/pikaur/install_cli.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + # pylint: disable=too-many-lines import os import hashlib diff --git a/pikaur/install_info_fetcher.py b/pikaur/install_info_fetcher.py index 717ee7ee..8e76a6bc 100644 --- a/pikaur/install_info_fetcher.py +++ b/pikaur/install_info_fetcher.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + from multiprocessing.pool import ThreadPool from typing import List, Optional, Dict diff --git a/pikaur/main.py b/pikaur/main.py index 8c8003d8..4bb28ce7 100644 --- a/pikaur/main.py +++ b/pikaur/main.py @@ -1,6 +1,8 @@ #!/usr/bin/python3 # -*- coding: utf-8 -*- +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import os import sys import readline diff --git a/pikaur/makepkg_config.py b/pikaur/makepkg_config.py index 4e145bff..0aea951e 100644 --- a/pikaur/makepkg_config.py +++ b/pikaur/makepkg_config.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import os from typing import ( Dict, Any, List, Tuple, Union, Optional, diff --git a/pikaur/news.py b/pikaur/news.py index 204b9b20..96616196 100644 --- a/pikaur/news.py +++ b/pikaur/news.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import datetime import urllib.request import urllib.error diff --git a/pikaur/pacman.py b/pikaur/pacman.py index 85ef165b..01d3149c 100644 --- a/pikaur/pacman.py +++ b/pikaur/pacman.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import gettext import re from typing import List, Dict, Tuple, Iterable, Optional, Union, TYPE_CHECKING diff --git a/pikaur/pikspect.py b/pikaur/pikspect.py index a7f83e3f..972d6361 100644 --- a/pikaur/pikspect.py +++ b/pikaur/pikspect.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import sys import subprocess import tty diff --git a/pikaur/pprint.py b/pikaur/pprint.py index c2bac7ea..a35a8931 100644 --- a/pikaur/pprint.py +++ b/pikaur/pprint.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import sys import shutil from threading import Lock diff --git a/pikaur/print_department.py b/pikaur/print_department.py index dc8744d7..2f0f7a51 100644 --- a/pikaur/print_department.py +++ b/pikaur/print_department.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import sys from typing import List, Tuple diff --git a/pikaur/progressbar.py b/pikaur/progressbar.py index efd4fbfe..ec338e35 100644 --- a/pikaur/progressbar.py +++ b/pikaur/progressbar.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import sys from threading import Lock from typing import Callable, Dict diff --git a/pikaur/prompt.py b/pikaur/prompt.py index 3596e2b2..75a6c2d0 100644 --- a/pikaur/prompt.py +++ b/pikaur/prompt.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import sys import tty from typing import List diff --git a/pikaur/search_cli.py b/pikaur/search_cli.py index a9e7ec3f..7b41df07 100644 --- a/pikaur/search_cli.py +++ b/pikaur/search_cli.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import sys from datetime import datetime from multiprocessing.pool import ThreadPool diff --git a/pikaur/srcinfo.py b/pikaur/srcinfo.py index c657f5f0..4af8b1b6 100644 --- a/pikaur/srcinfo.py +++ b/pikaur/srcinfo.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import os from typing import List, Dict, Optional diff --git a/pikaur/threading.py b/pikaur/threading.py index 592989e6..46851aff 100644 --- a/pikaur/threading.py +++ b/pikaur/threading.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import traceback import uuid from threading import Lock diff --git a/pikaur/updates.py b/pikaur/updates.py index 5fec8ef5..3561994b 100644 --- a/pikaur/updates.py +++ b/pikaur/updates.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + from datetime import datetime from typing import List, Tuple, Optional diff --git a/pikaur/version.py b/pikaur/version.py index 09bff77d..c3d9a485 100644 --- a/pikaur/version.py +++ b/pikaur/version.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + from typing import Callable, Tuple, List, Optional import pyalpm diff --git a/pikaur_test/helpers.py b/pikaur_test/helpers.py index ac275ee9..3fcfbc29 100644 --- a/pikaur_test/helpers.py +++ b/pikaur_test/helpers.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import sys import tempfile from subprocess import Popen @@ -7,9 +9,6 @@ from pikaur.main import main -NOT_FOUND_ATOM = object() - - class TestPopen(Popen): stderr_text: Optional[str] = None stdout_text: Optional[str] = None diff --git a/run_tests.py b/run_tests.py index f083d731..1b41328f 100644 --- a/run_tests.py +++ b/run_tests.py @@ -1,3 +1,5 @@ +""" This file is licensed under GPLv3, see https://www.gnu.org/licenses/ """ + import sys # monkey-patch to force always uncolored output: from pikaur import pprint