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


Groups > comp.lang.python > #88662

Re: Automate deployment of Python application from multiple VCS repositories

References <857ftnza1u.fsf@benfinney.id.au>
From Michael Herman <hermanmu@gmail.com>
Date 2015-04-08 07:18 -0600
Subject Re: Automate deployment of Python application from multiple VCS repositories
Newsgroups comp.lang.python
Message-ID <mailman.137.1428499133.12925.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Ben,

I would start with Fabric. -> http://www.fabfile.org/. It's "low-level",
but super straightforward.

Here's a blog post on how to setup deployment ->
https://realpython.com/blog/python/kickstarting-flask-on-ubuntu-setup-and-deployment/

On Tue, Apr 7, 2015 at 7:24 PM, Ben Finney <ben+python@benfinney.id.au>
wrote:

> 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
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>

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


Thread

Re: Automate deployment of Python application from multiple VCS repositories Michael Herman <hermanmu@gmail.com> - 2015-04-08 07:18 -0600

csiph-web