From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ua0-x22a.google.com ([2607:f8b0:400c:c08::22a]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bblBl-0001ew-Ou for barebox@lists.infradead.org; Mon, 22 Aug 2016 09:06:39 +0000 Received: by mail-ua0-x22a.google.com with SMTP id n59so177438811uan.2 for ; Mon, 22 Aug 2016 02:06:16 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160822052808.GT20657@pengutronix.de> References: <20160822052808.GT20657@pengutronix.de> From: Yegor Yefremov Date: Mon, 22 Aug 2016 11:05:55 +0200 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: barebox remote control To: Sascha Hauer Cc: barebox On Mon, Aug 22, 2016 at 7:28 AM, Sascha Hauer wrote: > Hi Yegor, > > On Fri, Aug 19, 2016 at 03:45:22PM +0200, Yegor Yefremov wrote: >> Hi Sascha, >> >> On Thu, Aug 18, 2016 at 9:48 AM, Yegor Yefremov >> wrote: >> > Are you planning to create a standalone PyPI package for bbremote? It >> > would be very handy. >> >> I'll try to create such a package on my GitHub account and then we >> will see how to proceed. Porting to Python 3 is really funny :-) str >> vs. bytearrays .... >> >> > Have you already contacted pyserial maintainers, so that they could >> > provide a configurable option for RFC2217 related timeout >> > (https://github.com/pyserial/pyserial)? >> >> I'll drop own pyserial and rely on upstream. > > Thanks. We haven't done anything in that direction yet. Take a look at this repo: https://github.com/yegorich/bbremote Following commands are already working in both Py2/3: bbremote ping bbremote run "devinfo" bbremote getenv "global.version" So far there was only one place, where I explicitly make distinction between Py2 and 3. Everything else seems to work well with bytearray (http://www.devdungeon.com/content/working-binary-data-python). TODO: 1. bbremote console works only in Py3, in Py2 it seems to freeze 2. add proper dependencies for setup.py (enum, enum34 for Py2 and crcmod and pyserial for all versions). What minial Py3 version should be supported? Perhaps choose 3.4 as is available on current Debian 8 3. licence: should we keep Barebox licence or move to MIT? 4. more tests Yegor _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox