Skip to content

Commit 1b84895

Browse files
authored
Merge pull request #9 from yeger00/setup-scripts
adding scripts to setup.py
2 parents 3af2578 + 0046fb3 commit 1b84895

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ pip install graphdiff
2525
```
2626
cat samples/before.dot | graph-easy --as boxart
2727
cat samples/after.dot | graph-easy --as boxart
28-
python -m graphdiff samples/before.dot samples/after.dot > ./diff.dot
29-
cat ./diff.dot | ./diff-graph-color
28+
graph-diff samples/before.dot samples/after.dot > ./diff.dot
29+
cat ./diff.dot | graph-diff-color
3030
```
3131

3232
# git-graph-diff-tool
@@ -40,7 +40,7 @@ echo "*.dot diff=graph_diff" >> .gitattributes
4040
```
4141
Then, configure the difftool to be the `git-graph-diff-tool`. For example:
4242
```
43-
git config diff.graph_diff.command /path/to/git-graph-diff-tool
43+
git config diff.graph_diff.command git-graph-diff-tool
4444
```
4545
Then, you can use git as usual, while adding `--ext-diff` flag to enable external difftools.
4646
```
File renamed without changes.

bin/graph-diff

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
python -m graphdiff "$@"
File renamed without changes.

graphdiff/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def main():
3232
before_graph = load_graph(sys.argv[1])
3333
after_graph = load_graph(sys.argv[2])
3434
diff = graphdiff.generate_diff_graph(before_graph, after_graph)
35-
# save_graph(diff, sys.argv[3])
3635
print_graph(diff)
3736

3837

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def run_tests(self):
2222

2323
setup(
2424
name="graphdiff",
25-
version="0.0.4",
25+
version="0.0.5",
2626
author="Avi Yeger",
2727
author_email="yeger00@gmail.com",
2828
description="",
@@ -33,4 +33,5 @@ def run_tests(self):
3333
install_requires=["pydot"],
3434
tests_require=["pytest", "pytest_mock"],
3535
cmdclass={"test": PyTest},
36+
scripts=["bin/graph-diff", "bin/graph-diff-color", "bin/git-graph-diff-tool"]
3637
)

0 commit comments

Comments
 (0)