mirror of
https://github.com/chatmail/core.git
synced 2026-05-06 06:46:35 +03:00
python: add py.typed file
It marks the package as supporting typing according to PEP 561 <https://peps.python.org/pep-0561/> Also remove zip-safe option from setuptools configuration for deltachat-rpc-client. It is deprecated in setuptools and not used for wheel package format according to <https://setuptools.pypa.io/en/latest/deprecated/zip_safe.html>
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
- deltachat-rpc-client: use `dataclass` for `Account`, `Chat`, `Contact` and `Message` #4042
|
- deltachat-rpc-client: use `dataclass` for `Account`, `Chat`, `Contact` and `Message` #4042
|
||||||
|
- python: mark bindings as supporting typing according to PEP 561 #4045
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- deltachat-rpc-server: do not block stdin while processing the request. #4041
|
- deltachat-rpc-server: do not block stdin while processing the request. #4041
|
||||||
|
|||||||
@@ -13,13 +13,6 @@ dynamic = [
|
|||||||
"version"
|
"version"
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.setuptools]
|
|
||||||
# We declare the package not-zip-safe so that our type hints are also available
|
|
||||||
# when checking client code that uses our (installed) package.
|
|
||||||
# Ref:
|
|
||||||
# https://mypy.readthedocs.io/en/stable/installed_packages.html?highlight=zip#using-installed-packages-with-mypy-pep-561
|
|
||||||
zip-safe = false
|
|
||||||
|
|
||||||
[tool.setuptools.package-data]
|
[tool.setuptools.package-data]
|
||||||
deltachat_rpc_client = [
|
deltachat_rpc_client = [
|
||||||
"py.typed"
|
"py.typed"
|
||||||
|
|||||||
@@ -36,6 +36,11 @@ dynamic = [
|
|||||||
[project.entry-points.pytest11]
|
[project.entry-points.pytest11]
|
||||||
"deltachat.testplugin" = "deltachat.testplugin"
|
"deltachat.testplugin" = "deltachat.testplugin"
|
||||||
|
|
||||||
|
[tool.setuptools.package-data]
|
||||||
|
deltachat = [
|
||||||
|
"py.typed"
|
||||||
|
]
|
||||||
|
|
||||||
[tool.setuptools_scm]
|
[tool.setuptools_scm]
|
||||||
root = ".."
|
root = ".."
|
||||||
tag_regex = '^(?P<prefix>py-)?(?P<version>[^\+]+)(?P<suffix>.*)?$'
|
tag_regex = '^(?P<prefix>py-)?(?P<version>[^\+]+)(?P<suffix>.*)?$'
|
||||||
|
|||||||
0
python/src/deltachat/py.typed
Normal file
0
python/src/deltachat/py.typed
Normal file
Reference in New Issue
Block a user