14
0

Accepting request 862925 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/862925
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tkreadonly?expand=0&rev=2
This commit is contained in:
2021-01-13 17:24:48 +00:00
committed by Git OBS Bridge
2 changed files with 18 additions and 11 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jan 13 14:35:09 UTC 2021 - pgajdos@suse.com
- run spec cleaner
- use %pytest macro
-------------------------------------------------------------------
Sun Apr 14 09:56:25 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-tkreadonly
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -12,31 +12,32 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-tkreadonly
Version: 0.6.1
Release: 0
License: BSD-3-Clause
Summary: A set of Tkinter widgets to display readonly text and code
Url: http://github.org/pybee/tkreadonly
License: BSD-3-Clause
Group: Development/Languages/Python
URL: http://github.org/pybee/tkreadonly
Source: https://files.pythonhosted.org/packages/source/t/tkreadonly/tkreadonly-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module idle}
BuildRequires: %{python_module tk}
BuildRequires: %{python_module setuptools}
# SECTION test requirements
BuildRequires: %{python_module Pygments >= 1.5}
# /SECTION
BuildRequires: %{python_module tk}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Pygments >= 1.5
Requires: python-idle
Requires: python-tk
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Pygments >= 1.5}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
@@ -53,7 +54,7 @@ A set of Tkinter widgets to display readonly text and code.
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%pytest tests.py
%files %{python_files}
%doc README.rst