17
0

Accepting request 806988 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/806988
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-QDarkStyle?expand=0&rev=4
This commit is contained in:
2020-05-19 12:49:12 +00:00
committed by Git OBS Bridge
5 changed files with 61 additions and 26 deletions

3
QDarkStyle-2.8.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bc2f8d2b3644ed660c1267cba314df80a08ddaf28c1b7f701f6cdd6f44f70fdb
size 7883937

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8e2f1935763072ba4e18cecbf9159082f931d582cc8b37bc6b1fb417f3519f9b
size 7874263

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Mon May 18 13:43:58 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>
- Add _multibuild to run the test in a flavor and use xvfb-run
instead of calling the Xvfb server directly and depending on the
xorg-x11-server-Xvfb package which is not available in SLE/Leap.
-------------------------------------------------------------------
Mon May 18 11:12:28 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>
- Update to 2.8.1:
* Fix rst file formats and links #229
* Add .gitattributes for generated and documentation files
* Add more complete tox and Travis envs with many checks
* Fix removing message format argument
* Fix QGroupBox small indicator size #218
* Fix QGroupBox incorrect indicator icon when unfocused #219
* Fix QDateTimeEdit incorrect drop-down arrow icon #220
* Fix documentation
-------------------------------------------------------------------
Tue Jan 28 08:31:47 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -16,31 +16,42 @@
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define X_display ":98"
Name: python-QDarkStyle
Version: 2.8
Name: python-QDarkStyle%{psuffix}
Version: 2.8.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 QtPy >= 1.7}
BuildRequires: %{python_module helpdev}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-QtPy >= 1.9
Requires: python-helpdev >= 0.6.10
Requires: python-setuptools
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module QDarkStyle = %{version}}
BuildRequires: %{python_module QtPy >= 1.9}
BuildRequires: %{python_module helpdev >= 0.6.10}
BuildRequires: %{python_module pyside2}
BuildRequires: %{python_module pytest-qt}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module qt5-devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: xorg-x11-server-Xvfb
Requires: python-QtPy >= 1.7
Requires: python-helpdev
Requires: python-setuptools
BuildArch: noarch
BuildRequires: xvfb-run
%endif
%python_subpackages
%description
@@ -51,33 +62,34 @@ QDarkStyle is a dark stylesheet for Python and Qt applications.
sed -i '1{\,^#!%{_bindir}/env python,d}' qdarkstyle/*.py qdarkstyle/utils/*.py
%build
%if !%{with test}
%python_build
%endif
%if %{with test}
%check
export LANG=C.UTF-8
export DISPLAY=%{X_display}
export PYTHONDONTWRITEBYTECODE=1
Xvfb %{X_display} >& Xvfb.log &
trap "kill $! || true" EXIT
sleep 10
%{python_expand export PYTHON_PATH=%{buildroot}%{$python_sitelib}
$python example/example.py --qt_from=pyqt5 --test
$python example/example.py --qt_from=pyqt5 --test --no_dark
$python example/example.py --qt_from=pyside2 --test
$python example/example.py --qt_from=pyside2 --test --no_dark
}
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run $python example/example.py --qt_from=pyqt5 --test
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run $python example/example.py --qt_from=pyqt5 --test --no_dark
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run $python example/example.py --qt_from=pyside2 --test
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run $python example/example.py --qt_from=pyside2 --test --no_dark
%endif
%install
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if !%{with test}
%files %{python_files}
%doc AUTHORS.rst CHANGES.rst README.rst
%license LICENSE.rst
%{_bindir}/qdarkstyle
%{python_sitelib}/qdarkstyle
%{python_sitelib}/QDarkStyle-*.egg-info
%endif
%changelog