From ce4e4824639da6551dcfd4b43dc150ade53d2213 Mon Sep 17 00:00:00 2001 From: Stas Kotseruba Date: Sat, 23 Apr 2016 23:54:26 +0800 Subject: [PATCH] moved out 'certifi' from package. --- docs/development.rst | 1 - intercom/request.py | 5 ++--- requirements.txt | 1 - rtd-requirements.txt | 3 +-- setup.py | 2 +- 5 files changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/development.rst b/docs/development.rst index 21f2256c..47ca2f00 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -41,7 +41,6 @@ Runtime Dependencies * `Requests `_ – an HTTP library “for human beings” * `inflection `_ – Inflection is a string transformation library. It singularizes and pluralizes English words, and transforms strings from CamelCase to underscored string. * `six `_ – Six is a Python 2 and 3 compatibility library. It provides utility functions for smoothing over the differences between the Python versions with the goal of writing Python code that is compatible on both Python versions. -* `certifi `_ – Certifi is a carefully curated collection of Root Certificates for validating the trustworthiness of SSL certificates while verifying the identity of TLS hosts. Development Dependencies ------------------------ diff --git a/intercom/request.py b/intercom/request.py index c4002d5c..341fe466 100644 --- a/intercom/request.py +++ b/intercom/request.py @@ -3,7 +3,6 @@ from . import errors from datetime import datetime -import certifi import json import logging import requests @@ -43,8 +42,8 @@ def send_request_to_path(cls, method, url, auth, params=None): logger.debug(" params: %s", req_params['data']) resp = requests.request( - method, url, timeout=cls.timeout, - auth=auth, verify=certifi.where(), **req_params) + method, url, timeout=cls.timeout, auth=auth, **req_params + ) # response logging if logger.isEnabledFor(logging.DEBUG): diff --git a/requirements.txt b/requirements.txt index 571df20b..c8a3d392 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ # # Runtime dependencies. # -certifi inflection==0.3.0 requests==2.6.0 urllib3==1.10.2 diff --git a/rtd-requirements.txt b/rtd-requirements.txt index d77bb2a7..3ba0fc27 100644 --- a/rtd-requirements.txt +++ b/rtd-requirements.txt @@ -1,6 +1,5 @@ -certifi inflection==0.3.0 requests==2.6.0 urllib3==1.10.2 six==1.9.0 -sphinx-rtd-theme==0.1.7 \ No newline at end of file +sphinx-rtd-theme==0.1.7 diff --git a/setup.py b/setup.py index 7af6c2de..4d8f23a5 100644 --- a/setup.py +++ b/setup.py @@ -31,6 +31,6 @@ classifiers=[], packages=find_packages(), include_package_data=True, - install_requires=["requests", "inflection", "certifi", "six"], + install_requires=["requests", "inflection", "six"], zip_safe=False )