google-code-export / google-diff-match-patch

Automatically exported from code.google.com/p/google-diff-match-patch
Apache License 2.0
1 stars 0 forks source link

Python diff-match-patch isn't listed on PyPI #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be extremely handy if users could use "pip install diff-match-patch" 
or "easy_install diff-match-patch" to install install the Python library from 
http://pypi.python.org/

Original issue reported on code.google.com by adamsc@gmail.com on 13 Apr 2011 at 1:48

GoogleCodeExporter commented 9 years ago
I would be happy to create a setup.py for this. However, the distributed files 
in their current form are not particularly suitable for PyPI distribution. I 
would suggest some separate zips/tarballs for Python 2 and Python 3.

I'm thinking of creating my own packages and registering them on PyPI. I know 
this is Open Source and it's allowed, but I thought I'd check here if there are 
any objections first.

Original comment by L.Plant...@cantab.net on 6 Sep 2011 at 12:14

GoogleCodeExporter commented 9 years ago
We found a distribution someplace else and have continued to use it the 
setup.py from that package with just the diff-match-patch.py and put it on our 
own distribution area to work around this. Works for our purposes, but I agree 
that it would be nice to have a proper pypi distribution.

from setuptools import setup

setup(
    name='diff-match-patch',
    version='20110217',
    author='Neil Fraser',
    url='http://code.google.com/p/google-diff-match-patch/',
    py_modules=['diff_match_patch'],
    test_suite='diff_match_patch_test.DiffMatchPatchTest',
)

Original comment by fjollb...@gmail.com on 6 Sep 2011 at 5:55

GoogleCodeExporter commented 9 years ago
I went ahead and created a Python package:  
http://pypi.python.org/pypi/diff-match-patch/

It includes Python 2 and Python 3.

Original comment by L.Plant...@cantab.net on 8 Sep 2011 at 4:24

GoogleCodeExporter commented 9 years ago
Thanks Luke. However I would prefer an official package, especially if 
suggesting this link to other people.

Original comment by christop...@gmail.com on 18 Nov 2011 at 10:04