From cb2fb08cd5747a19fcd026be68558873c62bcdb5ea3fc0a9bce71e35c8783df4 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 28 Jul 2020 05:53:20 +0000 Subject: [PATCH] - Update to 0.7.2: * Update release instructions for the 0.x branch, by @ccordoba12 * Do not call python directly in tests, by @scarabeusiv * Remove warning for Python 2.7, by @dalthviz (140) * al design icons to 4.9.95 * t class to display icons as widgets * rowser * Fix file lock (125) * Update documentation and images (45) * Use Github as the only CI provider * Update MDI to 4.9.95 * Add IconWidget to display icon as widget * Add an icon browser * Improve sponsors section in readme * Replace QtGui by QtWidgets in docs * Update MDI to 4.5.95 * Update number of icons in Readme and docs - Drop no-py2.patch, merged upstream. - Add update-alternatives for new qta-browser binary OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-QtAwesome?expand=0&rev=16 --- QtAwesome-0.6.0.tar.gz | 3 --- QtAwesome-0.7.2.tar.gz | 3 +++ no-py2.patch | 21 --------------------- python-QtAwesome.changes | 23 +++++++++++++++++++++++ python-QtAwesome.spec | 17 ++++++++++++----- 5 files changed, 38 insertions(+), 29 deletions(-) delete mode 100644 QtAwesome-0.6.0.tar.gz create mode 100644 QtAwesome-0.7.2.tar.gz delete mode 100644 no-py2.patch diff --git a/QtAwesome-0.6.0.tar.gz b/QtAwesome-0.6.0.tar.gz deleted file mode 100644 index fb7b156..0000000 --- a/QtAwesome-0.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5e4e9504d7288bce4e1c30b1f2aa5f1510c7266901d8874f0f834ff929bf1e17 -size 707834 diff --git a/QtAwesome-0.7.2.tar.gz b/QtAwesome-0.7.2.tar.gz new file mode 100644 index 0000000..a18c663 --- /dev/null +++ b/QtAwesome-0.7.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca9719c82d41707f62c340811b23bcab95336e73edd88b7eab7fd951d2e27fab +size 847272 diff --git a/no-py2.patch b/no-py2.patch deleted file mode 100644 index d596e09..0000000 --- a/no-py2.patch +++ /dev/null @@ -1,21 +0,0 @@ -Index: QtAwesome-0.6.0/qtawesome/tests/test_qtawesome.py -=================================================================== ---- QtAwesome-0.6.0.orig/qtawesome/tests/test_qtawesome.py -+++ QtAwesome-0.6.0/qtawesome/tests/test_qtawesome.py -@@ -3,6 +3,7 @@ Tests for QtAwesome. - """ - # Standard library imports - import subprocess -+import sys - import collections - - # Test Library imports -@@ -14,7 +15,7 @@ from qtawesome.iconic_font import Iconic - - - def test_segfault_import(): -- output_number = subprocess.call('python -c "import qtawesome ' -+ output_number = subprocess.call(sys.executable + ' -c "import qtawesome ' - '; qtawesome.icon()"', shell=True) - assert output_number == 0 - diff --git a/python-QtAwesome.changes b/python-QtAwesome.changes index 3f9525e..9e634c1 100644 --- a/python-QtAwesome.changes +++ b/python-QtAwesome.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Tue Jul 28 05:48:08 UTC 2020 - Steve Kowalik + +- Update to 0.7.2: + * Update release instructions for the 0.x branch, by @ccordoba12 + * Do not call python directly in tests, by @scarabeusiv + * Remove warning for Python 2.7, by @dalthviz (140) + * al design icons to 4.9.95 + * t class to display icons as widgets + * rowser + * Fix file lock (125) + * Update documentation and images (45) + * Use Github as the only CI provider + * Update MDI to 4.9.95 + * Add IconWidget to display icon as widget + * Add an icon browser + * Improve sponsors section in readme + * Replace QtGui by QtWidgets in docs + * Update MDI to 4.5.95 + * Update number of icons in Readme and docs +- Drop no-py2.patch, merged upstream. +- Add update-alternatives for new qta-browser binary + ------------------------------------------------------------------- Thu Apr 23 12:03:50 UTC 2020 - Tomáš Chvátal diff --git a/python-QtAwesome.spec b/python-QtAwesome.spec index 179a07d..119a986 100644 --- a/python-QtAwesome.spec +++ b/python-QtAwesome.spec @@ -18,14 +18,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-QtAwesome -Version: 0.6.0 +Version: 0.7.2 Release: 0 Summary: FontAwesome icons in PyQt and PySide applications License: MIT -Group: Development/Languages/Python URL: https://github.com/spyder-ide/qtawesome Source: https://files.pythonhosted.org/packages/source/Q/QtAwesome/QtAwesome-%{version}.tar.gz -Patch0: no-py2.patch BuildRequires: %{python_module QtPy} BuildRequires: %{python_module pytest-qt} BuildRequires: %{python_module pytest} @@ -37,6 +35,8 @@ BuildRequires: xvfb-run Requires: python-QtPy Requires: python-six BuildArch: noarch +Requires(post): update-alternatives +Requires(postun): update-alternatives %python_subpackages %description @@ -48,7 +48,6 @@ library by Rick Blommers. %prep %setup -q -n QtAwesome-%{version} -%patch0 -p1 %build %python_build @@ -56,13 +55,21 @@ library by Rick Blommers. %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/qta-browser %check %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run py.test-%{$python_bin_suffix} -v qtawesome/tests +%post +%python_install_alternative qta-browser + +%postun +%python_uninstall_alternative qta-browser + %files %{python_files} -%license LICENSE +%license LICENSE.txt %doc CHANGELOG.md README.md %{python_sitelib}/* +%python_alternative %{_bindir}/qta-browser %changelog