Skip to content

Commit 83e091c

Browse files
committed
install: Migrate from setup.py to pyproject.toml.
1 parent 3a2c96e commit 83e091c

File tree

3 files changed

+52
-76
lines changed

3 files changed

+52
-76
lines changed

zulip/pyproject.toml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "zulip"
7+
dynamic = ["version"]
8+
description = "Bindings for the Zulip message API"
9+
readme = "README.md"
10+
authors = [
11+
{name = "Zulip Open Source Project", email = "[email protected]"}
12+
]
13+
license = "Apache-2.0"
14+
requires-python = ">=3.9"
15+
classifiers = [
16+
"Development Status :: 4 - Beta",
17+
"Environment :: Web Environment",
18+
"Intended Audience :: Developers",
19+
"Topic :: Communications :: Chat",
20+
"Programming Language :: Python :: 3",
21+
"Programming Language :: Python :: 3.9",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
]
26+
dependencies = [
27+
"requests[security]>=0.12.1",
28+
"distro",
29+
"click",
30+
"typing_extensions>=4.5.0",
31+
]
32+
33+
[project.urls]
34+
Homepage = "https://www.zulip.org/"
35+
Source = "https://github.com/zulip/python-zulip-api/"
36+
Documentation = "https://zulip.com/api"
37+
38+
[project.scripts]
39+
zulip-send = "zulip.send:main"
40+
zulip-api-examples = "zulip.api_examples:main"
41+
zulip-matrix-bridge = "integrations.bridge_with_matrix.matrix_bridge:main"
42+
zulip-api = "zulip.cli:cli"
43+
44+
[tool.hatch.version]
45+
path = "zulip/__init__.py"
46+
47+
[tool.hatch.build.targets.wheel]
48+
packages = ["zulip"]
49+
exclude = ["tests"]
50+
51+
[tool.hatch.build.targets.wheel.shared-data]
52+
"integrations" = "share/zulip/integrations"

zulip/setup.cfg

Lines changed: 0 additions & 3 deletions
This file was deleted.

zulip/setup.py

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)