-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Organize Python code in a source directory and a bin directory
- Loading branch information
Showing
9 changed files
with
66 additions
and
51 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
# You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
import argparse | ||
import os | ||
|
||
from microannotate import generator | ||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument( | ||
"repository_dir", help="Path to the input repository", action="store" | ||
) | ||
parser.add_argument( | ||
"repository_out_dir", help="Path to the output repository", action="store" | ||
) | ||
parser.add_argument( | ||
"--rev-start", | ||
help="Which revision to start with (0 by default)", | ||
action="store", | ||
default="0", | ||
) | ||
parser.add_argument( | ||
"--rev-end", | ||
help="Which revision to end with (tip by default)", | ||
action="store", | ||
default="tip", | ||
) | ||
args = parser.parse_args() | ||
|
||
repo_out_dir = os.path.realpath(args.repository_out_dir) | ||
|
||
generator.generate(args.repository_dir, repo_out_dir, args.rev_start, args.rev_end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
# You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
import argparse | ||
|
||
from microannotate import viewer | ||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument("repository_dir", help="Path to the repository", action="store") | ||
parser.add_argument( | ||
"path", help="Path to the file in the repository", action="store" | ||
) | ||
parser.add_argument( | ||
"rev", help="Start annotating from this revision", action="store" | ||
) | ||
args = parser.parse_args() | ||
|
||
viewer.html(args.repository_dir, args.rev, args.path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# -*- coding: utf-8 -*- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
import collections | ||
|
||
import utils | ||
from microannotate import utils | ||
|
||
|
||
class Commit(object): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters