git-sanity 2.0.2__tar.gz → 2.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. git-sanity-2.0.4/.gitignore +102 -0
  2. {git-sanity-2.0.2 → git-sanity-2.0.4}/PKG-INFO +1 -1
  3. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity/__init__.py +1 -1
  4. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity/__main__.py +3 -3
  5. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity/command.py +3 -3
  6. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity/utils.py +1 -0
  7. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity.egg-info/PKG-INFO +1 -1
  8. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity.egg-info/SOURCES.txt +1 -0
  9. {git-sanity-2.0.2 → git-sanity-2.0.4}/LICENSE.txt +0 -0
  10. {git-sanity-2.0.2 → git-sanity-2.0.4}/README.md +0 -0
  11. {git-sanity-2.0.2 → git-sanity-2.0.4}/setup.cfg +0 -0
  12. {git-sanity-2.0.2 → git-sanity-2.0.4}/setup.py +0 -0
  13. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity/branch.py +0 -0
  14. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity/clone.py +0 -0
  15. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity/init.py +0 -0
  16. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity/push.py +0 -0
  17. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity/switch.py +0 -0
  18. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity/sync.py +0 -0
  19. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity.egg-info/dependency_links.txt +0 -0
  20. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity.egg-info/entry_points.txt +0 -0
  21. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity.egg-info/requires.txt +0 -0
  22. {git-sanity-2.0.2 → git-sanity-2.0.4}/src/git_sanity.egg-info/top_level.txt +0 -0
@@ -0,0 +1,102 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ env/
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+
28
+ # PyInstaller
29
+ # Usually these files are written by a python script from a template
30
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
31
+ *.manifest
32
+ *.spec
33
+
34
+ # Installer logs
35
+ pip-log.txt
36
+ pip-delete-this-directory.txt
37
+
38
+ # Unit test / coverage reports
39
+ htmlcov/
40
+ .tox/
41
+ .coverage
42
+ .coverage.*
43
+ .cache
44
+ nosetests.xml
45
+ coverage.xml
46
+ *.cover
47
+ .hypothesis/
48
+ .pytest_cache
49
+
50
+ # Translations
51
+ *.mo
52
+ *.pot
53
+
54
+ # Django stuff:
55
+ *.log
56
+ local_settings.py
57
+
58
+ # Flask stuff:
59
+ instance/
60
+ .webassets-cache
61
+
62
+ # Scrapy stuff:
63
+ .scrapy
64
+
65
+ # Sphinx documentation
66
+ docs/_build/
67
+
68
+ # PyBuilder
69
+ target/
70
+
71
+ # Jupyter Notebook
72
+ .ipynb_checkpoints
73
+
74
+ # pyenv
75
+ .python-version
76
+
77
+ # celery beat schedule file
78
+ celerybeat-schedule
79
+
80
+ # SageMath parsed files
81
+ *.sage.py
82
+
83
+ # dotenv
84
+ .env
85
+
86
+ # virtualenv
87
+ .venv
88
+ venv/
89
+ ENV/
90
+
91
+ # Spyder project settings
92
+ .spyderproject
93
+ .spyproject
94
+
95
+ # Rope project settings
96
+ .ropeproject
97
+
98
+ # mkdocs documentation
99
+ /site
100
+
101
+ # mypy
102
+ .mypy_cache/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: git-sanity
3
- Version: 2.0.2
3
+ Version: 2.0.4
4
4
  Summary: Manage multiple git repos with sanity
5
5
  Home-page: https://github.com/yuqiaoyu/git-sanity
6
6
  Author: yuqiaoyu
@@ -1,7 +1,7 @@
1
1
  import logging
2
2
 
3
3
  __prog_name__ = "git-sanity"
4
- __version__ = "2.0.2"
4
+ __version__ = "2.0.4"
5
5
  __author__ = "yuqiaoyu"
6
6
  __config_root_dir__ = "." + __prog_name__
7
7
  __config_file_name__ = __prog_name__ + "_config.json"
@@ -1,6 +1,5 @@
1
1
  import argparse
2
2
  import logging
3
- import os
4
3
  from git_sanity import __prog_name__
5
4
  from git_sanity import __version__
6
5
  from git_sanity.init import init_impl
@@ -63,8 +62,9 @@ def main():
63
62
  prog_push.set_defaults(func=push_impl)
64
63
 
65
64
  prog_command = subparsers.add_parser("command", description="Execute user-defined commands", help="execute user-defined commands")
66
- prog_command.add_argument("-c", "--command", dest="command_name", help="execute 'command_name'")
67
- prog_command.add_argument("-l", "--list", dest="list", action='store_true', help="list all user-defined commands")
65
+ prog_command_meg = prog_command.add_mutually_exclusive_group()
66
+ prog_command_meg.add_argument("-c", "--command", dest="command_name", help="execute 'command_name'")
67
+ prog_command_meg.add_argument("-l", "--list", dest="list", action='store_true', help="list all user-defined commands")
68
68
  prog_command.set_defaults(func=command_impl)
69
69
 
70
70
  args = prog.parse_args()
@@ -26,7 +26,7 @@ def execute_command(command_name):
26
26
 
27
27
 
28
28
  def command_impl(args):
29
- if args.list:
30
- list_commands()
31
- else:
29
+ if args.command_name:
32
30
  execute_command(args.command_name)
31
+ else:
32
+ list_commands()
@@ -2,6 +2,7 @@ import json
2
2
  import logging
3
3
  import os
4
4
  import subprocess
5
+ from git_sanity import __prog_name__
5
6
  from git_sanity import __config_root_dir__
6
7
  from git_sanity import __config_file_name__
7
8
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: git-sanity
3
- Version: 2.0.2
3
+ Version: 2.0.4
4
4
  Summary: Manage multiple git repos with sanity
5
5
  Home-page: https://github.com/yuqiaoyu/git-sanity
6
6
  Author: yuqiaoyu
@@ -1,3 +1,4 @@
1
+ .gitignore
1
2
  LICENSE.txt
2
3
  README.md
3
4
  setup.py
File without changes
File without changes
File without changes
File without changes