From 71b6b126c05b9a7cdec750c9d923d4f03855b577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Roztoc=CC=8Cil?= Date: Tue, 28 Feb 2012 13:49:58 +0100 Subject: [PATCH] Fixed setup.py to work without having pygments already installed. Closes #1. --- httpie/__init__.py | 7 +++++++ httpie/httpie.py | 9 --------- setup.py | 2 +- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/httpie/__init__.py b/httpie/__init__.py index e69de29b..27b6bb3b 100644 --- a/httpie/__init__.py +++ b/httpie/__init__.py @@ -0,0 +1,7 @@ +""" +HTTPie - cURL for humans. + +""" +__author__ = 'Jakub Roztocil' +__version__ = '0.1.3' +__licence__ = 'BSD' diff --git a/httpie/httpie.py b/httpie/httpie.py index 1c8a5aa9..66f01026 100755 --- a/httpie/httpie.py +++ b/httpie/httpie.py @@ -1,8 +1,4 @@ #!/usr/bin/env python -""" -HTTPie - cURL for humans. - -""" import os import sys import json @@ -13,11 +9,6 @@ from requests.structures import CaseInsensitiveDict from . import pretty -__author__ = 'Jakub Roztocil' -__version__ = '0.1.3' -__licence__ = 'BSD' - - DEFAULT_UA = 'HTTPie/%s' % __version__ SEP_COMMON = ':' SEP_DATA = '=' diff --git a/setup.py b/setup.py index 81e2ec8a..afeae2df 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ from setuptools import setup -from httpie import httpie +import httpie setup(name='httpie',version=httpie.__version__,