Skip to content

Commit 1b48477

Browse files
committed
Fixes intercom#12 - it now installs into an environment that doesn't have
requests pre-installed.
1 parent 2eced14 commit 1b48477

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

intercom/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def wrapper(instance, value):
3737
from .intercom import Intercom
3838
from .intercom import ResourceNotFound
3939
from .intercom import ServerError
40-
from .intercom import VERSION
4140

4241
from .impression import Impression
4342
from .message_thread import MessageThread

intercom/intercom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
import functools
1818
import json
19+
import pkg_resources
1920
import requests
2021

21-
2222
DEFAULT_TIMEOUT = 10 # seconds
23-
VERSION = "0.2.7"
23+
VERSION = pkg_resources.require("python-intercom")[0].version
2424

2525

2626
class IntercomError(StandardError):

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
from setuptools import find_packages
88
from setuptools import setup
99

10-
from intercom import VERSION
10+
__version__ = "0.2.8"
1111

1212
setup(
1313
name="python-intercom",
14-
version=VERSION,
14+
version=__version__,
1515
description="Intercom API wrapper",
1616
long_description=open('README').read(),
1717
author="John Keyes",

0 commit comments

Comments
 (0)