{ "info": { "author": "Xin WANG", "author_email": "hsimwong1202@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3" ], "description": "# patchtool\n## Prerequisite\n\nHere I will simply list the packages on which the tool is implemented. It should be working fine with similar environment\n\n**OS**: RHEL-8.1.0\n\n**Interpreter**: 3.6.8\n\n**Version Controller**: git 2.18.1\n\n**Compiler**: gcc-8.3.1\n\n**Kernel**: 4.18.0-128.el8.x86_64\n\n## Installation\nNo need to install, just ```git clone``` the repository, or download the latest release and enjoy your using:)\nEither method is ok, for our latest release is always synchronized from the master branch.\n\n## How to use\n```\nusage: main.py [-h] -d D -p P\n\noptional arguments:\n -h, --help show this help message and exit\n -d D The directory where this patch tool is hoped to be used\n -p P Directory of the patch file\n\n```\nAn ordinary usage goes like this:\n```\npython3 main.py -d [git_directory] -p [patchfile_path]\n```\n\n## Requirements for input patch file\nA standard input has a format as follow, which can be automatically generated by virtcov, a tool used for libvirt coverage test:\n```\nFrom \n[headers]\n\n\n--\n\n```\nwhere `````` is a hexadecimal integer generated by the submission where the bug was solved. ```[headers]``` represents header information of the commit. `````` is necessary for separating header and body, with a format shown as below:\n```\n\\s[0-9]*\\sfile(s)?\\schanged,\\s[0-9]*\\s(insertions\\(\\+\\)|deletions\\(\\-\\))(,\\s[0-9]*\\sdeletions\\(\\-\\))?\n```\nThe `````` part shows the diff information of the bug commit, whose format is given below:\n```\ndiff --git a/ b/\nindex \n--- a/\n+++ b/\n@@ -[0-9]{1,},[0-9]{1,} +[0-9]{1,},[0-9]{1,} @@ [other_info]\n...\n```\nwhich can be repeated multiple times.\n\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/HsimWong/patchtool/", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "patchtool", "package_url": "https://pypi.org/project/patchtool/", "platform": "", "project_url": "https://pypi.org/project/patchtool/", "project_urls": { "Homepage": "https://github.com/HsimWong/patchtool/" }, "release_url": "https://pypi.org/project/patchtool/1.0rc1/", "requires_dist": null, "requires_python": ">=3.5", "summary": "Line number chars terminator -- update past patches with its current line number", "version": "1.0rc1" }, "last_serial": 5860701, "releases": { "1.0rc1": [ { "comment_text": "", "digests": { "md5": "fe56cd1dfea2b2501f69cb47309db1d3", "sha256": "d8c54f2ad97b1caddd01403fd8eeec9a66f7c37b1f4e4cba7e00f1af976a4fef" }, "downloads": -1, "filename": "patchtool-1.0rc1-py3-none-any.whl", "has_sig": false, "md5_digest": "fe56cd1dfea2b2501f69cb47309db1d3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 14717, "upload_time": "2019-09-20T08:03:09", "url": "https://files.pythonhosted.org/packages/f6/9d/4bb8e3e3c01ff9b428ef16715aa7421d46405836ff019793d392f3a35a5c/patchtool-1.0rc1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fb38f8aa8e461340ec261894b33d686c", "sha256": "81f876b74059be0d9be3e8a8c57a5280e7d0b2df395f5302542980b5078123db" }, "downloads": -1, "filename": "patchtool-1.0rc1.tar.gz", "has_sig": false, "md5_digest": "fb38f8aa8e461340ec261894b33d686c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 2323, "upload_time": "2019-09-20T08:03:11", "url": "https://files.pythonhosted.org/packages/5f/2c/bd4e297cfa928253e5211c7b55406a22751181f24f410a90900db9d5128d/patchtool-1.0rc1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fe56cd1dfea2b2501f69cb47309db1d3", "sha256": "d8c54f2ad97b1caddd01403fd8eeec9a66f7c37b1f4e4cba7e00f1af976a4fef" }, "downloads": -1, "filename": "patchtool-1.0rc1-py3-none-any.whl", "has_sig": false, "md5_digest": "fe56cd1dfea2b2501f69cb47309db1d3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 14717, "upload_time": "2019-09-20T08:03:09", "url": "https://files.pythonhosted.org/packages/f6/9d/4bb8e3e3c01ff9b428ef16715aa7421d46405836ff019793d392f3a35a5c/patchtool-1.0rc1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fb38f8aa8e461340ec261894b33d686c", "sha256": "81f876b74059be0d9be3e8a8c57a5280e7d0b2df395f5302542980b5078123db" }, "downloads": -1, "filename": "patchtool-1.0rc1.tar.gz", "has_sig": false, "md5_digest": "fb38f8aa8e461340ec261894b33d686c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 2323, "upload_time": "2019-09-20T08:03:11", "url": "https://files.pythonhosted.org/packages/5f/2c/bd4e297cfa928253e5211c7b55406a22751181f24f410a90900db9d5128d/patchtool-1.0rc1.tar.gz" } ] }