setup.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #!/usr/bin/env python3
  2. #
  3. # This file is part of Radicale Server - Calendar Server
  4. # Copyright © 2009-2016 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 re
  33. import sys
  34. from os import path
  35. from setuptools import setup
  36. init_path = path.join(path.dirname(__file__), "radicale", "__init__.py")
  37. with open(init_path, "r", encoding="utf-8") as fd:
  38. version = re.search('VERSION = "([^"]+)"', fd.read().strip()).group(1)
  39. needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
  40. pytest_runner = ['pytest-runner'] if needs_pytest else []
  41. # When the version is updated, ``radicale.VERSION`` must be modified.
  42. # A new section in the ``NEWS`` file must be added too.
  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. provides=["radicale"],
  57. scripts=["bin/radicale"],
  58. install_requires=["vobject"],
  59. setup_requires=pytest_runner,
  60. tests_require=[
  61. "pytest-runner", "pytest-cov", "pytest-flake8", "pytest-isort"],
  62. extras_require={"test": [
  63. "pytest-runner", "pytest-cov", "pytest-flake8", "pytest-isort"]},
  64. keywords=["calendar", "addressbook", "CalDAV", "CardDAV"],
  65. python_requires='>=3.3',
  66. classifiers=[
  67. "Development Status :: 5 - Production/Stable",
  68. "Environment :: Console",
  69. "Environment :: Web Environment",
  70. "Intended Audience :: End Users/Desktop",
  71. "Intended Audience :: Information Technology",
  72. "License :: OSI Approved :: GNU General Public License (GPL)",
  73. "Operating System :: OS Independent",
  74. "Programming Language :: Python :: 3",
  75. "Programming Language :: Python :: 3.3",
  76. "Programming Language :: Python :: 3.4",
  77. "Programming Language :: Python :: 3.5",
  78. "Programming Language :: Python :: 3.6",
  79. "Topic :: Office/Business :: Groupware"])