From 16ca69b0e1d7befeb39959d654947e55a791de2ba22904e8460940a6ae0f185f Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 16 Sep 2016 13:38:26 +0000 Subject: [PATCH 1/4] 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 --- python-editor-0.5.tar.gz | 3 --- python-editor-1.0.1.tar.gz | 3 +++ python-python-editor.changes | 9 +++++++++ python-python-editor.spec | 7 ++++++- 4 files changed, 18 insertions(+), 4 deletions(-) delete mode 100644 python-editor-0.5.tar.gz create mode 100644 python-editor-1.0.1.tar.gz diff --git a/python-editor-0.5.tar.gz b/python-editor-0.5.tar.gz deleted file mode 100644 index d6de45b..0000000 --- a/python-editor-0.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f65c033ede0758663b9ff6a29d702f0b09198ad7c4ef96c9d37ccdfbf7bbf6fa -size 6555 diff --git a/python-editor-1.0.1.tar.gz b/python-editor-1.0.1.tar.gz new file mode 100644 index 0000000..5b917a3 --- /dev/null +++ b/python-editor-1.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8672e9a44a7957741453dd35e842299f6c29f0a88dc9e4316b0fa5935abb9186 +size 7014 diff --git a/python-python-editor.changes b/python-python-editor.changes index 78aefac..9ca89ee 100644 --- a/python-python-editor.changes +++ b/python-python-editor.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Sep 15 22:17:54 UTC 2016 - toddrme2178@gmail.com + +- Update to 1.0.1 + * Detect tty and add helper function + * Default to not using tty + * Use branch instead of ternary operator + * Use /dev/tty by default + ------------------------------------------------------------------- Wed Jan 13 12:04:08 UTC 2016 - toddrme2178@gmail.com diff --git a/python-python-editor.spec b/python-python-editor.spec index 0711b37..daf6a1a 100644 --- a/python-python-editor.spec +++ b/python-python-editor.spec @@ -17,7 +17,7 @@ Name: python-python-editor -Version: 0.5 +Version: 1.0.1 Release: 0 Summary: Programmatically open an editor, capture the result License: Apache-2.0 @@ -26,6 +26,7 @@ Url: https://github.com/fmoo/python-editor Source: https://pypi.python.org/packages/source/p/python-editor/python-editor-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-setuptools +BuildRequires: nano BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} @@ -46,6 +47,10 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%check +export EDITOR='nano' +python test.py + %files %defattr(-,root,root,-) %doc LICENSE README.md From f3315bf5ccf738a46314944edef0a33a5a77a70b2c7a33975cd4c7e840395c17 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 16 Sep 2016 14:32:52 +0000 Subject: [PATCH 2/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=6 --- python-python-editor.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-python-editor.spec b/python-python-editor.spec index daf6a1a..6e6d230 100644 --- a/python-python-editor.spec +++ b/python-python-editor.spec @@ -23,7 +23,7 @@ Summary: Programmatically open an editor, capture the result License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/fmoo/python-editor -Source: https://pypi.python.org/packages/source/p/python-editor/python-editor-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/python-editor/python-editor-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: nano From 8c35a9a270221fb024e54d49e082a0c34837458dd31da42bbd47aa869eb072f1 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 16 Sep 2016 14:35:28 +0000 Subject: [PATCH 3/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=7 --- python-python-editor.changes | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-python-editor.changes b/python-python-editor.changes index 9ca89ee..90ad288 100644 --- a/python-python-editor.changes +++ b/python-python-editor.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 16 14:35:20 UTC 2016 - toddrme2178@gmail.com + +- Fix Download URL + ------------------------------------------------------------------- Thu Sep 15 22:17:54 UTC 2016 - toddrme2178@gmail.com From b7b269af1dabea2ec5a2f88cad1db9bd18b70ea625204b48b5f33b269bb3d203 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 16 Sep 2016 14:36:23 +0000 Subject: [PATCH 4/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-editor?expand=0&rev=8 --- python-python-editor.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python-python-editor.spec b/python-python-editor.spec index 6e6d230..439dcfd 100644 --- a/python-python-editor.spec +++ b/python-python-editor.spec @@ -26,7 +26,9 @@ Url: https://github.com/fmoo/python-editor Source: https://files.pythonhosted.org/packages/source/p/python-editor/python-editor-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-setuptools +%if 0%{?is_opensuse} BuildRequires: nano +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} @@ -47,9 +49,11 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%if 0%{?is_opensuse} %check export EDITOR='nano' python test.py +%endif %files %defattr(-,root,root,-)