{ "info": { "author": "Conan.io", "author_email": "info@conan.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development :: Build Tools" ], "description": "[![Build Status](https://travis-ci.org/conan-io/python-patch-ng.svg?branch=master)](https://travis-ci.org/conan-io/python-patch-ng)\n[![PyPI](https://img.shields.io/pypi/v/patch-ng)](https://pypi.python.org/pypi/patch-ng)\n\n## Patch NG (New Generation)\n\n#### Library to parse and apply unified diffs.\n\n#### Why did we fork this project?\n\nThis project is a fork from the original [python-patch](https://github.com/techtonik/python-patch) project.\n\nAs any other project, bugs are common during the development process, the combination of issues + pull requests are\nable to keep the constant improvement of a project. However, both community and author need to be aligned. When users,\ndevelopers, the community, needs a fix which are important for their projects, but there is no answer from the author,\nor the time for response is not enough, then the most plausible way is forking and continuing a parallel development.\n\nThat's way we forked the original and accepted most of PRs waiting for review since jun/2019 (5 months from now).\n\n### Features\n\n * Python 2 and 3 compatible\n * Automatic correction of\n * Linefeeds according to patched file\n * Diffs broken by stripping trailing whitespace\n * a/ and b/ prefixes\n * Single file, which is a command line tool and a library\n * No dependencies outside Python stdlib\n * Patch format detection (SVN, HG, GIT)\n * Nice diffstat histogram\n * Linux / Windows / OS X\n * Test coverage\n\nThings that don't work out of the box:\n\n * File renaming, creation and removal\n * Directory tree operations\n * Version control specific properties\n * Non-unified diff formats\n\n\n### Usage\n\nDownload **patch_ng.py** and run it with Python. It is a self-contained\nmodule without external dependencies.\n\n patch_ng.py diff.patch\n\nYou can also run the .zip file.\n\n python patch-ng-1.17.zip diff.patch\n\n### Installation\n\n**patch_ng.py** is self sufficient. You can copy it into your repository\nand use it from here. This setup will always be repeatable. But if\nyou need to add `patch` module as a dependency, make sure to use strict\nspecifiers to avoid hitting an API break when version 2 is released:\n\n pip install \"patch-ng\"\n\n\n### Other stuff\n\n* [CHANGES](doc/CHANGES.md)\n* [LICENSE: MIT](LICENSE)\n* [CREDITS](doc/CREDITS)", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/conan-io/python-patch", "keywords": "patch,parse,diff,strip,diffstat", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "patch-ng", "package_url": "https://pypi.org/project/patch-ng/", "platform": "", "project_url": "https://pypi.org/project/patch-ng/", "project_urls": { "Homepage": "https://github.com/conan-io/python-patch" }, "release_url": "https://pypi.org/project/patch-ng/1.17.1/", "requires_dist": null, "requires_python": "", "summary": "Library to parse and apply unified diffs.", "version": "1.17.1" }, "last_serial": 5975492, "releases": { "1.17": [ { "comment_text": "", "digests": { "md5": "68b0d54c0da643d63263a5acf9f4c5ab", "sha256": "84eea603083d7119e1b36ca71ac9e0cc1a2979ab585820d26428d6143b2c8472" }, "downloads": -1, "filename": "patch-ng-1.17.tar.gz", "has_sig": false, "md5_digest": "68b0d54c0da643d63263a5acf9f4c5ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16154, "upload_time": "2019-10-10T11:57:33", "url": "https://files.pythonhosted.org/packages/73/63/fe76d4cfe45440197960601b1bc00c15ebdef1c79f0458b9c30dc4fcff0b/patch-ng-1.17.tar.gz" } ], "1.17.1": [ { "comment_text": "", "digests": { "md5": "9ce01b4871f78fdee9606a455aba6db6", "sha256": "007b1edb3ab0862773ae5fd67d3d74d8bdf31aa22f6ea78ec48e2b6486a675e9" }, "downloads": -1, "filename": "patch-ng-1.17.1.tar.gz", "has_sig": false, "md5_digest": "9ce01b4871f78fdee9606a455aba6db6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17102, "upload_time": "2019-10-15T08:18:48", "url": "https://files.pythonhosted.org/packages/d6/d3/64af62acd506c3a86ef6697f85f9eaad77b37bf4f81a2e2a4b24cc1a8bc0/patch-ng-1.17.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9ce01b4871f78fdee9606a455aba6db6", "sha256": "007b1edb3ab0862773ae5fd67d3d74d8bdf31aa22f6ea78ec48e2b6486a675e9" }, "downloads": -1, "filename": "patch-ng-1.17.1.tar.gz", "has_sig": false, "md5_digest": "9ce01b4871f78fdee9606a455aba6db6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17102, "upload_time": "2019-10-15T08:18:48", "url": "https://files.pythonhosted.org/packages/d6/d3/64af62acd506c3a86ef6697f85f9eaad77b37bf4f81a2e2a4b24cc1a8bc0/patch-ng-1.17.1.tar.gz" } ] }