From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 47238E00EEA; Wed, 11 May 2016 02:58:08 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 08D14E00E43 for ; Wed, 11 May 2016 02:58:04 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP; 11 May 2016 02:58:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,608,1455004800"; d="scan'208";a="963508075" Received: from linux.intel.com ([10.23.219.25]) by fmsmga001.fm.intel.com with ESMTP; 11 May 2016 02:58:05 -0700 Received: from vmed.fi.intel.com (vmed.fi.intel.com [10.237.72.51]) by linux.intel.com (Postfix) with ESMTP id 36BB96A4006 for ; Wed, 11 May 2016 03:45:35 -0700 (PDT) From: Ed Bartosh To: toaster@yoctoproject.org Date: Wed, 11 May 2016 10:37:54 +0300 Message-Id: X-Mailer: git-send-email 2.1.4 Subject: [PATCH 00/16] Python 3 support (the beginning) X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2016 09:58:08 -0000 Hi, This is first series of patches to make Toaster working in Python 3. The series should not break Python 2 support. The code should be able to work in both Python 2 and Python 3. This patchset doesn't change build code as it uses bitbake from master. This means that Toaster is not able to run builds in python 3 environment yet. Build machinery will be addressed in the next series. Test instructions: 1. fetch the branch and checkout to it: git fetch contrib ed/toaster/python3 && git checkout -b python3 contrib/ed/toaster/python3 2. Test if Toaster still works in current Python 2 setup. 3. Setup python 3 virtual environment: mkvirtualenv --python=/usr/bin/python3 toaster3 4. deactivate it as next step can't be done in python 3 environment: deactivate 5. initialize build environment: . oe-oe-init-build-env 6. switch to python3 virtual env: workon toaster3 7. move toaster database: mv toaster.sqlite toaster.sqlite.backup 7. run toaster: . ../bitbake/bin/toaster start 8. Check if toaster script starts properly, fetches the layers etc 9. Check if UI is accessible, that project can be created and basic functionality(excluding building) is not broken. The following changes since commit 0b717a9551d23579f5293e83655bc21e139bdaa2: toaster: tests browser Add test for creating a project (2016-05-10 12:03:44 +0100) are available in the git repository at: git://git.yoctoproject.org/poky-contrib ed/toaster/python3 http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/toaster/python3 Ed Bartosh (14): toaster: use force_text instead of force_bytes toaster: use print function in toaster script toaster: get rid of using reduce toaster: fix imports to work for python 3 toaster: fix local imports toaster: modified list of dependencies toaster: use decode('utf-8') for binary data toaster: use items and range instead of old APIs toaster: replace map with list comprehensions toaster: use 'in' instead of has_key toaster: use re.sub() instead of translate() toaster: use new syntax of except statement toaster: read timezone files in binary mode toaster: moved import bb.server.xmlrpc Michael Wood (1): toaster: Remove DATABASE_URL being passed around as an environment var Richard Purdie (1): bin, toaster: Fix print and exception syntax bitbake/bin/bitbake-diffsigs | 6 +- bitbake/bin/bitbake-dumpsig | 4 +- bitbake/bin/toaster | 6 +- bitbake/lib/bb/ui/buildinfohelper.py | 20 +-- bitbake/lib/bb/utils.py | 6 +- bitbake/lib/toaster/bldcontrol/bbcontroller.py | 4 +- .../toaster/bldcontrol/localhostbecontroller.py | 4 +- .../management/commands/checksettings.py | 20 +-- .../bldcontrol/management/commands/loadconf.py | 4 +- .../bldcontrol/management/commands/runbuilds.py | 4 +- bitbake/lib/toaster/bldcontrol/models.py | 4 +- bitbake/lib/toaster/bldcontrol/tests.py | 4 +- bitbake/lib/toaster/contrib/tts/config.py | 2 +- .../contrib/tts/toasteruitest/run_toastertests.py | 4 +- .../tts/toasteruitest/toaster_automation_test.py | 186 ++++++++++----------- bitbake/lib/toaster/orm/models.py | 22 ++- bitbake/lib/toaster/toastergui/api.py | 3 +- bitbake/lib/toaster/toastergui/tablefilter.py | 2 +- bitbake/lib/toaster/toastergui/tables.py | 3 +- bitbake/lib/toaster/toastergui/views.py | 119 +++++++------ bitbake/lib/toaster/toastergui/widgets.py | 25 +-- .../toastermain/management/commands/builddelete.py | 2 +- .../toastermain/management/commands/buildslist.py | 2 +- .../toastermain/management/commands/get-dburl.py | 9 - .../toastermain/management/commands/perf.py | 6 +- bitbake/lib/toaster/toastermain/settings.py | 78 ++------- bitbake/lib/toaster/toastermain/urls.py | 2 +- bitbake/toaster-requirements.txt | 4 +- 28 files changed, 264 insertions(+), 291 deletions(-) delete mode 100644 bitbake/lib/toaster/toastermain/management/commands/get-dburl.py -- Regards, Ed