setup.py 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #!/usr/bin/env python3
  2. #
  3. # This file is part of Radicale Server - Calendar Server
  4. # Copyright © 2009-2017 Guillaume Ayoub
  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. <http://www.radicale.org/>`_.
  31. """
  32. import sys
  33. from setuptools import setup
  34. # When the version is updated, a new section in the NEWS.md file must be
  35. # added too.
  36. VERSION = "2.1.9"
  37. WEB_FILES = ["web/css/icon.png", "web/css/main.css", "web/fn.js",
  38. "web/index.html"]
  39. needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv)
  40. pytest_runner = ["pytest-runner"] if needs_pytest else []
  41. tests_require = ["pytest-runner", "pytest", "pytest-cov", "pytest-flake8",
  42. "pytest-isort"]
  43. setup(
  44. name="Radicale",
  45. version=VERSION,
  46. description="CalDAV and CardDAV Server",
  47. long_description=__doc__,
  48. author="Guillaume Ayoub",
  49. author_email="guillaume.ayoub@kozea.fr",
  50. url="http://www.radicale.org/",
  51. download_url=("http://pypi.python.org/packages/source/R/Radicale/"
  52. "Radicale-%s.tar.gz" % VERSION),
  53. license="GNU GPL v3",
  54. platforms="Any",
  55. packages=["radicale"],
  56. package_data={"radicale": WEB_FILES},
  57. entry_points={"console_scripts": ["radicale = radicale.__main__:run"]},
  58. install_requires=["vobject==0.9.5", "python-dateutil==2.6.1"],
  59. setup_requires=pytest_runner,
  60. tests_require=tests_require,
  61. extras_require={
  62. "test": tests_require,
  63. "md5": "passlib",
  64. "bcrypt": "passlib[bcrypt]"},
  65. keywords=["calendar", "addressbook", "CalDAV", "CardDAV"],
  66. python_requires=">=3.3",
  67. classifiers=[
  68. "Development Status :: 5 - Production/Stable",
  69. "Environment :: Console",
  70. "Environment :: Web Environment",
  71. "Intended Audience :: End Users/Desktop",
  72. "Intended Audience :: Information Technology",
  73. "License :: OSI Approved :: GNU General Public License (GPL)",
  74. "Operating System :: OS Independent",
  75. "Programming Language :: Python :: 3",
  76. "Programming Language :: Python :: 3.3",
  77. "Programming Language :: Python :: 3.4",
  78. "Programming Language :: Python :: 3.5",
  79. "Programming Language :: Python :: 3.6",
  80. "Topic :: Office/Business :: Groupware"])