17
0

Compare commits

7 Commits

Author SHA256 Message Date
58f21ce25c Accepting request 1295893 from devel:languages:python
- Update to version 1.0.4+git13:
  * fix: resolve test failures in package build
- Remove upstreamed support-python312.patch.
- 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.

OBS-URL: https://build.opensuse.org/request/show/1295893
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-editor?expand=0&rev=9
2025-07-27 14:26:32 +00:00
4fe5e22f37 - Remove upstreamed support-python312.patch.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=23
2025-07-26 12:53:40 +00:00
5aba18bf14 Accepting request 1295796 from home:dancermak:branches:devel:languages:python
Switch to github fork

OBS-URL: https://build.opensuse.org/request/show/1295796
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=22
2025-07-26 05:20:50 +00:00
232066a54b Accepting request 1287805 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1287805
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-editor?expand=0&rev=8
2025-06-23 13:05:21 +00:00
47509c59a2 Accepting request 1287206 from home:nkrapp:branches:devel:languages:python
- Add support-python312.patch to not depend on distutils (boo#1245108)
- clean up duplicate files

OBS-URL: https://build.opensuse.org/request/show/1287206
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=20
2025-06-23 05:46:32 +00:00
27987ca23d Accepting request 1284462 from devel:languages:python
- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1284462
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-editor?expand=0&rev=7
2025-06-11 14:22:48 +00:00
bbde393bd1 - Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=18
2025-06-10 12:58:13 +00:00
6 changed files with 71 additions and 17 deletions

15
_service Normal file
View File

@@ -0,0 +1,15 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/openSUSE/python-editor.git</param>
<param name="scm">git</param>
<param name="revision">master</param>
<param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@</param>
<param name="changesgenerate">enable</param>
</service>
<service name="set_version" mode="manual"/>
<service name="tar" mode="manual"/>
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
</services>

4
_servicedata Normal file
View File

@@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/openSUSE/python-editor.git</param>
<param name="changesrevision">eed3bfe17c492af8acd587f514c77bddbc6559ea</param></service></servicedata>

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9bf6292fce526e961fc3a3f1d88726eaae994ea96ac1327809933a3937124712
size 9953

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:51fda6bcc5ddbbb7063b2af7509e43bd84bfc32a4ff71349ec7847713882327b
size 7132

View File

@@ -1,3 +1,32 @@
-------------------------------------------------------------------
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 <nico.krapp@suse.com>
- Add support-python312.patch to not depend on distutils (boo#1245108)
- clean up duplicate files
-------------------------------------------------------------------
Tue Jun 10 12:56:27 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Thu May 9 06:53:20 UTC 2019 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-editor
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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,16 +16,22 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
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
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
%if 0%{?is_opensuse}
@@ -39,26 +45,26 @@ programmatically interfacing with the editor defined in the EDITOR
environment variable.
%prep
%setup -q -n python-editor-%{version}
%autosetup -p1 -n python-editor-%{version}
sed -i 's|__VERSION__ = .*|__VERSION__ = "%{version}"|' setup.py
%build
find -type f -exec chmod 644 {} +
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{$python_sitelib}/editor.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
%if 0%{?is_opensuse}
# the example does not look like an unit test
# %check
# export EDITOR='nano'
# Xpython_exec test.py
%endif
%check
%python_expand pytest test_editor.py
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/*
%{python_sitelib}/editor.py
%{python_sitelib}/python_editor-%{version}.dist-info/
%pycache_only %{python_sitelib}/__pycache__/editor*
%changelog