{ "info": { "author": "Birdhouse", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Framework :: Buildout", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "********************************\nbirdhousebuilder.recipe.postgres\n********************************\n\n.. contents::\n\nIntroduction\n************\n\n``birdhousebuilder.recipe.postgres`` is a `Buildout`_ recipe to install and configure `Postgres`_ database with `Anaconda`_. \n**Postgres** will be deployed as a `Supervisor`_ service. \n\nThe recipe is based on https://github.com/makinacorpus/makina.recipe.postgres.\n\nThis recipe is used by the `Birdhouse`_ project. \n\n.. _`Buildout`: http://buildout.org/\n.. _`Anaconda`: http://continuum.io/\n.. _`Supervisor`: http://supervisord.org/\n.. _`Postgres`: http://www.postgresql.org/\n.. _`Birdhouse`: http://bird-house.github.io/\n\n\nUsage\n*****\n\nThe recipe requires that Anaconda is already installed. It assumes that the default Anaconda location is in your home directory ``~/anaconda``. Otherwise you need to set the ``ANACONDA_HOME`` environment variable or the Buildout option ``anaconda-home``.\n\nIt installs the ``postgresql`` package from a conda channel in a conda environment named ``birdhouse``. The location of the birdhouse environment is ``.conda/envs/birdhouse``. It deploys a `Supervisor`_ configuration for **Postgres** in ``~/.conda/envs/birdhouse/etc/supervisor/conf.d/postgres.conf``. Supervisor can be started with ``~/.conda/envs/birdhouse/etc/init.d/supervisor start``.\n\nThe Postgres database files are by default in ``~/.conda/envs/birdhouse/var/lib/postgres``.\n\nThe recipe depends on ``birdhousebuilder.recipe.conda`` and ``birdhousebuilder.recipe.supervisor``.\n\nSupported options\n=================\n\nThe recipe supports the following options:\n\n**anaconda-home**\n Buildout option with the root folder of the Anaconda installation. Default: ``$HOME/anaconda``.\n The default location can also be set with the environment variable ``ANACONDA_HOME``. Example::\n\n export ANACONDA_HOME=/opt/anaconda\n\n Search priority is:\n\n 1. ``anaconda-home`` in ``buildout.cfg``\n 2. ``$ANACONDA_HOME``\n 3. ``$HOME/anaconda``\n\n**port**\n Port used for Postgres. Default: 5433.\n\n**pgdata**\n path to the database files. Default: ``~/.conda/envs/birdhouse/var/lib/postgres``\n\n**initdb**\n Options for Postgres initialisation. Default: ``--auth=trust``\n\n**cmds**\n **psql** commands to setup your database schema and users.\n \n\nExample usage\n=============\n\nThe following example ``buildout.cfg`` installs **Postgres** with Anaconda::\n\n [buildout]\n parts = postgres\n\n anaconda-home = /home/myself/anaconda\n\n [postgres]\n recipe = birdhousebuilder.recipe.postgres\n port = 5433\n cmds =\n createuser -p 5433 --createdb --no-createrole --no-superuser --login demo\n createdb -p 5433 --owner=demo demo\n\nAfter installing with Buildout start the **Postgres** service with::\n\n $ cd /home/myself/.conda/envs/birdhouse\n $ etc/init.d/supervisord start # start|stop|restart\n $ bin/supervisorctl status # check that postgres is running\n\n\n\n\n\n\nAuthors\n*******\n\nCarsten Ehbrecht ehbrecht at dkrz.de\n\nChange History\n**************\n\n0.2.0 (2015-03-31)\n==================\n\n* using postgresql from anaconda\n* refactored postgres setup\n* using subprocess instead of os.system\n\n0.1.0 (2015-03-30)\n==================\n\nInitial Release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bird-house/birdhousebuilder.recipe.postgres", "keywords": "buildout recipe postgres birdhouse anaconda", "license": "GPL v2", "maintainer": null, "maintainer_email": null, "name": "birdhousebuilder.recipe.postgres", "package_url": "https://pypi.org/project/birdhousebuilder.recipe.postgres/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/birdhousebuilder.recipe.postgres/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bird-house/birdhousebuilder.recipe.postgres" }, "release_url": "https://pypi.org/project/birdhousebuilder.recipe.postgres/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "A Buildout recipe to install and configure Postgres database with Anaconda.", "version": "0.2.0" }, "last_serial": 1485135, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c0595fc04acc238967bab59c7bb587e4", "sha256": "adcf945f250fa6f66d0cbcbc4d89dbbfc3aac30f48996a9ad12ab572acfb0d90" }, "downloads": -1, "filename": "birdhousebuilder.recipe.postgres-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c0595fc04acc238967bab59c7bb587e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4738, "upload_time": "2015-03-30T16:25:27", "url": "https://files.pythonhosted.org/packages/00/69/33baf46071c43f75f6c7f85cce88873d309b327183eb13ebe3ac8652549d/birdhousebuilder.recipe.postgres-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "c359171c59ae02d337d50bd19a6cb12e", "sha256": "9d9b45558eb784ab1a71d49e243bfb50bf10b0f144c89e6c0b48a4476f8d3db7" }, "downloads": -1, "filename": "birdhousebuilder.recipe.postgres-0.2.0.tar.gz", "has_sig": false, "md5_digest": "c359171c59ae02d337d50bd19a6cb12e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12768, "upload_time": "2015-03-31T16:06:13", "url": "https://files.pythonhosted.org/packages/ad/d7/17feff055124aff02bab25245bc4ac28eb619919a49ad4aeaf93f8e1a2a2/birdhousebuilder.recipe.postgres-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c359171c59ae02d337d50bd19a6cb12e", "sha256": "9d9b45558eb784ab1a71d49e243bfb50bf10b0f144c89e6c0b48a4476f8d3db7" }, "downloads": -1, "filename": "birdhousebuilder.recipe.postgres-0.2.0.tar.gz", "has_sig": false, "md5_digest": "c359171c59ae02d337d50bd19a6cb12e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12768, "upload_time": "2015-03-31T16:06:13", "url": "https://files.pythonhosted.org/packages/ad/d7/17feff055124aff02bab25245bc4ac28eb619919a49ad4aeaf93f8e1a2a2/birdhousebuilder.recipe.postgres-0.2.0.tar.gz" } ] }