Compose is a part of the Docker project, and follows the same rules and principles. Take a read of Docker's contributing guidelines to get an overview.
Pull requests will need:
If you're looking contribute to Compose but you're new to the project or maybe even to Python, here are the steps that should get you started.
git clone [email protected]:yourusername/compose.git.cd compose.python setup.py develop. This
will install the dependencies and set up a symlink from your docker-compose
executable to the checkout of the repository. When you now run
docker-compose from anywhere on your machine, it will run your development
version of Compose.Use the test script to run linting checks and then the full test suite against different Python interpreters:
$ script/test
Tests are run against a Docker daemon inside a container, so that we can test
against multiple Docker versions. By default they'll run against only the latest
Docker version - set the DOCKER_VERSIONS environment variable to "all" to run
against all supported versions:
$ DOCKER_VERSIONS=all script/test
Arguments to script/test are passed through to the nosetests executable, so
you can specify a test directory, file, module, class or method:
$ script/test tests/unit
$ script/test tests/unit/cli_test.py
$ script/test tests.integration.service_test
$ script/test tests.integration.service_test:ServiceTest.test_containers
script/build-linux will build the Linux binary inside a Docker container:
$ script/build-linux
script/build-osx will build the Mac OS X binary inside a virtualenv:
$ script/build-osx
For official releases, you should build inside a Mountain Lion VM for proper compatibility. Run the this script first to prepare the environment before building - it will use Homebrew to make sure Python is installed and up-to-date.
$ script/prepare-osx
compose/__init__.pydocs/install.mddocs/completion.mdCHANGES.mdscript/build-linux and attach
to releasescript/build-osx and attach to
release as docker-compose-Darwin-x86_64 and docker-compose-Linux-x86_64.script/deploy-docsUpload PyPi package
$ git checkout $VERSION
$ python setup.py sdist upload