comparison pyproject.toml @ 1522:a44f77559279

installation: moved from `setup.py` to `pyproject.toml`: - following backend change, installation is now using `pyproject.toml`, and legacy `setup.py` as well as other legacy files have been deleted/updated. - [hatch](https://hatch.pypa.io) is now used as main building tool. However, thanks to the use of standards, other tools can be used too. - `VERSION` file has been deleted, in favor or using directly `__version__`, in `libervia/web/__init__.py`. Version can be updated directly from Hatch - update .hgignore - several dependencies version bump, with code update to adapt to changes.
author Goffi <goffi@goffi.org>
date Wed, 07 Jun 2023 15:28:10 +0200
parents
children 311febeae2d5
comparison
equal deleted inserted replaced
1521:0d517b596568 1522:a44f77559279
1 [build-system]
2 requires = ["hatchling"]
3 build-backend = "hatchling.build"
4
5 [project]
6 name = "libervia-web"
7 dynamic = ["version"]
8 description = "Web frontend for Libervia, a feature-rich XMPP client"
9 readme = "README.md"
10 license = "AGPL-3.0-or-later"
11 requires-python = ">=3.7"
12 authors = [
13 { name = "Libervia Dev Team", email = "contact@goffi.org" },
14 ]
15 classifiers = [
16 "Development Status :: 5 - Production/Stable",
17 "Environment :: Web Environment",
18 "Framework :: Twisted",
19 "Operating System :: POSIX :: Linux",
20 "Topic :: Communications :: Chat",
21 ]
22 dependencies = [
23 "autobahn >= 23.6.1",
24 "brython >= 3.10",
25 "jinja2 >= 3.1.2",
26 # use during dev mode to have current version of backend
27 "libervia-backend @ {root:uri}/../libervia-backend",
28 "libervia-templates @ {root:uri}/../libervia-backend",
29 "pyopenssl >= 23.2.0",
30 "shortuuid ~= 1.0.11",
31 "twisted[tls] >= 22.10",
32 "zope.interface >= 5",
33 ]
34 keywords = [
35 "XMPP",
36 "web",
37 "brython",
38 "chat",
39 "instant_messaging",
40 "blogging",
41 "photo albums",
42 "file sharing",
43 "events"
44 ]
45
46 [project.scripts]
47 libervia-web = "libervia.web.server.launcher:Launcher.run"
48
49 [project.urls]
50 Homepage = "https://www.libervia.org"
51
52 [tool.hatch.build.targets.wheel]
53 packages = ["libervia"]
54
55 [tool.hatch.envs.default]
56 # we need system-package for GPG
57 system-packages = true
58
59 [tool.hatch.metadata]
60 allow-direct-references = true
61
62 [tool.hatch.version]
63 path = "libervia/web/__init__.py"
64
65 [tool.hatch.build.targets.wheel.shared-data]
66 COPYING = "share/doc/libervia-web/COPYING"
67 "README.md" = "share/doc/libervia-web/README.md"