17
0

6 Commits

Author SHA256 Message Date
c6743764ef Accepting request 1289116 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1289116
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-QDarkStyle?expand=0&rev=11
2025-06-30 11:06:23 +00:00
df206a3552 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QDarkStyle?expand=0&rev=23
2025-06-30 04:08:58 +00:00
2d56f85df8 Accepting request 1282335 from devel:languages:python
Forwarded request #1281835 from krop

- Drop pyside2 support for Leap 16 and factory (boo#1243916)

OBS-URL: https://build.opensuse.org/request/show/1282335
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-QDarkStyle?expand=0&rev=10
2025-06-03 15:57:28 +00:00
d07b0ad44e Accepting request 1281835 from home:krop:pyside2-removal
- Drop pyside2 support for Leap 16 and factory (boo#1243916)

OBS-URL: https://build.opensuse.org/request/show/1281835
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QDarkStyle?expand=0&rev=21
2025-06-03 13:20:43 +00:00
c82de531a2 Accepting request 1181543 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1181543
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-QDarkStyle?expand=0&rev=9
2024-06-19 14:37:09 +00:00
46c3f4aecb Accepting request 1177271 from home:mlin7442:rebuild_fails_156
fix test fail for Leap 15.6

OBS-URL: https://build.opensuse.org/request/show/1177271
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QDarkStyle?expand=0&rev=19
2024-06-18 16:20:57 +00:00
2 changed files with 30 additions and 9 deletions

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Mon Jun 30 04:08:40 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Mon Jun 2 08:54:23 UTC 2025 - Christophe Marin <christophe@krop.fr>
- Drop pyside2 support for Leap 16 and factory (boo#1243916)
-------------------------------------------------------------------
Thu May 23 08:16:14 UTC 2024 - Max Lin <mlin@suse.com>
- Fix test on Leap 15.6
-------------------------------------------------------------------
Fri Nov 24 20:29:15 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package python-QDarkStyle
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -31,22 +31,26 @@ Version: 3.2.1
Release: 0
Summary: A dark stylesheet for Python and Qt applications
License: MIT
Group: Development/Languages/Python
URL: https://github.com/ColinDuquesnoy/QDarkStyleSheet
Source: https://github.com/ColinDuquesnoy/QDarkStyleSheet/archive/v%{version}.tar.gz#/QDarkStyle-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-QtPy >= 2
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module QDarkStyle = %{version}}
BuildRequires: %{python_module QtPy >= 2}
BuildRequires: %{python_module qt5-devel}
# pyside2 is for primary python3 flavor only
BuildRequires: python3-pyside2
# but the exception was in Leap 15.6 has both built with 3.6 and 3.11
%if 0%{?suse_version} == 1500 && 0%{?sle_version} == 150600
BuildRequires: %{python_module pyside2}
%endif
BuildRequires: xvfb-run
%endif
%python_subpackages
@@ -60,12 +64,12 @@ sed -i '1{\,^#!%{_bindir}/env python,d}' qdarkstyle/*.py qdarkstyle/*/*.py
%build
%if !%{with test}
%python_build
%pyproject_wheel
%endif
%install
%if !%{with test}
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/qdarkstyle
%python_clone -a %{buildroot}%{_bindir}/qdarkstyle.example
%python_clone -a %{buildroot}%{_bindir}/qdarkstyle.utils
@@ -76,8 +80,10 @@ sed -i '1{\,^#!%{_bindir}/env python,d}' qdarkstyle/*.py qdarkstyle/*/*.py
%check
export LANG=C.UTF-8
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run $python -B -m qdarkstyle.example --qt_from=pyqt5 --test
%if 0%{?suse_version} == 1500 && 0%{?sle_version} == 150600
# pyside2 is for primary python3 flavor only
PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run python3 -B -m qdarkstyle.example --qt_from=pyside2 --test
PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run python%{python_bin_suffix} -B -m qdarkstyle.example --qt_from=pyside2 --test
%endif
# no qtsass compiler (extras_require 'develop')
#%%pytest
%endif
@@ -96,7 +102,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run python3 -B -m qdarkstyle.exam
%python_alternative %{_bindir}/qdarkstyle.example
%python_alternative %{_bindir}/qdarkstyle.utils
%{python_sitelib}/qdarkstyle
%{python_sitelib}/QDarkStyle-%{version}*-info
%{python_sitelib}/[Qq][Dd]ark[Ss]tyle-%{version}.dist-info
%endif
%changelog