mirror of https://github.com/zulip/zulip.git
Move zulip_tools library to root of repository.
(imported from commit 2fada9d2acbcf81f8e2b3de8caadbf335141dfaa)
This commit is contained in:
parent
38c5629505
commit
fffd4f3c59
|
@ -7,7 +7,7 @@ from collections import defaultdict
|
||||||
|
|
||||||
from os import path, environ
|
from os import path, environ
|
||||||
|
|
||||||
sys.path.append(path.join(path.dirname(__file__), '../tools'))
|
sys.path.append(path.join(path.dirname(__file__), '..'))
|
||||||
from zulip_tools import check_output
|
from zulip_tools import check_output
|
||||||
|
|
||||||
states = {
|
states = {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import time
|
||||||
|
|
||||||
from os import path, environ
|
from os import path, environ
|
||||||
|
|
||||||
sys.path.append(path.join(path.dirname(__file__), '../tools'))
|
sys.path.append(path.join(path.dirname(__file__), '..'))
|
||||||
from zulip_tools import check_output
|
from zulip_tools import check_output
|
||||||
|
|
||||||
WARN_THRESHOLD = 50
|
WARN_THRESHOLD = 50
|
||||||
|
|
|
@ -5,7 +5,7 @@ import logging
|
||||||
import datetime
|
import datetime
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
sys.path.append(os.path.join(os.path.dirname(__file__), '../tools'))
|
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||||
from zulip_tools import DEPLOYMENTS_DIR, TIMESTAMP_FORMAT
|
from zulip_tools import DEPLOYMENTS_DIR, TIMESTAMP_FORMAT
|
||||||
|
|
||||||
logging.basicConfig(format="%(asctime)s purge-deployments: %(message)s",
|
logging.basicConfig(format="%(asctime)s purge-deployments: %(message)s",
|
||||||
|
|
|
@ -6,7 +6,7 @@ import subprocess
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
|
||||||
sys.path.append(os.path.join(os.path.dirname(__file__), '../tools'))
|
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||||
from zulip_tools import ENDC, OKGREEN, DEPLOYMENTS_DIR
|
from zulip_tools import ENDC, OKGREEN, DEPLOYMENTS_DIR
|
||||||
|
|
||||||
logging.basicConfig(format="%(asctime)s restart-server: %(message)s",
|
logging.basicConfig(format="%(asctime)s restart-server: %(message)s",
|
||||||
|
|
|
@ -7,7 +7,7 @@ import datetime
|
||||||
import shutil
|
import shutil
|
||||||
import time
|
import time
|
||||||
|
|
||||||
sys.path.append(os.path.join(os.path.dirname(__file__), '../tools'))
|
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||||
from zulip_tools import DEPLOYMENTS_DIR, LOCK_DIR, TIMESTAMP_FORMAT, FAIL, WARNING, ENDC
|
from zulip_tools import DEPLOYMENTS_DIR, LOCK_DIR, TIMESTAMP_FORMAT, FAIL, WARNING, ENDC
|
||||||
|
|
||||||
logging.basicConfig(format="%(asctime)s update-deployment: %(message)s",
|
logging.basicConfig(format="%(asctime)s update-deployment: %(message)s",
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from zulip_tools import check_output
|
import os
|
||||||
|
import sys
|
||||||
import re
|
import re
|
||||||
import glob
|
import glob
|
||||||
|
|
||||||
|
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||||
|
from zulip_tools import check_output
|
||||||
|
|
||||||
class Record:
|
class Record:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ import subprocess
|
||||||
from os import path
|
from os import path
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
|
sys.path.append(path.join(path.dirname(__file__), '..'))
|
||||||
from zulip_tools import check_output
|
from zulip_tools import check_output
|
||||||
|
|
||||||
parser = optparse.OptionParser()
|
parser = optparse.OptionParser()
|
||||||
|
|
|
@ -28,8 +28,10 @@
|
||||||
#
|
#
|
||||||
# see contrib/hooks/ for a sample
|
# see contrib/hooks/ for a sample
|
||||||
|
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
|
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||||
from zulip_tools import check_output, ENDC, FAIL
|
from zulip_tools import check_output, ENDC, FAIL
|
||||||
|
|
||||||
def update_deployment(server, refname):
|
def update_deployment(server, refname):
|
||||||
|
|
Loading…
Reference in New Issue