diff --git a/README b/README index 2356994..558c226 100644 --- a/README +++ b/README @@ -5,13 +5,13 @@ - a python module implementing an MHTML creator/parser - interesting functions - - libmhtml.get(url) - - libmhtml.parse(contents) + - pymhtml.get(url) + - pymhtml.parse(contents) - usage - get an URL and MTHML'ize it - > ./libmhtml.py http://www.nytimes.com /tmp/nytimes.mht + > ./pymhtml http://www.nytimes.com /tmp/nytimes.mht - get an MHTML file and convert it into different files > mkdir /tmp/ex - > ./libmhtml.py -p /tmp/nytimes.mht /tmp/ex/ + > ./pymhtml -p /tmp/nytimes.mht /tmp/ex/ diff --git a/libmhtml.py b/pymhtml similarity index 98% rename from libmhtml.py rename to pymhtml index febc61d..8a617b6 100755 --- a/libmhtml.py +++ b/pymhtml @@ -35,15 +35,15 @@ - a python module implementing an MHTML creator/parser - interesting functions - - libmhtml.get(url) - - libmhtml.parse(contents) + - pymhtml.get(url) + - pymhtml.parse(contents) - usage - get an URL and MTHML'ize it - > ./libmhtml.py http://www.nytimes.com /tmp/nytimes.mht + > ./pymhtml http://www.nytimes.com /tmp/nytimes.mht - get an MHTML file and convert it into different files > mkdir /tmp/ex - > ./libmhtml.py -p /tmp/nytimes.mht /tmp/ex/ + > ./pymhtml -p /tmp/nytimes.mht /tmp/ex/ """ diff --git a/setup.py b/setup.py index d2dbd03..abab6e4 100644 --- a/setup.py +++ b/setup.py @@ -1,16 +1,20 @@ from setuptools import setup, Extension #from distutils.core import setup, Extension -setup(name='libmhtml', - description='MHTML library', +setup(name='pymhtml', + description='MHTML tools', author='Chema Gonzalez', author_email='chema@cal.berkeley.edu', url="http://github.com/chemag/libmhtml.py", version='0.0.1', #py_modules=['magic'], - long_description="""This module provides an MHTML creator and parser. -""", + long_description="""This module provides an MHTML creator and parser.""", keywords="mhtml mht", license="BSD", + install_requires = [ + 'magic', + 'urlgrabber', + ], + scripts = ['pymhtml'] )