15
0
forked from pool/python-i3ipc

Accepting request 790086 from home:jubalh:branches:devel:languages:python

- Update to 2.1.1:
  * Regression: emit detailed events correctly (#126)
  * Regression: null values in replies should be python None (#123)
  * Add the sway input event (#122)
  * Raise handler exceptions from Connection.main() (the old
    behavior was just to exit silently which is wrong) (#125)
- Remove python2 stuff

OBS-URL: https://build.opensuse.org/request/show/790086
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-i3ipc?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal
2020-03-31 10:41:59 +00:00
committed by Git OBS Bridge
parent cb09309707
commit 515100bdad
4 changed files with 24 additions and 33 deletions

View File

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

3
i3ipc-2.1.1.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Mar 31 07:52:31 UTC 2020 - Michael Vetter <mvetter@suse.com>
- Update to 2.1.1:
* Regression: emit detailed events correctly (#126)
* Regression: null values in replies should be python None (#123)
* Add the sway input event (#122)
* Raise handler exceptions from Connection.main() (the old
behavior was just to exit silently which is wrong) (#125)
- Remove python2 stuff
-------------------------------------------------------------------
Sat Oct 19 12:01:34 UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-i3ipc
#
# 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
@@ -18,25 +18,18 @@
Name: python-i3ipc
# Before upgrading, verify compatibility with bumblebee-status module title
Version: 1.7.1
Version: 2.1.1
Release: 0
Summary: Python library for i3 WM extensions
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/altdesktop/i3ipc-python
Source0: https://github.com/altdesktop/i3ipc-python/archive/v%{version}.tar.gz#/i3ipc-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: i3
BuildRequires: python-enum34
BuildRequires: python-rpm-macros
BuildRequires: xvfb-run
BuildRequires: python3-setuptools
Requires: python3-python-xlib
Recommends: i3
BuildArch: noarch
%ifpython2
Requires: python-enum34
%endif
%python_subpackages
%description
python-i3ipc is a Python library for controlling the i3 window manager which
@@ -50,32 +43,19 @@ window manager events.
%prep
%setup -q -n i3ipc-python-%{version}
sed -i "s/'enum-compat'//" setup.py
# Remove shebang which is not needed (that script cannot be executed
# standalone).
sed -i '/^#!\/usr\/bin\/env.*/d' i3ipc/i3ipc.py examples/*.py
sed -i "s|!/usr/bin/env python3|!/usr/bin/python3|" examples/*.py
%build
%python_build
%py3_build
%install
%python_install
%py3_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# test_shutdown_event_reconnect always fails
# test_restart fails on openSUSE/SLE 15
# test_window_event is intermittent
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
xvfb-run --server-args "-screen 0 1920x1080x24" \
$python -m pytest -k 'not (test_shutdown_event_reconnect or test_restart or test_window_event)'
}
%files %{python_files}
%files
%license LICENSE
%doc README.rst CHANGELOG.md docs/*.rst
%doc examples/
%{python_sitelib}/*
%{python3_sitelib}/*
%changelog