link2xt
6fbcf67190
python: revert ruff C4 -> C40 change
...
It is an error in ruff 0.0.255, will be fixed in the next version:
a8c1915e2e
2023-03-14 09:37:03 +00:00
link2xt
90d2333818
python: update for latest ruff 0.0.255
2023-03-13 22:31:50 +00:00
link2xt
d1d43e889a
python: add more type annotations
2023-02-27 13:07:35 +00:00
link2xt
c8ce4ce5aa
Switch to "vX.Y.Z" tagging scheme
...
Previously we used tags like "1.109.0" and "py-1.109.0".
Since Python bindings are always released
at the same time as the core,
it is easier to use a single tag for them.
"v" prefix is added to make matching by "v*" easier
in CI and scripts.
2023-02-24 16:48:37 +00:00
Robert Schütz
d3f4654d4b
python: replace pkg_resources with importlib.metadata
...
Use of pkg_resources is discouraged in favor of importlib.resources,
importlib.metadata, and their backports.
2023-02-21 21:32:12 -08:00
link2xt
032da4fb1a
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 >
2023-02-15 18:56:34 +00:00
link2xt
4f68e94fb3
python: use f-strings instead of percent-encoding
2023-02-15 16:33:05 +00:00
link2xt
01653a881a
python: do not import print function
2023-02-15 16:28:16 +00:00
link2xt
e021a59b87
python: do not inherit from object
2023-02-15 16:27:34 +00:00
link2xt
817760a6ef
python: upgrade from .format() to f-strings
...
They are supported since Python 3.5.
2023-02-08 15:44:34 +00:00
link2xt
fac7b064b4
Refine Python CI
...
Add lint environment to `deltachat-rpc-client/`
and set line length to 120, same as in `python/`.
Switch from flake8 to ruff.
Fix ruff warnings.
2023-01-20 16:53:21 +00:00
link2xt
ed5fc820c2
python: move most of setup.py to pyproject.toml
2022-07-14 14:39:39 +02:00
adbenitez
e334b781fb
move isort configuration to pyproject.toml instead of passing it in command line usage in tox.ini, this allows isort usage with editors to pick the right configuration without manually tweaking it in the editors
2022-06-09 04:24:28 -04:00
adbenitez
d3e6cc5acb
set black.line-length to 120
2022-05-31 23:02:51 -04:00
Robert Schütz
43e3f8f08b
python: use pkg-config for system install
2022-04-26 21:48:53 +02:00
link2xt
13bc8b78d7
python: enable isolated build in tox.ini
...
This makes tox install build system configured in pyproject.toml
according to PEP 518 rather than assuming setuptools.
2021-11-13 03:45:58 +00:00
link2xt
ebb89e20b4
fixup! Modernize python setup
2021-10-28 22:03:52 +00:00
link2xt
5b5b26122e
Modernize python setup
...
Use pyproject.toml instead of deprecated setup.py arguments and unpin dependencies in tox.ini.
2021-10-28 00:34:33 +03:00