14
0

Accepting request 669951 from home:alarrosa:branches:devel:languages:python

New package python-QDarkStyle, a dependency of the next vorta release.
Now with tests

OBS-URL: https://build.opensuse.org/request/show/669951
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QDarkStyle?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2019-01-30 12:02:10 +00:00
committed by Git OBS Bridge
commit ac8ff3cb89
5 changed files with 112 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

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

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

12
python-QDarkStyle.changes Normal file
View File

@@ -0,0 +1,12 @@
-------------------------------------------------------------------
Tue Jan 29 15:58:37 UTC 2019 - Antonio Larrosa <alarrosa@suse.com>
- Use version from git and enable tests (just for python3 since
pyside2 is not available for python2 and just qt5 bindings
because qt4 doesn't support painting offscreen and thus needs
an X server).
-------------------------------------------------------------------
Sun Jan 27 17:26:22 UTC 2019 - alarrosa@suse.com
- Initial release of python-QDarkStyle 2.6.5

73
python-QDarkStyle.spec Normal file
View File

@@ -0,0 +1,73 @@
#
# spec file for package python-QDarkStyle
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-QDarkStyle
Version: 2.6.5
Release: 0
License: MIT
Summary: A dark stylesheet for Python and Qt applications
Url: https://github.com/ColinDuquesnoy/QDarkStyleSheet
Group: Development/Languages/Python
Source: https://github.com/ColinDuquesnoy/QDarkStyleSheet/archive/%{version}.tar.gz#/QDarkStyle-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: python3-pyside2
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytest-qt}
BuildRequires: %{python_module qt5-devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module QtPy}
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
%description
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
%build
%python_build
%check
pushd script
export LANG=C.UTF-8
python3 process_ui.py
python3 process_qrc.py
python3 ../example/example.py --qt_from=pyqt5 --test
python3 ../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
%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
%{python_sitelib}/qdarkstyle
%{python_sitelib}/QDarkStyle-%{version}-py%{py_ver}.egg-info
%changelog