From a6e99fcc21178c46f52192766b15c5d27c33f0c9 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Tue, 2 Sep 2014 12:10:42 -0700 Subject: [PATCH] added GPLv3 license to each source file --- bin/onionshare | 18 ++++++++++++++++++ bin/onionshare-gui | 18 ++++++++++++++++++ onionshare/__init__.py | 18 ++++++++++++++++++ onionshare/helpers.py | 18 ++++++++++++++++++ onionshare/onionshare.py | 19 ++++++++++++++++++- onionshare/strings.py | 18 ++++++++++++++++++ onionshare/web.py | 18 ++++++++++++++++++ onionshare_gui/__init__.py | 18 ++++++++++++++++++ onionshare_gui/common.py | 18 ++++++++++++++++++ onionshare_gui/downloads.py | 18 ++++++++++++++++++ onionshare_gui/file_selection.py | 18 ++++++++++++++++++ onionshare_gui/onionshare_gui.py | 18 ++++++++++++++++++ onionshare_gui/options.py | 18 ++++++++++++++++++ onionshare_gui/server_status.py | 18 ++++++++++++++++++ setup.py | 19 ++++++++++++++++++- setup/onionshare-launcher.py | 18 ++++++++++++++++++ test/onionshare_helpers_test.py | 18 ++++++++++++++++++ test/onionshare_strings_test.py | 18 ++++++++++++++++++ test/onionshare_test.py | 18 ++++++++++++++++++ test/onionshare_web_test.py | 18 ++++++++++++++++++ test/test_helpers.py | 18 ++++++++++++++++++ 21 files changed, 378 insertions(+), 2 deletions(-) diff --git a/bin/onionshare b/bin/onionshare index 7f390db3..1035ddd4 100755 --- a/bin/onionshare +++ b/bin/onionshare @@ -1,4 +1,22 @@ #!/usr/bin/env python +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" import sys, os try: diff --git a/bin/onionshare-gui b/bin/onionshare-gui index 78e00011..20055f63 100755 --- a/bin/onionshare-gui +++ b/bin/onionshare-gui @@ -1,4 +1,22 @@ #!/usr/bin/env python +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" import sys, os try: diff --git a/onionshare/__init__.py b/onionshare/__init__.py index 4da95c7f..3860ca84 100644 --- a/onionshare/__init__.py +++ b/onionshare/__init__.py @@ -1 +1,19 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" from onionshare import * diff --git a/onionshare/helpers.py b/onionshare/helpers.py index 9d9193bc..a479b771 100644 --- a/onionshare/helpers.py +++ b/onionshare/helpers.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" import os, inspect, hashlib, base64, hmac, platform, zipfile from itertools import izip diff --git a/onionshare/onionshare.py b/onionshare/onionshare.py index 998753bf..b3081148 100644 --- a/onionshare/onionshare.py +++ b/onionshare/onionshare.py @@ -1,4 +1,21 @@ -# -*- coding: utf-8 -*- +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" import os, sys, subprocess, time, argparse, inspect, shutil, socks, socket, threading from stem.control import Controller diff --git a/onionshare/strings.py b/onionshare/strings.py index 3808f93a..9ae2e749 100644 --- a/onionshare/strings.py +++ b/onionshare/strings.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" import json, locale import helpers diff --git a/onionshare/web.py b/onionshare/web.py index 501e8dac..0186042a 100644 --- a/onionshare/web.py +++ b/onionshare/web.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" import Queue, mimetypes, platform, os, sys, zipfile, urllib2 from flask import Flask, Response, request, render_template_string, abort diff --git a/onionshare_gui/__init__.py b/onionshare_gui/__init__.py index 011371cd..b7fb3ff0 100644 --- a/onionshare_gui/__init__.py +++ b/onionshare_gui/__init__.py @@ -1 +1,19 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" from onionshare_gui import * diff --git a/onionshare_gui/common.py b/onionshare_gui/common.py index 4394a26d..904849a2 100644 --- a/onionshare_gui/common.py +++ b/onionshare_gui/common.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" import os, inspect, platform def get_onionshare_gui_dir(): diff --git a/onionshare_gui/downloads.py b/onionshare_gui/downloads.py index cae474fe..03d40ca0 100644 --- a/onionshare_gui/downloads.py +++ b/onionshare_gui/downloads.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" from PyQt4 import QtCore, QtGui import common diff --git a/onionshare_gui/file_selection.py b/onionshare_gui/file_selection.py index 5b7c8b8b..de876e61 100644 --- a/onionshare_gui/file_selection.py +++ b/onionshare_gui/file_selection.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" import os from PyQt4 import QtCore, QtGui diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py index 5ef29180..cbfb4b2a 100644 --- a/onionshare_gui/onionshare_gui.py +++ b/onionshare_gui/onionshare_gui.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" from __future__ import division import os, sys, subprocess, inspect, platform, argparse, threading, time, math, inspect, platform from PyQt4 import QtCore, QtGui diff --git a/onionshare_gui/options.py b/onionshare_gui/options.py index e0e3038a..c192be20 100644 --- a/onionshare_gui/options.py +++ b/onionshare_gui/options.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" from PyQt4 import QtCore, QtGui import common diff --git a/onionshare_gui/server_status.py b/onionshare_gui/server_status.py index 00e5a4b5..eb3a1623 100644 --- a/onionshare_gui/server_status.py +++ b/onionshare_gui/server_status.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" import platform from PyQt4 import QtCore, QtGui diff --git a/setup.py b/setup.py index 492e7ac4..6a270942 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,22 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" import os, sys, platform from glob import glob diff --git a/setup/onionshare-launcher.py b/setup/onionshare-launcher.py index 14803cb1..a5e04a86 100644 --- a/setup/onionshare-launcher.py +++ b/setup/onionshare-launcher.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" from __future__ import division import os, sys, subprocess, time, hashlib, platform, json, locale, socket, argparse, Queue, inspect, base64, random, functools, logging, ctypes, hmac, shutil from itertools import izip diff --git a/test/onionshare_helpers_test.py b/test/onionshare_helpers_test.py index e022e029..eb84cc36 100644 --- a/test/onionshare_helpers_test.py +++ b/test/onionshare_helpers_test.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" from onionshare import helpers from nose import with_setup diff --git a/test/onionshare_strings_test.py b/test/onionshare_strings_test.py index ea20a74a..6eea5b96 100644 --- a/test/onionshare_strings_test.py +++ b/test/onionshare_strings_test.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" import locale from onionshare import strings from nose import with_setup diff --git a/test/onionshare_test.py b/test/onionshare_test.py index afd955b4..cf616def 100644 --- a/test/onionshare_test.py +++ b/test/onionshare_test.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" import socket from onionshare import OnionShare from nose import with_setup diff --git a/test/onionshare_web_test.py b/test/onionshare_web_test.py index fc545a14..91a04921 100644 --- a/test/onionshare_web_test.py +++ b/test/onionshare_web_test.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" from onionshare import web from nose import with_setup diff --git a/test/test_helpers.py b/test/test_helpers.py index ae0f85b0..c4705142 100644 --- a/test/test_helpers.py +++ b/test/test_helpers.py @@ -1,3 +1,21 @@ +""" +OnionShare | https://onionshare.org/ + +Copyright (C) 2014 Micah Lee + +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 . +""" import tempfile class MockSubprocess():