{ "info": { "author": "Evandro Myller", "author_email": "emyller@7ws.co", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Build Tools" ], "description": "# soda-pylib\n\nThis is a bucket of Pythonic utilities to help developing and maintaining\nprojets at SODA Virtual.\n\n\n## soda.deploy\n\nA collection of Fabric tasks that will aid deploying projects to *Virtual\nPrivate Servers*. They will require an `env.roledefs` to work properly:\n\n```python\nfrom fabric.api import env\n\nenv.roledefs = {\n 'dev': {\n 'app_path': '/path/to/project/repository', # Full path!\n 'hosts': ['my_app.sodateste.com.br'], # Can be more than one\n 'service_name': 'my_app', # Supervisor service name\n 'settings_module': 'my_app.settings_dev', # Django settings module\n 'user': 'soda', # System user to perform operations\n 'venv_path': '/path/to/project/venv', # Virtualenv path\n },\n 'prod': {\n # ...\n },\n}\n```\n\nThe following tasks are available for use:\n\n### `git.display_version`\n\nDisplay the active revision at the remote host.\n\n```python\nfrom fabric.api import execute\nfrom soda.deploy import git\nexecute(git.display_version)\n```\n\n\n### `git.update_sources`\n\nFetch sources from the default remote (acquired by `git remote`) and checkout\nto specified revision.\n\n```python\nfrom fabric.api import execute\nfrom soda.deploy import git\nexecute(git.update_sources, 'master')\n```\n\n\n### `supervisor.stop`\n\nStop the app's Supervisor main service.\n\n```python\nfrom fabric.api import execute\nfrom soda.deploy import supervisor\nexecute(supervisor.stop)\n```\n\n\n### `supervisor.start`\n\nStart the app's Supervisor main service.\n\n```python\nfrom fabric.api import execute\nfrom soda.deploy import supervisor\nexecute(supervisor.start)\n```\n\n\n### `deps.install_python_libs`\n\nInstall Python dependencies as defined in the project's `requirements.txt`.\n\n```python\nfrom fabric.api import execute\nfrom soda.deploy import deps\nexecute(deps.install_python_libs)\n```\n\n\n### `deps.install_bower_libs`\n\nInstall front-end dependencies from Bower, as defined in the project's\n`bower.json`.\n\n```python\nfrom fabric.api import execute\nfrom soda.deploy import deps\nexecute(deps.install_python_libs)\n```\n\n\n### `django.collectstatic`\n\nRun Django's `collectstatic` management command.\n\n```python\nfrom fabric.api import execute\nfrom soda.deploy import django\nexecute(django.collectstatic)\n```\n\n\n### `django.migrate`\n\nRun Django's `migrate` management command.\n\n```python\nfrom fabric.api import execute\nfrom soda.deploy import django\nexecute(django.migrate)\n```\n\n\n### `opbeat.register_deploy`\n\nRegister a deployment to the Opbeat integration.\n\n```python\nfrom fabric.api import execute\nfrom soda.deploy import opbeat\nexecute(opbeat.register_deploy)\n```", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/sodavirtual/soda-pylib", "keywords": "deploy fabric", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "soda-pylib", "package_url": "https://pypi.org/project/soda-pylib/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/soda-pylib/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://gitlab.com/sodavirtual/soda-pylib" }, "release_url": "https://pypi.org/project/soda-pylib/1.3.5/", "requires_dist": null, "requires_python": null, "summary": "Utilities to help projets at SODA Virtual.", "version": "1.3.5" }, "last_serial": 2378301, "releases": { "1.3.0": [ { "comment_text": "", "digests": { "md5": "30c1dfb7f99092cfe6ea7b2329ccc558", "sha256": "380d8c36b0f472dcd2962024c63ac524ca62defd8cd9c3922ea3a24ea210576c" }, "downloads": -1, "filename": "soda-pylib-1.3.0.tar.gz", "has_sig": false, "md5_digest": "30c1dfb7f99092cfe6ea7b2329ccc558", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7635, "upload_time": "2016-07-25T03:42:06", "url": "https://files.pythonhosted.org/packages/25/7b/a0cda2aa9a1108c3f71c3d962bf5166f00b224bfbd24cd1c2b28720b742b/soda-pylib-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "17320279c5e673ef66a286e3a221f477", "sha256": "1e3833adf2305351199343e511cf7b7e4f3e3ceeed71f72bc1ab3d5a5961973a" }, "downloads": -1, "filename": "soda-pylib-1.3.1.tar.gz", "has_sig": false, "md5_digest": "17320279c5e673ef66a286e3a221f477", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7653, "upload_time": "2016-07-25T04:38:17", "url": "https://files.pythonhosted.org/packages/13/fa/b58414f5ad154c007e4a63a90f7bbe0082aff07551ac62ac4b5a263634c8/soda-pylib-1.3.1.tar.gz" } ], "1.3.2": [ { "comment_text": "", "digests": { "md5": "051db19d3f48291187eb44cac55e53e4", "sha256": "31105416fa07cc1efcbe21d21b08dbfb2808640c8b33ea3bcc51c0ab589e0df8" }, "downloads": -1, "filename": "soda-pylib-1.3.2.tar.gz", "has_sig": false, "md5_digest": "051db19d3f48291187eb44cac55e53e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7685, "upload_time": "2016-07-27T14:50:56", "url": "https://files.pythonhosted.org/packages/c3/66/70fde0e5f71a8cd9b79a3b3640cf849be1d5f8bf839c3954d5f25259760c/soda-pylib-1.3.2.tar.gz" } ], "1.3.4": [ { "comment_text": "", "digests": { "md5": "a282925c543a4dfe5a1d30cffc6d0c51", "sha256": "0522f7f9ce425a8c16c37b92b93cd2243fa90e03f1a383adb09bd8246b27615d" }, "downloads": -1, "filename": "soda-pylib-1.3.4.tar.gz", "has_sig": false, "md5_digest": "a282925c543a4dfe5a1d30cffc6d0c51", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7853, "upload_time": "2016-09-21T13:38:50", "url": "https://files.pythonhosted.org/packages/38/68/faa332d2ca431cbc141da11c77a56d38ca5f238faf9169b14f433ae343a8/soda-pylib-1.3.4.tar.gz" } ], "1.3.5": [ { "comment_text": "", "digests": { "md5": "32c952633295ea2736db047093cd87b3", "sha256": "f374e67c6899c9582372e1bcf46aa663982b20840f4e22e5fde201f91de401a0" }, "downloads": -1, "filename": "soda-pylib-1.3.5.tar.gz", "has_sig": false, "md5_digest": "32c952633295ea2736db047093cd87b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7858, "upload_time": "2016-10-03T19:40:48", "url": "https://files.pythonhosted.org/packages/78/39/cf8244a46f7f1c76914c71118826f272c8a910cd844ffcda8baf4172d1e0/soda-pylib-1.3.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "32c952633295ea2736db047093cd87b3", "sha256": "f374e67c6899c9582372e1bcf46aa663982b20840f4e22e5fde201f91de401a0" }, "downloads": -1, "filename": "soda-pylib-1.3.5.tar.gz", "has_sig": false, "md5_digest": "32c952633295ea2736db047093cd87b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7858, "upload_time": "2016-10-03T19:40:48", "url": "https://files.pythonhosted.org/packages/78/39/cf8244a46f7f1c76914c71118826f272c8a910cd844ffcda8baf4172d1e0/soda-pylib-1.3.5.tar.gz" } ] }