Mercurial > libervia-desktop-kivy
diff pyproject.toml @ 495:59bdf78bd1d9
installation: update to use hatch following change in backend and other frontends:
- `setup.py` and `requirements.txt` have been removed in favor of `pyproject.toml`
- changed versionning mechanism to use a version directly in
`libervia/desktop_kivy/__init__.py` handled by Hatch
- remove the log hack from `kivy_hack` as there is now an environment variable to disable
the logging hijacking
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 28 Aug 2023 18:29:18 +0200 |
parents | |
children | f387992d8e37 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pyproject.toml Mon Aug 28 18:29:18 2023 +0200 @@ -0,0 +1,72 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "libervia-desktop-kivy" +dynamic = ["version"] +description = "Desktop/Android frontend (Kivy version) for Libervia XMPP client" +readme = "README.md" +license = "AGPL-3.0-or-later" +requires-python = ">=3.10" +authors = [ + { name = "Libervia Dev Team", email = "contact@goffi.org" }, +] +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Environment :: X11 Applications", + "Framework :: Twisted", + "Intended Audience :: End Users/Desktop", + "Operating System :: Android", + "Operating System :: POSIX :: Linux", + "Topic :: Communications :: Chat", + "Topic :: Internet :: XMPP", +] +dependencies = [ + "kivy ~= 2.2.0", + "kivy_garden.modernmenu", + # "libervia-backend == 0.9.*", + "pillow <9.3", + "plyer <2.1", +] +keywords = [ + "XMPP", + "desktop", + "kivy", + "chat", + "instant_messaging", + "file_sharing" +] + +[project.scripts] +libervia-desktop-kivy = "libervia.desktop_kivy:run" +libervia-mobile = "libervia.desktop_kivy:run" +cagou = "libervia.desktop_kivy:run" + +[project.urls] +Homepage = "https://libervia.org" + +[tool.hatch.build.targets.wheel] +packages = ["libervia", "twisted"] + +[tool.hatch.envs.default] +# we need system-package for GPG +system-packages = true + +[tool.hatch.envs.dev] +dependencies = [ + "ipdb", + "pudb", + "pytest", + "pytest-asyncio" +] + +[tool.hatch.metadata] +allow-direct-references = true + +[tool.hatch.version] +path = "libervia/desktop_kivy/__init__.py" + +[tool.hatch.build.targets.wheel.shared-data] +COPYING = "share/doc/libervia-desktop-kivy/COPYING" +"README.md" = "share/doc/libervia-desktop-kivy/README.md"