Philipp Hörist pushed to branch master at gajim / gajim
Commits: 20edba3b by Philipp Hörist at 2022-12-28T17:20:35+01:00 change: Depend on Python 3.10 - - - - - 10047641 by Philipp Hörist at 2022-12-28T17:25:46+01:00 cq: Set strict parameter when using zip() - - - - - 7 changed files: - README.md - debian/control - gajim/gtk/component_search.py - gajim/gtk/preview_audio_visualizer.py - pyproject.toml - setup.cfg - setup.py Changes: ===================================== README.md ===================================== @@ -2,7 +2,7 @@ # Welcome to Gajim ### Runtime Requirements -- [Python](https://www.python.org/) (>=3.9) +- [Python](https://www.python.org/) (>=3.10) - [PyGObject](https://pypi.org/project/PyGObject/) (>=3.42.0) - [pycairo](https://pypi.org/project/pycairo/) - [cairo](https://gitlab.freedesktop.org/cairo/cairo) (>=1.16.0) ===================================== debian/control ===================================== @@ -7,7 +7,7 @@ Build-Depends: dh-python, gettext (>= 0.17-4), libglib2.0-dev, - python3 (>= 3.9), + python3 (>= 3.10), python3-css-parser, python3-gi, python3-gi-cairo, @@ -30,7 +30,7 @@ Depends: ${misc:Depends}, ${python3:Depends}, desktop-file-utils, - python3 (>= 3.9), + python3 (>= 3.10), python3-css-parser (>= 1.0.2), python3-gi (>= 3.42.0), python3-gi-cairo (>= 1.14.0~), ===================================== gajim/gtk/component_search.py ===================================== @@ -293,7 +293,8 @@ def process_result(self, form: Optional[Node]) -> None: self._treeview.connect('button-press-event', self._on_button_press) for field, counter in zip(form.reported.iter_fields(), - itertools.count()): + itertools.count(), + strict=False): self._treeview.append_column( Gtk.TreeViewColumn(field.label, Gtk.CellRendererText(), ===================================== gajim/gtk/preview_audio_visualizer.py ===================================== @@ -109,7 +109,7 @@ def _process_samples(self) -> None: if n >= 2: samples: AudioSampleT = [] - samples1, samples2 = zip(*self._samples) + samples1, samples2 = zip(*self._samples, strict=True) for i in range(2, int(len(self._samples) - n / 2), n): index = int(i + n / 2) avg1 = mean(samples1[index - 1:index + 1]) ===================================== pyproject.toml ===================================== @@ -11,7 +11,7 @@ ignore-words-list = "claus,pres,ser,trough" [tool.pyright] -pythonVersion = "3.9" +pythonVersion = "3.10" pythonPlatform = "All" typeCheckingMode = "strict" @@ -155,7 +155,7 @@ exclude = [ # Allow unused variables when underscore-prefixed. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" -target-version = "py39" +target-version = "py310" [tool.ruff.per-file-ignores] "test/*" = ["E402"] ===================================== setup.cfg ===================================== @@ -14,11 +14,11 @@ classifiers = Environment :: X11 Applications :: GTK License :: OSI Approved :: GNU General Public License v3 (GPLv3) Operating System :: OS Independent - Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.10 Topic :: Communications :: Chat [options] -python_requires = >=3.9 +python_requires = >=3.10 packages = find: test_suite = test install_requires = ===================================== setup.py ===================================== @@ -8,8 +8,8 @@ import os import sys -if sys.version_info < (3, 9): - sys.exit('Gajim needs Python 3.9+') +if sys.version_info < (3, 10): + sys.exit('Gajim needs Python 3.10+') import subprocess from pathlib import Path View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/747c569638e0abb877517cee162854c765df8a32...100476419f286208a3c84bf1e62dd1bc3b337db4 -- View it on GitLab: https://dev.gajim.org/gajim/gajim/-/compare/747c569638e0abb877517cee162854c765df8a32...100476419f286208a3c84bf1e62dd1bc3b337db4 You're receiving this email because of your account on dev.gajim.org.
_______________________________________________ Commits mailing list [email protected] https://lists.gajim.org/cgi-bin/listinfo/commits
