Skip to main content

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 with support for a more natural layout and functionalities 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 appcfg, dev_appserver and python executables.

appfy.recipe.gae:app_lib:

Downloads packages 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 packages 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:

the destination directory for the libaries. 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.

use-zipimport:

If true, a zip file with the libraries is created instead of a directory. The zip file will use the value of lib-directory for the filename, 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 appcfg, dev_appserver and python executables in the buildout directory. 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.

dev_appserver-script:

path to the dev_appserver script. Default is ${buildout:bin-directory}/dev_appserver.

appcfg-script:

path to the appcfg script. Default is ${buildout:bin-directory}/appcfg.

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 buildout.cfg. 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.1 - April 28, 2010

Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

appfy.recipe.gae-0.1.zip (19.4 kB view details)

Uploaded Source

appfy.recipe.gae-0.1.tar.gz (9.0 kB view details)

Uploaded Source

File details

Details for the file appfy.recipe.gae-0.1.zip.

File metadata

  • Download URL: appfy.recipe.gae-0.1.zip
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for appfy.recipe.gae-0.1.zip
Algorithm Hash digest
SHA256 699afe6374a65c457b29c5ee7aaa833498dc63fc919d3e429b22575abe3d663e
MD5 82e4eebf3f2ab2f09971e0427fe5d96a
BLAKE2b-256 ea89a364005ed9bb1bcf0a41f970025330daafc1cb5abe39178c344882e34232

See more details on using hashes here.

File details

Details for the file appfy.recipe.gae-0.1.tar.gz.

File metadata

File hashes

Hashes for appfy.recipe.gae-0.1.tar.gz
Algorithm Hash digest
SHA256 d2de418156dd256e18a5fa0489d7d5f79749287ff5ecdf6f9c0852ffe6c2d1e4
MD5 7b4015fc812c25ffcf19758aa15fbc82
BLAKE2b-256 9b082174f5163e49bf31ee8f259f8a896a456a5de47eaf2e25865e46b7ee8b0d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page