14
0

Accepting request 767948 from devel:languages:python

- Fix the tarball fetching

- disable python2 as build dependency pyside is only available on python3
- update to version 2.8:
 -  Fix tooltip giant rectangle #174
 -  Fix QTextEdit wihout borders inside frame #188
 -  Fix PyQt5 issuies on dropbown #191
 -  Fix combo box with icons #169
 -  Fix QToolbBar vertical handle #210
 -  Fix pane tab labelcropped on activation #199
 -  Enhance vertical/horiontal lines #184
 -  Enhance tool button size and spacing #181, #183, #202
 -  Enhance buttons and inputs with focus, blue border #194, #211
 -  Enhance QSplitter #207
 -  Removed QStatusBar vertical lines #205
- update to version 2.7:
 -  Remove utils from import in qdarkstyle, #170
 -  Fix border colors in tool button #176
 -  Fix scroll area and stacked with 2px padding, #159
 -  Fix backgroung submenu color, #179
 -  Fix extra border aside header's arrow indicator, #180
 -  Fix menu right arrrow indicator
 -  Fix slide bars colors, #150
 -  Fix QLabels problems, #163, #139
 -  Fix problems with example settings using PySide2 and --no\_dark #167
 -  Provide SVG files for all images, standard names and sizes, fix images, #149
 -  Improve images and add high resolution images, #140
 -  Improve docs
 -  Add check to scripts for generating images, #137
 -  Fix tox and travis scripts #76

OBS-URL: https://build.opensuse.org/request/show/767948
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-QDarkStyle?expand=0&rev=3
This commit is contained in:
2020-01-29 12:15:07 +00:00
committed by Git OBS Bridge
4 changed files with 71 additions and 23 deletions

View File

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

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

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

View File

@@ -1,3 +1,43 @@
-------------------------------------------------------------------
Tue Jan 28 08:31:47 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix the tarball fetching
-------------------------------------------------------------------
Sat Jan 25 14:40:40 UTC 2020 - Sebastian Wagner <sebix+novell.com@sebix.at>
- disable python2 as build dependency pyside is only available on python3
- update to version 2.8:
- Fix tooltip giant rectangle #174
- Fix QTextEdit wihout borders inside frame #188
- Fix PyQt5 issuies on dropbown #191
- Fix combo box with icons #169
- Fix QToolbBar vertical handle #210
- Fix pane tab labelcropped on activation #199
- Enhance vertical/horiontal lines #184
- Enhance tool button size and spacing #181, #183, #202
- Enhance buttons and inputs with focus, blue border #194, #211
- Enhance QSplitter #207
- Removed QStatusBar vertical lines #205
- update to version 2.7:
- Remove utils from import in qdarkstyle, #170
- Fix border colors in tool button #176
- Fix scroll area and stacked with 2px padding, #159
- Fix backgroung submenu color, #179
- Fix extra border aside header's arrow indicator, #180
- Fix menu right arrrow indicator
- Fix slide bars colors, #150
- Fix QLabels problems, #163, #139
- Fix problems with example settings using PySide2 and --no\_dark #167
- Provide SVG files for all images, standard names and sizes, fix images, #149
- Improve images and add high resolution images, #140
- Improve docs
- Add check to scripts for generating images, #137
- Fix tox and travis scripts #76
- Provide docs in RTD, part of #160
- Add helpdev depedency for reports and checks, #147
- Update authors and maintainers
-------------------------------------------------------------------
Thu May 23 12:14:36 UTC 2019 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-QDarkStyle
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,25 +17,30 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define X_display ":98"
Name: python-QDarkStyle
Version: 2.6.8
Version: 2.8
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/%{version}.tar.gz#/QDarkStyle-%{version}.tar.gz
BuildRequires: %{python_module QtPy}
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 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: python3-pyside2
BuildRequires: xorg-x11-server-Xvfb
Requires: python-QtPy >= 1.7
Requires: python-helpdev
Requires: python-setuptools
BuildArch: noarch
%python_subpackages
%description
@@ -43,33 +48,36 @@ QDarkStyle is a dark stylesheet for Python and Qt applications.
%prep
%setup -q -n QDarkStyleSheet-%{version}
sed -i '1{\,^#!%{_bindir}/env python,d}' qdarkstyle/*.py
sed -i '1{\,^#!%{_bindir}/env python,d}' qdarkstyle/*.py qdarkstyle/utils/*.py
%build
%python_build
%check
pushd script
export LANG=C.UTF-8
python3 process_ui.py
python3 process_qrc.py
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}
python3 ../example/example.py --qt_from=pyqt5 --test
python3 ../example/example.py --qt_from=pyqt5 --test --no_dark
$python example/example.py --qt_from=pyqt5 --test
$python example/example.py --qt_from=pyqt5 --test --no_dark
python3 ../example/example.py --qt_from=pyside2 --test
python3 ../example/example.py --qt_from=pyside2 --test --no_dark
popd
$python example/example.py --qt_from=pyside2 --test
$python example/example.py --qt_from=pyside2 --test --no_dark
}
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc AUTHORS.md CHANGES.md README.md
%license LICENSE.md
%python3_only %{_bindir}/qdarkstyle
%doc AUTHORS.rst CHANGES.rst README.rst
%license LICENSE.rst
%{_bindir}/qdarkstyle
%{python_sitelib}/qdarkstyle
%{python_sitelib}/QDarkStyle-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/QDarkStyle-*.egg-info
%changelog