From 87e6ed3c9821ecfeb15d161556618acd780a11b59eb6656e994df942433f319e Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 17 May 2021 08:32:20 +0000 Subject: [PATCH 1/4] - Update to 0.6.1: * Drop support for Python 2.7 * Move to pycodestyle from pep8 and drop setup.py requirement for it * Minor maintenance documentation updates - Do not ship tests directory. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbus-deviation?expand=0&rev=8 --- dbus-deviation-0.6.0.tar.gz | 3 --- dbus-deviation-0.6.1.tar.gz | 3 +++ python-dbus-deviation.changes | 9 +++++++++ python-dbus-deviation.spec | 10 ++++++---- 4 files changed, 18 insertions(+), 7 deletions(-) delete mode 100644 dbus-deviation-0.6.0.tar.gz create mode 100644 dbus-deviation-0.6.1.tar.gz diff --git a/dbus-deviation-0.6.0.tar.gz b/dbus-deviation-0.6.0.tar.gz deleted file mode 100644 index bb68bfe..0000000 --- a/dbus-deviation-0.6.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cfbb3c906807d8376ae598bbc889b3a71992cdecc0637091d97ffcbcb69b7408 -size 59944 diff --git a/dbus-deviation-0.6.1.tar.gz b/dbus-deviation-0.6.1.tar.gz new file mode 100644 index 0000000..7bd392e --- /dev/null +++ b/dbus-deviation-0.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e06b88efe223885d2725df51cf7c9b7b463d1c6f04ea49d4690874318d0eb7a3 +size 60599 diff --git a/python-dbus-deviation.changes b/python-dbus-deviation.changes index ec3828c..b56ca94 100644 --- a/python-dbus-deviation.changes +++ b/python-dbus-deviation.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon May 17 08:30:46 UTC 2021 - Steve Kowalik + +- Update to 0.6.1: + * Drop support for Python 2.7 + * Move to pycodestyle from pep8 and drop setup.py requirement for it + * Minor maintenance documentation updates +- Do not ship tests directory. + ------------------------------------------------------------------- Thu Dec 3 15:53:31 UTC 2020 - Matej Cepl diff --git a/python-dbus-deviation.spec b/python-dbus-deviation.spec index 8b21490..0c9a04f 100644 --- a/python-dbus-deviation.spec +++ b/python-dbus-deviation.spec @@ -1,7 +1,7 @@ # # spec file for package python-dbus-deviation # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,12 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-dbus-deviation -Version: 0.6.0 +Version: 0.6.1 Release: 0 Summary: Parse D-Bus introspection XML and process it in various ways License: LGPL-2.1-or-later -Group: Development/Languages/Python URL: http://people.collabora.com/~pwith/dbus-deviation/ Source: https://files.pythonhosted.org/packages/source/d/dbus-deviation/dbus-deviation-%{version}.tar.gz BuildRequires: %{python_module Sphinx} @@ -56,6 +56,8 @@ sed -i '1 {/^#!/d}' dbusapi/tests/*.py dbusdeviation/utilities/*.py %python_clone -a %{buildroot}%{_bindir}/dbus-interface-diff %python_clone -a %{buildroot}%{_bindir}/dbus-interface-vcs-helper %python_expand %fdupes %{buildroot}%{$python_sitelib} +# No fair shipping the tests +%python_expand rm -r %{buildroot}%{$python_sitelib}/dbusdeviation/tests %check %pyunittest -v @@ -67,7 +69,7 @@ sed -i '1 {/^#!/d}' dbusapi/tests/*.py dbusdeviation/utilities/*.py %python_uninstall_alternative dbus-interface-diff %files %{python_files} -%doc AUTHORS NEWS README +%doc AUTHORS NEWS README.md %license COPYING %python_alternative %{_bindir}/dbus-interface-diff %python_alternative %{_bindir}/dbus-interface-vcs-helper From b0b706b941ceed5a61b5e8508516d7c9498f55eb412edbce1391911377e5db2b Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 17 May 2021 08:37:22 +0000 Subject: [PATCH 2/4] Missed dbusapi, kill its tests too OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbus-deviation?expand=0&rev=9 --- python-dbus-deviation.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-dbus-deviation.spec b/python-dbus-deviation.spec index 0c9a04f..89dc042 100644 --- a/python-dbus-deviation.spec +++ b/python-dbus-deviation.spec @@ -57,6 +57,7 @@ sed -i '1 {/^#!/d}' dbusapi/tests/*.py dbusdeviation/utilities/*.py %python_clone -a %{buildroot}%{_bindir}/dbus-interface-vcs-helper %python_expand %fdupes %{buildroot}%{$python_sitelib} # No fair shipping the tests +%python_expand rm -r %{buildroot}%{$python_sitelib}/dbusapi/tests %python_expand rm -r %{buildroot}%{$python_sitelib}/dbusdeviation/tests %check From 0f0036b6e04410f9bda6caa7b07082bd77bf437d00f58163e29383bf33d2dbac Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 17 May 2021 08:44:20 +0000 Subject: [PATCH 3/4] Changed my mind, drop +x OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbus-deviation?expand=0&rev=10 --- python-dbus-deviation.changes | 2 +- python-dbus-deviation.spec | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/python-dbus-deviation.changes b/python-dbus-deviation.changes index b56ca94..55e03af 100644 --- a/python-dbus-deviation.changes +++ b/python-dbus-deviation.changes @@ -5,7 +5,7 @@ Mon May 17 08:30:46 UTC 2021 - Steve Kowalik * Drop support for Python 2.7 * Move to pycodestyle from pep8 and drop setup.py requirement for it * Minor maintenance documentation updates -- Do not ship tests directory. +- Drop execute bits for installed modules, stop a spurious requirement. ------------------------------------------------------------------- Thu Dec 3 15:53:31 UTC 2020 - Matej Cepl diff --git a/python-dbus-deviation.spec b/python-dbus-deviation.spec index 89dc042..92c9887 100644 --- a/python-dbus-deviation.spec +++ b/python-dbus-deviation.spec @@ -56,9 +56,8 @@ sed -i '1 {/^#!/d}' dbusapi/tests/*.py dbusdeviation/utilities/*.py %python_clone -a %{buildroot}%{_bindir}/dbus-interface-diff %python_clone -a %{buildroot}%{_bindir}/dbus-interface-vcs-helper %python_expand %fdupes %{buildroot}%{$python_sitelib} -# No fair shipping the tests -%python_expand rm -r %{buildroot}%{$python_sitelib}/dbusapi/tests -%python_expand rm -r %{buildroot}%{$python_sitelib}/dbusdeviation/tests +# Drop execute bits for shipped modules +%python_expand find %{buildroot}%{$python_sitelib} -name '*.py' -print0 | xargs -0 chmod a-x %check %pyunittest -v From 70e479e566fc103b830ee8c845fb240cb228ce367d8da5a52ac5d0b931eaf2a1 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 17 May 2021 08:52:45 +0000 Subject: [PATCH 4/4] I give up, use the existing bits in %prep that I missed. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbus-deviation?expand=0&rev=11 --- python-dbus-deviation.spec | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/python-dbus-deviation.spec b/python-dbus-deviation.spec index 92c9887..5678336 100644 --- a/python-dbus-deviation.spec +++ b/python-dbus-deviation.spec @@ -45,8 +45,8 @@ This functionality is also available as a Python module, dbusdeviation. %prep %setup -q -n dbus-deviation-%{version} sed -i -e "/setuptools_/d" setup.py -chmod -x dbusapi/tests/*.py dbusdeviation/utilities/*.py -sed -i '1 {/^#!/d}' dbusapi/tests/*.py dbusdeviation/utilities/*.py +chmod -x dbusapi/tests/*.py dbusdeviation/tests/*.py dbusdeviation/utilities/*.py +sed -i '1 {/^#!/d}' dbusapi/tests/*.py dbusdeviation/tests/*.py dbusdeviation/utilities/*.py %build %python_build @@ -56,8 +56,6 @@ sed -i '1 {/^#!/d}' dbusapi/tests/*.py dbusdeviation/utilities/*.py %python_clone -a %{buildroot}%{_bindir}/dbus-interface-diff %python_clone -a %{buildroot}%{_bindir}/dbus-interface-vcs-helper %python_expand %fdupes %{buildroot}%{$python_sitelib} -# Drop execute bits for shipped modules -%python_expand find %{buildroot}%{$python_sitelib} -name '*.py' -print0 | xargs -0 chmod a-x %check %pyunittest -v