setup.py 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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/main.css",
  25. "web/internal_data/fn.js",
  26. "web/internal_data/index.html"]
  27. install_requires = ["defusedxml", "passlib", "vobject>=0.9.6",
  28. "python-dateutil>=2.7.3",
  29. "setuptools; python_version<'3.9'"]
  30. bcrypt_requires = ["passlib[bcrypt]", "bcrypt"]
  31. # typeguard requires pytest<7
  32. test_requires = ["pytest<7", "typeguard<3", "waitress", *bcrypt_requires]
  33. setup(
  34. name="Radicale",
  35. version=VERSION,
  36. description="CalDAV and CardDAV Server",
  37. long_description=long_description,
  38. long_description_content_type="text/markdown",
  39. author="Guillaume Ayoub",
  40. author_email="guillaume.ayoub@kozea.fr",
  41. url="https://radicale.org/",
  42. license="GNU GPL v3",
  43. platforms="Any",
  44. packages=find_packages(
  45. exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
  46. package_data={"radicale": [*web_files, "py.typed"]},
  47. entry_points={"console_scripts": ["radicale = radicale.__main__:run"]},
  48. install_requires=install_requires,
  49. extras_require={"test": test_requires, "bcrypt": bcrypt_requires},
  50. keywords=["calendar", "addressbook", "CalDAV", "CardDAV"],
  51. python_requires=">=3.7.0",
  52. classifiers=[
  53. "Development Status :: 5 - Production/Stable",
  54. "Environment :: Console",
  55. "Environment :: Web Environment",
  56. "Intended Audience :: End Users/Desktop",
  57. "Intended Audience :: Information Technology",
  58. "License :: OSI Approved :: GNU General Public License (GPL)",
  59. "Operating System :: OS Independent",
  60. "Programming Language :: Python :: 3",
  61. "Programming Language :: Python :: 3.7",
  62. "Programming Language :: Python :: 3.8",
  63. "Programming Language :: Python :: 3.9",
  64. "Programming Language :: Python :: 3.10",
  65. "Programming Language :: Python :: 3.11",
  66. "Programming Language :: Python :: 3.12",
  67. "Programming Language :: Python :: Implementation :: CPython",
  68. "Programming Language :: Python :: Implementation :: PyPy",
  69. "Topic :: Office/Business :: Groupware"])