setup.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # This file is part of Radicale - CalDAV and CardDAV server
  2. # Copyright © 2009-2017 Guillaume Ayoub
  3. # Copyright © 2017-2018 Unrud <unrud@outlook.com>
  4. #
  5. # This library is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This library is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with Radicale. If not, see <http://www.gnu.org/licenses/>.
  17. from setuptools import find_packages, setup
  18. # When the version is updated, a new section in the CHANGELOG.md file must be
  19. # added too.
  20. VERSION = "3.dev"
  21. with open("README.md", encoding="utf-8") as f:
  22. long_description = f.read()
  23. web_files = ["web/internal_data/css/icon.png",
  24. "web/internal_data/css/loading.svg",
  25. "web/internal_data/css/logo.svg",
  26. "web/internal_data/css/main.css",
  27. "web/internal_data/css/icons/delete.svg",
  28. "web/internal_data/css/icons/download.svg",
  29. "web/internal_data/css/icons/edit.svg",
  30. "web/internal_data/css/icons/new.svg",
  31. "web/internal_data/css/icons/upload.svg",
  32. "web/internal_data/fn.js",
  33. "web/internal_data/index.html"]
  34. install_requires = ["defusedxml", "passlib", "vobject>=0.9.6",
  35. "python-dateutil>=2.7.3",
  36. "pika>=1.1.0",
  37. "setuptools; python_version<'3.9'"]
  38. bcrypt_requires = ["bcrypt"]
  39. # typeguard requires pytest<7
  40. test_requires = ["pytest<7", "typeguard<3", "waitress", *bcrypt_requires]
  41. setup(
  42. name="Radicale",
  43. version=VERSION,
  44. description="CalDAV and CardDAV Server",
  45. long_description=long_description,
  46. long_description_content_type="text/markdown",
  47. author="Guillaume Ayoub",
  48. author_email="guillaume.ayoub@kozea.fr",
  49. url="https://radicale.org/",
  50. license="GNU GPL v3",
  51. platforms="Any",
  52. packages=find_packages(
  53. exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
  54. package_data={"radicale": [*web_files, "py.typed"]},
  55. entry_points={"console_scripts": ["radicale = radicale.__main__:run"]},
  56. install_requires=install_requires,
  57. extras_require={"test": test_requires, "bcrypt": bcrypt_requires},
  58. keywords=["calendar", "addressbook", "CalDAV", "CardDAV"],
  59. python_requires=">=3.8.0",
  60. classifiers=[
  61. "Development Status :: 5 - Production/Stable",
  62. "Environment :: Console",
  63. "Environment :: Web Environment",
  64. "Intended Audience :: End Users/Desktop",
  65. "Intended Audience :: Information Technology",
  66. "License :: OSI Approved :: GNU General Public License (GPL)",
  67. "Operating System :: OS Independent",
  68. "Programming Language :: Python :: 3",
  69. "Programming Language :: Python :: 3.8",
  70. "Programming Language :: Python :: 3.9",
  71. "Programming Language :: Python :: 3.10",
  72. "Programming Language :: Python :: 3.11",
  73. "Programming Language :: Python :: 3.12",
  74. "Programming Language :: Python :: Implementation :: CPython",
  75. "Programming Language :: Python :: Implementation :: PyPy",
  76. "Topic :: Office/Business :: Groupware"])