Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-editables for
openSUSE:Factory checked in at 2023-07-27 16:49:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-editables (Old)
and /work/SRC/openSUSE:Factory/.python-editables.new.32662 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-editables"
Thu Jul 27 16:49:58 2023 rev:4 rq:1100740 version:0.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-editables/python-editables.changes
2023-07-12 17:26:21.970149806 +0200
+++
/work/SRC/openSUSE:Factory/.python-editables.new.32662/python-editables.changes
2023-07-27 16:50:08.849590183 +0200
@@ -1,0 +2,6 @@
+Tue Jul 25 18:42:18 UTC 2023 - Benoît Monin <[email protected]>
+
+- update to version 0.5:
+ * Fix a bug that broke importlib.invalidate_caches
+
+-------------------------------------------------------------------
Old:
----
editables-0.4.tar.gz
New:
----
editables-0.5.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-editables.spec ++++++
--- /var/tmp/diff_new_pack.oFiEMk/_old 2023-07-27 16:50:09.517593957 +0200
+++ /var/tmp/diff_new_pack.oFiEMk/_new 2023-07-27 16:50:09.525594003 +0200
@@ -26,7 +26,7 @@
%endif
%{?sle15_python_module_pythons}
Name: python-editables%{psuffix}
-Version: 0.4
+Version: 0.5
Release: 0
Summary: Editable installations
License: MIT
++++++ editables-0.4.tar.gz -> editables-0.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editables-0.4/PKG-INFO new/editables-0.5/PKG-INFO
--- old/editables-0.4/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
+++ new/editables-0.5/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: editables
-Version: 0.4
+Version: 0.5
Summary: Editable installations
Author-email: Paul Moore <[email protected]>
Requires-Python: >=3.7
@@ -20,6 +20,7 @@
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
+Classifier: Typing :: Typed
Project-URL: Documentation, https://editables.readthedocs.io
Project-URL: Source, https://github.com/pfmoore/editables
Project-URL: Tracker, https://github.com/pfmoore/editables/issues
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editables-0.4/docs/source/conf.py
new/editables-0.5/docs/source/conf.py
--- old/editables-0.4/docs/source/conf.py 2023-07-06 16:58:12.743793700
+0200
+++ new/editables-0.5/docs/source/conf.py 2023-07-24 20:24:48.387946000
+0200
@@ -22,7 +22,7 @@
author = "Paul Moore"
# The full version, including alpha/beta/rc tags
-release = "0.4"
+release = "0.5"
# -- General configuration ---------------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editables-0.4/pyproject.toml
new/editables-0.5/pyproject.toml
--- old/editables-0.4/pyproject.toml 2023-07-06 16:58:12.742811700 +0200
+++ new/editables-0.5/pyproject.toml 2023-07-24 20:24:48.387425200 +0200
@@ -4,7 +4,7 @@
[project]
name = "editables"
-version = "0.4"
+version = "0.5"
description = "Editable installations"
readme = "README.md"
requires-python = ">=3.7"
@@ -25,6 +25,7 @@
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
+ "Typing :: Typed",
]
dependencies = []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editables-0.4/src/editables/__init__.py
new/editables-0.5/src/editables/__init__.py
--- old/editables-0.4/src/editables/__init__.py 2023-07-06 16:58:12.742811700
+0200
+++ new/editables-0.5/src/editables/__init__.py 2023-07-24 20:24:48.386392400
+0200
@@ -8,7 +8,7 @@
"__version__",
)
-__version__ = "0.4"
+__version__ = "0.5"
# Check if a project name is valid, based on PEP 426:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editables-0.4/src/editables/redirector.py
new/editables-0.5/src/editables/redirector.py
--- old/editables-0.4/src/editables/redirector.py 2023-06-28
18:25:44.327179200 +0200
+++ new/editables-0.5/src/editables/redirector.py 2023-07-24
20:23:20.448231200 +0200
@@ -37,3 +37,11 @@
break
else:
sys.meta_path.append(cls)
+
+ @classmethod
+ def invalidate_caches(cls) -> None:
+ # importlib.invalidate_caches calls finders' invalidate_caches methods,
+ # and since we install this meta path finder as a class rather than an
instance,
+ # we have to override the inherited invalidate_caches method (using
self)
+ # as a classmethod instead
+ pass
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/editables-0.4/tests/test_redirects.py
new/editables-0.5/tests/test_redirects.py
--- old/editables-0.4/tests/test_redirects.py 2021-06-12 13:40:39.885457500
+0200
+++ new/editables-0.5/tests/test_redirects.py 2023-07-24 20:23:20.453198400
+0200
@@ -1,4 +1,5 @@
import contextlib
+import importlib
import sys
from editables.redirector import RedirectingFinder as F
@@ -81,3 +82,10 @@
import pkg.sub
assert pkg.sub.val == 42
+
+
+def test_cache_invalidation():
+ F.install()
+ # assert that the finder matches importlib's expectations
+ # see https://github.com/pfmoore/editables/issues/31
+ importlib.invalidate_caches()