From 1f255be87a887d43656887d682791d47fbc4e6bf Mon Sep 17 00:00:00 2001 From: kevincytang Date: Thu, 8 Nov 2018 13:15:09 +0100 Subject: [PATCH 1/2] Fixed setup.py for installation from pypi style repositories: * Fixed conflicting package_data (include_package_data uses MANIFEST.in). * Added data_files entry to include "LICENSE" * Version bumped to 3.0.37 (Git was already tagger as 3.0.37) * Added gitignore lines for PyCharm (.idea) and virtualenv (venv) --- .gitignore | 3 +++ setup.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 20ec5ddec..4c4ff44f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +.idea/* +venv + #python specific *.pyc diff --git a/setup.py b/setup.py index ebcf099d8..cb9db195d 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,8 @@ license=license, packages=find_packages(exclude=('tests',)), script_args=script_args, - include_package_data=True, + # include_package_data=True, # This is not compatible with package_data (this uses the manifest file to specify files to include) package_data={'': ['cacerts.txt']}, + data_files=[('', ['LICENSE'])], zip_safe=False, ) From 10eb5c5f26fc1a08e7f931d41bf826ba73499664 Mon Sep 17 00:00:00 2001 From: kevincyt Date: Fri, 22 Feb 2019 09:59:04 +0100 Subject: [PATCH 2/2] 3.0.39-cy1 :: Removed certifi certificates as the default fallback (before builtin ca certs). This was causing issues with recent Amazon S3 CA changes. --- setup.py | 2 +- shotgun_api3/lib/httplib2/certs.py | 4 ++-- shotgun_api3/shotgun.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index cb9db195d..de484dba6 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ setup( name='shotgun_api3', - version='3.0.39', + version='3.0.39-cy1', description='Shotgun Python API ', long_description=readme, author='Shotgun Software', diff --git a/shotgun_api3/lib/httplib2/certs.py b/shotgun_api3/lib/httplib2/certs.py index 59d1ffc70..95684f144 100644 --- a/shotgun_api3/lib/httplib2/certs.py +++ b/shotgun_api3/lib/httplib2/certs.py @@ -33,8 +33,8 @@ def where(): raise RuntimeError("Environment variable HTTPLIB2_CA_CERTS not a valid file") if custom_ca_locater_available: return custom_ca_locater_where() - if certifi_available: - return certifi_where() + # if certifi_available: + # return certifi_where() return BUILTIN_CA_CERTS diff --git a/shotgun_api3/shotgun.py b/shotgun_api3/shotgun.py index b2b9cffb7..cdb696d2c 100755 --- a/shotgun_api3/shotgun.py +++ b/shotgun_api3/shotgun.py @@ -92,7 +92,7 @@ # ---------------------------------------------------------------------------- # Version -__version__ = "3.0.39" +__version__ = "3.0.39-cy1" # ---------------------------------------------------------------------------- # Errors