diff --git a/_service b/_service
new file mode 100644
index 0000000..4a7855a
--- /dev/null
+++ b/_service
@@ -0,0 +1,15 @@
+
+
+ https://github.com/openSUSE/python-editor.git
+ git
+ master
+ @PARENT_TAG@+git@TAG_OFFSET@
+ enable
+
+
+
+
+ *.tar
+ gz
+
+
diff --git a/_servicedata b/_servicedata
new file mode 100644
index 0000000..b93c172
--- /dev/null
+++ b/_servicedata
@@ -0,0 +1,4 @@
+
+
+ https://github.com/openSUSE/python-editor.git
+ eed3bfe17c492af8acd587f514c77bddbc6559ea
\ No newline at end of file
diff --git a/python-editor-1.0.4+git13.tar.gz b/python-editor-1.0.4+git13.tar.gz
new file mode 100644
index 0000000..27525c9
--- /dev/null
+++ b/python-editor-1.0.4+git13.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9bf6292fce526e961fc3a3f1d88726eaae994ea96ac1327809933a3937124712
+size 9953
diff --git a/python-editor-1.0.4.tar.gz b/python-editor-1.0.4.tar.gz
deleted file mode 100644
index d6e7fe5..0000000
--- a/python-editor-1.0.4.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:51fda6bcc5ddbbb7063b2af7509e43bd84bfc32a4ff71349ec7847713882327b
-size 7132
diff --git a/python-python-editor.changes b/python-python-editor.changes
index 52b231b..2e8d7ad 100644
--- a/python-python-editor.changes
+++ b/python-python-editor.changes
@@ -1,3 +1,21 @@
+-------------------------------------------------------------------
+Fri Jul 25 13:59:54 UTC 2025 - dcermak@suse.com
+
+- Update to version 1.0.4+git13:
+ * fix: resolve test failures in package build
+- Remove upstreamed support-python312.patch.
+
+-------------------------------------------------------------------
+Tue Jul 22 14:45:03 UTC 2025 - dcermak@suse.com
+
+- Update to version 1753113091.b90b296:
+ * feat: recognize emacsclient as emacs
+ * fix: shlex.split() $EDITOR before calling Popen
+ * ci: run the CI on python 3.6 too
+ * Add simple tests using pytest & CI using github actions
+ * support python 3.12
+ * Move the import of disutils.spawn into the scope where it is actually being used so that inquirer can mostly function on default ubuntu python.
+
-------------------------------------------------------------------
Fri Jun 20 11:51:56 UTC 2025 - Nico Krapp
diff --git a/python-python-editor.spec b/python-python-editor.spec
index 4e50dca..99d47d3 100644
--- a/python-python-editor.spec
+++ b/python-python-editor.spec
@@ -17,18 +17,20 @@
Name: python-python-editor
-Version: 1.0.4
+Version: 1.0.4+git13
Release: 0
Summary: Python library to programmatically open an editor and capture the result
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/fmoo/python-editor
-Source: https://files.pythonhosted.org/packages/source/p/python-editor/python-editor-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM support-python312.patch https://github.com/fmoo/python-editor/commit/5023fafd265add111b29baca59b07f140daf75b7
-Patch0: support-python312.patch
+Source: python-editor-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
+# tests
+BuildRequires: %{python_module pytest}
+BuildRequires: %{python_module pytest-mock}
+
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -44,6 +46,7 @@ environment variable.
%prep
%autosetup -p1 -n python-editor-%{version}
+sed -i 's|__VERSION__ = .*|__VERSION__ = "%{version}"|' setup.py
%build
find -type f -exec chmod 644 {} +
@@ -54,16 +57,14 @@ find -type f -exec chmod 644 {} +
%python_expand sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{$python_sitelib}/editor.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
-# the example does not look like an unit test
-# %%check
-# export EDITOR='nano'
-# Xpython_exec test.py
+%check
+%python_expand pytest test_editor.py
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/editor.py
-%{python_sitelib}/python[-_]editor-%{version}*-info
+%{python_sitelib}/python_editor-%{version}.dist-info/
%pycache_only %{python_sitelib}/__pycache__/editor*
%changelog
diff --git a/support-python312.patch b/support-python312.patch
deleted file mode 100644
index f69295b..0000000
--- a/support-python312.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 5023fafd265add111b29baca59b07f140daf75b7 Mon Sep 17 00:00:00 2001
-From: Branch Vincent
-Date: Sun, 8 Oct 2023 12:52:53 -0700
-Subject: [PATCH] support python 3.12
-
-Python 3.12 has removed `distutils`: https://docs.python.org/3.12/whatsnew/3.12.html#removed
----
- editor.py | 5 ++++-
- 1 file changed, 4 insertions(+), 1 deletion(-)
-
-Index: python-editor-1.0.4/editor.py
-===================================================================
---- python-editor-1.0.4.orig/editor.py
-+++ python-editor-1.0.4/editor.py
-@@ -8,7 +8,6 @@ import locale
- import os.path
- import subprocess
- import tempfile
--from distutils.spawn import find_executable
-
-
- __all__ = [
-@@ -52,6 +51,10 @@ def get_editor_args(editor):
-
-
- def get_editor():
-+ try:
-+ from distutils.spawn import find_executable
-+ except ImportError:
-+ from shutil import which as find_executable
- # Get the editor from the environment. Prefer VISUAL to EDITOR
- editor = os.environ.get('VISUAL') or os.environ.get('EDITOR')
- if editor: