setup.py 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # This file is part of Radicale Server - Calendar Server
  5. # Copyright © 2009-2010 Guillaume Ayoub
  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 server
  21. ======================
  22. The Radicale Project is a CalDAV calendar server. It aims to be a light
  23. solution, easy to use, easy to install, easy to configure. As a consequence,
  24. it requires few software dependances and is pre-configured to work
  25. 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 2.30+, Lightning 0.9+
  28. and Sunbird 0.9+. It is free and open-source software, released under GPL
  29. version 3.
  30. For further information, please visit the `Radicale Website
  31. <http://www.radicale.org/>`_.
  32. """
  33. import os
  34. from distutils.core import setup
  35. from distutils.command.build_scripts import build_scripts
  36. import radicale
  37. class BuildScripts(build_scripts):
  38. """Build the package."""
  39. def run(self):
  40. """Run building."""
  41. # These lines remove the .py extension from the radicale executable
  42. self.mkpath(self.build_dir)
  43. for script in self.scripts:
  44. root, _ = os.path.splitext(script)
  45. self.copy_file(script, os.path.join(self.build_dir, root))
  46. # When the version is updated, ``radicale.VERSION`` must be modified and
  47. # ``download_url`` must be uncommented. A new section in the ``NEWS`` file
  48. # must be added too.
  49. setup(
  50. name="Radicale",
  51. version=radicale.VERSION,
  52. description="CalDAV Server",
  53. long_description=__doc__,
  54. author="Guillaume Ayoub",
  55. author_email="guillaume.ayoub@kozea.fr",
  56. url="http://www.radicale.org/",
  57. #download_url="http://www.radicale.org/src/radicale/Radicale-%s.tar.gz" % \
  58. # radicale.VERSION,
  59. license="GNU GPL v3",
  60. platforms="Any",
  61. packages=["radicale", "radicale.acl"],
  62. provides=["radicale"],
  63. scripts=["radicale.py"],
  64. cmdclass={"build_scripts": BuildScripts},
  65. keywords=["calendar", "CalDAV"],
  66. classifiers=[
  67. "Development Status :: 4 - Beta",
  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 :: 2",
  75. "Programming Language :: Python :: 2.5",
  76. "Programming Language :: Python :: 2.6",
  77. "Programming Language :: Python :: 3",
  78. "Programming Language :: Python :: 3.0",
  79. "Programming Language :: Python :: 3.1",
  80. "Topic :: Office/Business :: Groupware"])