{ "info": { "author": "Bruno Binet", "author_email": "bruno.binet@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX :: Linux", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "Hooked\n======\n\nRun command on GitHub and BitBucket POST request hooks.\n\nInstall\n-------\n\nYou can install `hooked` in a virtualenv (with `virtualenvwrapper` and `pip`)::\n\n $ mkvirtualenv hooked\n (hooked) $ pip install hooked\n\nOr if you want to contribute some patches to `hooked`::\n\n $ git clone git@github.com:bbinet/hooked.git\n $ cd hooked/\n $ mkvirtualenv hooked\n (hooked) $ python setup.py develop\n\nConfigure\n---------\n\nCreate a configuration file that looks like::\n\n $ cat path/to/config.cfg\n\n [server]\n host = 0.0.0.0\n port = 8080\n server = cherrypy\n debug = true\n\n [hook-myrepo]\n repository = myrepo\n branch = master\n command = /path/to/script.sh\n\n [hook-all]\n #repository = # will match all repository\n #branch = # will match all branches\n command = /path/to/other/script.sh\n\nNote that the `[server]` section is optional, the defaults are::\n\n [server]\n host = localhost\n port = 8888\n server = wsgiref\n debug = false\n\nRun\n---\n\nRun the hooked server by running the following command::\n\n (hooked) $ hooked path/to/config.cfg\n\nThen visit http://localhost:8888/, it should return the current configuration\nfor this `hooked` server.\nIf this works, you are ready to configure GitHub and BitBucket POST request web\nhooks to your `hooked` server listening address, for example:\nhttp://localhost:8888/.\n\nSee:\n\n- https://confluence.atlassian.com/display/BITBUCKET/POST+hook+management\n- https://developer.github.com/webhooks/\n\nYou can also manually run hooks though GET requests:\n\n - requesting the /hooks// url will run all hooks that match\n repository= and branch=\n - requesting the /hook/ url will run the hook which name is \n\nRelease\n-------\n\nTo make a new release, do the following steps::\n\n $ vi setup.py # bump version\n $ git add setup.py\n $ git commit -m \"bump version to X.X.X\"\n $ git tag vX.X.X\n $ git push --tags\n $ python setup.py sdist upload\n\nThanks\n------\n\nThanks to the `hook-server `_ and\n`githook `_ projects for inspiration.", "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/bbinet/hooked", "keywords": "bitbucket,github,hook,post,web,webhook", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "hooked", "package_url": "https://pypi.org/project/hooked/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/hooked/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bbinet/hooked" }, "release_url": "https://pypi.org/project/hooked/0.3/", "requires_dist": null, "requires_python": null, "summary": "Run command on GitHub and BitBucket POST request hooks", "version": "0.3" }, "last_serial": 2608886, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "df037966803e9a4d781e7b4964ace282", "sha256": "01c4bf9ff038d5e629f5db007d1b6ae4d586407ca683eb3196abdc677833ffbf" }, "downloads": -1, "filename": "hooked-0.1.tar.gz", "has_sig": false, "md5_digest": "df037966803e9a4d781e7b4964ace282", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4349, "upload_time": "2014-10-23T10:19:26", "url": "https://files.pythonhosted.org/packages/be/78/5e22ea60a17afa6ec863778a3e3e41e818661e44976573526556c2a7cb8a/hooked-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "d59ae73404058a26bd47c2afbc12824d", "sha256": "70157c9df560ff417be8a2cb3a74c919823a3eb79a1ced907fad336e737d8155" }, "downloads": -1, "filename": "hooked-0.2.tar.gz", "has_sig": false, "md5_digest": "d59ae73404058a26bd47c2afbc12824d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4706, "upload_time": "2015-01-13T16:05:10", "url": "https://files.pythonhosted.org/packages/52/da/bb8a16d9d61124484acef2982dac5a8a4087675d7177a6f6c5917e1463b6/hooked-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "f9272aa54292cfdeed724f6280943069", "sha256": "d44775b5c9a767166f1399e6efffe11b23fec14900ff168b2a8305ff2ef0d502" }, "downloads": -1, "filename": "hooked-0.3.tar.gz", "has_sig": false, "md5_digest": "f9272aa54292cfdeed724f6280943069", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4753, "upload_time": "2017-01-31T11:02:44", "url": "https://files.pythonhosted.org/packages/83/4f/614f49611a99cc450a2fd190715fafb15e50b3ea2f6e43a361c4177e6786/hooked-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f9272aa54292cfdeed724f6280943069", "sha256": "d44775b5c9a767166f1399e6efffe11b23fec14900ff168b2a8305ff2ef0d502" }, "downloads": -1, "filename": "hooked-0.3.tar.gz", "has_sig": false, "md5_digest": "f9272aa54292cfdeed724f6280943069", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4753, "upload_time": "2017-01-31T11:02:44", "url": "https://files.pythonhosted.org/packages/83/4f/614f49611a99cc450a2fd190715fafb15e50b3ea2f6e43a361c4177e6786/hooked-0.3.tar.gz" } ] }