Buildout recipes for App Engine development.
Project description
appfy.recipe.gae
appfy.recipe.gae provides a series of zc.buildout recipes to help App Engine development. It is inspired by rod.recipe.appengine, but using a different layout and with extended functionalities. It is also split in different recipes. Currently appfy.recipe.gae has 3 recipes:
- appfy.recipe.gae:sdk:
Downloads and installs the App Engine SDK.
- appfy.recipe.gae:tools:
Installs a python executable and several SDK scripts in the buildout directory: appcfg, bulkload_client, bulkloader, dev_appserver and remote_api_shell. It also allows to set default values to start the dev_appserver.
- appfy.recipe.gae:app_lib:
Downloads libraries from PyPi and installs in the app directory.
Source code and issue tracker can be found at http://code.google.com/p/appfy/.
appfy.recipe.gae:app_lib
Downloads libraries from PyPi and installs in the app directory. This recipe extends zc.recipe.egg so all the options from that recipe are also valid.
Options
- eggs:
Package names to be installed.
- lib-directory:
Destination directory for the libraries. Default is distlib.
- primary-lib-directory:
The main directory used for libraries. This is only used to create a README.txt inside lib-directory with a warning. Default is lib.
- use-zipimport:
If true, a zip file with the libraries is created instead of a directory. The zip filename will be the value of lib-directory plus .zip.
- ignore-globs:
A list of glob patterns to not be copied from the library.
- delete-safe:
Checks the checksum of the destination directory before deleting. It will require manual deletion if the checksum from the last build differs. Default to true.
Example
[app_lib] # Sets the library dependencies for the app. recipe = appfy.recipe.gae:app_lib lib-directory = app/distlib use-zipimport = false # Define the libraries. eggs = babel jinja2 wtforms werkzeug gaepytz gaema tipfy # Don't copy files that match these glob patterns. ignore-globs = *.c *.pyc *.pyo */test */tests */testsuite */django */sqlalchemy
appfy.recipe.gae:sdk
Downloads and installs the App Engine SDK in the buildout directory. This recipe extends hexagonit.recipe.download so all the download options from that recipe are also valid.
Options
- destination:
Destination of the extracted SDK download. Default is ${buildout:parts-directory}/google_appengine.
- clear-destination:
If true, deletes the destination dir before extracting the download. Default is false.
Example
[gae_sdk] # Dowloads and extracts the App Engine SDK. recipe = appfy.recipe.gae:sdk url = http://googleappengine.googlecode.com/files/google_appengine_1.3.3.zip destination = ${buildout:parts-directory}/google_appengine strip-top-level-dir = true hash-name = false clear-destination = true
appfy.recipe.gae:tools
Installs a python executable and several SDK scripts in the buildout directory: appcfg, bulkload_client, bulkloader, dev_appserver and remote_api_shell.
It also allows to set default values to start the dev_appserver.
This recipe extends zc.recipe.egg so all the options from that recipe are also valid.
Options
- sdk-directory:
Path to the App Engine SDK directory. It can be an absolute path or a reference to the appfy.recipe.gae:sdk destination option. Default is ${buildout:parts-directory}/google_appengine.
- appcfg-script:
Name of the appcfg script to be installed in the bin directory.. Default is appcfg.
- bulkload_client-script:
Name of the bulkloader script to be installed in the bin directory. Default is bulkload_client.
- bulkloader-script:
Name of the bulkloader script to be installed in the bin directory. Default is bulkloader.
- dev_appserver-script:
Name of the dev_appserver script to be installed in the bin directory. Default is dev_appserver.
- remote_api_shell-script:
Name of the remote_api_shell script to be installed in the bin directory. Default is remote_api_shell.
- config-file:
Configuration file with the default values to use in scripts. Default is script_defaults.cfg.
Example
[gae_tools] # Installs appcfg, dev_appserver and python executables in the bin directory. recipe = appfy.recipe.gae:tools sdk-directory = ${gae_sdk:destination}
Note that this example references an gae_sdk section from the appfy.recipe.gae:sdk example. An absolute path could also be used.
To set default values to start the dev_appserver, create a section dev_appserver in the defined configuration file (script_defaults.cfg by default). For example:
[dev_appserver] # Set default values to start the dev_appserver. All options from the # command line are allowed. They are inserted at the beginning of the # arguments. Values are used as they are; don't use variables here. defaults = --datastore_path=var --history_path=var --blobstore_path=var app
These options can be set in a single line as well. If an option is provided when calling dev_appserver, it will override the default value if it is set.
Versions
Version 0.3 - April 29, 2010
Added config-file option to appfy.recipe.gae:tools, to define the configuration file used to set default arguments for the scripts.
Version 0.2 - April 29, 2010
Added bulkload_client, bulkloader and remote_api_shell scripts.
Fixed script entry-points: they were breaking on Windows; now they work.
All recipes are also tested and working on Windows now.
Version 0.1 - April 28, 2010
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
File details
Details for the file appfy.recipe.gae-0.3.zip
.
File metadata
- Download URL: appfy.recipe.gae-0.3.zip
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
bf6f7596dc31aab388e51c3c428d00865a7b41aeeced35786627510be8ff691c
|
|
MD5 |
bc366ab2bf12c12db41345b84b163c4d
|
|
BLAKE2b-256 |
6404457d9e8e07908b8bc3dfc4a457e8d12409bc1bb09f8694e7154cba431c97
|
File details
Details for the file appfy.recipe.gae-0.3.tar.gz
.
File metadata
- Download URL: appfy.recipe.gae-0.3.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2ee9e7f3cb3089d459d0f78e67903e5cd3ef40d9600267af59a41451f3925459
|
|
MD5 |
8022dbb4bcd9b0dfee2ef0fb3f52f4b9
|
|
BLAKE2b-256 |
2d5120ee9b318f033f959356133818c507cb8757678561a5281f134d1d95357b
|