summaryrefslogtreecommitdiff
path: root/scripts/setupcommon.py
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2014-05-15 06:38:44 +0200
committerFlorian Bruhin <git@the-compiler.org>2014-05-15 06:38:44 +0200
commit1922f51e21fa42ad06934585003b028e2ad1ed1a (patch)
tree3c2d4e1237cc584a5ebb36e66434ffd6d79ac0bc /scripts/setupcommon.py
parentc251c33c3b369a5f14dcdcbe4dd81639f9439045 (diff)
downloadqutebrowser-1922f51e21fa42ad06934585003b028e2ad1ed1a.tar.gz
qutebrowser-1922f51e21fa42ad06934585003b028e2ad1ed1a.zip
Rename setupdata to setupcommon
Diffstat (limited to 'scripts/setupcommon.py')
-rw-r--r--scripts/setupcommon.py62
1 files changed, 62 insertions, 0 deletions
diff --git a/scripts/setupcommon.py b/scripts/setupcommon.py
new file mode 100644
index 000000000..e9b0e94eb
--- /dev/null
+++ b/scripts/setupcommon.py
@@ -0,0 +1,62 @@
+# Copyright 2014 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
+#
+# This file is part of qutebrowser.
+#
+# qutebrowser 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.
+#
+# qutebrowser 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 qutebrowser. If not, see <http://www.gnu.org/licenses/>.
+
+
+"""Data used by setup.py and scripts/freeze.py"""
+
+import sys
+import os
+sys.path.insert(0, os.getcwd())
+import qutebrowser
+
+
+def read_file(name):
+ with open(name, encoding='utf-8') as f:
+ return f.read()
+
+
+setupdata = {
+ 'name': 'qutebrowser',
+ 'version': qutebrowser.__version__,
+ 'description': ("A keyboard-driven, vim-like browser based on PyQt5 and "
+ "QtWebKit."),
+ 'long_description': read_file('README'),
+ 'url': 'http://www.qutebrowser.org/',
+ 'author': "Florian Bruhin",
+ 'author_email': 'me@qutebrowser.org',
+ 'license': 'GPL',
+ 'classifiers': [
+ 'Development Status :: 3 - Alpha',
+ 'Environment :: X11 Applications :: Qt',
+ 'Intended Audience :: End Users/Desktop',
+ 'License :: OSI Approved :: GNU General Public License v3 or later '
+ '(GPLv3+)',
+ 'Natural Language :: English',
+ 'Operating System :: Microsoft :: Windows',
+ 'Operating System :: Microsoft :: Windows :: Windows XP',
+ 'Operating System :: Microsoft :: Windows :: Windows 7',
+ 'Operating System :: POSIX :: Linux',
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.2',
+ 'Programming Language :: Python :: 3.3',
+ 'Programming Language :: Python :: 3.4',
+ 'Topic :: Internet',
+ 'Topic :: Internet :: WWW/HTTP',
+ 'Topic :: Internet :: WWW/HTTP :: Browsers',
+ ],
+ 'keywords': 'pyqt browser web qt webkit',
+}