From 9f2b53d633477cf4eba8d7f0783e06a70eb06a0e Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Sep 05 2023 18:06:45 +0000 Subject: Update to version 3.52 (rhbz#2227848) - IMPORTANT: gevent support is now deprecated and removed Also, upstream has moved from setuptools to pyproject.toml and hatch, and so we switch to pyproject macros. There is still a dependency on setuptools via pkg_resources. --- diff --git a/.gitignore b/.gitignore index 51f6d25..4ac75f1 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ /py3status-3.49.tar.gz /py3status-3.50.tar.gz /py3status-3.51.tar.gz +/py3status-3.52.tar.gz diff --git a/py3status.spec b/py3status.spec index 681170e..0123fb6 100644 --- a/py3status.spec +++ b/py3status.spec @@ -1,7 +1,7 @@ %bcond_without test Name: py3status -Version: 3.51 +Version: 3.52 Release: %autorelease Summary: An extensible i3status wrapper written in python @@ -13,7 +13,7 @@ BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools %if %{with test} -BuildRequires: python3-tox python3-tox-current-env python3-pytest +BuildRequires: python3-pytest %endif Requires: i3status Obsoletes: %{name}-doc < 3.44-1 @@ -25,34 +25,32 @@ Using py3status, you can take control of your i3bar easily by: - seeing your clock tick every second whatever your i3status interval No extra configuration file needed, just install & enjoy ! +%pyproject_extras_subpkg -n %{name} udev %prep %setup -q -n %{name}-%{version} +%generate_buildrequires +%pyproject_buildrequires -t + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install + +%pyproject_save_files %{name} %if %{with test} %check -# disable linters -sed -i -e '/{envbindir}\/black/d' -e 's/pytest --flake8/pytest/' tox.ini -# test in install environment -sed -i -e 's#{envbindir}/##' tox.ini -%tox +pytest %endif -%files +%files -f %{pyproject_files} %license LICENSE %doc README.md CHANGELOG %{_bindir}/py3-cmd %{_bindir}/py3status -%dir %{python3_sitelib}/py3status -%{python3_sitelib}/py3status/* -%{python3_sitelib}/*.egg-info - %changelog %autochangelog diff --git a/sources b/sources index 7d5c309..f09a3ca 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (py3status-3.51.tar.gz) = b128d41c7fab59b79b8cd9dd8cc2c7ef27c5021dc5e14ae4430da0b87331a62ca81c80c611342749b3c886e1b5bd842bfe79b43cd56c58d773c0b08220f71f53 +SHA512 (py3status-3.52.tar.gz) = 26c4b78188aef794a92d36fc6906d4c0b8ac397d35a283d129bafc0a131279b5944d85fc453b52e0221d329a61af9f411e5b155d4bac167e8430759ed9501559