setup.py 3.6 KB

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