Mercurial > libervia-web
annotate pyproject.toml @ 1525:c921e7002bac
build: don't use local dependencies, and remove backend package:
hatch doesn't support yet editable dependencies
(https://github.com/pypa/hatch/issues/588), and to work on dev, backend and templates must
be installed manually in dev mode. To avoid issues during sync when entering a shell,
those dependencies are disabled and must be installed manually.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 08 Jun 2023 21:07:54 +0200 |
parents | 311febeae2d5 |
children | fc2bc024600d |
rev | line source |
---|---|
1522
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 [build-system] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 requires = ["hatchling"] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 build-backend = "hatchling.build" |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
4 |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 [project] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 name = "libervia-web" |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 dynamic = ["version"] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 description = "Web frontend for Libervia, a feature-rich XMPP client" |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
9 readme = "README.md" |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
10 license = "AGPL-3.0-or-later" |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
11 requires-python = ">=3.7" |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
12 authors = [ |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 { name = "Libervia Dev Team", email = "contact@goffi.org" }, |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
14 ] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
15 classifiers = [ |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
16 "Development Status :: 5 - Production/Stable", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
17 "Environment :: Web Environment", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
18 "Framework :: Twisted", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
19 "Operating System :: POSIX :: Linux", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
20 "Topic :: Communications :: Chat", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
21 ] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
22 dependencies = [ |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
23 "autobahn >= 23.6.1", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
24 "brython >= 3.10", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
25 "jinja2 >= 3.1.2", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
26 # use during dev mode to have current version of backend |
1525
c921e7002bac
build: don't use local dependencies, and remove backend package:
Goffi <goffi@goffi.org>
parents:
1524
diff
changeset
|
27 # "libervia-backend == 0.9.*", |
c921e7002bac
build: don't use local dependencies, and remove backend package:
Goffi <goffi@goffi.org>
parents:
1524
diff
changeset
|
28 # "libervia-templates >0.8.0b1", |
1522
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
29 "pyopenssl >= 23.2.0", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
30 "shortuuid ~= 1.0.11", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
31 "twisted[tls] >= 22.10", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
32 "zope.interface >= 5", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
33 ] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
34 keywords = [ |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
35 "XMPP", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
36 "web", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
37 "brython", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
38 "chat", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
39 "instant_messaging", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
40 "blogging", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
41 "photo albums", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
42 "file sharing", |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
43 "events" |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
44 ] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
45 |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
46 [project.scripts] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
47 libervia-web = "libervia.web.server.launcher:Launcher.run" |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
48 |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
49 [project.urls] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
50 Homepage = "https://www.libervia.org" |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
51 |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
52 [tool.hatch.build.targets.wheel] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
53 packages = ["libervia"] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
54 |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
55 [tool.hatch.envs.default] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
56 # we need system-package for GPG |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
57 system-packages = true |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
58 |
1524
311febeae2d5
build: new "dev" env with debugging packages
Goffi <goffi@goffi.org>
parents:
1522
diff
changeset
|
59 [tool.hatch.envs.dev] |
311febeae2d5
build: new "dev" env with debugging packages
Goffi <goffi@goffi.org>
parents:
1522
diff
changeset
|
60 dependencies = [ |
311febeae2d5
build: new "dev" env with debugging packages
Goffi <goffi@goffi.org>
parents:
1522
diff
changeset
|
61 "ipdb", |
311febeae2d5
build: new "dev" env with debugging packages
Goffi <goffi@goffi.org>
parents:
1522
diff
changeset
|
62 "pudb" |
311febeae2d5
build: new "dev" env with debugging packages
Goffi <goffi@goffi.org>
parents:
1522
diff
changeset
|
63 ] |
311febeae2d5
build: new "dev" env with debugging packages
Goffi <goffi@goffi.org>
parents:
1522
diff
changeset
|
64 |
1522
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
65 [tool.hatch.metadata] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
66 allow-direct-references = true |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
67 |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
68 [tool.hatch.version] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
69 path = "libervia/web/__init__.py" |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
70 |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
71 [tool.hatch.build.targets.wheel.shared-data] |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
72 COPYING = "share/doc/libervia-web/COPYING" |
a44f77559279
installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
73 "README.md" = "share/doc/libervia-web/README.md" |