#!/usr/bin/env python
+import snapdiff
+
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
-setup(name = 'python-snapdiff',
- version = '0.1',
- description = 'Generate image and repo diffs',
- author = 'Lingchao Xin',
- author_email = 'lingchaox.xin@intel.com',
- url = 'http://www.tizen.org/',
- scripts = ['tools/repo-diff',],
+setup(name=snapdiff.__title__,
+ version=snapdiff.__version__,
+ description='Generate image and repo diffs',
+ author='Lingchao Xin',
+ author_email='lingchaox.xin@intel.com',
+ url='http://www.tizen.org/',
+ scripts=['tools/repo-diff',],
packages=['snapdiff',],
include_package_data=True,
install_requires=['Jinja2>=2.6', 'requests>=2.0.1'],
+"""
+Snapdiff is used to generate image and repo diffs. You can use it as a module:
+
+ >>> import snapdiff
+ >>> snapdiff.diff_to_JSON('old url', 'new url')
+ >>> snapdiff.diff_to_HTML('old url', 'new url')
+
+or use it directly:
+ repo-diff [old url] [new url]
+ ...
+
+"""
+
+__title__ = 'python-snapdiff'
+__version__ = '0.1'
+
+from .repo import *
-__all__ = ['render', 'repo']