Skip to content

Commit 1741f7a

Browse files
committed
fix: mark as typed
1 parent 0ab2f05 commit 1741f7a

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Change Log
2+
3+
# 0.0.2
4+
5+
Testing release
6+
7+
* fix: mark as typed
8+
9+
# 0.0.1
10+
11+
Initial testing release

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ from os.path import abspath, dirname, join
3131
try:
3232
from pysynapse import Homeserver
3333
except ImportError:
34-
print("pysynapse not installed")
34+
print("pysynapse not installed, install with:")
35+
print("python3 -m pip install pysynapse")
3536
exit(1)
3637

3738
config = ConfigParser()
@@ -48,6 +49,9 @@ homeserver = Homeserver(
4849
config.getboolean("homeserver", "verify", fallback=None),
4950
config.get("homeserver", "notices_user", fallback=None),
5051
)
52+
53+
print(f"Connected to {homeserver.base_url} (Synapse {homeserver.server_version})")
54+
5155
```
5256

5357
### Print summary of event reports

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "pysynapse"
33
description = "Python Synapse (Matrix) server Admin API module."
4-
version = "0.0.1"
4+
version = "0.0.2"
55
readme = "README.md"
66
requires-python = "~=3.8"
77
license = {file = "LICENSE"}
@@ -30,5 +30,8 @@ Source = "https://github.com/joepitt91/pysynapse"
3030
requires = ["setuptools >= 61.0.0"]
3131
build-backend = "setuptools.build_meta"
3232

33+
[tool.setuptools.package-data]
34+
"pysynapse" = ["py.typed"]
35+
3336
[tool.setuptools.packages.find]
3437
where = ["src"]

src/pysynapse/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
__license__ = "GPL-3.0-only"
1313
__maintainer__ = "Joe Pitt"
1414
__status__ = "Prototype"
15-
__version__ = "0.0.1"
15+
__version__ = "0.0.2"

src/pysynapse/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)