From b67a2a7472c5f506b28d9938b21243ee1ffc7ef4 Mon Sep 17 00:00:00 2001 From: Nikolas Nyby Date: Mon, 27 Aug 2018 12:56:26 -0400 Subject: [PATCH] Python libraries: add setup.py Here's a start to resolving https://github.com/google/diff-match-patch/issues/17 It's easiest to manage python 2 and 3 in the same codebase, so one direction we could go in is just replacing `python2` and `python3` with a single `python` directory. --- python2/setup.py | 28 ++++++++++++++++++++++++++++ python3/setup.py | 28 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100755 python2/setup.py create mode 100755 python3/setup.py diff --git a/python2/setup.py b/python2/setup.py new file mode 100755 index 00000000..b2fba3c6 --- /dev/null +++ b/python2/setup.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python +from setuptools import setup + +setup( + name='diff-match-patch', + version='20180827', + description='Diff Match Patch is a high-performance library in multiple languages that manipulates plain text.', + packages = ['diff_match_patch'], + author='Neil Fraser', + author_email='fraser@google.com', + url='https://github.com/google/diff-match-patch', + test_suite='tests.diff_match_patch_test', + license = 'Apache', + classifiers = [ + "Topic :: Text Processing", + "Intended Audience :: Developers", + "Development Status :: 6 - Mature", + "License :: OSI Approved :: Apache Software License", + "Programming Language :: Python :: 2.6", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + ] +) diff --git a/python3/setup.py b/python3/setup.py new file mode 100755 index 00000000..b2fba3c6 --- /dev/null +++ b/python3/setup.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python +from setuptools import setup + +setup( + name='diff-match-patch', + version='20180827', + description='Diff Match Patch is a high-performance library in multiple languages that manipulates plain text.', + packages = ['diff_match_patch'], + author='Neil Fraser', + author_email='fraser@google.com', + url='https://github.com/google/diff-match-patch', + test_suite='tests.diff_match_patch_test', + license = 'Apache', + classifiers = [ + "Topic :: Text Processing", + "Intended Audience :: Developers", + "Development Status :: 6 - Mature", + "License :: OSI Approved :: Apache Software License", + "Programming Language :: Python :: 2.6", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + ] +)