{ "info": { "author": "Colm O'Connor", "author_email": "colm.oconnor.github@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: Text Processing :: Markup" ], "description": "HitchTrigger\n============\n\nHitchTrigger is a self contained build tool designed to trigger blocks of build commands when a condition is met\nthat necessitates a rebuild.\n\nThe conditions can be one or more combined of any of the following:\n\n* A file or files (e.g. source files) have changed.\n* A specified (build) directory did not exist.\n* A period of time has elapsed.\n* A 'watched' variable has changed its value.\n* An exception occurred the previous time the commands were run (always by default).\n\nTo install from pypi::\n\n $ hitch install hitchtrigger\n\n\nUse\n---\n\n.. code-block:: python\n\n import hitchtrigger\n\n monitor = hitchtrigger.Monitor(\n \"/path/to/project.watch\"\n #override=[\"virtualenv\", ],\n )\n\n # Will run in the following cases:\n #\n ## The command block has never been run before.\n ## An exception was triggered within the context manager on the previous run.\n ## venv directory is non-existent.\n ## A period of 7 days has elapsed\n ## A previous block named 'previousblock' was run.\n ## Either requirements.txt or dev_requirements.txt have been modified (file modification dates are monitored).\n ## Var \"v=1\" is changed (e.g. to \"v=2\").\n ## The line 'override=[\"virtualenv\", ]' is uncommented.\n\n with monitor.block(\n \"virtualenv\",\n monitor.nonexistent(\"venv\") | monitor.not_run_since(days=7) | monitor.was_run(\"previousblock\")\n monitor.modified([\"requirements.txt\", \"dev_requirements.txt\"]) | monitor.var(v=1)\n ).context() as trigger:\n if trigger:\n print(trigger.why) # Prints out reason for running\n\n Path(\"venv\").rmtree(ignore_errors=True)\n virtualenv(\"venv\").run()\n pip(\"install\", \"-r\", \"requirements.txt\").run()\n pip(\"freeze\").stdout(Path(\"freeze.txt\")).run()\n pip(\"install\", \"dev_requirements.txt\").run()\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hitchtest/hitchtrigger", "keywords": "test build", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "hitchtrigger", "package_url": "https://pypi.org/project/hitchtrigger/", "platform": "", "project_url": "https://pypi.org/project/hitchtrigger/", "project_urls": { "Homepage": "https://github.com/hitchtest/hitchtrigger" }, "release_url": "https://pypi.org/project/hitchtrigger/0.2/", "requires_dist": null, "requires_python": "", "summary": "Build tool to selectively run blocks of build commands under specified conditions", "version": "0.2" }, "last_serial": 2474635, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "618b225901ffb1f531e3e00a94e1e471", "sha256": "413c5da2b11dc7d46df0ae94a3961879aef3a6cb10a6682611cad9868060b9e3" }, "downloads": -1, "filename": "hitchtrigger-0.2.tar.gz", "has_sig": false, "md5_digest": "618b225901ffb1f531e3e00a94e1e471", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5675, "upload_time": "2016-11-21T19:39:24", "url": "https://files.pythonhosted.org/packages/1f/c6/3338cdd98afa5307a750e95e3e96a6ac0caae7826addd8775afa41e49e1e/hitchtrigger-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "618b225901ffb1f531e3e00a94e1e471", "sha256": "413c5da2b11dc7d46df0ae94a3961879aef3a6cb10a6682611cad9868060b9e3" }, "downloads": -1, "filename": "hitchtrigger-0.2.tar.gz", "has_sig": false, "md5_digest": "618b225901ffb1f531e3e00a94e1e471", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5675, "upload_time": "2016-11-21T19:39:24", "url": "https://files.pythonhosted.org/packages/1f/c6/3338cdd98afa5307a750e95e3e96a6ac0caae7826addd8775afa41e49e1e/hitchtrigger-0.2.tar.gz" } ] }