Skip to content

Commit f84e4d1

Browse files
author
Kurt Griffiths
committedFeb 18, 2013
fix(setup): Installing Falcon via PIP throws an error when six not installed. Fixes falconry#81.
1 parent 1c1cd7c commit f84e4d1

File tree

4 files changed

+15
-36
lines changed

4 files changed

+15
-36
lines changed
 

‎falcon/__init__.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232

3333

3434
# Hoist classes and functions into the falcon namespace
35-
from falcon.version import version # NOQA
36-
from falcon.api import API, DEFAULT_MEDIA_TYPE # NOQA
37-
from falcon.status_codes import * # NOQA
38-
from falcon.exceptions import * # NOQA
39-
from falcon.http_error import HTTPError # NOQA
40-
from falcon.util import dt_to_http # NOQA
41-
from falcon.hooks import before # NOQA
42-
from falcon.request import Request # NOQA
43-
from falcon.response import Response # NOQA
35+
from .version import version # NOQA
36+
from .api import API, DEFAULT_MEDIA_TYPE # NOQA
37+
from .status_codes import * # NOQA
38+
from .exceptions import * # NOQA
39+
from .http_error import HTTPError # NOQA
40+
from .util import dt_to_http # NOQA
41+
from .hooks import before # NOQA
42+
from .request import Request # NOQA
43+
from .response import Response # NOQA

‎falcon/cython-setup.py

-23
This file was deleted.

‎publish.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
22

3-
python setup.py bdist_egg upload
3+
#python setup.py bdist_egg upload
44
python setup.py sdist upload
55

‎setup.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import imp
12
from os import path
23
from setuptools import setup, find_packages, Extension
34

4-
import falcon.version
5+
version = imp.load_source('version', path.join('.', 'falcon', 'version.py'))
6+
version = version.version
57

68
try:
79
from Cython.Distutils import build_ext
@@ -35,7 +37,7 @@
3537

3638
setup(
3739
name='falcon',
38-
version=falcon.version,
40+
version=version,
3941
description='A fast micro-framework for building cloud APIs.',
4042
long_description=None,
4143
classifiers=[
@@ -49,7 +51,7 @@
4951
'Operating System :: Microsoft :: Windows',
5052
'Operating System :: POSIX',
5153
'Topic :: Internet :: WWW/HTTP :: WSGI',
52-
'Topic :: Software Development :: Libraries :: Application Frameworks'
54+
'Topic :: Software Development :: Libraries :: Application Frameworks',
5355
'Programming Language :: Python',
5456
'Programming Language :: Python :: Implementation :: CPython',
5557
'Programming Language :: Python :: Implementation :: PyPy',

0 commit comments

Comments
 (0)