diff --git a/README.md b/README.md index 4c7def3..fc92ced 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,6 @@ HQuery is 99% compliant with the [XPath 1.0](https://www.w3.org/TR/xpath/) stand ## Installing `hq` pip install hq - -*Needle scratch sound...* Oh, wait! I haven't actually released 0.0.1 yet! So it's not uploaded. You'll have to clone the repo and run the `hq_runner.py` script in place of `hq` until a release is up. ## Running `hq` diff --git a/hq/hq.py b/hq/hq.py index 96a2208..44cf649 100755 --- a/hq/hq.py +++ b/hq/hq.py @@ -32,7 +32,7 @@ from .soup_util import make_soup from .verbosity import verbose_print, set_verbosity -__version__ = '0.0.1' +__version__ = '0.0.2' def main(): diff --git a/setup.py b/setup.py index 1ad4a48..0f164ec 100755 --- a/setup.py +++ b/setup.py @@ -1,14 +1,18 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +import os import re from setuptools import setup, find_packages version = re.search("^__version__\s*=\s*'(.*)'", open('hq/hq.py').read(), re.M).group(1) -with open('README.md', 'rb') as f: - long_description = f.read().decode('utf-8') +long_description = 'Powerful HTML slicing and dicing at the command line.' +if os.path.exists('README.md'): + with open('README.md', 'rb') as f: + long_description = f.read().decode('utf-8') + classifiers = [ 'Development Status :: 2 - Pre-Alpha', @@ -19,6 +23,7 @@ 'Topic :: Text Processing :: Markup :: HTML', ] + setup(name='hq', packages=find_packages(exclude=['test']), entry_points={'console_scripts': ['hq = hq.hq:main']}, @@ -31,4 +36,4 @@ url='https://github.com/rbwinslow/hq', keywords='html xpath query xquery hquery jq cmdline cli', classifiers=classifiers, - install_requires=['beautifulsoup4', 'docopt']) + install_requires=['beautifulsoup4', 'docopt', 'enum34', 'future', 'wheel'])