add license declaration to each file

This commit is contained in:
lilydjwg 2017-02-28 15:24:53 +08:00
parent 1998238594
commit 8e2be647e0
51 changed files with 147 additions and 1 deletions

View file

@ -1 +1,4 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
__version__ = '0.4.4dev' __version__ = '0.4.4dev'

View file

@ -1,4 +1,6 @@
# vim: se sw=2: # vim: se sw=2:
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import os import os
import sys import sys

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import logging import logging
from importlib import import_module from importlib import import_module

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
''' '''
A Tornado-inspired logging formatter, with displayed time with millisecond accuracy A Tornado-inspired logging formatter, with displayed time with millisecond accuracy

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
''' '''
调用 libnotify 调用 libnotify
''' '''

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import logging import logging
import argparse import argparse

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
''' '''
Sort versions using pkg_resource.parse_version or pyalpm.vercmp Sort versions using pkg_resource.parse_version or pyalpm.vercmp
''' '''

View file

@ -1 +1,4 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from .base import * from .base import *

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from functools import partial from functools import partial
import logging import logging
import json import json

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from functools import partial from functools import partial
import json import json
import logging import logging

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from tornado.httpclient import AsyncHTTPClient from tornado.httpclient import AsyncHTTPClient
try: try:
import pycurl import pycurl

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import os import os
import json import json
from functools import partial from functools import partial

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import queue import queue
import logging import logging
from functools import partial from functools import partial

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from .simple_json import simple_json from .simple_json import simple_json
# Using metacpan # Using metacpan

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import os import os
import json import json
from functools import partial from functools import partial

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import re import re
import time import time
import logging import logging

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import re import re
import logging import logging
from functools import partial from functools import partial

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from .simple_json import simple_json from .simple_json import simple_json
GEMS_URL = 'https://rubygems.org/api/v1/versions/%s.json' GEMS_URL = 'https://rubygems.org/api/v1/versions/%s.json'

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import os import os
import json import json
from functools import partial from functools import partial

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import os import os
import json import json
from functools import partial from functools import partial

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from .simple_json import simple_json from .simple_json import simple_json
HACKAGE_URL = 'https://hackage.haskell.org/package/%s/preferred.json' HACKAGE_URL = 'https://hackage.haskell.org/package/%s/preferred.json'

View file

@ -1,2 +1,5 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
def get_version(name, conf, callback): def get_version(name, conf, callback):
callback(name, conf.get('manual')) callback(name, conf.get('manual'))

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from .simple_json import simple_json from .simple_json import simple_json
NPM_URL = 'https://registry.npmjs.org/%s' NPM_URL = 'https://registry.npmjs.org/%s'

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from .simple_json import simple_json from .simple_json import simple_json
PACKAGIST_URL = 'https://packagist.org/packages/%s.json' PACKAGIST_URL = 'https://packagist.org/packages/%s.json'

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from . import cmd from . import cmd
def get_version(name, conf, callback): def get_version(name, conf, callback):

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from .simple_json import simple_json from .simple_json import simple_json
PYPI_URL = 'https://pypi.python.org/pypi/%s/json' PYPI_URL = 'https://pypi.python.org/pypi/%s/json'

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import re import re
import sre_constants import sre_constants
import logging import logging

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import json import json
from functools import partial from functools import partial

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import logging import logging
from functools import partial from functools import partial

View file

@ -1,4 +1,6 @@
# vim: se sw=2: # vim: se sw=2:
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import sys import sys
import os import os

View file

@ -1,4 +1,6 @@
#!/bin/bash -e #!/bin/bash -e
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
if [[ $# -ne 2 || ! -r $1 || -z $2 ]]; then if [[ $# -ne 2 || ! -r $1 || -z $2 ]]; then
echo >&2 "usage: arch_repopkg_unmonitored config.ini pkg_list or repository_name" echo >&2 "usage: arch_repopkg_unmonitored config.ini pkg_list or repository_name"

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import sys import sys
import re import re

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
'''show a list of packages maintained by someone in AUR''' '''show a list of packages maintained by someone in AUR'''

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import configparser import configparser
from tornado.ioloop import IOLoop from tornado.ioloop import IOLoop
import tornado.testing import tornado.testing

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import os import os
import pytest import pytest

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from tests.helper import ExternalVersionTestCase from tests.helper import ExternalVersionTestCase

View file

@ -1,5 +1,7 @@
from tests.helper import ExternalVersionTestCase # MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from tests.helper import ExternalVersionTestCase
class BitBucketTest(ExternalVersionTestCase): class BitBucketTest(ExternalVersionTestCase):
def test_bitbucket(self): def test_bitbucket(self):

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from tests.helper import ExternalVersionTestCase from tests.helper import ExternalVersionTestCase

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from tests.helper import ExternalVersionTestCase from tests.helper import ExternalVersionTestCase

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from tests.helper import ExternalVersionTestCase from tests.helper import ExternalVersionTestCase

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from tests.helper import ExternalVersionTestCase from tests.helper import ExternalVersionTestCase

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import os import os
import pytest import pytest
from tests.helper import ExternalVersionTestCase from tests.helper import ExternalVersionTestCase

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import os import os
import pytest import pytest
from tests.helper import ExternalVersionTestCase from tests.helper import ExternalVersionTestCase

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from tests.helper import ExternalVersionTestCase from tests.helper import ExternalVersionTestCase

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from tests.helper import ExternalVersionTestCase from tests.helper import ExternalVersionTestCase

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from tests.helper import ExternalVersionTestCase from tests.helper import ExternalVersionTestCase

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from tests.helper import ExternalVersionTestCase from tests.helper import ExternalVersionTestCase

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import shutil import shutil
import pytest import pytest
from tests.helper import ExternalVersionTestCase from tests.helper import ExternalVersionTestCase

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from tests.helper import ExternalVersionTestCase from tests.helper import ExternalVersionTestCase

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
from tests.helper import ExternalVersionTestCase from tests.helper import ExternalVersionTestCase

View file

@ -1,3 +1,6 @@
# MIT licensed
# Copyright (c) 2013-2017 lilydjwg <lilydjwg@gmail.com>, et al.
import os import os
import shutil import shutil
import pytest import pytest