{ "info": { "author": "CERN", "author_email": "info@invenio-software.org", "bugtrack_url": null, "classifiers": [], "description": "Invenio Fabric\n==============\nFabric library tasks for working with Invenio\n\nRequirements:\n\n * Fabric 1.4+: http://docs.fabfile.org\n * Virtualenv: http://pypi.python.org/pypi/virtualenv\n * Virtualenvwrapper: http://pypi.python.org/pypi/virtualenvwrapper\n\nOptional:\n\n * Pythonbrew: https://github.com/utahta/pythonbrew\n\n*Important:* Invenio Fabric requires you to already have system dependencies installed (e.g. OpenOffice etc). Please see http://invenio-software.org/wiki/Installation or e.g. https://github.com/lnielsen-cern/invenio-vagrant/blob/master/provision-ubuntu.sh for how to install system dependencies on your system.\n\n*Python 2.4:* If you are planning to use Pythonbrew with Python 2.4, you must install virtualenv 1.7.2 (or lower), as virtualenv 1.8 dropped support for Python 2.4.\n\nRequirements\n============\n\n * Install Virtualenv\n\nRun ``pip install virtualenv`` or install via your favourite package manager (e.g. ``sudo aptitude install python-virtualenv``).\n\n * Install Virtualenvwrapper\n\n```\npip install virtualenvwrapper\nexport WORKON_HOME=~/envs\nmkdir -p $WORKON_HOME\nsource /usr/local/bin/virtualenvwrapper.sh\n```\n\nAdd line 2 and 4 to your shell startup file. Also note that depending on your system ``virtualenvwrapper.sh`` might be installed at a different location than /usr/local/bin. For more elaborate documentation, see http://virtualenvwrapper.readthedocs.org/en/latest/install.html\n\n * Install Pythonbrew (optional)\n\nPythonbrew is optional, but it allows your to install several different python versions without messing up your system Python. To install Pythonbrew run:\n\n```\ncurl -kL http://xrl.us/pythonbrewinstall | bash\n```\n\nand add following to your shell startup file.\n\n```\n[[ -s $HOME/.pythonbrew/etc/bashrc ]] && source $HOME/.pythonbrew/etc/bashrc\n```\n\nFor more elaborate installation instructions please see https://github.com/utahta/pythonbrew. You should now be able to run e.g. ``pythonbrew list`` or to install Python 2.4.6 run ``pythonbrew install 2.4.6``.\n\nInstallation\n============\n\nCreate a new virtualenv (optional):\n\n```\nmkvirtualenv fabenv\nworkon fabenv\n```\n\nThen install invenio-fabric via PyPI:\n\n```\npip install invenio-fabric\nexport CFG_SRCDIR=~/private/src\n```\n\nAdd the last line to your shell startup file.\n\n*Important:* ``CFG_SRCDIR`` should not point to your Invenio source directory, but to one level above. Also, your Invenio source code directory should be named ``invenio``. See directory layout below.\n\n```\n$ export CFG_SRCDIR=~/src\n$ cd CFG_SRCDIR\n$ ls -1\ninvenio\n$ cd CFG_SRCDIR/invenio/\n$ ls -1\nABOUT-NLS\naclocal.m4\nAUTHORS\nautom4te.cache\nChangeLog\nconfig\nconfig.guess\n...\n```\n\nNote, you do not need to specify ``CFG_SRCDIR``, in which case the Fabric task will checkout a fresh copy from the GIT repository.\n\nUsage example\n=============\n\nTo install Invenio master branch\n```\nworkon fabenv\ncdvirtualenv\ncd share/atlantis/\nfab loc bootstrap\nfab loc invenio_create_demosite\nworkon atlantis\ncdvirtualenv\nserve\n```\n\nor alternatively to bootstrap Invenio next:\n\n```\nfab loc:py=27,ref=next bootstrap\nfab loc:py=27,ref=next devserver_install_flask\nworkon atlantis27next\nrundevserver.py\n```\n\nfabfile.py\n==========\nInvenio Fabric is only a library of Fabric tasks, so for most projects you need to create your\nown ``fabfile.py``. For a complete example for Atlantis Institute of Fictive Science\nplease see ``examples/atlantis/``.\n\nFollowing is an example of basic ``fabfile.py`` for Atlantis.\n\n```\nfrom fabric.api import task\nfrom inveniofab.api import *\nimport os\n\n@task\ndef loc(activate=True, py=None, ref=None, **kwargs):\n \"\"\" Local environment (example: loc:py=24,ref=maint-1.1) \"\"\"\n if 'name' not in kwargs:\n kwargs['name'] = env_make_name('atlantis', py or '', ref or '')\n env = env_create('loc', activate=activate, python=py, **kwargs)\n return env_override(env, 'invenio', ref)\n```\n\nWith that you have the following commands available:\n```\n apache_restart Restart Apache\n apache_start Restart Apache\n apache_stop Restart Apache\n bootstrap Bootstrap Invenio installation\n devserver_conf Upload and update Invenio configuration\n devserver_install_flask Install a Flask devserver\n drop Remove installation\n dump Archive installation\n install Install changes\n invenio_conf Upload and update Invenio configuration\n invenio_create_demosite Create Invenio demo site\n invenio_createdb Create Invenio tables\n invenio_upgrade Upgrade Invenio\n load Load archived installation\n loc Local environment (example: loc:py=24,ref=maint-1.1)\n mysql_copy Copy database from latest available dump.\n mysql_createdb Create database and user\n mysql_dropdb Drop database and user\n mysql_dump Dump database to file\n mysql_load Load MySQL dump file\n repo_configure Configure repository\n repo_install Run configure and make\n repo_make Run make in repository\n repo_prepare Prepare source code after fresh checkout\n repo_setup Clone repository\n repo_update Pull repository updates\n test_clean Clean Invenio logs and temporary files\n test_dump Dump a test environment\n test_load Load test environment\n test_reset_admin Reset admin password\n venv_create Create virtualenv environment\n venv_drop Drop virtualenv environment\n venv_dump Archive a virtualenv\n venv_load Load an archived virtualenv\n venv_pyuno_install Install Python OpenOffice binding\n venv_requirements Install Python requirements\n```\n\nCommand Reference\n=================\nMany commands takes some parameters. For now, please look in the source code, until I get time to document them.\n", "description_content_type": null, "docs_url": "https://pythonhosted.org/invenio-fabric/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lnielsen-cern/invenio-fabric", "keywords": "invenio fabric CERN", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "invenio-fabric", "package_url": "https://pypi.org/project/invenio-fabric/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/invenio-fabric/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/lnielsen-cern/invenio-fabric" }, "release_url": "https://pypi.org/project/invenio-fabric/0.2.8/", "requires_dist": null, "requires_python": null, "summary": "Fabric tasks for working with Invenio repository software", "version": "0.2.8" }, "last_serial": 793401, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "74dd783ec854dedeadfec85c72f4ea07", "sha256": "b252491c94c10fde7cefecb755e383fca473aa00220e7332927c1121bc6de22c" }, "downloads": -1, "filename": "invenio-fabric-0.2.tar.gz", "has_sig": false, "md5_digest": "74dd783ec854dedeadfec85c72f4ea07", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16360, "upload_time": "2012-10-31T14:54:13", "url": "https://files.pythonhosted.org/packages/92/1e/a3449b7877a309c244ea3d0b4c2483b3e16985d41f247f206a5ab987466e/invenio-fabric-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "b9e2ee87563676acc2a4c5b4571cbfe2", "sha256": "54d8f97fe3c6803a8409c185548fb0a5e882f643a0d532f6e445a4193cda3696" }, "downloads": -1, "filename": "invenio-fabric-0.2.1.tar.gz", "has_sig": false, "md5_digest": "b9e2ee87563676acc2a4c5b4571cbfe2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16395, "upload_time": "2012-10-31T15:26:39", "url": "https://files.pythonhosted.org/packages/35/8b/d8e64e3c0090df1e0739125c523a4648be9d404e4605692f1cddd33c8fcb/invenio-fabric-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "79a9bdee48cfe72d38abed139851ae25", "sha256": "983991517a8d46faa7c4de3aab0545b50cde316e1e6b9ce13e498e71a10f8368" }, "downloads": -1, "filename": "invenio-fabric-0.2.2.tar.gz", "has_sig": false, "md5_digest": "79a9bdee48cfe72d38abed139851ae25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16220, "upload_time": "2012-11-05T15:40:29", "url": "https://files.pythonhosted.org/packages/a2/10/be8f58c642f8757c27e8b89d200cd5e9d68b1f8878e37adda43541526e04/invenio-fabric-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "f6ba32dd83dd823ec974184411e6ea9a", "sha256": "5aba1447508f33861cf8834b4fe10eedb4c29915aab6aa060e8ac7981e504ce6" }, "downloads": -1, "filename": "invenio-fabric-0.2.3.tar.gz", "has_sig": false, "md5_digest": "f6ba32dd83dd823ec974184411e6ea9a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16521, "upload_time": "2012-11-07T12:55:07", "url": "https://files.pythonhosted.org/packages/a7/32/ce3c05cca7cabde75e70763833cc168db62ff195c5d85be79eb6897f9cc8/invenio-fabric-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "43f91e5f7432fbdf7da78efff4e5f167", "sha256": "19525307b31048b769e4b226e343eab0d43417234eba1c66530dff8c9c89ddb6" }, "downloads": -1, "filename": "invenio-fabric-0.2.4.tar.gz", "has_sig": false, "md5_digest": "43f91e5f7432fbdf7da78efff4e5f167", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16141, "upload_time": "2012-11-12T08:57:29", "url": "https://files.pythonhosted.org/packages/c6/1c/1270515481dc0f71fe4dbfe193138e2347bb3c2403ed7d2b5d7798521fa8/invenio-fabric-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "cd06c2891b1d48212ccab1725b4a8a69", "sha256": "ec1a6f52fe56d8ced1938a6facb7d44c95c02f17760be46ef519201925cad039" }, "downloads": -1, "filename": "invenio-fabric-0.2.5.tar.gz", "has_sig": false, "md5_digest": "cd06c2891b1d48212ccab1725b4a8a69", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33583, "upload_time": "2012-11-23T15:30:47", "url": "https://files.pythonhosted.org/packages/14/af/7f56318fe96c282cd4d26821d3bb4bc7dc5d30cda7295724e2b8e58272e2/invenio-fabric-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "93c5613ffd8c1682b6718d10a319541c", "sha256": "c5ca606d4b0e75a4ec5be3ae1d83d06f44a5bea1439c4016d184e4485deab7de" }, "downloads": -1, "filename": "invenio-fabric-0.2.6.tar.gz", "has_sig": false, "md5_digest": "93c5613ffd8c1682b6718d10a319541c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30711, "upload_time": "2012-11-26T13:35:21", "url": "https://files.pythonhosted.org/packages/45/a1/2b2a0e130d74103bb7c9d876c63eedeb4be88d60b70e4215ff0366a0b7f1/invenio-fabric-0.2.6.tar.gz" } ], "0.2.7": [ { "comment_text": "", "digests": { "md5": "8d878e3e39a6fabcee3a2c8e6a03c78e", "sha256": "22353d404e558144116c1118b69a95a86a4974a6893c10cbf8fd573c286161e9" }, "downloads": -1, "filename": "invenio-fabric-0.2.7.tar.gz", "has_sig": false, "md5_digest": "8d878e3e39a6fabcee3a2c8e6a03c78e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32747, "upload_time": "2013-02-18T08:56:40", "url": "https://files.pythonhosted.org/packages/a2/9a/ed8ff165acd85f984143f73f14adf48a031db471c3ca50041ab276789d6d/invenio-fabric-0.2.7.tar.gz" } ], "0.2.8": [ { "comment_text": "", "digests": { "md5": "aeb166a854c4520900de8a7991946eed", "sha256": "2347ef5cb59016f5c2c9fea69cc7a80ab66c53713d6f416c12d04c2de9d6ed31" }, "downloads": -1, "filename": "invenio-fabric-0.2.8.tar.gz", "has_sig": false, "md5_digest": "aeb166a854c4520900de8a7991946eed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33972, "upload_time": "2013-02-18T09:38:42", "url": "https://files.pythonhosted.org/packages/7a/e5/e158dfe8133a8533e0ae0cc4eec9618cdabda9ba7eab7615b6cc1760ca62/invenio-fabric-0.2.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "aeb166a854c4520900de8a7991946eed", "sha256": "2347ef5cb59016f5c2c9fea69cc7a80ab66c53713d6f416c12d04c2de9d6ed31" }, "downloads": -1, "filename": "invenio-fabric-0.2.8.tar.gz", "has_sig": false, "md5_digest": "aeb166a854c4520900de8a7991946eed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33972, "upload_time": "2013-02-18T09:38:42", "url": "https://files.pythonhosted.org/packages/7a/e5/e158dfe8133a8533e0ae0cc4eec9618cdabda9ba7eab7615b6cc1760ca62/invenio-fabric-0.2.8.tar.gz" } ] }