forked from pool/python-python-editor
Compare commits
7 Commits
Author | SHA256 | Date | |
---|---|---|---|
93fb1b504c | |||
9d4e4c9df8 | |||
a3a7fafe0e | |||
116dbbbe6b | |||
a8fc4e44a3 | |||
9d455d9c10 | |||
5680a820e0 |
15
_service
Normal file
15
_service
Normal 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
4
_servicedata
Normal 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>
|
3
python-editor-1.0.4+git13.tar.gz
Normal file
3
python-editor-1.0.4+git13.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9bf6292fce526e961fc3a3f1d88726eaae994ea96ac1327809933a3937124712
|
||||||
|
size 9953
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:51fda6bcc5ddbbb7063b2af7509e43bd84bfc32a4ff71349ec7847713882327b
|
|
||||||
size 7132
|
|
@@ -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
|
Thu May 9 06:53:20 UTC 2019 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-python-editor
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
Name: python-python-editor
|
||||||
Version: 1.0.4
|
Version: 1.0.4+git13
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python library to programmatically open an editor and capture the result
|
Summary: Python library to programmatically open an editor and capture the result
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/fmoo/python-editor
|
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 setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
# tests
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module pytest-mock}
|
||||||
|
|
||||||
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if 0%{?is_opensuse}
|
%if 0%{?is_opensuse}
|
||||||
@@ -39,26 +45,26 @@ programmatically interfacing with the editor defined in the EDITOR
|
|||||||
environment variable.
|
environment variable.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n python-editor-%{version}
|
%autosetup -p1 -n python-editor-%{version}
|
||||||
|
sed -i 's|__VERSION__ = .*|__VERSION__ = "%{version}"|' setup.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
find -type f -exec chmod 644 {} +
|
find -type f -exec chmod 644 {} +
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{$python_sitelib}/editor.py
|
%python_expand sed -i -e '/^#!\/usr\/bin\/env/d' %{buildroot}%{$python_sitelib}/editor.py
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
|
||||||
|
|
||||||
%if 0%{?is_opensuse}
|
%check
|
||||||
# the example does not look like an unit test
|
%python_expand pytest test_editor.py
|
||||||
# %check
|
|
||||||
# export EDITOR='nano'
|
|
||||||
# Xpython_exec test.py
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/editor.py
|
||||||
|
%{python_sitelib}/python_editor-%{version}.dist-info/
|
||||||
|
%pycache_only %{python_sitelib}/__pycache__/editor*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user