55 Commits (3b72166fba1473ca00223cabf1fdfe7a19c0676e)

Author SHA1 Message Date
Simon Schampijer 37568a0a7e bundlebuilder: refactor get_files_git to Packager to avoid code duplication
Follow up patch for b582736375

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-by: Daniel Drake <dsd@laptop.org>
Acked-by: Sascha Silbe <silbe@activitycentral.com>
13 years ago
Simon Schampijer 29a700b34a bundlebuilder: add back build_locale functionality to XOPackager SL #3116
Due to the removal of the manifest support we lost as well
the part of the code that does build the locale. This patch
adds that functionality back.

Signed-off-by: Simon Schampijer <simon@laptop.org>
13 years ago
Simon Schampijer b582736375 XO_Packager: package files that are in git and the locale folder, OLPC #11217
There had been reports about Activities that had unexpected files in
the xo bundle (e.g. patches). There have been a recent change that the support
for the MANIFEST has been removed from the bundle builder. The MANIFEST
'controlled' which files were bundled. The code did include all the
files present in the folder (which includes patches etc).

The patch does use git-ls to get a list of files to include (like the
tarball packager). Furthermore the locale folder is included which has been
generated. Due to the API freeze we made '_get_files_in_git' a private method
which adds a bit of duplication to the 'get_files' method in the tarball
packager. A patch for master which will implement Builder.get_files_git(),
that can be used by XOPackager and SourcePackager.

Signed-off-by: Simon Schampijer <simon@laptop.org>
Reviewed-By: Daniel Drake <dsd@laptop.org>
13 years ago
Bernie Innocenti e7430faac9 Remove incomplete MANIFEST support
This incomplete feature contributes to confuse new activity authors and
slightly complicates our bundle installation logic.

The day someone finds something useful to do with the MANIFEST
specification, we can revert this patch in no time.

Signed-off-by: Bernie Innocenti <bernie@codewiz.org>
Tested-by: Bernie Innocenti <bernie@codewiz.org>
Tested-by: James Cameron <quozl@laptop.org>
Tested-by: Sascha Silbe <silbe@activitycentral.com>
Reviewed-by: Sascha Silbe <silbe@activitycentral.com>
[rebased on git master, minor style fix]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
13 years ago
Simon Schampijer b30bc0151c bundlebuilder: genpot: don't use absolute paths in filenames (SL#2508)
[tweaked description; minor style fix]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Tested-By: Sascha Silbe <silbe@activitycentral.com>
Reviewed-By: Sascha Silbe <silbe@activitycentral.com>
14 years ago
Simon Schampijer aadfeed305 bundlebuilder: install mimetypes.xml and associated icon #2262
As we do create the ActivityBundle in the config of the bundlebuilder
we can use the code from the activitybundle as well to install
the mime type.

Reviewed-By: Sascha Silbe <sascha-pgp@silbe.org>
14 years ago
Sascha Silbe 1adc165a8c bundlebuilder: ignore incorrect pylint warning
pylint isn't smart enough to figure out the return type of Popen.communicate(),
so squelch the warning.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 7acfbd070f style cleanup: prefer ' for strings
Tomeu prefers ' for strings, so let's use it wherever we don't have a good
reason to use ".

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 5f13fcfc84 style cleanup: use """ everywhere
Most of the code uses """, so adjust the few deviations.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 73de340d27 PEP8 cleanup: fix spaces around keyword parameters
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Sascha Silbe 60707443ea PEP8 cleanup: fix whitespace around operator
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
14 years ago
Simon Schampijer c7a80a1e56 Add new numbering scheme #2425
- add class NormalizedVersion to parse and compare the new activity versions
- change the bundlebuilder and activitybundle to use the new scheme, instead
of an int version we expect a string that matches the format defined in
NormalizedVersion
14 years ago
Simon Schampijer 3aa0995096 Bundelbuilder should not use localized activity name #1968 (Walter Bender)
The localized activity name is only used for
user-facing strings. The .xo and .tar files are
left in the original name.
14 years ago
Sascha Silbe c9e63eb8ea PEP8 white space and long line fixes 15 years ago
Sascha Silbe ecdaf6b795 trim EOL (end-of-line) spaces on source files 15 years ago
Simon Schampijer 1d15b7f874 Merge branch 'master' of gitorious@git.sugarlabs.org:sugar-toolkit/mainline 15 years ago
Simon Schampijer a7daf73fae Bundlebuilder list_files: Better error handling #635
Don't fail on trailing slash of the directory name
15 years ago
Sayamindu Dasgupta 366b07e73a Use git ls-files instead of git-ls-files, to work with newer Git. d.sl.o #647 15 years ago
Simon Schampijer 720401606d Bundlebuilder: Don't include whole directory in src tarball
regression introduced by #397
15 years ago
Tomeu Vizoso c4dce659a4 Use Popen.communicate() to avoid hang (Sascha Silbe) #397 16 years ago
Simon Schampijer 6f210f0e33 Process .py files in subdirectories './setup genplot' #391 (alsroot) 16 years ago
Marco Pesenti Gritti b58182a970 Mark modules as STABLE/UNSTABLE/DEPRECATED. 16 years ago
Marco Pesenti Gritti 9c74f4eec7 Drop broken release command. A more generic release tools
is being developed in sugar-tools now.
16 years ago
Simon Schampijer 1af96495d2 bundlebuilder: remove an existing locale dir before building 16 years ago
Simon Schampijer 199a91ff87 don't build the locale for the pseudo.po 16 years ago
Simon Schampijer e721f74f63 Ignore pseudo.po for the manifest 16 years ago
Simon Schampijer 1d29440bfd bundlebuilder: fix the release command 16 years ago
Simon Schampijer 9041e4db0e Fix pylint for bundlebuilder 16 years ago
Simon Schampijer e7a10be1d4 Do a more "standard" system installation for bundlebuilder
- setup.py install takes a --prefix option and no arguments.
- mo files are installed in /usr/share/locale.
- po files are not installed
- 8136 (marco)
16 years ago
Simon Schampijer f29b67b032 Add update functionality to Config in bundlebuilder #7270 (marco)
This is needed by the release command to update the
bundle number
16 years ago
Marco Pesenti Gritti f55e531f42 Warn about files missing from the MANIFEST. 16 years ago
Simon Schampijer e1bd64439c Add git tagging to the 'setup.py release' command
added as well better error handling
16 years ago
chema 756b9309e8 7205: bundlebuilder accepts old "dist" cmd, checks for po dir 16 years ago
Eben Eliason 3e86ce8b89 Fix undefined bundle_top_dir reference 16 years ago
Marco Pesenti Gritti 3f4a809b80 Generate the MANIFEST automatically if it doesn't exit. I'm
not sure if we want to keep doing that, but it's necessary at
the moment to keep stuff working.
16 years ago
Marco Pesenti Gritti cfdc17d6c9 Patch by Jameson Chema Quinn.
Readability cleanups and little fixes by me.

use MANIFEST. Deprecate bundle_name. fix_manifest().
bundlebuilder.config() cleanup.
16 years ago
Marco Pesenti Gritti 285509c8c9 Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar-toolkit 16 years ago
Marco Pesenti Gritti 7302690aa1 Actually compress the source tarball. 16 years ago
Simon Schampijer cc7ce17eb7 Fix the setup.py dev 16 years ago
Marco Pesenti Gritti 73dc65b259 Style nitpicks. 16 years ago
Marco Pesenti Gritti c4bb55c84d Several bugfixes and cleanups 16 years ago
Marco Pesenti Gritti bedb64a982 Change the logic for file inclusion. We include everything
by default except generated dirs (and well known files like
.gitignore). I'm planning to add support for generated dirs
using make, which will hopefully take care of the rest.
16 years ago
Marco Pesenti Gritti 3b1e1aa4ed Some fixes. Do not use get_files_list to generate the .pot, just enumerate python files. 16 years ago
Marco Pesenti Gritti 96c0b34514 Abstract Packager class which takes care of listing the files. 16 years ago
Marco Pesenti Gritti 95b7098120 Split the packaging code out to XOPackager 16 years ago
Marco Pesenti Gritti d06bf05287 Split the build out from the command to a Builder object. 16 years ago
Marco Pesenti Gritti ea18782bea Separate helpers from the commands. 16 years ago
Marco Pesenti Gritti 211c5ae1c4 Move genl10n inside the build step. 16 years ago
Marco Pesenti Gritti 3313d78429 Simplify install a bit, remove uninstall. 16 years ago
Marco Pesenti Gritti 9eaa51edbb Drop the useless clean command. 16 years ago