Skip to content

Commit

Permalink
use pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Jan 28, 2024
1 parent 73ec7e2 commit 835bca0
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 39 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ jobs:
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: check GITHUB_REF matches package version
uses: samuelcolvin/[email protected]
with:
version_file_path: centrifuge/__init__.py

- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Build distribution
run: python -m build

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
3 changes: 3 additions & 0 deletions centrifuge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
HistoryResult, PresenceResult, PresenceStatsResult, RpcResult


__version__ = "0.3.0b0"


__all__ = [
Client, Subscription, ClientState, SubscriptionState,

Expand Down
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "centrifuge-python"
description = "WebSocket SDK for Centrifugo (and any Centrifuge-based server) on top of Python asyncio library"
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
authors = [
{ name = "Alexander Emelin (Centrifugal Labs LTD)", email = "" },
]
keywords = [
"Centrifugo",
"Centrifuge",
"WebSocket",
"Pub/Sub",
"Realtime",
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Framework :: AsyncIO",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Topic :: System :: Networking",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Internet",
"Typing :: Typed",
]
dependencies = [
"websockets>=11.0.3,<12.0.0",
"protobuf>=4.23.4,<5.0.0",
]

dynamic = ["version"]
32 changes: 0 additions & 32 deletions setup.py

This file was deleted.

0 comments on commit 835bca0

Please sign in to comment.