radicale/setup.py

95 lines
3.4 KiB
Python
Raw Normal View History

2009-09-01 19:09:11 +02:00
#!/usr/bin/python
# -*- coding: utf-8 -*-
2009-09-01 19:09:11 +02:00
#
# This file is part of Radicale Server - Calendar Server
2011-01-09 17:46:22 +01:00
# Copyright © 2009-2011 Guillaume Ayoub
2009-09-01 19:09:11 +02:00
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Radicale. If not, see <http://www.gnu.org/licenses/>.
2010-04-12 12:23:22 +02:00
"""
2010-04-13 01:30:47 +02:00
Radicale CalDAV server
======================
2010-04-12 12:23:22 +02:00
2010-04-13 01:30:47 +02:00
The Radicale Project is a CalDAV calendar server. It aims to be a light
solution, easy to use, easy to install, easy to configure. As a consequence,
it requires few software dependances and is pre-configured to work
out-of-the-box.
2010-04-13 01:59:13 +02:00
The Radicale Project runs on most of the UNIX-like platforms (Linux, BSD,
MacOS X) and Windows. It is known to work with Evolution 2.30+, Lightning 0.9+
and Sunbird 0.9+. It is free and open-source software, released under GPL
version 3.
2010-04-13 01:30:47 +02:00
For further information, please visit the `Radicale Website
<http://www.radicale.org/>`_.
2010-04-12 12:23:22 +02:00
"""
2010-05-31 01:19:45 +02:00
import os
2010-05-30 23:49:06 +02:00
from distutils.core import setup
2010-05-31 01:19:45 +02:00
from distutils.command.build_scripts import build_scripts
2009-09-01 19:09:11 +02:00
import radicale
# build_scripts is known to have a lot of public methods
# pylint: disable=R0904
2010-05-31 01:19:45 +02:00
class BuildScripts(build_scripts):
"""Build the package."""
def run(self):
"""Run building."""
# These lines remove the .py extension from the radicale executable
self.mkpath(self.build_dir)
for script in self.scripts:
root, _ = os.path.splitext(script)
self.copy_file(script, os.path.join(self.build_dir, root))
# pylint: enable=R0904
2010-05-31 01:19:45 +02:00
# When the version is updated, ``radicale.VERSION`` must be modified.
# A new section in the ``NEWS`` file must be added too.
2009-09-01 19:09:11 +02:00
setup(
name="Radicale",
version=radicale.VERSION,
2010-04-13 01:30:47 +02:00
description="CalDAV Server",
long_description=__doc__,
2009-09-01 19:09:11 +02:00
author="Guillaume Ayoub",
author_email="guillaume.ayoub@kozea.fr",
url="http://www.radicale.org/",
download_url="http://www.radicale.org/src/radicale/Radicale-%s.tar.gz" % \
radicale.VERSION,
2009-09-01 19:09:11 +02:00
license="GNU GPL v3",
2010-04-13 01:30:47 +02:00
platforms="Any",
2010-02-10 23:52:50 +01:00
packages=["radicale", "radicale.acl"],
2010-04-13 01:30:47 +02:00
provides=["radicale"],
2009-09-01 19:09:11 +02:00
scripts=["radicale.py"],
2010-05-31 01:19:45 +02:00
cmdclass={"build_scripts": BuildScripts},
2010-04-13 01:49:35 +02:00
keywords=["calendar", "CalDAV"],
2010-04-13 01:30:47 +02:00
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
2010-04-13 01:30:47 +02:00
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.0",
"Programming Language :: Python :: 3.1",
"Topic :: Office/Business :: Groupware"])