Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into assemble_circuits-and-transpiler-peakmem-b…
Browse files Browse the repository at this point in the history
…enchmarks
  • Loading branch information
mtreinish authored Oct 21, 2019
2 parents 4ccccb0 + aabf92e commit 4a70a89
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/LOCALIZATION_CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ Walid El Maouaki
Philip Düe
Vicente Pina Canelles
Adolfo Cruz
Cristeam Caiola Pasquier
16 changes: 11 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@
from docutils import nodes
from docutils.parsers.rst.directives.tables import Table
from docutils.parsers.rst import Directive, directives
from sphinx.util import logging


logger = logging.getLogger(__name__)

# -- Project information -----------------------------------------------------

project = 'Qiskit'
Expand Down Expand Up @@ -293,8 +296,9 @@ def _get_setup_py(self, version):
cwd=self.repo_root)
stdout, stderr = proc.communicate()
if proc.returncode > 0:
raise RuntimeError("%s failed with:\nstdout:\n%s\nstderr:\n%s\n"
% (cmd, stdout, stderr))
logger.warn("%s failed with:\nstdout:\n%s\nstderr:\n%s\n"
% (cmd, stdout, stderr))
return ''
return stdout.decode('utf8')

def get_versions(self, tags):
Expand Down Expand Up @@ -363,9 +367,11 @@ def run(self):
stderr=subprocess.PIPE, cwd=self.repo_root)
stdout, stderr = proc.communicate()
if proc.returncode > 0:
raise RuntimeError("%s failed with:\nstdout:\n%s\nstderr:\n%s\n"
% (cmd, stdout, stderr))
tags = stdout.decode('utf8').splitlines()
logger.warn("%s failed with:\nstdout:\n%s\nstderr:\n%s\n"
% (cmd, stdout, stderr))
tags = []
else:
tags = stdout.decode('utf8').splitlines()
versions = self.get_versions(tags)
self.max_cols = len(self.headers)
self.col_widths = self.get_column_widths(self.max_cols)
Expand Down
2 changes: 2 additions & 0 deletions tools/generate_authors.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def generate_authors(git_dir, meta=False):
authors = sorted(set(authors), key=lambda x: (x.split()[-1], x.split()[:]))
with open(output_path, 'w') as fd:
for author in authors:
if author == 'qiskit-bot':
continue
fd.write(author + '\n')


Expand Down

0 comments on commit 4a70a89

Please sign in to comment.