Hello community, here is the log from the commit of package python3-bpython for openSUSE:Factory checked in at 2015-01-25 21:14:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-bpython (Old) and /work/SRC/openSUSE:Factory/.python3-bpython.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-bpython" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-bpython/python3-bpython.changes 2015-01-08 23:03:04.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python3-bpython.new/python3-bpython.changes 2015-01-25 21:15:00.000000000 +0100 @@ -1,0 +2,9 @@ +Sun Jan 25 01:04:05 UTC 2015 - arun@gmx.de + +- update to version 0.13.2: + * #424: Use new JSON API at bpaste.net. + * #430: Fixed SNI issues with new pastebin service on Mac OS X. + * #432: Fixed crash in bpython-curtsies in special circumstances if + history file is empty. Thanks to Lisa van Gelder. + +------------------------------------------------------------------- Old: ---- bpython-0.13.1.tar.gz New: ---- bpython-0.13.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-bpython.spec ++++++ --- /var/tmp/diff_new_pack.mwwhoW/_old 2015-01-25 21:15:01.000000000 +0100 +++ /var/tmp/diff_new_pack.mwwhoW/_new 2015-01-25 21:15:01.000000000 +0100 @@ -17,7 +17,7 @@ Name: python3-bpython -Version: 0.13.1 +Version: 0.13.2 Release: 0 Url: http://www.bpython-interpreter.org Summary: Fancy Curses Interface to the Python Interactive Interpreter ++++++ bpython-0.13.1.tar.gz -> bpython-0.13.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/CHANGELOG new/bpython-0.13.2/CHANGELOG --- old/bpython-0.13.1/CHANGELOG 2014-07-16 22:09:10.000000000 +0200 +++ new/bpython-0.13.2/CHANGELOG 2015-01-19 11:33:56.000000000 +0100 @@ -1,7 +1,17 @@ Changelog ========= -v0.13.1 +0.13.2 +------- + +A bugfix release. The fixed bugs are: + +* #424: Use new JSON API at bpaste.net. +* #430: Fixed SNI issues with new pastebin service on Mac OS X. +* #432: Fixed crash in bpython-curtsies in special circumstances if history file + is empty. Thanks to Lisa van Gelder. + +0.13.1 ------- A bugfix release. The fixed bugs are: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/PKG-INFO new/bpython-0.13.2/PKG-INFO --- old/bpython-0.13.1/PKG-INFO 2014-07-16 22:17:31.000000000 +0200 +++ new/bpython-0.13.2/PKG-INFO 2015-01-19 11:36:35.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: bpython -Version: 0.13.1 +Version: 0.13.2 Summary: Fancy Interface to the Python Interpreter Home-page: http://www.bpython-interpreter.org/ Author: Bob Farrell, Andreas Stuehrk et al. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/README.rst new/bpython-0.13.2/README.rst --- old/bpython-0.13.1/README.rst 1970-01-01 01:00:00.000000000 +0100 +++ new/bpython-0.13.2/README.rst 2015-01-19 11:34:09.000000000 +0100 @@ -0,0 +1,157 @@ +|ImageLink|_ + +.. |ImageLink| image:: https://travis-ci.org/bpython/bpython.svg?branch=0.13-bugfix +.. _ImageLink: https://travis-ci.org/bpython/bpython + +bpython - A fancy curses interface to the Python interactive interpreter +======================================================================== + +Dependencies +============ + +* Pygments (apt-get install python-pygments) +* Sphinx != 1.1.2 (for the documentation only) (apt-get install python-sphinx) +* mock (for the testsuite only) +* babel (optional, for internationalization) + +bpython-curtsies +---------------- +``bpython-curtsies`` requires the following additional packages: + +* curtsies >= 0.0.32 +* greenlet + +bpython-urwid +------------- +``bpython-urwid`` requires the following additional packages: + +* urwid + +Introduction +============ +A few people asked for stuff like syntax highlighting and autocomplete for the +Python interactive interpreter. IPython seems to offer this (plus you can get +readline behaviour in the vanilla interpreter) but I tried IPython a couple of +times. Perhaps I didn't really get it, but I get the feeling that the ideas +behind IPython are pretty different to bpython. I didn't want to create a whole +development environment; I simply wanted to provide a couple of neat features +that already exist and turn them into something a little more interactive. + +The idea is to provide the user with all the features in-line, much like modern +IDEs, but in a simple, lightweight package that can be run in a terminal +window, so curses seemed like the best choice. Sorry if you use Windows. + +bpython doesn't attempt to create anything new or groundbreaking, it simply +brings together a few neat ideas and focuses on practicality and usefulness. +For this reason, the "Rewind" function should be taken with a pinch of salt, +but personally I have found it to be very useful. I use bpython now whenever I +would normally use the vanilla interpreter, e.g. for testing out solutions to +people's problems on IRC, quickly testing a method of doing something without +creating a temporary file, etc.. + +I hope you find it useful and please feel free to submit any bugs/patches (yeah +right)/suggestions to: +robertanthonyfarrell@gmail.com +or place them at the github issue page for this project at: +http://github.com/bpython/bpython/issues/ + +For any other ways of communicating with bpython users and devs you can find us +at the communication page on the projects homepage: +http://bpython-interpreter.org/community + +Hope to see you there! + +Features +======== + +* In-line syntax highlighting. + This uses Pygments for lexing the code as you type, and colours + appropriately. Pygments does a great job of doing all of the tricky stuff + and really leaving me with very little to do except format the tokens in + all my favourite colours. + +* Readline-like autocomplete with suggestions displayed as you type. + Thanks to Python's readline interface to libreadline and a ready-made class + for using a Python interpreter's scope as the dataset, the only work here + was displaying the readline matches as you type in a separate curses window + below/above the cursor. + +* Expected parameter list. + As in a lot of modern IDEs, bpython will attempt to display a list of + parameters for any function you call. The inspect module is tried first, + which works with any Python function, and then pydoc if that fails, which + seems to be pretty adequate, but obviously in some cases it's simply not + possible. I used pyparsing to cure my nested parentheses woes; again, it + was nice and easy. + +* Rewind. + I didn't call this "Undo" because I thought that would be misleading, but + "Rewind" is probably as bad. The idea is that the code entered is kept in + memory and when the Rewind function is called, the last line is popped and + the entire code is re-evaluated. As you can imagine, this has a lot of + potential problems, but for defining classes and functions, I've found it + to be nothing but useful. + +* Pastebin code/write to file. + I don't really use the save thing much, but the pastebin thing's great. Hit + a key and what you see on the screen will be sent to a pastebin and a URL + is returned for you to do what you like with. I've hardcoded + paste.pocoo.org in for now, that needs to be fixed so it's configurable. + Next release, I promise. + +* Flush curses screen to stdout. + A featurette, perhaps, but I thought it was worth noting. I can't + personally recall a curses app that does this, perhaps it's often not + useful, but when you quit bpython, the screen data will be flushed to + stdout, so it basically looks the same as if you had quit the vanilla + interpreter. + +Configuration +============= +See the sample-config file for a list of available options. You should save +your config file as ~/.config/bpython/config (i.e +$XDG_CONFIG_HOME/bpython/config) or specify at the command line:: + + bpython --config /path/to/bpython/config + +Known Bugs +========== +For known bugs please see bpython's issue tracker at github: + +http://github.com/bpython/bpython/issues/ + +CLI Windows Support +=================== + +Dependencies +------------ +Curses + Use the appropriate version compiled by Christoph Gohlke + http://www.lfd.uci.edu/~gohlke/pythonlibs/ + +pyreadline + Use the version in the cheeseshop + http://pypi.python.org/pypi/pyreadline/ + +Recommended +----------- +Obtain the less program from GnuUtils. This makes the pager work as intended. +It can be obtained from cygwin or GnuWin32 or msys + +Current version is tested with +------------------------------ + * Curses 2.2 + * pyreadline 1.7 + +Curses Notes +------------ +The curses used has a bug where the colours are displayed incorrectly: + * red is swapped with blue + * cyan is swapped with yellow + +To correct this I have provided my windows.theme file. + +This curses implementation has 16 colors (dark and light versions of the +colours) + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/bpython/__init__.py new/bpython-0.13.2/bpython/__init__.py --- old/bpython-0.13.1/bpython/__init__.py 2014-07-16 22:09:25.000000000 +0200 +++ new/bpython-0.13.2/bpython/__init__.py 2015-01-19 11:34:09.000000000 +0100 @@ -22,7 +22,7 @@ import os.path -__version__ = '0.13.1' +__version__ = '0.13.2' package_dir = os.path.abspath(os.path.dirname(__file__)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/bpython/config.py new/bpython-0.13.2/bpython/config.py --- old/bpython-0.13.1/bpython/config.py 2014-07-16 22:09:10.000000000 +0200 +++ new/bpython-0.13.2/bpython/config.py 2015-01-19 11:34:09.000000000 +0100 @@ -68,9 +68,11 @@ 'tab_length': 4, 'pastebin_confirm': True, 'pastebin_private': False, - 'pastebin_url': 'http://bpaste.net/xmlrpc/', + 'pastebin_url': 'https://bpaste.net/json/new', 'pastebin_private': True, - 'pastebin_show_url': 'http://bpaste.net/show/$paste_id/', + 'pastebin_show_url': 'https://bpaste.net/show/$paste_id', + 'pastebin_removal_url': 'https://bpaste.net/remove/$removal_id', + 'pastebin_expiry': '1week', 'pastebin_helper': '', 'save_append_py': False, 'editor': os.environ.get('VISUAL', os.environ.get('EDITOR', 'vi')) @@ -149,6 +151,8 @@ struct.pastebin_url = config.get('general', 'pastebin_url') struct.pastebin_private = config.get('general', 'pastebin_private') struct.pastebin_show_url = config.get('general', 'pastebin_show_url') + struct.pastebin_removal_url = config.get('general', 'pastebin_removal_url') + struct.pastebin_expiry = config.get('general', 'pastebin_expiry') struct.pastebin_helper = config.get('general', 'pastebin_helper') struct.cli_suggestion_width = config.getfloat('cli', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/bpython/curtsiesfrontend/repl.py new/bpython-0.13.2/bpython/curtsiesfrontend/repl.py --- old/bpython-0.13.1/bpython/curtsiesfrontend/repl.py 2014-07-16 22:09:10.000000000 +0200 +++ new/bpython-0.13.2/bpython/curtsiesfrontend/repl.py 2015-01-19 11:34:09.000000000 +0100 @@ -371,7 +371,7 @@ self.highlighted_paren = None self.rl_history.append(self._current_line) - self.rl_history.last() + self.rl_history.reset() self.history.append(self._current_line) line = self._current_line #self._current_line = '' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/bpython/repl.py new/bpython-0.13.2/bpython/repl.py --- old/bpython-0.13.1/bpython/repl.py 2014-07-16 22:09:10.000000000 +0200 +++ new/bpython-0.13.2/bpython/repl.py 2015-01-19 11:34:09.000000000 +0100 @@ -28,6 +28,7 @@ import inspect import os import pydoc +import requests import shlex import subprocess import sys @@ -41,8 +42,7 @@ from socket import error as SocketError from string import Template from urllib import quote as urlquote -from urlparse import urlparse -from xmlrpclib import ServerProxy, Error as XMLRPCError +from urlparse import urlparse, urljoin from pygments.token import Token @@ -771,32 +771,41 @@ if self.config.pastebin_helper: return self.do_pastebin_helper(s) else: - return self.do_pastebin_xmlrpc(s) + return self.do_pastebin_json(s) - def do_pastebin_xmlrpc(self, s): - """Upload to pastebin via XML-RPC.""" - try: - pasteservice = ServerProxy(self.config.pastebin_url) - except IOError, e: - self.interact.notify(_("Pastebin error for URL '%s': %s") % - (self.config.pastebin_url, str(e))) - return + def do_pastebin_json(self, s): + """Upload to pastebin via json interface.""" + + url = urljoin(self.config.pastebin_url, '/json/new') + payload = { + 'code': s, + 'lexer': 'pycon', + 'expiry': self.config.pastebin_expiry + } self.interact.notify(_('Posting data to pastebin...')) try: - paste_id = pasteservice.pastes.newPaste('pycon', s, '', '', '', - self.config.pastebin_private) - except (SocketError, XMLRPCError), e: - self.interact.notify(_('Upload failed: %s') % (str(e), ) ) - return + response = requests.post(url, data=payload, verify=True) + response.raise_for_status() + except requests.exceptions.RequestException as exc: + self.interact.notify(_('Upload failed: %s') % (str(exc), )) + return self.prev_pastebin_content = s + data = response.json() paste_url_template = Template(self.config.pastebin_show_url) - paste_id = urlquote(paste_id) + paste_id = urlquote(data['paste_id']) paste_url = paste_url_template.safe_substitute(paste_id=paste_id) + + removal_url_template = Template(self.config.pastebin_removal_url) + removal_id = urlquote(data['removal_id']) + removal_url = removal_url_template.safe_substitute(removal_id=removal_id) + self.prev_pastebin_url = paste_url - self.interact.notify(_('Pastebin URL: %s') % (paste_url, ), 10) + self.interact.notify(_('Pastebin URL: %s - Removal URL: %s') % + (paste_url, removal_url)) + return paste_url def do_pastebin_helper(self, s): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/bpython/test/test.config new/bpython-0.13.2/bpython/test/test.config --- old/bpython-0.13.1/bpython/test/test.config 1970-01-01 01:00:00.000000000 +0100 +++ new/bpython-0.13.2/bpython/test/test.config 2014-08-11 16:20:05.000000000 +0200 @@ -0,0 +1,3 @@ +[general] +hist_file = /dev/null +paste_time = 0 \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/bpython/test/test_manual_readline.py new/bpython-0.13.2/bpython/test/test_manual_readline.py --- old/bpython-0.13.1/bpython/test/test_manual_readline.py 2014-07-05 00:06:13.000000000 +0200 +++ new/bpython-0.13.2/bpython/test/test_manual_readline.py 2015-01-19 11:34:09.000000000 +0100 @@ -1,5 +1,8 @@ from bpython.curtsiesfrontend.manual_readline import * -import unittest +try: + import unittest2 as unittest +except ImportError: + import unittest class TestManualReadline(unittest.TestCase): def setUp(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/bpython/test/test_repl.py new/bpython-0.13.2/bpython/test/test_repl.py --- old/bpython-0.13.1/bpython/test/test_repl.py 2014-07-05 00:06:13.000000000 +0200 +++ new/bpython-0.13.2/bpython/test/test_repl.py 2015-01-19 11:34:09.000000000 +0100 @@ -1,12 +1,11 @@ import os -import unittest +import sys from itertools import islice from mock import Mock try: - from unittest import skip + import unittest2 as unittest except ImportError: - def skip(f): - return lambda self: None + import unittest from bpython import config, repl, cli, autocomplete @@ -100,6 +99,7 @@ self.assertEqual(self.history.back(), 'print "foo\n"') + @unittest.expectedFailure def test_enter(self): self.history.enter('#lastnumber!') @@ -245,7 +245,7 @@ self.assertEqual(self.repl.current_string(), '') # TODO: figure out how to capture whether foobar is in globals - @skip('not working yet') + @unittest.skip('not working yet') def test_push(self): self.repl = FakeRepl() self.repl.push("foobar = 2") @@ -273,6 +273,7 @@ self.assertEqual(self.repl.completer.matches, ['RuntimeError(', 'RuntimeWarning(']) + @unittest.skipIf(sys.version_info[0:2] != (2,7), 'known to fail on != 2.7') def test_fuzzy_global_complete(self): self.repl = FakeRepl({'autocomplete_mode': autocomplete.FUZZY}) self.repl.input_line = "doc" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/bpython.egg-info/PKG-INFO new/bpython-0.13.2/bpython.egg-info/PKG-INFO --- old/bpython-0.13.1/bpython.egg-info/PKG-INFO 2014-07-16 22:17:31.000000000 +0200 +++ new/bpython-0.13.2/bpython.egg-info/PKG-INFO 2015-01-19 11:36:35.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: bpython -Version: 0.13.1 +Version: 0.13.2 Summary: Fancy Interface to the Python Interpreter Home-page: http://www.bpython-interpreter.org/ Author: Bob Farrell, Andreas Stuehrk et al. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/bpython.egg-info/SOURCES.txt new/bpython-0.13.2/bpython.egg-info/SOURCES.txt --- old/bpython-0.13.1/bpython.egg-info/SOURCES.txt 2014-07-16 22:17:31.000000000 +0200 +++ new/bpython-0.13.2/bpython.egg-info/SOURCES.txt 2015-01-19 11:36:35.000000000 +0100 @@ -3,6 +3,7 @@ CHANGELOG LICENSE MANIFEST.in +README.rst ROADMAP TODO light.theme @@ -44,6 +45,7 @@ bpython/curtsiesfrontend/replpainter.py bpython/curtsiesfrontend/sitefix.py bpython/test/__init__.py +bpython/test/test.config bpython/test/test.theme bpython/test/test_args.py bpython/test/test_bpython.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/bpython.egg-info/entry_points.txt new/bpython-0.13.2/bpython.egg-info/entry_points.txt --- old/bpython-0.13.1/bpython.egg-info/entry_points.txt 2014-07-16 22:17:31.000000000 +0200 +++ new/bpython-0.13.2/bpython.egg-info/entry_points.txt 2015-01-19 11:36:35.000000000 +0100 @@ -1,7 +1,7 @@ [console_scripts] -bpython-urwid = bpython.urwid:main [urwid] -bpython-curtsies = bpython.curtsies:main [curtsies] bpython = bpython.cli:main +bpython-curtsies = bpython.curtsies:main [curtsies] +bpython-urwid = bpython.urwid:main [urwid] [gui_scripts] bpython-gtk = bpython.gtk_:main diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/bpython.egg-info/requires.txt new/bpython-0.13.2/bpython.egg-info/requires.txt --- old/bpython-0.13.1/bpython.egg-info/requires.txt 2014-07-16 22:17:31.000000000 +0200 +++ new/bpython-0.13.2/bpython.egg-info/requires.txt 2015-01-19 11:36:35.000000000 +0100 @@ -1,8 +1,9 @@ pygments - -[urwid] -urwid +requests [curtsies] curtsies >=0.0.34, <0.1.0 -greenlet \ No newline at end of file +greenlet + +[urwid] +urwid diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/doc/sphinx/source/changelog.rst new/bpython-0.13.2/doc/sphinx/source/changelog.rst --- old/bpython-0.13.1/doc/sphinx/source/changelog.rst 2014-07-16 22:08:26.000000000 +0200 +++ new/bpython-0.13.2/doc/sphinx/source/changelog.rst 2015-01-19 11:33:56.000000000 +0100 @@ -1,6 +1,32 @@ Changelog ========= +0.13.2 +------ + +A bugfix release. The fixed bugs are: + +* #424: Use new JSON API at bpaste.net. +* #430: Fixed SNI issues with new pastebin service on Mac OS X. +* #432: Fixed crash in bpython-curtsies in special circumstances if history file + is empty. Thanks to Lisa van Gelder. + +0.13.1 +------ + +A bugfix release. The fixed bugs are: + +* #287: Turned off dictionary completion in bpython-curtsies +* #281: Fixed a crash on error-raising properties +* #286: Fixed input in Python 3 +* #293: Added encoding attribute to stdin bpython curtsies +* #296: Fixed warnings in import completion for Python 3 +* #290: Stop using root logger +* #301: Specify curtsies version in requirements + +There's also a necessary regression: #232 (adding fileno() on stdin) +is reintroduced because its previous fix was found to be the cause of #286 + 0.13 ---- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/doc/sphinx/source/conf.py new/bpython-0.13.2/doc/sphinx/source/conf.py --- old/bpython-0.13.1/doc/sphinx/source/conf.py 2014-07-16 22:09:10.000000000 +0200 +++ new/bpython-0.13.2/doc/sphinx/source/conf.py 2015-01-19 11:34:09.000000000 +0100 @@ -45,9 +45,9 @@ # built documents. # # The short X.Y version. -version = 'mercurial' +version = '0.13.2' # The full version, including alpha/beta/rc tags. -release = 'mercurial' +release = '0.13.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/doc/sphinx/source/configuration-options.rst new/bpython-0.13.2/doc/sphinx/source/configuration-options.rst --- old/bpython-0.13.1/doc/sphinx/source/configuration-options.rst 2014-07-05 00:06:13.000000000 +0200 +++ new/bpython-0.13.2/doc/sphinx/source/configuration-options.rst 2015-01-19 11:34:09.000000000 +0100 @@ -44,8 +44,8 @@ pastebin_url ^^^^^^^^^^^^ The pastebin url to post to (without a trailing slash). This pastebin has to be -a pastebin which uses LodgeIt. Examples are: http://paste.pocoo.org/xmlrpc/ and -http://bpaste.net/xmlrpc/ (default: http://bpaste.net/xmlrpc/) +a pastebin which uses provides a similar interface to ``bpaste.net``'s JSON +interface. (default: https://bpaste.net/json/new) pastebin_private ^^^^^^^^^^^^^^^^ @@ -57,9 +57,19 @@ pastebin_show_url ^^^^^^^^^^^^^^^^^ The url under which the new paste can be reached. ``$paste_id`` will be replaced -by the ID of the new paste. Examples are: http://bpaste.net/show/$paste_id/ and -http://paste.pocoo.org/show/$paste_id/ (default: -http://bpaste.net/show/$paste_id/) +by the ID of the new paste. (default: https://bpaste.net/show/$paste_id/) + +pastebin_removal_url +^^^^^^^^^^^^^^^^^^^^ +The url under which a paste can be removed. ``$removal_id`` will be replaced +by the removal ID of the paste. (default: https://bpaste.net/remova/$removal_id/) + +.. versionadded:: 0.14 + +pastebin_expiry +^^^^^^^^^^^^^^^ +Time duration after which a paste should expire. Valid values are ``1day``, +``1week`` and ``1month``. (default: ``1week``) pastebin_helper ^^^^^^^^^^^^^^^ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bpython-0.13.1/setup.py new/bpython-0.13.2/setup.py --- old/bpython-0.13.1/setup.py 2014-07-16 22:09:10.000000000 +0200 +++ new/bpython-0.13.2/setup.py 2015-01-19 11:34:09.000000000 +0100 @@ -133,6 +133,11 @@ ] data_files.extend(man_pages) +install_requires = [ + 'pygments', + 'requests' +] + extras_require = { 'urwid' : ['urwid'] } @@ -162,6 +167,18 @@ if not using_setuptools: scripts.append('data/bpython-curtsies') +if sys.version_info[0] == 2 and sys.platform == "darwin": + # need PyOpenSSL for SNI support (only 2.X and on Darwin) + # list of packages taken from + # https://github.com/kennethreitz/requests/blob/master/requests/packages/urlli... + install_requires.append('PyOpenSSL') + install_requires.append('ndg-httpsclient') + install_requires.append('pyasn1') + +tests_require = ['mock'] +if sys.version_info[0] == 2 and sys.version_info[1] < 7: + tests_require.append('unittest2') + # translations mo_files = list() for language in os.listdir(translations_dir): @@ -179,11 +196,9 @@ url = "http://www.bpython-interpreter.org/", long_description = """bpython is a fancy interface to the Python interpreter for Unix-like operating systems.""", - install_requires = [ - 'pygments' - ], + install_requires = install_requires, extras_require = extras_require, - tests_require = ['mock'], + tests_require = tests_require, packages = packages, data_files = data_files, package_data = { -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org