radicale/setup.py

104 lines
4.1 KiB
Python
Raw Permalink Normal View History

2017-03-07 18:39:13 +01:00
#!/usr/bin/env python3
2020-01-17 05:00:31 +01:00
2021-12-08 21:45:42 +01:00
# This file is part of Radicale - CalDAV and CardDAV server
2017-05-27 17:28:07 +02:00
# Copyright © 2009-2017 Guillaume Ayoub
2019-06-17 04:13:24 +02:00
# Copyright © 2017-2018 Unrud <unrud@outlook.com>
2009-09-01 19:09:11 +02:00
#
# This library 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 library 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 Radicale. If not, see <http://www.gnu.org/licenses/>.
2010-04-12 12:23:22 +02:00
"""
2012-03-20 18:41:14 +01:00
Radicale CalDAV and CardDAV server
==================================
2010-04-12 12:23:22 +02:00
2012-03-20 18:41:14 +01:00
The Radicale Project is a CalDAV (calendar) and CardDAV (contact) server. It
aims to be a light solution, easy to use, easy to install, easy to configure.
As a consequence, it requires few software dependances and is pre-configured to
work out-of-the-box.
2010-04-13 01:30:47 +02:00
2010-04-13 01:59:13 +02:00
The Radicale Project runs on most of the UNIX-like platforms (Linux, BSD,
MacOS X) and Windows. It is known to work with Evolution, Lightning, iPhone
2011-04-02 12:03:33 +02:00
and Android clients. It is free and open-source software, released under GPL
version 3.
2010-04-13 01:30:47 +02:00
For further information, please visit the `Radicale Website
<https://radicale.org/>`_.
2010-04-12 12:23:22 +02:00
"""
2020-10-04 15:13:01 +02:00
import os
2016-08-05 16:27:55 +02:00
import sys
2016-04-10 11:31:52 +02:00
2018-08-29 16:39:26 +02:00
from setuptools import find_packages, setup
2016-04-10 11:31:52 +02:00
2022-01-18 21:39:37 +01:00
# When the version is updated, a new section in the CHANGELOG.md file must be
# added too.
2020-05-17 10:37:48 +02:00
VERSION = "master"
2018-08-28 16:19:36 +02:00
WEB_FILES = ["web/internal_data/css/icon.png",
"web/internal_data/css/main.css",
"web/internal_data/fn.js",
"web/internal_data/index.html"]
2021-09-27 17:22:42 +02:00
setup_requires = []
if {"pytest", "test", "ptr"}.intersection(sys.argv):
setup_requires.append("pytest-runner")
2022-02-07 14:13:56 +01:00
tests_require = ["pytest-runner", "pytest<7", "pytest-cov", "pytest-flake8",
"pytest-isort", "typeguard", "waitress"]
2020-10-04 15:13:01 +02:00
os.environ["PYTEST_ADDOPTS"] = os.environ.get("PYTEST_ADDOPTS", "")
# Mypy only supports CPython
if sys.implementation.name == "cpython":
tests_require.extend(["pytest-mypy", "types-setuptools"])
os.environ["PYTEST_ADDOPTS"] += " --mypy"
2009-09-01 19:09:11 +02:00
setup(
name="Radicale",
version=VERSION,
2012-03-20 18:41:14 +01:00
description="CalDAV and CardDAV Server",
2010-04-13 01:30:47 +02:00
long_description=__doc__,
2009-09-01 19:09:11 +02:00
author="Guillaume Ayoub",
author_email="guillaume.ayoub@kozea.fr",
url="https://radicale.org/",
download_url=("https://pypi.python.org/packages/source/R/Radicale/"
"Radicale-%s.tar.gz" % VERSION),
2009-09-01 19:09:11 +02:00
license="GNU GPL v3",
2010-04-13 01:30:47 +02:00
platforms="Any",
2018-08-29 16:39:26 +02:00
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
2021-12-09 19:32:47 +01:00
package_data={"radicale": [*WEB_FILES, "py.typed"]},
2018-04-20 14:57:23 +02:00
entry_points={"console_scripts": ["radicale = radicale.__main__:run"]},
install_requires=["defusedxml", "passlib", "vobject>=0.9.6",
"python-dateutil>=2.7.3", "setuptools"],
2021-09-27 17:22:42 +02:00
setup_requires=setup_requires,
2018-04-20 14:57:26 +02:00
tests_require=tests_require,
2020-01-19 21:33:13 +01:00
extras_require={"test": tests_require,
"bcrypt": ["passlib[bcrypt]", "bcrypt"]},
keywords=["calendar", "addressbook", "CalDAV", "CardDAV"],
python_requires=">=3.6.0",
2010-04-13 01:30:47 +02:00
classifiers=[
2015-09-14 11:55:49 +02:00
"Development Status :: 5 - Production/Stable",
2010-04-13 01:30:47 +02:00
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
2017-03-04 14:37:58 +01:00
"Programming Language :: Python :: 3.6",
2018-08-16 08:00:02 +02:00
"Programming Language :: Python :: 3.7",
2020-01-13 15:51:10 +01:00
"Programming Language :: Python :: 3.8",
2020-09-25 23:36:15 +02:00
"Programming Language :: Python :: 3.9",
2021-12-09 19:15:44 +01:00
"Programming Language :: Python :: 3.10",
2020-09-26 03:20:56 +02:00
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
2010-04-13 01:30:47 +02:00
"Topic :: Office/Business :: Groupware"])