Merge lp:~emailgirishrawat/ubuntu-docviewer-app/READMEs into lp:ubuntu-docviewer-app

Proposed by Girish
Status: Merged
Approved by: Stefano Verzegnassi
Approved revision: 236
Merged at revision: 238
Proposed branch: lp:~emailgirishrawat/ubuntu-docviewer-app/READMEs
Merge into: lp:ubuntu-docviewer-app
Diff against target: 346 lines (+229/-75)
8 files modified
README (+0/-39)
README-Autopilot.md (+81/-0)
README-Developers.md (+43/-0)
README-Mergeproposal.md (+32/-0)
README-Translations.md (+37/-0)
README.md (+30/-0)
README.translations (+0/-36)
debian/changelog (+6/-0)
To merge this branch: bzr merge lp:~emailgirishrawat/ubuntu-docviewer-app/READMEs
Reviewer Review Type Date Requested Status
Jenkins Bot continuous-integration Approve
Stefano Verzegnassi Approve
Review via email: mp+281013@code.launchpad.net

Commit message

Updated and expanded READMEs.

Description of the change

Updated and expanded READMEs.

To post a comment you must log in.
Revision history for this message
Stefano Verzegnassi (verzegnassi-stefano) wrote :

Hi,

Thanks for this big improvement!

I had a look at your MP and overall it looks very good.
However, some minor change is required in order to reflect the current status of the project.

* Some of the Autopilot tests are currently broken.
  It may be worth to point that out in the 'README-Mergeproposal.md' file, explaining that they aren't strictly required at the moment. The same goes for 'README-Autopilot.md' file.

* In the 'README-Developers.md' file, we mention that LibreOffice 5.0 is not available in the archive. This is no longer true, since it's available in Ubuntu 15.10 archives.
  For earlier release, we may want to refer to the following PPA, which includes only stable releases:
     ppa:libreoffice/libreoffice-5-0

* Still in the same file, in the 'Compiling" section, it may be useful to specify that a working internet connection is required in order to build the project, since a number of Debian packages are downloaded when the project is loaded the first time through (e.g.) QtCreator.

* Still a small correction to 'README-Mergeproposal'.
  The line:
    "Does the MP change the UI? If Yes, has it been approved by design?"
  does not reflect our current workflow, since a large part of the UI hasn't been approved by the design team (it has been approved by the devs instead).
  Please replace that line with:
    "Does the MP change the UI? If Yes, has it been approved by design, or discussed with some of the DocViewer developers?"

Thanks again!

review: Needs Fixing
236. By Girish

Updated READMEs

Revision history for this message
Girish (emailgirishrawat) wrote :

Fixed.

Revision history for this message
Stefano Verzegnassi (verzegnassi-stefano) wrote :

LGTM. Good job, thanks!

review: Approve
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'README'
2--- README 2015-06-29 08:51:39 +0000
3+++ README 1970-01-01 00:00:00 +0000
4@@ -1,39 +0,0 @@
5-Usage
6-=====
7-ubuntu-docviewer-app [filename]
8-
9-filename : The path where the file you want to open is located.
10-
11-Compiling
12-=========
13-
14-Install poppler's development files:
15- sudo apt install libpoppler-qt5-dev
16-
17-Install Qt5 private development files:
18- sudo apt install qtdeclarative5-private-dev qtbase5-private-dev
19-
20-If you want to compile an arm click package, you need to install that package
21-to the arm compilation environment. For example when using QtCreator for
22-Ubuntu Touch, open Options -> Ubuntu -> Maintain, and then enter:
23-
24- apt install libpoppler-qt5-dev:armhf qtdeclarative5-private-dev:armhf qtbase5-private-dev:armhf
25-
26-LibreOffice viewer support
27-==========================
28-
29-If you want to enable the LibreOffice viewer feature, you'll need to have a
30-LibreOffice 5.0 installation on your development environment. At the time of
31-writing, LibreOffice 5.0 is not yet in the archive, but you can easily install
32-it from the pre-releases PPA. To do so, type the following commands on a
33-terminal:
34-
35- sudo apt-get purge libreoffice-core
36- sudo add-apt-repository ppa:libreoffice/libreoffice-prereleases
37- sudo apt-get update
38- sudo apt-get install libreoffice
39-
40-Then to compile the LibreOffice viewer plugin you'll simply need to install
41-the LibreOffice Kit development files:
42-
43- sudo apt install libreofficekit-dev
44
45=== added file 'README-Autopilot.md'
46--- README-Autopilot.md 1970-01-01 00:00:00 +0000
47+++ README-Autopilot.md 2015-12-21 13:07:23 +0000
48@@ -0,0 +1,81 @@
49+Running Autopilot tests
50+=======================
51+
52+As of wily 15.10, some autopilot tests are broken in trunk. As such autopilot failures
53+can be excused until they are fixed in trunk.
54+
55+The Doc Viewer app follows a test driven development where autopilot tests are run before every merge into trunk. If you are submitting your bugfix/patch to the Doc Viewer app, please follow the following steps below to ensure that all tests pass before proposing a merge request.
56+
57+If you are looking for more info about Autopilot or writing AP tests for the doc viewer app, here are some useful links to help you:
58+
59+- [Ubuntu - Quality](http://developer.ubuntu.com/start/quality)
60+- [Autopilot - Python](https://developer.ubuntu.com/api/autopilot/python/1.5.0/)
61+
62+For help and options on running tests, see:
63+
64+- [Autopilot tests](https://developer.ubuntu.com/en/start/platform/guides/running-autopilot-tests/)
65+
66+Prerequisites
67+=============
68+
69+Install the following autopilot packages required to run the tests,
70+
71+ $ sudo apt-get install python3-autopilot libautopilot-qt ubuntu-ui-toolkit-autopilot python3-autopilot-vis
72+
73+Running tests on the desktop
74+============================
75+
76+Using terminal:
77+
78+* Branch the Doc Viewer app code, for example,
79+
80+ $ bzr branch lp:ubuntu-docviewer-app
81+
82+* Navigate to the tests/autopilot directory.
83+
84+ $ cd ubuntu-docviewer-app/tests/autopilot
85+
86+* run all tests.
87+
88+ $ autopilot3 run -vv ubuntu_docviewer_app
89+
90+* to list all tests:
91+
92+ $ autopilot3 list ubuntu_docviewer_app
93+
94+ To run only one test (for instance: ubuntu_docviewer_app.tests.test_docviewer.TestMainWindow.test_open_pdf_file)
95+
96+
97+ $ autopilot3 run -vv ubuntu_docviewer_app.tests.test_docviewer.TestMainWindow.test_open_pdf_file
98+
99+* Debugging tests using autopilot vis
100+
101+ $ autopilot3 launch -i Qt qmlscene app/ubuntu-docviewer-app.qml
102+
103+ $ autopilot3 vis
104+
105+Running tests using Ubuntu SDK
106+==============================
107+
108+Refer this [tutorial](https://developer.ubuntu.com/en/start/platform/guides/running-autopilot-tests/) to run tests on Ubuntu SDK:
109+
110+Running tests on device or emulator:
111+====================================
112+
113+Using autopkg:
114+
115+* Branch the Doc Viewer app code, for example,
116+
117+ $ bzr branch lp:ubuntu-docviewer-app
118+
119+* Navigate to the source directory.
120+
121+ $ cd ubuntu-docviewer-app
122+
123+* Build a click package
124+
125+ $ click-buddy .
126+
127+* Run the tests on device (assumes only one click package in the directory)
128+
129+ $ adt-run . *.click --- ssh -s adb -- -p <PASSWORD>
130
131=== added file 'README-Developers.md'
132--- README-Developers.md 1970-01-01 00:00:00 +0000
133+++ README-Developers.md 2015-12-21 13:07:23 +0000
134@@ -0,0 +1,43 @@
135+Dependencies
136+============
137+**DEPENDENCIES ARE NEEDED TO BE INSTALLED TO BUILD AND RUN THE APP**
138+
139+A complete list of dependencies for the project can be found in ubuntu-docviewer-app/debian/control
140+
141+The following essential packages are also required to develop this app:
142+* [ubuntu-sdk](http://developer.ubuntu.com/start)
143+* intltool - run `sudo apt-get install intltool`
144+
145+Compiling
146+=========
147+
148+**A working internet connection is required in order to build the project. A number of Debian packages are downloaded when the project is loaded the first times**
149+
150+* Install poppler's development files:
151+ sudo apt install libpoppler-qt5-dev
152+
153+* Install Qt5 private development files:
154+ sudo apt install qtdeclarative5-private-dev qtbase5-private-dev
155+
156+* If you want to compile an arm click package, you need to install that package
157+ to the arm compilation environment. For example when using QtCreator for
158+ Ubuntu Touch, open Options -> Ubuntu -> Maintain, and then enter:
159+
160+ apt install libpoppler-qt5-dev:armhf qtdeclarative5-private-dev:armhf qtbase5-private-dev:armhf
161+
162+LibreOffice viewer support
163+==========================
164+
165+* If you want to enable the LibreOffice viewer feature, you'll need to have a
166+ LibreOffice 5.0 installation on your development environment.
167+ To do so, type the following commands on a terminal:
168+
169+ sudo apt-get purge libreoffice-core
170+ sudo add-apt-repository ppa:libreoffice/libreoffice-5-0
171+ sudo apt-get update
172+ sudo apt-get install libreoffice
173+
174+* Then to compile the LibreOffice viewer plugin you'll simply need to install
175+ the LibreOffice Kit development files:
176+
177+ sudo apt install libreofficekit-dev
178
179=== added file 'README-Mergeproposal.md'
180--- README-Mergeproposal.md 1970-01-01 00:00:00 +0000
181+++ README-Mergeproposal.md 2015-12-21 13:07:23 +0000
182@@ -0,0 +1,32 @@
183+Prerequisites to approving a Merge Proposal (MP)
184+================================================
185+
186+Over time, it has been found that insufficient testing by reviewers sometimes leads to doc viewer app trunk not buildable in Qtcreator due to manifest errors, or translation pot file not updated. As such, please follow the checklist below before top-approving a MP.
187+
188+Checklist
189+=========
190+
191+* Does the MP add/remove user visible strings? If Yes, has the pot file been
192+ updated?
193+
194+* Does the MP change the UI? If Yes, has it been approved by design, or
195+ discussed with some of the DocViewer developers?
196+
197+* Did you perform an exploratory manual test run of your code change and any
198+ related functionality?
199+
200+* If the MP fixes a bug or implements a feature, are there accompanying unit
201+ and autopilot tests?
202+
203+* Is the doc viewer app trunk buildable and runnable using Qtcreator?
204+
205+* Was the debian changelog updated?
206+
207+* Was the copyright years updated if necessary?
208+
209+The above checklist is more of a guideline to help doc viewer app trunk stay buildable,
210+stable and up to date.
211+
212+Note: As of wily 15.10, some autopilot tests are broken in trunk. As such autopilot failures
213+can be excused until they are fixed in trunk.
214+
215
216=== added file 'README-Translations.md'
217--- README-Translations.md 1970-01-01 00:00:00 +0000
218+++ README-Translations.md 2015-12-21 13:07:23 +0000
219@@ -0,0 +1,37 @@
220+Updating translations
221+=====================
222+
223+Translations for the Document Viewer app happen in [Launchpad Translations](https://translations.launchpad.net/ubuntu-docviewer-app) and are automatically committed daily on the trunk branch in the po/ folder.
224+
225+They are then built and installed as part of the package build, so that
226+developers don't really need to worry about them.
227+
228+However, there is one task that needs to be taken care of: exposing new
229+translatable messages to translators. So whenever you add new translatable
230+messages in the code, make sure to follow these steps:
231+
232+ 1. Run click-buddy retaining the build directory:
233+ `click-buddy --dir . --no-clean`
234+ 2. Commit the generated .pot file: `bzr commit -m"Updated translation template"`
235+ 3. Push the branch and send a merge proposal as usual
236+
237+And that's it, once the branch lands Launchpad should take care of all the rest!
238+
239+Behind the scenes
240+=================
241+
242+Behind the scenes, whenever the po/*.pot file (also known as translations template)
243+is committed to trunk Launchpad reads it and updates the translatable strings
244+exposed in the web UI. This will enable translators to work on the new strings.
245+The translations template contains all translatable strings that have been
246+extracted from the source code files.
247+
248+Launchpad will then store translations in its database and will commit them daily
249+in the form of textual po/*.po files to trunk. The PO files are also usually
250+referred to as the translations files. You'll find a translation file for each
251+language the app has got at least a translated message available for.
252+
253+Translations for core apps follow the standard [gettext format](https://www.gnu.org/software/gettext/).
254+
255+ [Launchpad Translations](https://translations.launchpad.net/ubuntu-docviewer-app)
256+ [gettext format](https://www.gnu.org/software/gettext/)
257
258=== added file 'README.md'
259--- README.md 1970-01-01 00:00:00 +0000
260+++ README.md 2015-12-21 13:07:23 +0000
261@@ -0,0 +1,30 @@
262+ReadMe - Ubuntu Doc Viewer App
263+==============================
264+Ubuntu Doc Viewer App is the official document viewer app for Ubuntu Touch. We follow an open
265+source model where the code is available to anyone to branch and hack on. The
266+ubuntu doc viewer app follows a test driven development (TDD) where tests are
267+written in parallel to feature implementation to help spot regressions easier.
268+
269+Usage
270+=====
271+ubuntu-docviewer-app [filename]
272+
273+filename : The path where the file you want to open is located.
274+
275+Dependencies
276+============
277+**DEPENDENCIES ARE NEEDED TO BE INSTALLED TO BUILD AND RUN THE APP**.
278+
279+A complete list of dependencies for the project can be found in ubuntu-docviewer-app/debian/control
280+
281+The following essential packages are also required to develop this app:
282+* [ubuntu-sdk](http://developer.ubuntu.com/start)
283+* intltool - run `sudo apt-get install intltool`
284+
285+Useful Links
286+============
287+Here are some useful links with regards to the Doc Viewer App development.
288+
289+* [Home Page](https://developer.ubuntu.com/en/community/core-apps/docviewer/)
290+* [Doc Viewer App Wiki](https://wiki.ubuntu.com/Touch/CoreApps/DocViewer)
291+* [Project page](https://launchpad.net/ubuntu-docviewer-app)
292
293=== removed file 'README.translations'
294--- README.translations 2015-01-24 00:03:13 +0000
295+++ README.translations 1970-01-01 00:00:00 +0000
296@@ -1,36 +0,0 @@
297-# Updating translations
298-
299-Translations for the Document Viewer app happen in [Launchpad Translations] and
300-are automatically committed daily on the trunk branch in the po/ folder.
301-
302-They are then built and installed as part of the package build, so that
303-developers don't really need to worry about them.
304-
305-However, there is one task that needs to be taken care of: exposing new
306-translatable messages to translators. So whenever you add new translatable
307-messages in the code, make sure to follow these steps:
308-
309- 1. Run click-buddy retaining the build directory:
310- `click-buddy --dir . --no-clean`
311- 2. Commit the generated .pot file: `bzr commit -m"Updated translation template"`
312- 3. Push the branch and send a merge proposal as usual
313-
314-And that's it, once the branch lands Launchpad should take care of all the rest!
315-
316-# Behind the scenes
317-
318-Behind the scenes, whenever the po/*.pot file (also known as translations template)
319-is committed to trunk Launchpad reads it and updates the translatable strings
320-exposed in the web UI. This will enable translators to work on the new strings.
321-The translations template contains all translatable strings that have been
322-extracted from the source code files.
323-
324-Launchpad will then store translations in its database and will commit them daily
325-in the form of textual po/*.po files to trunk. The PO files are also usually
326-referred to as the translations files. You'll find a translation file for each
327-language the app has got at least a translated message available for.
328-
329-Translations for core apps follow the standard [gettext format].
330-
331- [Launchpad Translations]: https://translations.launchpad.net/ubuntu-docviewer-app
332- [gettext format]: https://www.gnu.org/software/gettext/
333
334=== modified file 'debian/changelog'
335--- debian/changelog 2015-12-02 15:14:33 +0000
336+++ debian/changelog 2015-12-21 13:07:23 +0000
337@@ -1,3 +1,9 @@
338+ubuntu-docviewer-app (2.0ubuntu1) UNRELEASED; urgency=medium
339+
340+ * Updated and expanded READMEs
341+
342+ -- Girish Rawat <emailgirishrawat@gmail.com> Sun, 20 Dec 2015 01:23:18 +0530
343+
344 ubuntu-docviewer-app (2.0) vivid; urgency=medium
345
346 * Updated application icon (LP: #1476659 and LP: #1432392)

Subscribers

People subscribed via source and target branches