forked from pool/python-lml
Compare commits
3 Commits
Author | SHA256 | Date | |
---|---|---|---|
854d82fa60 | |||
48e6332913 | |||
7656ee0929 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:57a085a29bb7991d70d41c6c3144c560a8e35b4c1030ffb36d85fa058773bcc5
|
||||
size 42010
|
3
lml-0.2.0.tar.gz
Normal file
3
lml-0.2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8dd5afb4367a593d1cdb2144a05874cd9938f5266bebb0c9e1413200423c0d74
|
||||
size 41633
|
@@ -1,36 +0,0 @@
|
||||
Index: lml-0.1.0/tests/test_plugin_loader.py
|
||||
===================================================================
|
||||
--- lml-0.1.0.orig/tests/test_plugin_loader.py 2020-10-21 15:43:35.000000000 +0200
|
||||
+++ lml-0.1.0/tests/test_plugin_loader.py 2022-03-23 12:11:13.572130494 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-from mock import patch
|
||||
+from unittest.mock import patch
|
||||
|
||||
|
||||
@patch("pkgutil.get_importer")
|
||||
Index: lml-0.1.0/tests/test_plugin_manager.py
|
||||
===================================================================
|
||||
--- lml-0.1.0.orig/tests/test_plugin_manager.py 2020-10-21 15:43:35.000000000 +0200
|
||||
+++ lml-0.1.0/tests/test_plugin_manager.py 2022-03-23 12:11:45.524320687 +0100
|
||||
@@ -6,7 +6,7 @@ from lml.plugin import (
|
||||
_show_me_your_name,
|
||||
)
|
||||
|
||||
-from mock import patch
|
||||
+from unittest.mock import patch
|
||||
from pytest import raises
|
||||
|
||||
|
||||
Index: lml-0.1.0/tests/test_utils.py
|
||||
===================================================================
|
||||
--- lml-0.1.0.orig/tests/test_utils.py 2020-10-21 15:43:35.000000000 +0200
|
||||
+++ lml-0.1.0/tests/test_utils.py 2022-03-23 12:12:00.560410186 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
from lml.utils import do_import, json_dumps
|
||||
from lml.plugin import PluginManager
|
||||
|
||||
-from mock import patch
|
||||
+from unittest.mock import patch
|
||||
from pytest import raises
|
||||
|
||||
|
@@ -1,3 +1,18 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 8 14:19:13 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 0.2.0
|
||||
* Do not require mock by @pgajdos in (#27)
|
||||
- Drop python-lml-no-mock.patch, merged upstream
|
||||
- Limit Python files matched in %files section
|
||||
- Switch package to modern Python Stack on SLE-15
|
||||
* Use Python 3.11 on SLE-15 by default
|
||||
* Drop support for older Python versions
|
||||
- Switch build system from setuptools to pyproject.toml
|
||||
* Add python-pip and python-wheel to BuildRequires
|
||||
* Replace %python_build with %pyproject_wheel
|
||||
* Replace %python_install with %pyproject_install
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 23 11:07:34 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-lml
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,18 +16,18 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-lml
|
||||
Version: 0.1.0
|
||||
Version: 0.2.0
|
||||
Release: 0
|
||||
Summary: A lazy plugin management system for Python
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/chfw/lml
|
||||
Source: https://files.pythonhosted.org/packages/source/l/lml/lml-%{version}.tar.gz
|
||||
# https://github.com/python-lml/lml/issues/26
|
||||
Patch0: python-lml-no-mock.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@@ -52,10 +52,10 @@ Python modules in a supplied directory.
|
||||
%autosetup -p1 -n lml-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -65,6 +65,7 @@ Python modules in a supplied directory.
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CHANGELOG.rst README.rst docs/source
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/lml
|
||||
%{python_sitelib}/lml-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user