setup.py 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. #!/usr/bin/env python3
  2. # This file is part of Radicale Server - Calendar Server
  3. # Copyright © 2009-2017 Guillaume Ayoub
  4. # Copyright © 2017-2018 Unrud <unrud@outlook.com>
  5. #
  6. # This library is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This library is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with Radicale. If not, see <http://www.gnu.org/licenses/>.
  18. """
  19. Radicale CalDAV and CardDAV server
  20. ==================================
  21. The Radicale Project is a CalDAV (calendar) and CardDAV (contact) server. It
  22. aims to be a light solution, easy to use, easy to install, easy to configure.
  23. As a consequence, it requires few software dependances and is pre-configured to
  24. work out-of-the-box.
  25. The Radicale Project runs on most of the UNIX-like platforms (Linux, BSD,
  26. MacOS X) and Windows. It is known to work with Evolution, Lightning, iPhone
  27. and Android clients. It is free and open-source software, released under GPL
  28. version 3.
  29. For further information, please visit the `Radicale Website
  30. <https://radicale.org/>`_.
  31. """
  32. import os
  33. import sys
  34. from setuptools import find_packages, setup
  35. # When the version is updated, a new section in the NEWS.md file must be
  36. # added too.
  37. VERSION = "2.90.0"
  38. WEB_FILES = ["web/internal_data/css/icon.png",
  39. "web/internal_data/css/main.css",
  40. "web/internal_data/fn.js",
  41. "web/internal_data/index.html"]
  42. needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv)
  43. pytest_runner = ["pytest-runner"] if needs_pytest else []
  44. tests_require = ["pytest-runner", "pytest", "pytest-cov", "pytest-flake8",
  45. "pytest-isort"]
  46. if os.name == "posix":
  47. tests_require.append("gunicorn")
  48. setup(
  49. name="Radicale",
  50. version=VERSION,
  51. description="CalDAV and CardDAV Server",
  52. long_description=__doc__,
  53. author="Guillaume Ayoub",
  54. author_email="guillaume.ayoub@kozea.fr",
  55. url="https://radicale.org/",
  56. download_url=("https://pypi.python.org/packages/source/R/Radicale/"
  57. "Radicale-%s.tar.gz" % VERSION),
  58. license="GNU GPL v3",
  59. platforms="Any",
  60. packages=find_packages(
  61. exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
  62. package_data={"radicale": WEB_FILES},
  63. entry_points={"console_scripts": ["radicale = radicale.__main__:run"]},
  64. install_requires=["defusedxml", "passlib", "vobject>=0.9.6",
  65. "python-dateutil>=2.7.3"],
  66. setup_requires=pytest_runner,
  67. tests_require=tests_require,
  68. extras_require={
  69. "test": tests_require,
  70. "bcrypt": "passlib[bcrypt]"},
  71. keywords=["calendar", "addressbook", "CalDAV", "CardDAV"],
  72. python_requires=">=3.5.2",
  73. classifiers=[
  74. "Development Status :: 5 - Production/Stable",
  75. "Environment :: Console",
  76. "Environment :: Web Environment",
  77. "Intended Audience :: End Users/Desktop",
  78. "Intended Audience :: Information Technology",
  79. "License :: OSI Approved :: GNU General Public License (GPL)",
  80. "Operating System :: OS Independent",
  81. "Programming Language :: Python :: 3",
  82. "Programming Language :: Python :: 3.5",
  83. "Programming Language :: Python :: 3.6",
  84. "Programming Language :: Python :: 3.7",
  85. "Programming Language :: Python :: 3.8",
  86. "Topic :: Office/Business :: Groupware"])