annotate pyproject.toml @ 1526:fc2bc024600d

build: do not set explicitely `libervia` package: `twisted` needs to be installed, and if we don't specify anything, Hatch looks automatically for all directories containing .py files, so it includes `libervia` and `twisted`.
author Goffi <goffi@goffi.org>
date Thu, 08 Jun 2023 21:07:55 +0200
parents c921e7002bac
children f17290299f79
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
a44f77559279 installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
53 [tool.hatch.envs.default]
a44f77559279 installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
54 # we need system-package for GPG
a44f77559279 installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
55 system-packages = true
a44f77559279 installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
56
1524
311febeae2d5 build: new "dev" env with debugging packages
Goffi <goffi@goffi.org>
parents: 1522
diff changeset
57 [tool.hatch.envs.dev]
311febeae2d5 build: new "dev" env with debugging packages
Goffi <goffi@goffi.org>
parents: 1522
diff changeset
58 dependencies = [
311febeae2d5 build: new "dev" env with debugging packages
Goffi <goffi@goffi.org>
parents: 1522
diff changeset
59 "ipdb",
311febeae2d5 build: new "dev" env with debugging packages
Goffi <goffi@goffi.org>
parents: 1522
diff changeset
60 "pudb"
311febeae2d5 build: new "dev" env with debugging packages
Goffi <goffi@goffi.org>
parents: 1522
diff changeset
61 ]
311febeae2d5 build: new "dev" env with debugging packages
Goffi <goffi@goffi.org>
parents: 1522
diff changeset
62
1522
a44f77559279 installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
63 [tool.hatch.metadata]
a44f77559279 installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
64 allow-direct-references = true
a44f77559279 installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
65
a44f77559279 installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
66 [tool.hatch.version]
a44f77559279 installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
67 path = "libervia/web/__init__.py"
a44f77559279 installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
68
a44f77559279 installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
69 [tool.hatch.build.targets.wheel.shared-data]
a44f77559279 installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
70 COPYING = "share/doc/libervia-web/COPYING"
a44f77559279 installation: moved from `setup.py` to `pyproject.toml`:
Goffi <goffi@goffi.org>
parents:
diff changeset
71 "README.md" = "share/doc/libervia-web/README.md"