Skip to content

install: Migrate from setup.py to pyproject.toml. #875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions zulip/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "zulip"
dynamic = ["version"]
description = "Bindings for the Zulip message API"
readme = "README.md"
authors = [
{name = "Zulip Open Source Project", email = "[email protected]"}
]
license = "Apache-2.0"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Topic :: Communications :: Chat",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"requests[security]>=0.12.1",
"distro",
"click",
"typing_extensions>=4.5.0",
]

[project.urls]
Homepage = "https://www.zulip.org/"
Source = "https://github.com/zulip/python-zulip-api/"
Documentation = "https://zulip.com/api"

[project.scripts]
Copy link
Contributor Author

@rht rht Jul 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed that the scripts all exist in the installed virtualenv bin directory.

zulip-send = "zulip.send:main"
zulip-api-examples = "zulip.api_examples:main"
zulip-matrix-bridge = "integrations.bridge_with_matrix.matrix_bridge:main"
zulip-api = "zulip.cli:cli"

[tool.hatch.version]
path = "zulip/__init__.py"

[tool.hatch.build.targets.wheel]
packages = ["zulip"]
exclude = ["tests"]

[tool.hatch.build.targets.wheel.shared-data]
"integrations" = "share/zulip/integrations"
3 changes: 0 additions & 3 deletions zulip/setup.cfg

This file was deleted.

73 changes: 0 additions & 73 deletions zulip/setup.py

This file was deleted.

Loading