2019-01-14 10:32:20 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-lml
|
|
|
|
#
|
2022-03-23 21:28:18 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2019-01-14 10:32:20 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-01-16 01:44:04 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2019-01-14 10:32:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-lml
|
2022-03-23 21:28:18 +00:00
|
|
|
Version: 0.1.0
|
2019-01-14 10:32:20 +00:00
|
|
|
Release: 0
|
2019-01-16 01:44:04 +00:00
|
|
|
Summary: A lazy plugin management system for Python
|
2019-02-25 14:03:20 +00:00
|
|
|
License: BSD-3-Clause
|
2019-01-14 10:32:20 +00:00
|
|
|
Group: Development/Languages/Python
|
2020-08-07 13:14:43 +00:00
|
|
|
URL: https://github.com/chfw/lml
|
2019-01-14 10:32:20 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/l/lml/lml-%{version}.tar.gz
|
2022-03-23 21:28:18 +00:00
|
|
|
# https://github.com/python-lml/lml/issues/26
|
|
|
|
Patch0: python-lml-no-mock.patch
|
2019-01-14 10:32:20 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-08-07 13:14:43 +00:00
|
|
|
BuildRequires: fdupes
|
2019-01-16 01:44:04 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-08-07 13:14:43 +00:00
|
|
|
BuildArch: noarch
|
2019-01-14 10:32:20 +00:00
|
|
|
# SECTION test requirements
|
2022-03-23 21:28:18 +00:00
|
|
|
BuildRequires: %{python_module isort}
|
2020-08-07 13:14:43 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-01-14 10:32:20 +00:00
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2019-01-16 06:21:46 +00:00
|
|
|
LML is "Load me later". lml seamlessly finds the lml-based
|
2019-01-16 01:44:04 +00:00
|
|
|
plugins from the current Python environment but loads plugins on
|
|
|
|
demand. It supports plugins that have external dependencies,
|
|
|
|
especially bulky and/or memory hungry ones. lml provides the plugin
|
|
|
|
management system only and the plugin interface is for the developer
|
|
|
|
to do.
|
2019-01-14 10:32:20 +00:00
|
|
|
|
2019-01-16 06:21:46 +00:00
|
|
|
Plugins loaded by lml may be installed packages or standalone
|
2019-01-16 01:44:04 +00:00
|
|
|
Python modules in a supplied directory.
|
2019-01-14 10:32:20 +00:00
|
|
|
|
|
|
|
%prep
|
2020-08-07 13:14:43 +00:00
|
|
|
%autosetup -p1 -n lml-%{version}
|
2019-01-14 10:32:20 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2022-03-23 21:28:18 +00:00
|
|
|
# test_plugin_loader': no pyexcel_test module
|
|
|
|
%pytest tests -k 'not test_plugin_loader'
|
2019-01-14 10:32:20 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGELOG.rst README.rst docs/source
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|