Skip to content
Merged
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
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-python@v5
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,5 @@ cython_debug/

.DS_Store

.vscode
.vscode
matrix/_version.py
7 changes: 6 additions & 1 deletion matrix/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
"""A simple, developer-friendly library to create powerful Matrix bots."""

__version__ = "1.0.4-alpha"
from importlib.metadata import version, PackageNotFoundError

try:
__version__ = version("matrix-python")
except PackageNotFoundError:
from matrix._version import version as __version__

from .bot import Bot
from .group import Group
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=64", "setuptools_scm>=8"]

[project]
name = "matrix-python"
version = "1.0.4-alpha"
dynamic = ["version"]
authors = [
{ name="Simon Roy" },
{ name=" Chris Dedman Rollet " }
Expand Down Expand Up @@ -42,3 +42,6 @@ dev = [
[tool.setuptools]
packages = ["matrix"]
license-files = []

[tool.setuptools_scm]
write_to = "matrix/_version.py"