Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganization of tank_vendor to support "vendor-less" shotgun-api3 #914

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 0 additions & 108 deletions developer/shotgun_api_update.sh

This file was deleted.

2 changes: 1 addition & 1 deletion hooks/process_folder_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import os
import sys
import shutil
from tank_vendor import six
from tank_vendor.third_party import six
from tank.util import is_windows


Expand Down
2 changes: 1 addition & 1 deletion hooks/process_folder_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

from tank import Hook
import re
from tank_vendor import six
from tank_vendor.third_party import six


class ProcessFolderName(Hook):
Expand Down
4 changes: 2 additions & 2 deletions python/tank/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
from . import pipelineconfig_utils
from . import pipelineconfig_factory
from . import LogManager
from tank_vendor import six
from tank_vendor.six.moves import zip
from tank_vendor.third_party import six
from tank_vendor.third_party.six.moves import zip

log = LogManager.get_logger(__name__)

Expand Down
4 changes: 2 additions & 2 deletions python/tank/authentication/console_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
AuthenticationCancelled,
ConsoleLoginNotSupportedError,
)
from tank_vendor.shotgun_api3 import MissingTwoFactorAuthenticationFault
from tank_vendor.third_party.shotgun_api3 import MissingTwoFactorAuthenticationFault
from . import site_info
from . import unified_login_flow2
from ..util.shotgun.connection import sanitize_url

from getpass import getpass
import webbrowser
from tank_vendor.six.moves import input
from tank_vendor.third_party.six.moves import input

logger = LogManager.get_logger(__name__)

Expand Down
4 changes: 2 additions & 2 deletions python/tank/authentication/login_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"""
import os
import sys
from tank_vendor import shotgun_api3
from tank_vendor import six
from tank_vendor.third_party import shotgun_api3
from tank_vendor.third_party import six
from .. import constants
from .web_login_support import get_shotgun_authenticator_support_web_login
from .ui import resources_rc # noqa
Expand Down
4 changes: 2 additions & 2 deletions python/tank/authentication/session_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
from __future__ import with_statement
import os
import socket
from tank_vendor.shotgun_api3 import (
from tank_vendor.third_party.shotgun_api3 import (
Shotgun,
AuthenticationFault,
ProtocolError,
MissingTwoFactorAuthenticationFault,
)
from tank_vendor.shotgun_api3.lib import httplib2
from tank_vendor.third_party import httplib2
from tank_vendor import yaml
from . import constants
from .errors import AuthenticationError
Expand Down
6 changes: 3 additions & 3 deletions python/tank/authentication/shotgun_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
at any point.
--------------------------------------------------------------------------------
"""
from tank_vendor.six.moves import http_client
from tank_vendor.third_party.six.moves import http_client

from tank_vendor.shotgun_api3 import Shotgun, AuthenticationFault
from tank_vendor.six.moves.xmlrpc_client import ProtocolError
from tank_vendor.third_party.shotgun_api3 import Shotgun, AuthenticationFault
from tank_vendor.third_party.six.moves.xmlrpc_client import ProtocolError
from . import interactive_authentication, session_cache
from .. import LogManager

Expand Down
2 changes: 1 addition & 1 deletion python/tank/authentication/site_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

from . import utils

from tank_vendor import shotgun_api3
from tank_vendor.third_party import shotgun_api3

from .. import LogManager

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
# environment.
UsernamePasswordDialog = None

from tank_vendor.six.moves.urllib.parse import urlencode
from tank_vendor.third_party.six.moves.urllib.parse import urlencode

# Error messages for events.
HTTP_CANT_CONNECT_TO_SHOTGUN = "Cannot Connect To SG site."
Expand Down
4 changes: 2 additions & 2 deletions python/tank/authentication/unified_login_flow2.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import time

import tank
from tank_vendor import six
from tank_vendor.six.moves import http_client, urllib
from tank_vendor.third_party import six
from tank_vendor.third_party.six.moves import http_client, urllib

from . import errors
from .. import platform as sgtk_platform
Expand Down
10 changes: 7 additions & 3 deletions python/tank/authentication/user_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@
"""

from .shotgun_wrapper import ShotgunWrapper
from tank_vendor.shotgun_api3 import Shotgun, AuthenticationFault, ProtocolError
from tank_vendor import six
from tank_vendor.six.moves import http_client
from tank_vendor.third_party.shotgun_api3 import (
Shotgun,
AuthenticationFault,
ProtocolError,
)
from tank_vendor.third_party import six
from tank_vendor.third_party.six.moves import http_client

from . import session_cache
from .errors import IncompleteCredentials, UnresolvableHumanUser, UnresolvableScriptUser
Expand Down
4 changes: 2 additions & 2 deletions python/tank/commands/core_localize.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
from .action_base import Action
from .. import pipelineconfig_utils
from .. import pipelineconfig_factory
from tank_vendor import six
from tank_vendor.shotgun_api3.lib import sgsix
from tank_vendor.third_party import six
from tank_vendor import sgsix

# these are the items that need to be copied across
# when a configuration is upgraded to contain a core API
Expand Down
2 changes: 1 addition & 1 deletion python/tank/commands/dump_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from __future__ import print_function

import os
from tank_vendor.six import StringIO
from tank_vendor.third_party.six import StringIO

from ..errors import TankError
from .action_base import Action
Expand Down
2 changes: 1 addition & 1 deletion python/tank/commands/get_entity_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import itertools
import operator
import os
from tank_vendor.shotgun_api3.lib import sgsix
from tank_vendor import sgsix


def execute_tank_command(pipeline_config_path, args):
Expand Down
2 changes: 1 addition & 1 deletion python/tank/commands/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

from __future__ import print_function
from .. import LogManager
from tank_vendor.six.moves import input
from tank_vendor.third_party.six.moves import input


log = LogManager.get_logger(__name__)
Expand Down
4 changes: 2 additions & 2 deletions python/tank/commands/move_pc.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

import os
import shutil
from tank_vendor.shotgun_api3.lib import sgsix
from tank_vendor.six.moves import input
from tank_vendor import sgsix
from tank_vendor.third_party.six.moves import input


class MovePCAction(Action):
Expand Down
2 changes: 1 addition & 1 deletion python/tank/commands/path_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from .. import folder

from .action_base import Action
from tank_vendor.six.moves import input
from tank_vendor.third_party.six.moves import input


class SynchronizePathCache(Action):
Expand Down
2 changes: 1 addition & 1 deletion python/tank/commands/push_pc.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import os
import datetime
import shutil
from tank_vendor.six.moves import input
from tank_vendor.third_party.six.moves import input

# Core configuration files which are associated with the core API installation and not
# the pipeline configuration.
Expand Down
4 changes: 2 additions & 2 deletions python/tank/commands/setup_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
from .setup_project_core import run_project_setup
from .setup_project_params import ProjectSetupParameters
from .interaction import YesToEverythingInteraction
from tank_vendor.shotgun_api3.lib import sgsix
from tank_vendor.six.moves import input
from tank_vendor import sgsix
from tank_vendor.third_party.six.moves import input


class SetupProjectAction(Action):
Expand Down
2 changes: 1 addition & 1 deletion python/tank/commands/setup_project_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from ..api import sgtk_from_path

from tank_vendor import yaml
from tank_vendor.shotgun_api3.lib import sgsix
from tank_vendor import sgsix


@filesystem.with_cleared_umask
Expand Down
2 changes: 1 addition & 1 deletion python/tank/commands/setup_project_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from tank_vendor import yaml

from ..util import ShotgunPath
from tank_vendor.shotgun_api3.lib import sgsix
from tank_vendor import sgsix


class ProjectSetupParameters(object):
Expand Down
2 changes: 1 addition & 1 deletion python/tank/commands/setup_project_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from .setup_project_core import run_project_setup
from .setup_project_params import ProjectSetupParameters
from .interaction import YesToEverythingInteraction
from tank_vendor.shotgun_api3.lib import sgsix
from tank_vendor import sgsix


class SetupProjectFactoryAction(Action):
Expand Down
2 changes: 1 addition & 1 deletion python/tank/commands/unregister_folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from .. import path_cache
from .action_base import Action
from ..util.login import get_current_user
from tank_vendor.six.moves import input, zip
from tank_vendor.third_party.six.moves import input, zip


class UnregisterFoldersAction(Action):
Expand Down
10 changes: 5 additions & 5 deletions python/tank/descriptor/io_descriptor/appstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"""

import os
from tank_vendor.six.moves import urllib
from tank_vendor.third_party.six.moves import urllib
import fnmatch
from tank_vendor.six.moves import http_client
from tank_vendor.shotgun_api3.lib import httplib2
from tank_vendor.third_party.six.moves import http_client
from tank_vendor.third_party import httplib2

from ...util import shotgun
from ...util import pickle
Expand All @@ -35,8 +35,8 @@
from ...constants import SUPPORT_URL

# use api json to cover py 2.5
from tank_vendor import shotgun_api3
from tank_vendor import six
from tank_vendor.third_party import shotgun_api3
from tank_vendor.third_party import six

json = shotgun_api3.shotgun.json

Expand Down
2 changes: 1 addition & 1 deletion python/tank/descriptor/io_descriptor/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from ..errors import TankDescriptorError, TankMissingManifestError

from tank_vendor import yaml
from tank_vendor.six.moves import map, urllib
from tank_vendor.third_party.six.moves import map, urllib

log = LogManager.get_logger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion python/tank/descriptor/io_descriptor/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .base import IODescriptorBase

from ... import LogManager
from tank_vendor import six
from tank_vendor.third_party import six

log = LogManager.get_logger(__name__)

Expand Down
Loading