# baste

Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

# Overview

Baste - ( tr ) to sew with loose temporary stitches.

Baste is a set of extensions intended to be used with Fabric in order to provide a development environment for python projects. Although not strictly necessary - it is intended to be used with virtualenv and pip. Together they provide an simple-to-use method for quickly setting up project dependencies.

Often - a particular website depends on a wide variety of python libraries. These include, but are not limited to external open source libraries and a set of internal closed libraries checked out from various repositories.

To use baste you must already have a working python interpreter with virtualenv installed. In addition, if your project depends on python libraries which must be compiled - the necessary non-python dependencies must be installed external to Baste. For example, if you use PIL - you must have the necessary imaging libraries installed before you use baste. If you use psycopg2 - you must also have the necessary postgres development libraries installed. If you will be using code checked out from code repositories the necessary repository command line tools must also be present and available. In ubuntu - these would be some form of the following:

sudo apt-get install python mercurial git subversion python-dev gcc g++ python-virtualenv python2.6-dev postgresql-server-dev-9.1


To see an example of how all of this might be setup, see https://bitbucket.org/lakin.wecker/baste-example/overview In this example we use a start.sh file to setup the virtualenv and install the external project dependencies. The fabfile.py contains the Fabric/Baste setup. Typically the repositories managed by Baste are ones that may be developed in parallel with the main project. In this case, the only dependency like that is a made up on that simply has a pythonpackage with a version number. Finally the .hgignore file setups up some common ignores.

# Recent activity

Commits by Darren Pearce were pushed to limeyd/baste

8c7b1ee - adding support for local or remote usage

Commits by Darren Pearce were pushed to limeyd/baste

3fe7964 - adding support for local or remote usage
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.