setup.py 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #!/usr/bin/python
  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. from os import path
  34. from setuptools import setup
  35. init_path = path.join(path.dirname(__file__), "radicale", "__init__.py")
  36. with open(init_path, "r", encoding="utf-8") as fd:
  37. version = re.search('VERSION = "([^"]+)"', fd.read().strip()).group(1)
  38. # When the version is updated, ``radicale.VERSION`` must be modified.
  39. # A new section in the ``NEWS`` file must be added too.
  40. setup(
  41. name="Radicale",
  42. version=version,
  43. description="CalDAV and CardDAV Server",
  44. long_description=__doc__,
  45. author="Guillaume Ayoub",
  46. author_email="guillaume.ayoub@kozea.fr",
  47. url="http://www.radicale.org/",
  48. download_url=("http://pypi.python.org/packages/source/R/Radicale/"
  49. "Radicale-%s.tar.gz" % version),
  50. license="GNU GPL v3",
  51. platforms="Any",
  52. packages=["radicale"],
  53. provides=["radicale"],
  54. scripts=["bin/radicale"],
  55. install_requires=["vobject"],
  56. setup_requires=['pytest-runner'],
  57. tests_require=['pytest-cov', 'pytest-flake8', 'pytest-isort', 'pytest'],
  58. extras_require={
  59. 'test': [
  60. 'pytest-runner', 'pytest-cov', 'pytest-flake8', 'pytest-isort',
  61. 'pytest'
  62. ]
  63. },
  64. keywords=["calendar", "addressbook", "CalDAV", "CardDAV"],
  65. classifiers=[
  66. "Development Status :: 5 - Production/Stable",
  67. "Environment :: Console",
  68. "Environment :: Web Environment",
  69. "Intended Audience :: End Users/Desktop",
  70. "Intended Audience :: Information Technology",
  71. "License :: OSI Approved :: GNU General Public License (GPL)",
  72. "Operating System :: OS Independent",
  73. "Programming Language :: Python :: 3",
  74. "Programming Language :: Python :: 3.3",
  75. "Programming Language :: Python :: 3.4",
  76. "Programming Language :: Python :: 3.5",
  77. "Topic :: Office/Business :: Groupware"])