From: Ed Bartosh <ed.bartosh@linux.intel.com>
To: toaster@yoctoproject.org
Subject: [PATCH 00/16] Python 3 support (the beginning)
Date: Wed, 11 May 2016 10:37:54 +0300 [thread overview]
Message-ID: <cover.1462892580.git.ed.bartosh@linux.intel.com> (raw)
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
next reply other threads:[~2016-05-11 9:58 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-11 7:37 Ed Bartosh [this message]
2016-05-11 7:37 ` [PATCH 01/16] toaster: Remove DATABASE_URL being passed around as an environment var Ed Bartosh
2016-05-11 7:37 ` [PATCH 02/16] bin, toaster: Fix print and exception syntax Ed Bartosh
2016-05-11 7:37 ` [PATCH 03/16] toaster: use force_text instead of force_bytes Ed Bartosh
2016-05-11 7:37 ` [PATCH 04/16] toaster: use print function in toaster script Ed Bartosh
2016-05-11 7:37 ` [PATCH 05/16] toaster: get rid of using reduce Ed Bartosh
2016-05-11 7:38 ` [PATCH 06/16] toaster: fix imports to work for python 3 Ed Bartosh
2016-05-11 7:38 ` [PATCH 07/16] toaster: fix local imports Ed Bartosh
2016-05-11 7:38 ` [PATCH 08/16] toaster: modified list of dependencies Ed Bartosh
2016-05-11 7:38 ` [PATCH 09/16] toaster: use decode('utf-8') for binary data Ed Bartosh
2016-05-11 7:38 ` [PATCH 10/16] toaster: use items and range instead of old APIs Ed Bartosh
2016-05-11 7:38 ` [PATCH 11/16] toaster: replace map with list comprehensions Ed Bartosh
2016-05-11 7:38 ` [PATCH 12/16] toaster: use 'in' instead of has_key Ed Bartosh
2016-05-11 7:38 ` [PATCH 13/16] toaster: use re.sub() instead of translate() Ed Bartosh
2016-05-11 7:38 ` [PATCH 14/16] toaster: use new syntax of except statement Ed Bartosh
2016-05-11 7:38 ` [PATCH 15/16] toaster: read timezone files in binary mode Ed Bartosh
2016-05-11 7:38 ` [PATCH 16/16] toaster: moved import bb.server.xmlrpc Ed Bartosh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1462892580.git.ed.bartosh@linux.intel.com \
--to=ed.bartosh@linux.intel.com \
--cc=toaster@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.