1
0

Compare commits

6 Commits

Author SHA256 Message Date
Tomáš Chvátal
927bec7b4c Accepting request 820864 from home:alarrosa:branches:devel:languages:python:Factory
- Import readline in the save_history handler. Otherwise the call
  to readline.write_history_file doesn't work (the readline import
  at the beginning of the file is already removed) and is silently
  ignored by the exception catcher.

OBS-URL: https://build.opensuse.org/request/show/820864
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/shared-python-startup?expand=0&rev=11
2020-07-14 12:39:50 +00:00
67b93b4a37 Fix changes
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/shared-python-startup?expand=0&rev=9
2020-04-27 13:18:59 +00:00
58bbd61d7f Correct suse_version value for SLE-12
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/shared-python-startup?expand=0&rev=8
2020-04-27 13:18:47 +00:00
f6db798b73 Accepting request 756818 from openSUSE:Factory
Resubmit - had to revert, as the new package is uninstallable on current TW; conflicts python3 < 3.8 - will take a while

OBS-URL: https://build.opensuse.org/request/show/756818
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/shared-python-startup?expand=0&rev=6
2019-12-13 13:45:30 +00:00
OBS User buildservice-autocommit
6ef7852e55 Updating link to change in openSUSE:Factory/shared-python-startup revision 3.0
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/shared-python-startup?expand=0&rev=2aabc27822cf2cb6ebc61301d1e8c528
2019-12-13 13:42:48 +00:00
094148b823 - Setup Conflicts: so that older version of Python don’t collide
with this package.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/shared-python-startup?expand=0&rev=3
2019-12-04 17:18:11 +00:00
3 changed files with 28 additions and 1 deletions

View File

@@ -15,10 +15,12 @@ historyPath = os.path.expanduser("~/.pyhistory%s" % ver)
# handler for saving history
def save_history(historyPath=historyPath):
import readline
try:
readline.write_history_file(historyPath)
except:
pass
del readline
# read history, if it exists

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Tue Jul 14 11:03:14 UTC 2020 - Antonio Larrosa <alarrosa@suse.com>
- Import readline in the save_history handler. Otherwise the call
to readline.write_history_file doesn't work (the readline import
at the beginning of the file is already removed) and is silently
ignored by the exception catcher.
-------------------------------------------------------------------
Mon Apr 27 13:18:52 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Correct suse_version value for SLE-12
-------------------------------------------------------------------
Wed Dec 4 18:17:30 CET 2019 - Matej Cepl <mcepl@suse.com>
- Setup Conflicts: so that older version of Python dont collide
with this package.
-------------------------------------------------------------------
Fri Nov 22 14:04:21 UTC 2019 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package shared-python-startup
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,12 @@ Source0: pythonstart
Source1: LICENSE
BuildRequires: filesystem
Supplements: python(abi)
Conflicts: python3 < 3.8
%if 0%{?suse_version} > 1315
Conflicts: (python2 without python2_split_startup)
%else
Conflicts: python2 < 2.7.17
%endif
BuildArch: noarch
%description