17
0

Compare commits

22 Commits

Author SHA256 Message Date
93fb1b504c 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
116dbbbe6b 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
a8fc4e44a3 - Add support-python312.patch to not depend on distutils (boo#1245108)
- clean up duplicate files

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
9d455d9c10 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
5680a820e0 - 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
ba691fc5a8 Accepting request 701751 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/701751
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-editor?expand=0&rev=6
2019-05-13 12:50:04 +00:00
Tomáš Chvátal
4fe91112f2 Accepting request 701732 from home:pgajdos
- version update to 1.0.4
  * no upstream changelog

OBS-URL: https://build.opensuse.org/request/show/701732
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=16
2019-05-09 09:42:53 +00:00
6eda091d9f Accepting request 659832 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/659832
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-editor?expand=0&rev=5
2018-12-24 10:46:25 +00:00
Todd R
69e4d7111e Accepting request 659788 from home:jengelh:branches:devel:languages:python
- Use noun phrase in summary. Clairfy what the
  "system's EDITOR" is.

OBS-URL: https://build.opensuse.org/request/show/659788
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=14
2018-12-19 03:58:59 +00:00
805f538b85 Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=13
2018-12-04 17:20:06 +00:00
48984b2fd9 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=12
2018-12-04 13:55:30 +00:00
e77ac00b3c Accepting request 518131 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/518131
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-editor?expand=0&rev=4
2017-08-23 09:54:52 +00:00
Thomas Bechtold
56fe27bf10 Accepting request 518129 from home:tbechtold:branches:devel:languages:python
- update to 1.0.3:
  * don't re-split arguments
  * Version bump (1.0.2)
  * Version bump to 1.0.3
  * remove un-needed function
  * update README
- convert to singlespec

OBS-URL: https://build.opensuse.org/request/show/518129
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=10
2017-08-22 13:21:27 +00:00
f2b6181a2e Accepting request 429843 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/429843
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-editor?expand=0&rev=3
2016-09-27 11:44:49 +00:00
Todd R
b7b269af1d OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=8 2016-09-16 14:36:23 +00:00
Todd R
8c35a9a270 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=7 2016-09-16 14:35:28 +00:00
Todd R
f3315bf5cc OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=6 2016-09-16 14:32:52 +00:00
Todd R
16ca69b0e1 Accepting request 428211 from home:TheBlackCat:branches:devel:languages:python
Update to 1.0.1

OBS-URL: https://build.opensuse.org/request/show/428211
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=5
2016-09-16 13:38:26 +00:00
0936d9ace8 Accepting request 353409 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/353409
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-editor?expand=0&rev=2
2016-01-13 21:46:17 +00:00
Todd R
f47caff425 Accepting request 353408 from home:TheBlackCat:branches:devel:languages:python
Update to 0.5

OBS-URL: https://build.opensuse.org/request/show/353408
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=3
2016-01-13 12:07:58 +00:00
Stephan Kulow
04c8e6ab9d Accepting request 326527 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/326527
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-editor?expand=0&rev=1
2015-08-27 06:57:26 +00:00
b5dfba5244 Accepting request 324934 from Cloud:OpenStack:Master
Initial packaging (needed for python-alembic)

OBS-URL: https://build.opensuse.org/request/show/324934
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=1
2015-08-25 07:22:56 +00:00
2 changed files with 0 additions and 36 deletions

View File

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

View File

@@ -1,33 +0,0 @@
From 5023fafd265add111b29baca59b07f140daf75b7 Mon Sep 17 00:00:00 2001
From: Branch Vincent <branchevincent@gmail.com>
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: