diff --git a/nvchecker/__init__.py b/nvchecker/__init__.py index bb5adba..7b92443 100644 --- a/nvchecker/__init__.py +++ b/nvchecker/__init__.py @@ -1 +1,4 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + __version__ = '0.4.4dev' diff --git a/nvchecker/core.py b/nvchecker/core.py index b8c43a7..8644d84 100644 --- a/nvchecker/core.py +++ b/nvchecker/core.py @@ -1,4 +1,6 @@ # vim: se sw=2: +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. import os import sys diff --git a/nvchecker/get_version.py b/nvchecker/get_version.py index 77cec17..ad41e61 100644 --- a/nvchecker/get_version.py +++ b/nvchecker/get_version.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import logging from importlib import import_module diff --git a/nvchecker/lib/nicelogger.py b/nvchecker/lib/nicelogger.py index a173563..f526c30 100644 --- a/nvchecker/lib/nicelogger.py +++ b/nvchecker/lib/nicelogger.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + ''' A Tornado-inspired logging formatter, with displayed time with millisecond accuracy diff --git a/nvchecker/lib/notify.py b/nvchecker/lib/notify.py index 79c493b..ce831bb 100644 --- a/nvchecker/lib/notify.py +++ b/nvchecker/lib/notify.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + ''' 调用 libnotify ''' diff --git a/nvchecker/main.py b/nvchecker/main.py index 04bd4fa..6a0ba39 100755 --- a/nvchecker/main.py +++ b/nvchecker/main.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. import logging import argparse diff --git a/nvchecker/sortversion.py b/nvchecker/sortversion.py index 9bd9dfd..4f117ec 100644 --- a/nvchecker/sortversion.py +++ b/nvchecker/sortversion.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + ''' Sort versions using pkg_resource.parse_version or pyalpm.vercmp ''' diff --git a/nvchecker/source/__init__.py b/nvchecker/source/__init__.py index 9b5ed21..780a732 100644 --- a/nvchecker/source/__init__.py +++ b/nvchecker/source/__init__.py @@ -1 +1,4 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from .base import * diff --git a/nvchecker/source/archpkg.py b/nvchecker/source/archpkg.py index a3f317a..9c1019c 100644 --- a/nvchecker/source/archpkg.py +++ b/nvchecker/source/archpkg.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from functools import partial import logging import json diff --git a/nvchecker/source/aur.py b/nvchecker/source/aur.py index 23710e0..50a650c 100644 --- a/nvchecker/source/aur.py +++ b/nvchecker/source/aur.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from functools import partial import json import logging diff --git a/nvchecker/source/base.py b/nvchecker/source/base.py index 69041c8..968f103 100644 --- a/nvchecker/source/base.py +++ b/nvchecker/source/base.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from tornado.httpclient import AsyncHTTPClient try: import pycurl diff --git a/nvchecker/source/bitbucket.py b/nvchecker/source/bitbucket.py index 8f089c5..148dbe7 100644 --- a/nvchecker/source/bitbucket.py +++ b/nvchecker/source/bitbucket.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import os import json from functools import partial diff --git a/nvchecker/source/cmd.py b/nvchecker/source/cmd.py index dcf25c1..260e70c 100644 --- a/nvchecker/source/cmd.py +++ b/nvchecker/source/cmd.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import queue import logging from functools import partial diff --git a/nvchecker/source/cpan.py b/nvchecker/source/cpan.py index 549aeb4..2af46a3 100644 --- a/nvchecker/source/cpan.py +++ b/nvchecker/source/cpan.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from .simple_json import simple_json # Using metacpan diff --git a/nvchecker/source/cratesio.py b/nvchecker/source/cratesio.py index e3926a6..46d328a 100644 --- a/nvchecker/source/cratesio.py +++ b/nvchecker/source/cratesio.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import os import json from functools import partial diff --git a/nvchecker/source/gcode_hg.py b/nvchecker/source/gcode_hg.py index fd20598..d4f3e7e 100644 --- a/nvchecker/source/gcode_hg.py +++ b/nvchecker/source/gcode_hg.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import re import time import logging diff --git a/nvchecker/source/gcode_svn.py b/nvchecker/source/gcode_svn.py index 90c7010..9c269ed 100644 --- a/nvchecker/source/gcode_svn.py +++ b/nvchecker/source/gcode_svn.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import re import logging from functools import partial diff --git a/nvchecker/source/gems.py b/nvchecker/source/gems.py index 5251d9e..2d79bce 100644 --- a/nvchecker/source/gems.py +++ b/nvchecker/source/gems.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from .simple_json import simple_json GEMS_URL = 'https://rubygems.org/api/v1/versions/%s.json' diff --git a/nvchecker/source/github.py b/nvchecker/source/github.py index e8f0614..36ac47b 100644 --- a/nvchecker/source/github.py +++ b/nvchecker/source/github.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import os import json from functools import partial diff --git a/nvchecker/source/gitlab.py b/nvchecker/source/gitlab.py index a8e3a9e..97274b5 100644 --- a/nvchecker/source/gitlab.py +++ b/nvchecker/source/gitlab.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import os import json from functools import partial diff --git a/nvchecker/source/hackage.py b/nvchecker/source/hackage.py index 307373b..178c94d 100644 --- a/nvchecker/source/hackage.py +++ b/nvchecker/source/hackage.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from .simple_json import simple_json HACKAGE_URL = 'https://hackage.haskell.org/package/%s/preferred.json' diff --git a/nvchecker/source/manual.py b/nvchecker/source/manual.py index 806ab42..ded1c42 100644 --- a/nvchecker/source/manual.py +++ b/nvchecker/source/manual.py @@ -1,2 +1,5 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + def get_version(name, conf, callback): callback(name, conf.get('manual')) diff --git a/nvchecker/source/npm.py b/nvchecker/source/npm.py index acc2e4d..e046197 100644 --- a/nvchecker/source/npm.py +++ b/nvchecker/source/npm.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from .simple_json import simple_json NPM_URL = 'https://registry.npmjs.org/%s' diff --git a/nvchecker/source/packagist.py b/nvchecker/source/packagist.py index 2abe89a..7e2397a 100644 --- a/nvchecker/source/packagist.py +++ b/nvchecker/source/packagist.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from .simple_json import simple_json PACKAGIST_URL = 'https://packagist.org/packages/%s.json' diff --git a/nvchecker/source/pacman.py b/nvchecker/source/pacman.py index baf12f8..14f1567 100644 --- a/nvchecker/source/pacman.py +++ b/nvchecker/source/pacman.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from . import cmd def get_version(name, conf, callback): diff --git a/nvchecker/source/pypi.py b/nvchecker/source/pypi.py index fd7f517..6915e15 100644 --- a/nvchecker/source/pypi.py +++ b/nvchecker/source/pypi.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from .simple_json import simple_json PYPI_URL = 'https://pypi.python.org/pypi/%s/json' diff --git a/nvchecker/source/regex.py b/nvchecker/source/regex.py index 05c5999..282468f 100644 --- a/nvchecker/source/regex.py +++ b/nvchecker/source/regex.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import re import sre_constants import logging diff --git a/nvchecker/source/simple_json.py b/nvchecker/source/simple_json.py index 87beff0..f4d7539 100644 --- a/nvchecker/source/simple_json.py +++ b/nvchecker/source/simple_json.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import json from functools import partial diff --git a/nvchecker/source/vcs.py b/nvchecker/source/vcs.py index d8835b9..bf9726c 100644 --- a/nvchecker/source/vcs.py +++ b/nvchecker/source/vcs.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import logging from functools import partial diff --git a/nvchecker/tools.py b/nvchecker/tools.py index e2c7223..4669cbd 100644 --- a/nvchecker/tools.py +++ b/nvchecker/tools.py @@ -1,4 +1,6 @@ # vim: se sw=2: +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. import sys import os diff --git a/scripts/arch_repopkg_unmonitored b/scripts/arch_repopkg_unmonitored index 3f942b6..19b3055 100755 --- a/scripts/arch_repopkg_unmonitored +++ b/scripts/arch_repopkg_unmonitored @@ -1,4 +1,6 @@ #!/bin/bash -e +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. if [[ $# -ne 2 || ! -r $1 || -z $2 ]]; then echo >&2 "usage: arch_repopkg_unmonitored config.ini pkg_list or repository_name" diff --git a/scripts/gen_contents b/scripts/gen_contents index b344c86..2e420fa 100755 --- a/scripts/gen_contents +++ b/scripts/gen_contents @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. import sys import re diff --git a/scripts/maintained_in_aur b/scripts/maintained_in_aur index 5ed1f7b..c351996 100755 --- a/scripts/maintained_in_aur +++ b/scripts/maintained_in_aur @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. '''show a list of packages maintained by someone in AUR''' diff --git a/tests/helper.py b/tests/helper.py index 3e45361..2146842 100644 --- a/tests/helper.py +++ b/tests/helper.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import configparser from tornado.ioloop import IOLoop import tornado.testing diff --git a/tests/test_archpkg.py b/tests/test_archpkg.py index 2a34b02..20ea8f0 100644 --- a/tests/test_archpkg.py +++ b/tests/test_archpkg.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import os import pytest diff --git a/tests/test_aur.py b/tests/test_aur.py index 6559ad3..5a813aa 100644 --- a/tests/test_aur.py +++ b/tests/test_aur.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from tests.helper import ExternalVersionTestCase diff --git a/tests/test_bitbucket.py b/tests/test_bitbucket.py index 497665b..e9df3bd 100644 --- a/tests/test_bitbucket.py +++ b/tests/test_bitbucket.py @@ -1,5 +1,7 @@ -from tests.helper import ExternalVersionTestCase +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. +from tests.helper import ExternalVersionTestCase class BitBucketTest(ExternalVersionTestCase): def test_bitbucket(self): diff --git a/tests/test_cmd.py b/tests/test_cmd.py index fb40f4d..d6cc48d 100644 --- a/tests/test_cmd.py +++ b/tests/test_cmd.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from tests.helper import ExternalVersionTestCase diff --git a/tests/test_cpan.py b/tests/test_cpan.py index d11f7a4..3f98f6e 100644 --- a/tests/test_cpan.py +++ b/tests/test_cpan.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from tests.helper import ExternalVersionTestCase diff --git a/tests/test_cratesio.py b/tests/test_cratesio.py index c829d7e..a046c0d 100644 --- a/tests/test_cratesio.py +++ b/tests/test_cratesio.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from tests.helper import ExternalVersionTestCase diff --git a/tests/test_gems.py b/tests/test_gems.py index 1ea2fa3..ef241a9 100644 --- a/tests/test_gems.py +++ b/tests/test_gems.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from tests.helper import ExternalVersionTestCase diff --git a/tests/test_github.py b/tests/test_github.py index b4ebb52..bc0beef 100644 --- a/tests/test_github.py +++ b/tests/test_github.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import os import pytest from tests.helper import ExternalVersionTestCase diff --git a/tests/test_gitlab.py b/tests/test_gitlab.py index 19e0b71..8b4d8a8 100644 --- a/tests/test_gitlab.py +++ b/tests/test_gitlab.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import os import pytest from tests.helper import ExternalVersionTestCase diff --git a/tests/test_hackage.py b/tests/test_hackage.py index b754aae..d4c5ffc 100644 --- a/tests/test_hackage.py +++ b/tests/test_hackage.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from tests.helper import ExternalVersionTestCase diff --git a/tests/test_manual.py b/tests/test_manual.py index 87f79f5..a81d3ee 100644 --- a/tests/test_manual.py +++ b/tests/test_manual.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from tests.helper import ExternalVersionTestCase diff --git a/tests/test_npm.py b/tests/test_npm.py index 60d9bfd..5690bce 100644 --- a/tests/test_npm.py +++ b/tests/test_npm.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from tests.helper import ExternalVersionTestCase diff --git a/tests/test_packagist.py b/tests/test_packagist.py index 9145fd3..47bdd42 100644 --- a/tests/test_packagist.py +++ b/tests/test_packagist.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from tests.helper import ExternalVersionTestCase diff --git a/tests/test_pacman.py b/tests/test_pacman.py index 62b8d2e..8ad43f8 100644 --- a/tests/test_pacman.py +++ b/tests/test_pacman.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import shutil import pytest from tests.helper import ExternalVersionTestCase diff --git a/tests/test_pypi.py b/tests/test_pypi.py index 59a4fa5..9fc4d57 100644 --- a/tests/test_pypi.py +++ b/tests/test_pypi.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from tests.helper import ExternalVersionTestCase diff --git a/tests/test_regex.py b/tests/test_regex.py index 1ea4348..e45bd8f 100644 --- a/tests/test_regex.py +++ b/tests/test_regex.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + from tests.helper import ExternalVersionTestCase diff --git a/tests/test_vcs.py b/tests/test_vcs.py index f6a224d..26c99bb 100644 --- a/tests/test_vcs.py +++ b/tests/test_vcs.py @@ -1,3 +1,6 @@ +# MIT licensed +# Copyright (c) 2013-2017 lilydjwg , et al. + import os import shutil import pytest