Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #88643

Automate deployment of Python application from multiple VCS repositories

From Ben Finney <ben+python@benfinney.id.au>
Subject Automate deployment of Python application from multiple VCS repositories
Date 2015-04-08 11:24 +1000
Newsgroups comp.lang.python
Message-ID <mailman.129.1428456298.12925.python-list@python.org> (permalink)

Show all headers | View raw


Howdy all,

What tools are available to automate deployment of a Python application
comprising many discrete modules, spread across different code bases in
different VCS repositories?

My idea is to have a single definition (itself under VCS control) that
specifies VCS locations and branches, a hierarchy into which all the
modules fit, and a deployment host.

    host foo:
        repo ‘spam-common <URL>’, branch ‘trunk’, at ‘./common/’
        repo ‘beans <URL>’, branch ‘version 6.1’, at ‘./’
        repo ‘sausage <URL>’, branch ‘trunk’, at ‘./third-party/sausage/’

    host bar:
        repo ‘spam-common <URL>’, branch ‘maint’, at ‘./common/’
        repo ‘beans <URL>’, branch ‘version 7.0’, at ‘./’
        repo ‘eggs <URL>’, branch ‘master’, at ‘./third-party/eggs/’
        repo ‘toast <URL>’, branch ‘trunk’, at ‘./third-party/eggs/toast/’
        repo ‘sausage <URL>’, branch ‘version 1.4’, at ‘./third-party/sausage/’

The deployment tool, when told which host specification to use, then
gathers the code by exporting it from its disparate branches, fits it
into the directory hierarchy, and deploys that to the specified host.

The goal is to be able to have multiple host specifications, each of
which needs a different set of code repositories (and often different
branches within those repositories) to be built into the deployed
application.

What frameworks are there to do this for Python code?

-- 
 \       “Know what I hate most? Rhetorical questions.” —Henry N. Camp |
  `\                                                                   |
_o__)                                                                  |
Ben Finney

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Automate deployment of Python application from multiple VCS repositories Ben Finney <ben+python@benfinney.id.au> - 2015-04-08 11:24 +1000
  Re: Automate deployment of Python application from multiple VCS repositories Paul Rubin <no.email@nospam.invalid> - 2015-04-07 18:52 -0700
  Re: Automate deployment of Python application from multiple VCS repositories Damien Wyart <damien.wyart@free.fr> - 2015-04-08 12:10 +0200
    Re: Automate deployment of Python application from multiple VCS repositories Damien Wyart <damien.wyart@free.fr> - 2015-04-08 12:20 +0200
  Automate deployment of Python application from multiple VCS repositories Matt <matthew@baltrusitis.com> - 2015-04-08 05:00 -0700

csiph-web