{ "info": { "author": "Todd Francis DeLuca", "author_email": "todddeluca@yahoo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7" ], "description": "# fabvenv\n\nA fabric utility for creating remote virtual environments, and installing and\nupdating packages.\n\nThe basic use case this covers is logging into a remote host, downloading\nvirtualenv.py, using it to create a virtual environment for a project,\nincluding installing `pip`, and then installing packages, based on a\n\"requirements.txt\" file.\n\n## Installation\n\n```\npip install fabvenv\n```\n\n## Usage\n\nHere is how I define Fabric tasks to create a virtual environment, install\npackages, add a directory to the `sys.path` of the python executable, etc.:\n\n```\n@task\ndef venv_create():\n require('configured')\n venv = fabvenv.Venv(config.venv, config.requirements)\n if not venv.exists():\n venv.create(config.system_python)\n\n\n@task\ndef venv_install():\n require('configured')\n fabvenv.Venv(config.venv, config.requirements).install()\n\n\n@task\ndef venv_upgrade():\n require('configured')\n fabvenv.Venv(config.venv, config.requirements).upgrade()\n\n\n@task\ndef venv_freeze():\n require('configured')\n fabvenv.Venv(config.venv, config.requirements).freeze()\n\n\n@task\ndef venv_remove():\n require('configured')\n venv = fabvenv.Venv(config.venv, config.requirements)\n if venv.exists():\n venv.remove()\n\n\n@task\ndef venv_pth():\n '''\n Add the code directory to the virtualenv sys.path.\n '''\n require('configured')\n fabvenv.Venv(config.venv, config.requirements).venv_pth([config.code])\n```\n\n## Contribute\n\nPull requests and issues are welcomed.\n\n## Testing\n\nThe file `tests/fabfile.py` is a basic test of using fabric and fabvenv to\ncreate a virtual environment, install a package, upgrade a package, and remove\nthe virtual environment.\n\nThis tests uses an installed version of `fabric` and `fabvenv`. To avoid\nhaving the test conflict with any other installation of `fabvenv`, use a\nvirtual environment for testing.\n\nClone fabvenv:\n\n git clone git@github.com:todddeluca/fabvenv.git\n cd fabvenv\n\nInstall fabric and fabvenv into a virtual environment:\n\n virtualenv ~/tmp/venv\n ~/tmp/venv/bin/pip install fabric\n ~/tmp/venv/bin/pip install -e .\n\nThe test also assumes that you can do passwordless (keypair) ssh into localhost\nas `$USER`.\n\nRun the tests as follows:\n\n cd tests/\n ~/tmp/venv/bin/fab test_fabvenv", "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/todddeluca/fabvenv", "keywords": "fabric virtualenv venv utility", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "fabvenv", "package_url": "https://pypi.org/project/fabvenv/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fabvenv/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/todddeluca/fabvenv" }, "release_url": "https://pypi.org/project/fabvenv/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "A fabric utility for creating remote virtual environments, and installing and updating packages.", "version": "0.2.1" }, "last_serial": 1471207, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e6e66b7edc7b48c92bb614b1667e81e2", "sha256": "3e48f9a40f20bd5004680d480174a08ecc667a6634ddc8fda934c9366a4325cb" }, "downloads": -1, "filename": "fabvenv-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e6e66b7edc7b48c92bb614b1667e81e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2535, "upload_time": "2013-08-19T15:34:05", "url": "https://files.pythonhosted.org/packages/eb/9a/d515b2c20094682e40dc616ccad44079d803a88757a6151f056f987ea4e5/fabvenv-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "85c6dba1ba29d03154965668696b9561", "sha256": "685fc9248c74bee4747f22158797a202889ccf6041bbffc8823b66872cbd8dd2" }, "downloads": -1, "filename": "fabvenv-0.1.1.tar.gz", "has_sig": false, "md5_digest": "85c6dba1ba29d03154965668696b9561", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3397, "upload_time": "2013-08-29T18:51:04", "url": "https://files.pythonhosted.org/packages/26/7b/506512293956e6720a54c22b0aadfea53d12e1daca9d52f6c23a2996cc39/fabvenv-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "1b8457699b3bc4f58224c7e728ef4ed3", "sha256": "5babc5fbfce6944f812cc62054ba69304f5c72ed9302d6c137096c54b1e6e440" }, "downloads": -1, "filename": "fabvenv-0.2.0.tar.gz", "has_sig": false, "md5_digest": "1b8457699b3bc4f58224c7e728ef4ed3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3321, "upload_time": "2014-06-25T18:25:06", "url": "https://files.pythonhosted.org/packages/fa/79/d63912feffb63e36a4453dd2fc4cf43eaea1ad2fcfe3c5140e23fab066e1/fabvenv-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "4fd581e8aaf52ca943fdc3a2dd2b759a", "sha256": "d8c73d27872cff3e253f16d87f6ecbbce8d350561d8851178d41401625a077fd" }, "downloads": -1, "filename": "fabvenv-0.2.1.tar.gz", "has_sig": false, "md5_digest": "4fd581e8aaf52ca943fdc3a2dd2b759a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3595, "upload_time": "2015-03-21T13:59:56", "url": "https://files.pythonhosted.org/packages/d7/c6/a35f52745dd7cfbc4e96795da4e0c3c3d7d273586c7fd5a683acecbf5c04/fabvenv-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4fd581e8aaf52ca943fdc3a2dd2b759a", "sha256": "d8c73d27872cff3e253f16d87f6ecbbce8d350561d8851178d41401625a077fd" }, "downloads": -1, "filename": "fabvenv-0.2.1.tar.gz", "has_sig": false, "md5_digest": "4fd581e8aaf52ca943fdc3a2dd2b759a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3595, "upload_time": "2015-03-21T13:59:56", "url": "https://files.pythonhosted.org/packages/d7/c6/a35f52745dd7cfbc4e96795da4e0c3c3d7d273586c7fd5a683acecbf5c04/fabvenv-0.2.1.tar.gz" } ] }