Compare commits
7 Commits
Author | SHA256 | Date | |
---|---|---|---|
58f21ce25c | |||
4fe5e22f37 | |||
5aba18bf14 | |||
232066a54b | |||
47509c59a2 | |||
27987ca23d | |||
bbde393bd1 |
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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user