2018-10-02 23:19:49 +00:00
|
|
|
#!/usr/bin/env python3
|
2010-03-21 23:58:01 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2019-04-13 13:00:22 +00:00
|
|
|
##########################################################################
|
|
|
|
# OpenLP - Open Source Lyrics Projection #
|
|
|
|
# ---------------------------------------------------------------------- #
|
2020-01-01 02:53:08 +00:00
|
|
|
# Copyright (c) 2008-2020 OpenLP Developers #
|
2019-04-13 13:00:22 +00:00
|
|
|
# ---------------------------------------------------------------------- #
|
|
|
|
# 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 <https://www.gnu.org/licenses/>. #
|
|
|
|
##########################################################################
|
2010-02-23 15:45:26 +00:00
|
|
|
|
2019-09-17 20:23:35 +00:00
|
|
|
from subprocess import run
|
2018-10-02 04:39:42 +00:00
|
|
|
|
2018-10-24 21:02:06 +00:00
|
|
|
from setuptools import setup, find_packages
|
2013-04-16 17:56:06 +00:00
|
|
|
|
2009-09-08 19:58:05 +00:00
|
|
|
|
2010-02-14 21:20:13 +00:00
|
|
|
VERSION_FILE = 'openlp/.version'
|
2012-07-08 19:46:40 +00:00
|
|
|
|
2014-10-09 21:03:04 +00:00
|
|
|
|
2014-10-22 20:43:05 +00:00
|
|
|
ver_file = None
|
2012-07-09 17:56:02 +00:00
|
|
|
try:
|
2013-06-06 06:40:10 +00:00
|
|
|
# Get the revision of this tree.
|
2019-09-17 20:23:35 +00:00
|
|
|
git_version = run(['git', 'describe', '--tags'], capture_output=True, check=True, universal_newlines=True).stdout
|
|
|
|
version_string = '+'.join(git_version.strip().rsplit('-g', 1))
|
|
|
|
version_string = '.dev'.join(version_string.rsplit('-', 1))
|
2013-08-31 18:17:38 +00:00
|
|
|
ver_file = open(VERSION_FILE, 'w')
|
2013-06-06 06:40:10 +00:00
|
|
|
ver_file.write(version_string)
|
2018-08-22 04:05:22 +00:00
|
|
|
except Exception:
|
2013-08-31 18:17:38 +00:00
|
|
|
ver_file = open(VERSION_FILE, 'r')
|
2013-06-06 06:40:10 +00:00
|
|
|
version_string = ver_file.read().strip()
|
|
|
|
finally:
|
2010-02-22 18:47:29 +00:00
|
|
|
ver_file.close()
|
2009-08-27 14:02:00 +00:00
|
|
|
|
2019-03-26 16:55:02 +00:00
|
|
|
|
2009-08-27 14:02:00 +00:00
|
|
|
setup(
|
2010-02-14 21:20:13 +00:00
|
|
|
name='OpenLP',
|
2013-06-06 06:40:10 +00:00
|
|
|
version=version_string,
|
2010-02-14 21:20:13 +00:00
|
|
|
description="Open source Church presentation and lyrics projection application.",
|
|
|
|
long_description="""\
|
2014-04-02 18:51:21 +00:00
|
|
|
OpenLP (previously openlp.org) is free church presentation software, or lyrics projection software, used to display
|
|
|
|
slides of songs, Bible verses, videos, images, and even presentations (if PowerPoint is installed) for church worship
|
|
|
|
using a computer and a data projector.""",
|
2011-03-19 07:20:20 +00:00
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 4 - Beta',
|
|
|
|
'Environment :: MacOS X',
|
|
|
|
'Environment :: Win32 (MS Windows)',
|
|
|
|
'Environment :: X11 Applications',
|
|
|
|
'Environment :: X11 Applications :: Qt',
|
|
|
|
'Intended Audience :: End Users/Desktop',
|
|
|
|
'Intended Audience :: Religion',
|
2019-04-13 13:00:22 +00:00
|
|
|
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
|
2011-03-19 07:20:20 +00:00
|
|
|
'Natural Language :: Afrikaans',
|
|
|
|
'Natural Language :: Dutch',
|
|
|
|
'Natural Language :: English',
|
|
|
|
'Natural Language :: French',
|
|
|
|
'Natural Language :: German',
|
|
|
|
'Natural Language :: Hungarian',
|
|
|
|
'Natural Language :: Indonesian',
|
|
|
|
'Natural Language :: Japanese',
|
|
|
|
'Natural Language :: Norwegian',
|
|
|
|
'Natural Language :: Portuguese (Brazilian)',
|
|
|
|
'Natural Language :: Russian',
|
|
|
|
'Natural Language :: Swedish',
|
|
|
|
'Operating System :: MacOS :: MacOS X',
|
|
|
|
'Operating System :: Microsoft :: Windows',
|
|
|
|
'Operating System :: POSIX :: BSD :: FreeBSD',
|
|
|
|
'Operating System :: POSIX :: Linux',
|
|
|
|
'Programming Language :: Python',
|
2014-07-01 21:10:26 +00:00
|
|
|
'Programming Language :: Python :: 3',
|
2011-03-19 07:20:20 +00:00
|
|
|
'Topic :: Desktop Environment :: Gnome',
|
|
|
|
'Topic :: Desktop Environment :: K Desktop Environment (KDE)',
|
|
|
|
'Topic :: Multimedia',
|
|
|
|
'Topic :: Multimedia :: Graphics :: Presentation',
|
|
|
|
'Topic :: Multimedia :: Sound/Audio',
|
|
|
|
'Topic :: Multimedia :: Video',
|
|
|
|
'Topic :: Religion'
|
2014-04-02 18:51:21 +00:00
|
|
|
], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
|
2010-02-14 21:20:13 +00:00
|
|
|
keywords='open source church presentation lyrics projection song bible display project',
|
|
|
|
author='Raoul Snyman',
|
|
|
|
author_email='raoulsnyman@openlp.org',
|
2018-10-02 23:19:49 +00:00
|
|
|
url='https://openlp.org/',
|
2019-04-13 13:00:22 +00:00
|
|
|
license='GPL-3.0-or-later',
|
2018-10-27 21:31:14 +00:00
|
|
|
packages=find_packages(exclude=['ez_setup', 'tests*']),
|
2010-02-14 21:20:13 +00:00
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
2018-10-05 07:24:47 +00:00
|
|
|
python_requires='>=3.6',
|
2019-04-01 23:34:53 +00:00
|
|
|
install_requires=[
|
|
|
|
'alembic',
|
|
|
|
'appdirs',
|
|
|
|
'beautifulsoup4',
|
|
|
|
'chardet',
|
|
|
|
'dbus-python; platform_system=="Linux"',
|
2019-12-04 18:15:24 +00:00
|
|
|
'distro; platform_system=="Linux"',
|
2020-01-27 22:57:58 +00:00
|
|
|
'flask',
|
|
|
|
'flask-cors',
|
2019-04-01 23:34:53 +00:00
|
|
|
'lxml',
|
|
|
|
'Mako',
|
|
|
|
'pymediainfo >= 2.2',
|
|
|
|
'pyobjc; platform_system=="Darwin"',
|
|
|
|
'pyobjc-framework-Cocoa; platform_system=="Darwin"',
|
|
|
|
'PyQt5 >= 5.12',
|
|
|
|
'PyQtWebEngine',
|
2019-09-18 21:32:50 +00:00
|
|
|
'Pyro4; platform_system=="Darwin"',
|
2019-05-15 20:46:10 +00:00
|
|
|
'python-vlc',
|
2019-04-01 23:34:53 +00:00
|
|
|
'pywin32; platform_system=="Windows"',
|
|
|
|
'QtAwesome',
|
|
|
|
'requests',
|
|
|
|
'SQLAlchemy >= 0.5',
|
|
|
|
'waitress',
|
|
|
|
'WebOb',
|
2019-07-02 20:29:42 +00:00
|
|
|
'websockets',
|
|
|
|
'zeroconf'
|
2019-04-01 23:34:53 +00:00
|
|
|
],
|
2018-10-02 23:19:49 +00:00
|
|
|
extras_require={
|
2019-05-01 08:39:01 +00:00
|
|
|
'agpl-pdf': ['PyMuPDF'],
|
2019-04-01 22:44:08 +00:00
|
|
|
'darkstyle': ['QDarkStyle'],
|
2019-09-18 21:32:50 +00:00
|
|
|
'mysql': ['PyMySQL'],
|
2018-10-02 23:19:49 +00:00
|
|
|
'odbc': ['pyodbc'],
|
|
|
|
'postgresql': ['psycopg2'],
|
|
|
|
'spellcheck': ['pyenchant >= 1.6'],
|
2018-10-12 22:11:04 +00:00
|
|
|
'sword-bibles': ['pysword'],
|
|
|
|
# Required for scripts/*.py:
|
|
|
|
'jenkins': ['python-jenkins'],
|
2019-09-18 16:44:39 +00:00
|
|
|
'test': [
|
|
|
|
'PyMuPDF',
|
|
|
|
'pyodbc',
|
|
|
|
'pysword',
|
|
|
|
'pytest',
|
2020-02-09 20:24:05 +00:00
|
|
|
'pytest-qt',
|
2019-09-18 16:44:39 +00:00
|
|
|
'flake8',
|
|
|
|
]
|
2018-10-02 23:19:49 +00:00
|
|
|
},
|
2019-05-25 14:43:43 +00:00
|
|
|
setup_requires=['pytest-runner'],
|
2019-05-08 22:06:09 +00:00
|
|
|
entry_points={'gui_scripts': ['openlp = openlp.__main__:start']}
|
2011-02-24 05:47:38 +00:00
|
|
|
)
|