remove import of vendor since we have PPA now
This commit is contained in:
3
HACKING
3
HACKING
@@ -10,15 +10,12 @@ Imports
|
|||||||
- thou shalt not import objects, only modules
|
- thou shalt not import objects, only modules
|
||||||
- thou shalt not import more than one module per line
|
- thou shalt not import more than one module per line
|
||||||
- thou shalt not make relative imports
|
- thou shalt not make relative imports
|
||||||
- thou shalt "from nova import vendor" before importing third party code
|
|
||||||
- thou shalt organize your imports according to the following template
|
- thou shalt organize your imports according to the following template
|
||||||
|
|
||||||
::
|
::
|
||||||
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
||||||
{{stdlib imports in human alphabetical order}}
|
{{stdlib imports in human alphabetical order}}
|
||||||
\n
|
\n
|
||||||
from nova import vendor
|
|
||||||
{{vendor imports in human alphabetical order}}
|
|
||||||
\n
|
\n
|
||||||
{{nova imports in human alphabetical order}}
|
{{nova imports in human alphabetical order}}
|
||||||
\n
|
\n
|
||||||
|
@@ -23,7 +23,7 @@ Tornado daemon for the main API endpoint.
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from tornado import httpserver
|
from tornado import httpserver
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
|
|
||||||
|
@@ -33,7 +33,7 @@ NOVA_PATH = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'nova')
|
|||||||
if os.path.exists(NOVA_PATH):
|
if os.path.exists(NOVA_PATH):
|
||||||
sys.path.insert(0, os.path.dirname(NOVA_PATH))
|
sys.path.insert(0, os.path.dirname(NOVA_PATH))
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from carrot import connection
|
from carrot import connection
|
||||||
from carrot import messaging
|
from carrot import messaging
|
||||||
from twisted.internet import task
|
from twisted.internet import task
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import task
|
from twisted.internet import task
|
||||||
from twisted.application import service
|
from twisted.application import service
|
||||||
|
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from tornado import httpserver
|
from tornado import httpserver
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
|
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
import logging
|
import logging
|
||||||
from wsgiref import simple_server
|
from wsgiref import simple_server
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
|
@@ -18,7 +18,7 @@ import sys, os
|
|||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
sys.path.append(os.path.abspath('/Users/jmckenty/Projects/cc'))
|
sys.path.append(os.path.abspath('/Users/jmckenty/Projects/cc'))
|
||||||
sys.path.append([os.path.abspath('../nova'),os.path.abspath('../'),os.path.abspath('../vendor')])
|
sys.path.append([os.path.abspath('../nova'),os.path.abspath('../'),os.path.abspath('../vendor')])
|
||||||
from nova import vendor
|
|
||||||
|
|
||||||
# -- General configuration -----------------------------------------------------
|
# -- General configuration -----------------------------------------------------
|
||||||
|
|
||||||
|
@@ -21,7 +21,7 @@ Nova User API client library.
|
|||||||
|
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import boto
|
import boto
|
||||||
from boto.ec2.regioninfo import RegionInfo
|
from boto.ec2.regioninfo import RegionInfo
|
||||||
|
|
||||||
|
@@ -23,7 +23,7 @@ Tornado REST API Request Handlers for CloudPipe
|
|||||||
import logging
|
import logging
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import tornado.web
|
import tornado.web
|
||||||
|
|
||||||
from nova import crypto
|
from nova import crypto
|
||||||
|
@@ -25,7 +25,7 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
|
@@ -43,7 +43,7 @@ True
|
|||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import redis
|
import redis
|
||||||
|
|
||||||
from nova import datastore
|
from nova import datastore
|
||||||
|
@@ -36,7 +36,7 @@ except Exception, err:
|
|||||||
logging.warning('no libvirt found')
|
logging.warning('no libvirt found')
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import vendor
|
|
||||||
import boto
|
import boto
|
||||||
import boto.s3
|
import boto.s3
|
||||||
import libxml2
|
import libxml2
|
||||||
|
@@ -25,7 +25,7 @@ import os
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
# TODO(termie): clean up these imports
|
# TODO(termie): clean up these imports
|
||||||
from nova import vendor
|
|
||||||
import IPy
|
import IPy
|
||||||
|
|
||||||
from nova import datastore
|
from nova import datastore
|
||||||
|
@@ -31,7 +31,7 @@ import os
|
|||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
from twisted.internet import task
|
from twisted.internet import task
|
||||||
from twisted.application import service
|
from twisted.application import service
|
||||||
|
@@ -31,7 +31,7 @@ import tempfile
|
|||||||
import time
|
import time
|
||||||
import utils
|
import utils
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import M2Crypto
|
import M2Crypto
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
|
@@ -25,7 +25,7 @@ before trying to run this.
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import redis
|
import redis
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
|
@@ -29,7 +29,7 @@ import urllib
|
|||||||
# TODO(termie): replace minidom with etree
|
# TODO(termie): replace minidom with etree
|
||||||
from xml.dom import minidom
|
from xml.dom import minidom
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import tornado.web
|
import tornado.web
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
|
@@ -28,7 +28,7 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
from nova import datastore
|
from nova import datastore
|
||||||
|
@@ -25,7 +25,7 @@ import json
|
|||||||
import random
|
import random
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import boto
|
import boto
|
||||||
import boto.s3
|
import boto.s3
|
||||||
|
|
||||||
|
@@ -27,7 +27,7 @@ import multiprocessing
|
|||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import tornado.web
|
import tornado.web
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
|
@@ -23,7 +23,7 @@ where they're used.
|
|||||||
|
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from gflags import *
|
from gflags import *
|
||||||
|
|
||||||
# This keeps pylint from barfing on the imports
|
# This keeps pylint from barfing on the imports
|
||||||
|
@@ -44,7 +44,7 @@ import logging
|
|||||||
import multiprocessing
|
import multiprocessing
|
||||||
|
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from tornado import escape, web
|
from tornado import escape, web
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
|
@@ -24,7 +24,7 @@ import logging
|
|||||||
import multiprocessing
|
import multiprocessing
|
||||||
import StringIO
|
import StringIO
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
from twisted.internet import error
|
from twisted.internet import error
|
||||||
from twisted.internet import process
|
from twisted.internet import process
|
||||||
|
@@ -26,7 +26,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from carrot import connection
|
from carrot import connection
|
||||||
from carrot import messaging
|
from carrot import messaging
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
@@ -27,7 +27,7 @@ import signal
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import daemon
|
import daemon
|
||||||
from daemon import pidlockfile
|
from daemon import pidlockfile
|
||||||
|
|
||||||
|
@@ -26,7 +26,7 @@ import logging
|
|||||||
import time
|
import time
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import mox
|
import mox
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
@@ -20,7 +20,7 @@ import httplib
|
|||||||
import random
|
import random
|
||||||
import StringIO
|
import StringIO
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import boto
|
import boto
|
||||||
from boto.ec2 import regioninfo
|
from boto.ec2 import regioninfo
|
||||||
from tornado import httpserver
|
from tornado import httpserver
|
||||||
|
@@ -22,7 +22,7 @@ import time
|
|||||||
import unittest
|
import unittest
|
||||||
from xml.etree import ElementTree
|
from xml.etree import ElementTree
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
|
@@ -22,7 +22,7 @@ import time
|
|||||||
import unittest
|
import unittest
|
||||||
from xml.etree import ElementTree
|
from xml.etree import ElementTree
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import mox
|
import mox
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
|
@@ -20,7 +20,7 @@ import os
|
|||||||
import logging
|
import logging
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import IPy
|
import IPy
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
|
@@ -21,7 +21,7 @@ import time
|
|||||||
|
|
||||||
from xml.etree import ElementTree
|
from xml.etree import ElementTree
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
from nova import exception
|
from nova import exception
|
||||||
|
@@ -23,7 +23,7 @@ import os
|
|||||||
import shutil
|
import shutil
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import objectstore
|
from nova import objectstore
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
import logging
|
import logging
|
||||||
from xml.etree import ElementTree
|
from xml.etree import ElementTree
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
from twisted.internet import reactor
|
from twisted.internet import reactor
|
||||||
|
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from M2Crypto import BIO
|
from M2Crypto import BIO
|
||||||
from M2Crypto import RSA
|
from M2Crypto import RSA
|
||||||
from M2Crypto import X509
|
from M2Crypto import X509
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
|
|
||||||
from nova import flags
|
from nova import flags
|
||||||
from nova import test
|
from nova import test
|
||||||
|
@@ -29,7 +29,7 @@ import time
|
|||||||
import UserDict
|
import UserDict
|
||||||
import logging.handlers
|
import logging.handlers
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.scripts import twistd
|
from twisted.scripts import twistd
|
||||||
from twisted.python import log
|
from twisted.python import log
|
||||||
from twisted.python import reflect
|
from twisted.python import reflect
|
||||||
|
@@ -1,24 +0,0 @@
|
|||||||
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
|
||||||
|
|
||||||
# Copyright 2010 United States Government as represented by the
|
|
||||||
# Administrator of the National Aeronautics and Space Administration.
|
|
||||||
# All Rights Reserved.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
# not use this file except in compliance with the License. You may obtain
|
|
||||||
# a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
||||||
# License for the specific language governing permissions and limitations
|
|
||||||
# under the License.
|
|
||||||
|
|
||||||
"""
|
|
||||||
Get our vendor folders into the system path.
|
|
||||||
"""
|
|
||||||
|
|
||||||
print 'sorry, we cannot include vendor open source libraries... :('
|
|
||||||
|
|
@@ -30,7 +30,7 @@ import shutil
|
|||||||
import tempfile
|
import tempfile
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from tornado import ioloop
|
from tornado import ioloop
|
||||||
from twisted.internet import defer
|
from twisted.internet import defer
|
||||||
|
|
||||||
|
@@ -41,7 +41,7 @@ Due to our use of multiprocessing it we frequently get some ignorable
|
|||||||
import __main__
|
import __main__
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from twisted.scripts import trial as trial_script
|
from twisted.scripts import trial as trial_script
|
||||||
|
|
||||||
from nova import datastore
|
from nova import datastore
|
||||||
|
@@ -21,7 +21,7 @@ Package-level global flags are defined here, the rest are defined
|
|||||||
where they're used.
|
where they're used.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
from gflags import *
|
from gflags import *
|
||||||
|
|
||||||
# This keeps pylint from barfing on the imports
|
# This keeps pylint from barfing on the imports
|
||||||
|
@@ -22,7 +22,7 @@ import random
|
|||||||
import sys
|
import sys
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import paramiko
|
import paramiko
|
||||||
|
|
||||||
from nova import adminclient
|
from nova import adminclient
|
||||||
|
@@ -25,7 +25,7 @@ import time
|
|||||||
import unittest
|
import unittest
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
from nova import vendor
|
|
||||||
import paramiko
|
import paramiko
|
||||||
|
|
||||||
from smoketests import flags
|
from smoketests import flags
|
||||||
|
Reference in New Issue
Block a user