walker 0.0.2__tar.gz → 0.1.1__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 (38) hide show
  1. walker-0.1.1/.gitignore +48 -0
  2. walker-0.1.1/HISTORY.rst +27 -0
  3. walker-0.1.1/PKG-INFO +100 -0
  4. {walker-0.0.2 → walker-0.1.1}/README.rst +12 -8
  5. walker-0.1.1/docs/conf.py +15 -0
  6. walker-0.1.1/docs/installation.rst +17 -0
  7. walker-0.1.1/docs/usage.rst +8 -0
  8. walker-0.1.1/pyproject.toml +62 -0
  9. walker-0.1.1/tests/__init__.py +0 -0
  10. walker-0.1.1/tests/test_walker.py +72 -0
  11. {walker-0.0.2 → walker-0.1.1}/walker/__init__.py +1 -3
  12. {walker-0.0.2 → walker-0.1.1}/walker/main.py +13 -6
  13. walker-0.0.2/AUTHORS.rst +0 -13
  14. walker-0.0.2/CONTRIBUTING.rst +0 -111
  15. walker-0.0.2/HISTORY.rst +0 -14
  16. walker-0.0.2/MANIFEST.in +0 -11
  17. walker-0.0.2/PKG-INFO +0 -109
  18. walker-0.0.2/docs/conf.py +0 -275
  19. walker-0.0.2/docs/installation.rst +0 -12
  20. walker-0.0.2/docs/usage.rst +0 -7
  21. walker-0.0.2/setup.cfg +0 -8
  22. walker-0.0.2/setup.py +0 -59
  23. walker-0.0.2/tests/__init__.py +0 -1
  24. walker-0.0.2/tests/test_walker.py +0 -28
  25. walker-0.0.2/walker.egg-info/PKG-INFO +0 -109
  26. walker-0.0.2/walker.egg-info/SOURCES.txt +0 -28
  27. walker-0.0.2/walker.egg-info/dependency_links.txt +0 -1
  28. walker-0.0.2/walker.egg-info/entry_points.txt +0 -3
  29. walker-0.0.2/walker.egg-info/not-zip-safe +0 -1
  30. walker-0.0.2/walker.egg-info/top_level.txt +0 -1
  31. {walker-0.0.2 → walker-0.1.1}/LICENSE +0 -0
  32. {walker-0.0.2 → walker-0.1.1}/docs/Makefile +0 -0
  33. {walker-0.0.2 → walker-0.1.1}/docs/authors.rst +0 -0
  34. {walker-0.0.2 → walker-0.1.1}/docs/contributing.rst +0 -0
  35. {walker-0.0.2 → walker-0.1.1}/docs/history.rst +0 -0
  36. {walker-0.0.2 → walker-0.1.1}/docs/index.rst +0 -0
  37. {walker-0.0.2 → walker-0.1.1}/docs/make.bat +0 -0
  38. {walker-0.0.2 → walker-0.1.1}/docs/readme.rst +0 -0
@@ -0,0 +1,48 @@
1
+ *.py[cod]
2
+
3
+ # C extensions
4
+ *.so
5
+
6
+ # Packages
7
+ *.egg
8
+ *.egg-info
9
+ dist
10
+ build
11
+ eggs
12
+ parts
13
+ bin
14
+ var
15
+ sdist
16
+ develop-eggs
17
+ .installed.cfg
18
+ lib
19
+ lib64
20
+
21
+ # Installer logs
22
+ pip-log.txt
23
+
24
+ # Unit test / coverage reports
25
+ .coverage
26
+ .tox
27
+ nosetests.xml
28
+ htmlcov
29
+
30
+ # Translations
31
+ *.mo
32
+
33
+ # Mr Developer
34
+ .mr.developer.cfg
35
+ .project
36
+ .pydevproject
37
+
38
+ # Complexity
39
+ output/*.html
40
+ output/*/index.html
41
+
42
+ # Sphinx
43
+ docs/_build
44
+ # Virtual environments and tool caches
45
+ .venv
46
+ .pytest_cache
47
+ .ruff_cache
48
+ uv.lock
@@ -0,0 +1,27 @@
1
+ .. :changelog:
2
+
3
+ History
4
+ -------
5
+
6
+ 0.1.1 (2026-11-26)
7
+ ---------------------
8
+
9
+ * Added ``walker --version``.
10
+
11
+ 0.1.0 (2026-11-24)
12
+ ---------------------
13
+
14
+ * Python 3 support (3.11+); Python 2 is no longer supported.
15
+ * Packaging moved to ``pyproject.toml``.
16
+ * CI moved from Travis CI to GitHub Actions.
17
+ * Added real tests.
18
+
19
+ 0.0.2 (2014-09-13)
20
+ ---------------------
21
+
22
+ * Some clean up and half-hearted docs.
23
+
24
+ 0.0.1 (2014-09-13)
25
+ ---------------------
26
+
27
+ * First release on PyPI.
walker-0.1.1/PKG-INFO ADDED
@@ -0,0 +1,100 @@
1
+ Metadata-Version: 2.5
2
+ Name: walker
3
+ Version: 0.1.1
4
+ Summary: Walker executes the same command on multiple directories.
5
+ Project-URL: Homepage, https://github.com/darylyu/walker
6
+ Project-URL: Documentation, https://walker.readthedocs.org
7
+ Project-URL: Issues, https://github.com/darylyu/walker/issues
8
+ Project-URL: Changelog, https://github.com/darylyu/walker/blob/main/HISTORY.rst
9
+ Author-email: "D. Yu" <dyu+honeypot@fastmail.fm>
10
+ License-Expression: BSD-3-Clause
11
+ License-File: LICENSE
12
+ Keywords: walker
13
+ Classifier: Development Status :: 2 - Pre-Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Natural Language :: English
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Requires-Python: >=3.11
23
+ Description-Content-Type: text/x-rst
24
+
25
+ ===============================
26
+ walker
27
+ ===============================
28
+
29
+ .. image:: https://img.shields.io/pypi/v/walker.svg
30
+ :target: https://pypi.org/project/walker/
31
+
32
+ .. image:: https://github.com/darylyu/walker/actions/workflows/ci.yml/badge.svg
33
+ :target: https://github.com/darylyu/walker/actions/workflows/ci.yml
34
+
35
+
36
+ Walker executes the same command on multiple directories.
37
+
38
+ * Free software: BSD license
39
+ * Documentation: https://walker.readthedocs.org.
40
+
41
+ Installation
42
+ ---------------
43
+
44
+ Walker needs Python 3.11 or newer. It can be installed from PyPI. ::
45
+
46
+ $ pip install walker
47
+
48
+ Or, to install it as a standalone command-line tool::
49
+
50
+ $ pipx install walker # or: uv tool install walker
51
+
52
+ Usage
53
+ --------
54
+
55
+ Walker only gets the immediate children of the current directory.
56
+
57
+ To print the installed version, run ``walker --version``. This only works
58
+ as the first argument; anything after a command is passed to that command.
59
+
60
+ Here is an example of it showing showing the status of different
61
+ git repositories: ::
62
+
63
+ $ walker git status
64
+
65
+ walker: in /home/dyu/src/couchdb-lucene
66
+ # On branch master
67
+ nothing to commit (working directory clean)
68
+
69
+ walker: in /home/dyu/src/dotfiles
70
+ # On branch master
71
+ # Changes not staged for commit:
72
+ # (use "git add <file>..." to update what will be committed)
73
+ # (use "git checkout -- <file>..." to discard changes in working directory)
74
+ #
75
+ # modified: gitignore_global
76
+ #
77
+ no changes added to commit (use "git add" and/or "git commit -a")
78
+
79
+ walker: in /home/dyu/src/es
80
+ fatal: Not a git repository (or any of the parent directories): .git
81
+
82
+ Here is another example of it showing disk usage: ::
83
+
84
+ $ walker du -cksh
85
+
86
+ walker: in /home/dyu/src/cookiecutter
87
+ 2.1M .
88
+ 2.1M total
89
+
90
+ walker: in /home/dyu/src/couchdb-lucene
91
+ 145M .
92
+ 145M total
93
+
94
+ walker: in /home/dyu/src/dotfiles
95
+ 588K .
96
+ 588K total
97
+
98
+ walker: in /home/dyu/src/es
99
+ 245M .
100
+ 245M total
@@ -2,14 +2,11 @@
2
2
  walker
3
3
  ===============================
4
4
 
5
- .. image:: https://badge.fury.io/py/walker.png
6
- :target: http://badge.fury.io/py/walker
5
+ .. image:: https://img.shields.io/pypi/v/walker.svg
6
+ :target: https://pypi.org/project/walker/
7
7
 
8
- .. image:: https://travis-ci.org/darylyu/walker.png?branch=master
9
- :target: https://travis-ci.org/darylyu/walker
10
-
11
- .. image:: https://pypip.in/d/walker/badge.png
12
- :target: https://pypi.python.org/pypi/walker
8
+ .. image:: https://github.com/darylyu/walker/actions/workflows/ci.yml/badge.svg
9
+ :target: https://github.com/darylyu/walker/actions/workflows/ci.yml
13
10
 
14
11
 
15
12
  Walker executes the same command on multiple directories.
@@ -20,15 +17,22 @@ Walker executes the same command on multiple directories.
20
17
  Installation
21
18
  ---------------
22
19
 
23
- Walker can be installed from PyPI. ::
20
+ Walker needs Python 3.11 or newer. It can be installed from PyPI. ::
24
21
 
25
22
  $ pip install walker
26
23
 
24
+ Or, to install it as a standalone command-line tool::
25
+
26
+ $ pipx install walker # or: uv tool install walker
27
+
27
28
  Usage
28
29
  --------
29
30
 
30
31
  Walker only gets the immediate children of the current directory.
31
32
 
33
+ To print the installed version, run ``walker --version``. This only works
34
+ as the first argument; anything after a command is passed to that command.
35
+
32
36
  Here is an example of it showing showing the status of different
33
37
  git repositories: ::
34
38
 
@@ -0,0 +1,15 @@
1
+ # Sphinx configuration for the walker docs.
2
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html
3
+
4
+ from importlib.metadata import version as _version
5
+
6
+ project = "walker"
7
+ author = "D. Yu"
8
+ copyright = "2014, D. Yu"
9
+ release = _version("walker")
10
+ version = release
11
+
12
+ extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]
13
+ exclude_patterns = ["_build"]
14
+
15
+ html_theme = "alabaster"
@@ -0,0 +1,17 @@
1
+ ============
2
+ Installation
3
+ ============
4
+
5
+ Walker needs Python 3.11 or newer.
6
+
7
+ At the command line::
8
+
9
+ $ pip install walker
10
+
11
+ Or, to install it as a standalone command-line tool::
12
+
13
+ $ pipx install walker
14
+
15
+ or::
16
+
17
+ $ uv tool install walker
@@ -0,0 +1,8 @@
1
+ ========
2
+ Usage
3
+ ========
4
+
5
+ Run any command inside each immediate child directory of the current
6
+ directory::
7
+
8
+ $ walker git status
@@ -0,0 +1,62 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "walker"
7
+ dynamic = ["version"]
8
+ description = "Walker executes the same command on multiple directories."
9
+ readme = "README.rst"
10
+ license = "BSD-3-Clause"
11
+ license-files = ["LICENSE"]
12
+ authors = [{ name = "D. Yu", email = "dyu+honeypot@fastmail.fm" }]
13
+ requires-python = ">=3.11"
14
+ keywords = ["walker"]
15
+ classifiers = [
16
+ "Development Status :: 2 - Pre-Alpha",
17
+ "Intended Audience :: Developers",
18
+ "Natural Language :: English",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3 :: Only",
21
+ "Programming Language :: Python :: 3.11",
22
+ "Programming Language :: Python :: 3.12",
23
+ "Programming Language :: Python :: 3.13",
24
+ "Programming Language :: Python :: 3.14",
25
+ ]
26
+
27
+ [project.urls]
28
+ Homepage = "https://github.com/darylyu/walker"
29
+ Documentation = "https://walker.readthedocs.org"
30
+ Issues = "https://github.com/darylyu/walker/issues"
31
+ Changelog = "https://github.com/darylyu/walker/blob/main/HISTORY.rst"
32
+
33
+ [project.scripts]
34
+ walker = "walker.main:main"
35
+
36
+ [dependency-groups]
37
+ dev = ["pytest", "ruff"]
38
+ docs = ["sphinx"]
39
+
40
+ [tool.hatch.version]
41
+ path = "walker/__init__.py"
42
+
43
+ [tool.hatch.build.targets.sdist]
44
+ include = [
45
+ "walker",
46
+ "tests",
47
+ "docs",
48
+ "AUTHORS.rst",
49
+ "CONTRIBUTING.rst",
50
+ "HISTORY.rst",
51
+ "README.rst",
52
+ ]
53
+ exclude = ["docs/_build"]
54
+
55
+ [tool.pytest.ini_options]
56
+ testpaths = ["tests"]
57
+
58
+ [tool.ruff]
59
+ target-version = "py311"
60
+
61
+ [tool.ruff.lint]
62
+ select = ["E", "F", "W", "I", "UP", "B"]
File without changes
@@ -0,0 +1,72 @@
1
+ """Tests for the `walker` command."""
2
+
3
+ import os
4
+ import sys
5
+
6
+ from walker import __version__, main
7
+
8
+
9
+ def test_version_prints_version_and_skips_dirs(tmp_path, monkeypatch, capsys):
10
+ (tmp_path / "child").mkdir()
11
+ monkeypatch.chdir(tmp_path)
12
+ monkeypatch.setattr(sys, "argv", ["walker", "--version"])
13
+
14
+ main.main()
15
+
16
+ assert capsys.readouterr().out == f"walker {__version__}\n"
17
+
18
+
19
+ def test_version_after_command_is_passed_to_command(tmp_path, monkeypatch, capsys):
20
+ (tmp_path / "child").mkdir()
21
+ monkeypatch.chdir(tmp_path)
22
+ script = "import sys; print(sys.argv[1:])"
23
+ monkeypatch.setattr(
24
+ sys, "argv", ["walker", sys.executable, "-c", script, "--version"]
25
+ )
26
+
27
+ main.main()
28
+
29
+ out = capsys.readouterr().out
30
+ assert "walker: in " in out
31
+ assert f"walker {__version__}" not in out
32
+
33
+
34
+ def test_runs_command_in_each_child_dir_sorted(tmp_path, monkeypatch, capsys):
35
+ for name in ["b", "A", "c"]:
36
+ (tmp_path / name).mkdir()
37
+ (tmp_path / "a_file.txt").write_text("not a dir")
38
+
39
+ monkeypatch.chdir(tmp_path)
40
+ monkeypatch.setattr(
41
+ sys, "argv", ["walker", sys.executable, "-c", "import os; print(os.getcwd())"]
42
+ )
43
+
44
+ main.main()
45
+
46
+ out = capsys.readouterr().out
47
+ headers = [line for line in out.splitlines() if line.startswith("walker: in ")]
48
+ assert headers == [f"walker: in {tmp_path}/{name}" for name in ["A", "b", "c"]]
49
+
50
+
51
+ def test_returns_to_base_dir(tmp_path, monkeypatch):
52
+ (tmp_path / "child").mkdir()
53
+ monkeypatch.chdir(tmp_path)
54
+ monkeypatch.setattr(sys, "argv", ["walker", sys.executable, "-c", "pass"])
55
+
56
+ main.main()
57
+
58
+ assert os.getcwd() == str(tmp_path)
59
+
60
+
61
+ def test_failed_command_prints_error_and_continues(tmp_path, monkeypatch, capsys):
62
+ for name in ["one", "two"]:
63
+ (tmp_path / name).mkdir()
64
+ monkeypatch.chdir(tmp_path)
65
+ monkeypatch.setattr(
66
+ sys, "argv", ["walker", sys.executable, "-c", "raise SystemExit(1)"]
67
+ )
68
+
69
+ main.main()
70
+
71
+ out = capsys.readouterr().out
72
+ assert out.count("ERROR in ") == 2
@@ -1,5 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
1
  __author__ = 'D. Yu'
4
2
  __email__ = 'dyu+honeypot@fastmail.fm'
5
- __version__ = '0.0.2'
3
+ __version__ = '0.1.1'
@@ -1,32 +1,39 @@
1
- #!/usr/bin/env python
2
- # -*- coding: utf-8 -*-
3
1
  import os
4
2
  import subprocess
5
3
  import sys
6
4
 
5
+ from walker import __version__
6
+
7
+
7
8
  def execute_command(target):
8
9
  os.chdir(target)
9
10
  command = sys.argv[1:]
10
11
  try:
11
12
  subprocess.check_call(command)
12
13
  except Exception as e:
13
- print "ERROR in %s: %s" % (target, e)
14
+ print(f"ERROR in {target}: {e}")
15
+
14
16
 
15
17
  def main():
16
- base = os.getcwdu() + "/"
18
+ if sys.argv[1:2] == ['--version']:
19
+ print(f"walker {__version__}")
20
+ return
21
+
22
+ base = os.getcwd() + "/"
17
23
  targets = None
18
24
 
19
25
  # Get immediate child directories.
20
- for root, dirs, files in os.walk('.'):
26
+ for _root, dirs, _files in os.walk('.'):
21
27
  targets = dirs
22
28
  break # dirty hack so we only get the first level
23
29
 
24
30
  # Traverse through the directories.
25
31
  for target in sorted(targets, key=lambda s: s.lower()):
26
32
  target_full_path = base + target
27
- print "\nwalker: in %s" % target_full_path
33
+ print(f"\nwalker: in {target_full_path}", flush=True)
28
34
  execute_command(target_full_path)
29
35
  os.chdir(base)
30
36
 
37
+
31
38
  if __name__ == '__main__':
32
39
  main()
walker-0.0.2/AUTHORS.rst DELETED
@@ -1,13 +0,0 @@
1
- =======
2
- Credits
3
- =======
4
-
5
- Development Lead
6
- ----------------
7
-
8
- * D. Yu <dyu+honeypot@fastmail.fm>
9
-
10
- Contributors
11
- ------------
12
-
13
- None yet. Why not be the first?
@@ -1,111 +0,0 @@
1
- ============
2
- Contributing
3
- ============
4
-
5
- Contributions are welcome, and they are greatly appreciated! Every
6
- little bit helps, and credit will always be given.
7
-
8
- You can contribute in many ways:
9
-
10
- Types of Contributions
11
- ----------------------
12
-
13
- Report Bugs
14
- ~~~~~~~~~~~
15
-
16
- Report bugs at https://github.com/darylyu/walker/issues.
17
-
18
- If you are reporting a bug, please include:
19
-
20
- * Your operating system name and version.
21
- * Any details about your local setup that might be helpful in troubleshooting.
22
- * Detailed steps to reproduce the bug.
23
-
24
- Fix Bugs
25
- ~~~~~~~~
26
-
27
- Look through the GitHub issues for bugs. Anything tagged with "bug"
28
- is open to whoever wants to implement it.
29
-
30
- Implement Features
31
- ~~~~~~~~~~~~~~~~~~
32
-
33
- Look through the GitHub issues for features. Anything tagged with "feature"
34
- is open to whoever wants to implement it.
35
-
36
- Write Documentation
37
- ~~~~~~~~~~~~~~~~~~~
38
-
39
- walker could always use more documentation, whether as part of the
40
- official walker docs, in docstrings, or even on the web in blog posts,
41
- articles, and such.
42
-
43
- Submit Feedback
44
- ~~~~~~~~~~~~~~~
45
-
46
- The best way to send feedback is to file an issue at https://github.com/darylyu/walker/issues.
47
-
48
- If you are proposing a feature:
49
-
50
- * Explain in detail how it would work.
51
- * Keep the scope as narrow as possible, to make it easier to implement.
52
- * Remember that this is a volunteer-driven project, and that contributions
53
- are welcome :)
54
-
55
- Get Started!
56
- ------------
57
-
58
- Ready to contribute? Here's how to set up `walker` for local development.
59
-
60
- 1. Fork the `walker` repo on GitHub.
61
- 2. Clone your fork locally::
62
-
63
- $ git clone git@github.com:your_name_here/walker.git
64
-
65
- 3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
66
-
67
- $ mkvirtualenv walker
68
- $ cd walker/
69
- $ python setup.py develop
70
-
71
- 4. Create a branch for local development::
72
-
73
- $ git checkout -b name-of-your-bugfix-or-feature
74
-
75
- Now you can make your changes locally.
76
-
77
- 5. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox::
78
-
79
- $ flake8 walker tests
80
- $ python setup.py test
81
- $ tox
82
-
83
- To get flake8 and tox, just pip install them into your virtualenv.
84
-
85
- 6. Commit your changes and push your branch to GitHub::
86
-
87
- $ git add .
88
- $ git commit -m "Your detailed description of your changes."
89
- $ git push origin name-of-your-bugfix-or-feature
90
-
91
- 7. Submit a pull request through the GitHub website.
92
-
93
- Pull Request Guidelines
94
- -----------------------
95
-
96
- Before you submit a pull request, check that it meets these guidelines:
97
-
98
- 1. The pull request should include tests.
99
- 2. If the pull request adds functionality, the docs should be updated. Put
100
- your new functionality into a function with a docstring, and add the
101
- feature to the list in README.rst.
102
- 3. The pull request should work for Python 2.6, 2.7, 3.3, and 3.4, and for PyPy. Check
103
- https://travis-ci.org/darylyu/walker/pull_requests
104
- and make sure that the tests pass for all supported Python versions.
105
-
106
- Tips
107
- ----
108
-
109
- To run a subset of tests::
110
-
111
- $ python -m unittest tests.test_walker
walker-0.0.2/HISTORY.rst DELETED
@@ -1,14 +0,0 @@
1
- .. :changelog:
2
-
3
- History
4
- -------
5
-
6
- 0.0.2 (2014-09-13)
7
- ---------------------
8
-
9
- * Some clean up and half-hearted docs.
10
-
11
- 0.0.1 (2014-09-13)
12
- ---------------------
13
-
14
- * First release on PyPI.
walker-0.0.2/MANIFEST.in DELETED
@@ -1,11 +0,0 @@
1
- include AUTHORS.rst
2
- include CONTRIBUTING.rst
3
- include HISTORY.rst
4
- include LICENSE
5
- include README.rst
6
-
7
- recursive-include tests *
8
- recursive-exclude * __pycache__
9
- recursive-exclude * *.py[co]
10
-
11
- recursive-include docs *.rst conf.py Makefile make.bat
walker-0.0.2/PKG-INFO DELETED
@@ -1,109 +0,0 @@
1
- Metadata-Version: 1.1
2
- Name: walker
3
- Version: 0.0.2
4
- Summary: Walker executes the same command on multiple directories.
5
- Home-page: https://github.com/darylyu/walker
6
- Author: D. Yu
7
- Author-email: dyu+honeypot@fastmail.fm
8
- License: BSD
9
- Description: ===============================
10
- walker
11
- ===============================
12
-
13
- .. image:: https://badge.fury.io/py/walker.png
14
- :target: http://badge.fury.io/py/walker
15
-
16
- .. image:: https://travis-ci.org/darylyu/walker.png?branch=master
17
- :target: https://travis-ci.org/darylyu/walker
18
-
19
- .. image:: https://pypip.in/d/walker/badge.png
20
- :target: https://pypi.python.org/pypi/walker
21
-
22
-
23
- Walker executes the same command on multiple directories.
24
-
25
- * Free software: BSD license
26
- * Documentation: https://walker.readthedocs.org.
27
-
28
- Installation
29
- ---------------
30
-
31
- Walker can be installed from PyPI. ::
32
-
33
- $ pip install walker
34
-
35
- Usage
36
- --------
37
-
38
- Walker only gets the immediate children of the current directory.
39
-
40
- Here is an example of it showing showing the status of different
41
- git repositories: ::
42
-
43
- $ walker git status
44
-
45
- walker: in /home/dyu/src/couchdb-lucene
46
- # On branch master
47
- nothing to commit (working directory clean)
48
-
49
- walker: in /home/dyu/src/dotfiles
50
- # On branch master
51
- # Changes not staged for commit:
52
- # (use "git add <file>..." to update what will be committed)
53
- # (use "git checkout -- <file>..." to discard changes in working directory)
54
- #
55
- # modified: gitignore_global
56
- #
57
- no changes added to commit (use "git add" and/or "git commit -a")
58
-
59
- walker: in /home/dyu/src/es
60
- fatal: Not a git repository (or any of the parent directories): .git
61
-
62
- Here is another example of it showing disk usage: ::
63
-
64
- $ walker du -cksh
65
-
66
- walker: in /home/dyu/src/cookiecutter
67
- 2.1M .
68
- 2.1M total
69
-
70
- walker: in /home/dyu/src/couchdb-lucene
71
- 145M .
72
- 145M total
73
-
74
- walker: in /home/dyu/src/dotfiles
75
- 588K .
76
- 588K total
77
-
78
- walker: in /home/dyu/src/es
79
- 245M .
80
- 245M total
81
-
82
-
83
-
84
-
85
- History
86
- -------
87
-
88
- 0.0.2 (2014-09-13)
89
- ---------------------
90
-
91
- * Some clean up and half-hearted docs.
92
-
93
- 0.0.1 (2014-09-13)
94
- ---------------------
95
-
96
- * First release on PyPI.
97
-
98
- Keywords: walker
99
- Platform: UNKNOWN
100
- Classifier: Development Status :: 2 - Pre-Alpha
101
- Classifier: Intended Audience :: Developers
102
- Classifier: License :: OSI Approved :: BSD License
103
- Classifier: Natural Language :: English
104
- Classifier: Programming Language :: Python :: 2
105
- Classifier: Programming Language :: Python :: 2.6
106
- Classifier: Programming Language :: Python :: 2.7
107
- Classifier: Programming Language :: Python :: 3
108
- Classifier: Programming Language :: Python :: 3.3
109
- Classifier: Programming Language :: Python :: 3.4
walker-0.0.2/docs/conf.py DELETED
@@ -1,275 +0,0 @@
1
- #!/usr/bin/env python
2
- # -*- coding: utf-8 -*-
3
- #
4
- # complexity documentation build configuration file, created by
5
- # sphinx-quickstart on Tue Jul 9 22:26:36 2013.
6
- #
7
- # This file is execfile()d with the current directory set to its
8
- # containing dir.
9
- #
10
- # Note that not all possible configuration values are present in this
11
- # autogenerated file.
12
- #
13
- # All configuration values have a default; values that are commented out
14
- # serve to show the default.
15
-
16
- import sys
17
- import os
18
-
19
- # If extensions (or modules to document with autodoc) are in another
20
- # directory, add these directories to sys.path here. If the directory is
21
- # relative to the documentation root, use os.path.abspath to make it
22
- # absolute, like shown here.
23
- #sys.path.insert(0, os.path.abspath('.'))
24
-
25
- # Get the project root dir, which is the parent dir of this
26
- cwd = os.getcwd()
27
- project_root = os.path.dirname(cwd)
28
-
29
- # Insert the project root dir as the first element in the PYTHONPATH.
30
- # This lets us ensure that the source package is imported, and that its
31
- # version is used.
32
- sys.path.insert(0, project_root)
33
-
34
- import walker
35
-
36
- # -- General configuration ---------------------------------------------
37
-
38
- # If your documentation needs a minimal Sphinx version, state it here.
39
- #needs_sphinx = '1.0'
40
-
41
- # Add any Sphinx extension module names here, as strings. They can be
42
- # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
43
- extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode']
44
-
45
- # Add any paths that contain templates here, relative to this directory.
46
- templates_path = ['_templates']
47
-
48
- # The suffix of source filenames.
49
- source_suffix = '.rst'
50
-
51
- # The encoding of source files.
52
- #source_encoding = 'utf-8-sig'
53
-
54
- # The master toctree document.
55
- master_doc = 'index'
56
-
57
- # General information about the project.
58
- project = u'walker'
59
- copyright = u'2014, D. Yu'
60
-
61
- # The version info for the project you're documenting, acts as replacement
62
- # for |version| and |release|, also used in various other places throughout
63
- # the built documents.
64
- #
65
- # The short X.Y version.
66
- version = walker.__version__
67
- # The full version, including alpha/beta/rc tags.
68
- release = walker.__version__
69
-
70
- # The language for content autogenerated by Sphinx. Refer to documentation
71
- # for a list of supported languages.
72
- #language = None
73
-
74
- # There are two options for replacing |today|: either, you set today to
75
- # some non-false value, then it is used:
76
- #today = ''
77
- # Else, today_fmt is used as the format for a strftime call.
78
- #today_fmt = '%B %d, %Y'
79
-
80
- # List of patterns, relative to source directory, that match files and
81
- # directories to ignore when looking for source files.
82
- exclude_patterns = ['_build']
83
-
84
- # The reST default role (used for this markup: `text`) to use for all
85
- # documents.
86
- #default_role = None
87
-
88
- # If true, '()' will be appended to :func: etc. cross-reference text.
89
- #add_function_parentheses = True
90
-
91
- # If true, the current module name will be prepended to all description
92
- # unit titles (such as .. function::).
93
- #add_module_names = True
94
-
95
- # If true, sectionauthor and moduleauthor directives will be shown in the
96
- # output. They are ignored by default.
97
- #show_authors = False
98
-
99
- # The name of the Pygments (syntax highlighting) style to use.
100
- pygments_style = 'sphinx'
101
-
102
- # A list of ignored prefixes for module index sorting.
103
- #modindex_common_prefix = []
104
-
105
- # If true, keep warnings as "system message" paragraphs in the built
106
- # documents.
107
- #keep_warnings = False
108
-
109
-
110
- # -- Options for HTML output -------------------------------------------
111
-
112
- # The theme to use for HTML and HTML Help pages. See the documentation for
113
- # a list of builtin themes.
114
- html_theme = 'default'
115
-
116
- # Theme options are theme-specific and customize the look and feel of a
117
- # theme further. For a list of options available for each theme, see the
118
- # documentation.
119
- #html_theme_options = {}
120
-
121
- # Add any paths that contain custom themes here, relative to this directory.
122
- #html_theme_path = []
123
-
124
- # The name for this set of Sphinx documents. If None, it defaults to
125
- # "<project> v<release> documentation".
126
- #html_title = None
127
-
128
- # A shorter title for the navigation bar. Default is the same as
129
- # html_title.
130
- #html_short_title = None
131
-
132
- # The name of an image file (relative to this directory) to place at the
133
- # top of the sidebar.
134
- #html_logo = None
135
-
136
- # The name of an image file (within the static path) to use as favicon
137
- # of the docs. This file should be a Windows icon file (.ico) being
138
- # 16x16 or 32x32 pixels large.
139
- #html_favicon = None
140
-
141
- # Add any paths that contain custom static files (such as style sheets)
142
- # here, relative to this directory. They are copied after the builtin
143
- # static files, so a file named "default.css" will overwrite the builtin
144
- # "default.css".
145
- html_static_path = ['_static']
146
-
147
- # If not '', a 'Last updated on:' timestamp is inserted at every page
148
- # bottom, using the given strftime format.
149
- #html_last_updated_fmt = '%b %d, %Y'
150
-
151
- # If true, SmartyPants will be used to convert quotes and dashes to
152
- # typographically correct entities.
153
- #html_use_smartypants = True
154
-
155
- # Custom sidebar templates, maps document names to template names.
156
- #html_sidebars = {}
157
-
158
- # Additional templates that should be rendered to pages, maps page names
159
- # to template names.
160
- #html_additional_pages = {}
161
-
162
- # If false, no module index is generated.
163
- #html_domain_indices = True
164
-
165
- # If false, no index is generated.
166
- #html_use_index = True
167
-
168
- # If true, the index is split into individual pages for each letter.
169
- #html_split_index = False
170
-
171
- # If true, links to the reST sources are added to the pages.
172
- #html_show_sourcelink = True
173
-
174
- # If true, "Created using Sphinx" is shown in the HTML footer.
175
- # Default is True.
176
- #html_show_sphinx = True
177
-
178
- # If true, "(C) Copyright ..." is shown in the HTML footer.
179
- # Default is True.
180
- #html_show_copyright = True
181
-
182
- # If true, an OpenSearch description file will be output, and all pages
183
- # will contain a <link> tag referring to it. The value of this option
184
- # must be the base URL from which the finished HTML is served.
185
- #html_use_opensearch = ''
186
-
187
- # This is the file name suffix for HTML files (e.g. ".xhtml").
188
- #html_file_suffix = None
189
-
190
- # Output file base name for HTML help builder.
191
- htmlhelp_basename = 'walkerdoc'
192
-
193
-
194
- # -- Options for LaTeX output ------------------------------------------
195
-
196
- latex_elements = {
197
- # The paper size ('letterpaper' or 'a4paper').
198
- #'papersize': 'letterpaper',
199
-
200
- # The font size ('10pt', '11pt' or '12pt').
201
- #'pointsize': '10pt',
202
-
203
- # Additional stuff for the LaTeX preamble.
204
- #'preamble': '',
205
- }
206
-
207
- # Grouping the document tree into LaTeX files. List of tuples
208
- # (source start file, target name, title, author, documentclass
209
- # [howto/manual]).
210
- latex_documents = [
211
- ('index', 'walker.tex',
212
- u'walker Documentation',
213
- u'D. Yu', 'manual'),
214
- ]
215
-
216
- # The name of an image file (relative to this directory) to place at
217
- # the top of the title page.
218
- #latex_logo = None
219
-
220
- # For "manual" documents, if this is true, then toplevel headings
221
- # are parts, not chapters.
222
- #latex_use_parts = False
223
-
224
- # If true, show page references after internal links.
225
- #latex_show_pagerefs = False
226
-
227
- # If true, show URL addresses after external links.
228
- #latex_show_urls = False
229
-
230
- # Documents to append as an appendix to all manuals.
231
- #latex_appendices = []
232
-
233
- # If false, no module index is generated.
234
- #latex_domain_indices = True
235
-
236
-
237
- # -- Options for manual page output ------------------------------------
238
-
239
- # One entry per manual page. List of tuples
240
- # (source start file, name, description, authors, manual section).
241
- man_pages = [
242
- ('index', 'walker',
243
- u'walker Documentation',
244
- [u'D. Yu'], 1)
245
- ]
246
-
247
- # If true, show URL addresses after external links.
248
- #man_show_urls = False
249
-
250
-
251
- # -- Options for Texinfo output ----------------------------------------
252
-
253
- # Grouping the document tree into Texinfo files. List of tuples
254
- # (source start file, target name, title, author,
255
- # dir menu entry, description, category)
256
- texinfo_documents = [
257
- ('index', 'walker',
258
- u'walker Documentation',
259
- u'D. Yu',
260
- 'walker',
261
- 'One line description of project.',
262
- 'Miscellaneous'),
263
- ]
264
-
265
- # Documents to append as an appendix to all manuals.
266
- #texinfo_appendices = []
267
-
268
- # If false, no module index is generated.
269
- #texinfo_domain_indices = True
270
-
271
- # How to display URL addresses: 'footnote', 'no', or 'inline'.
272
- #texinfo_show_urls = 'footnote'
273
-
274
- # If true, do not generate a @detailmenu in the "Top" node's menu.
275
- #texinfo_no_detailmenu = False
@@ -1,12 +0,0 @@
1
- ============
2
- Installation
3
- ============
4
-
5
- At the command line::
6
-
7
- $ easy_install walker
8
-
9
- Or, if you have virtualenvwrapper installed::
10
-
11
- $ mkvirtualenv walker
12
- $ pip install walker
@@ -1,7 +0,0 @@
1
- ========
2
- Usage
3
- ========
4
-
5
- To use walker in a project::
6
-
7
- import walker
walker-0.0.2/setup.cfg DELETED
@@ -1,8 +0,0 @@
1
- [wheel]
2
- universal = 1
3
-
4
- [egg_info]
5
- tag_build =
6
- tag_date = 0
7
- tag_svn_revision = 0
8
-
walker-0.0.2/setup.py DELETED
@@ -1,59 +0,0 @@
1
- #!/usr/bin/env python
2
- # -*- coding: utf-8 -*-
3
-
4
-
5
- try:
6
- from setuptools import setup
7
- except ImportError:
8
- from distutils.core import setup
9
-
10
-
11
- readme = open('README.rst').read()
12
- history = open('HISTORY.rst').read().replace('.. :changelog:', '')
13
-
14
- requirements = [
15
- # TODO: put package requirements here
16
- ]
17
-
18
- test_requirements = [
19
- # TODO: put package test requirements here
20
- ]
21
-
22
- setup(
23
- name='walker',
24
- version='0.0.2',
25
- description='Walker executes the same command on multiple directories.',
26
- long_description=readme + '\n\n' + history,
27
- author='D. Yu',
28
- author_email='dyu+honeypot@fastmail.fm',
29
- url='https://github.com/darylyu/walker',
30
- packages=[
31
- 'walker',
32
- ],
33
- package_dir={'walker':
34
- 'walker'},
35
- entry_points={
36
- 'console_scripts': [
37
- 'walker = walker.main:main',
38
- ]
39
- },
40
- include_package_data=True,
41
- install_requires=requirements,
42
- license="BSD",
43
- zip_safe=False,
44
- keywords='walker',
45
- classifiers=[
46
- 'Development Status :: 2 - Pre-Alpha',
47
- 'Intended Audience :: Developers',
48
- 'License :: OSI Approved :: BSD License',
49
- 'Natural Language :: English',
50
- "Programming Language :: Python :: 2",
51
- 'Programming Language :: Python :: 2.6',
52
- 'Programming Language :: Python :: 2.7',
53
- 'Programming Language :: Python :: 3',
54
- 'Programming Language :: Python :: 3.3',
55
- 'Programming Language :: Python :: 3.4',
56
- ],
57
- test_suite='tests',
58
- tests_require=test_requirements
59
- )
@@ -1 +0,0 @@
1
- # -*- coding: utf-8 -*-
@@ -1,28 +0,0 @@
1
- #!/usr/bin/env python
2
- # -*- coding: utf-8 -*-
3
-
4
- """
5
- test_walker
6
- ----------------------------------
7
-
8
- Tests for `walker` module.
9
- """
10
-
11
- import unittest
12
-
13
- from walker import walker
14
-
15
-
16
- class TestWalker(unittest.TestCase):
17
-
18
- def setUp(self):
19
- pass
20
-
21
- def test_something(self):
22
- pass
23
-
24
- def tearDown(self):
25
- pass
26
-
27
- if __name__ == '__main__':
28
- unittest.main()
@@ -1,109 +0,0 @@
1
- Metadata-Version: 1.1
2
- Name: walker
3
- Version: 0.0.2
4
- Summary: Walker executes the same command on multiple directories.
5
- Home-page: https://github.com/darylyu/walker
6
- Author: D. Yu
7
- Author-email: dyu+honeypot@fastmail.fm
8
- License: BSD
9
- Description: ===============================
10
- walker
11
- ===============================
12
-
13
- .. image:: https://badge.fury.io/py/walker.png
14
- :target: http://badge.fury.io/py/walker
15
-
16
- .. image:: https://travis-ci.org/darylyu/walker.png?branch=master
17
- :target: https://travis-ci.org/darylyu/walker
18
-
19
- .. image:: https://pypip.in/d/walker/badge.png
20
- :target: https://pypi.python.org/pypi/walker
21
-
22
-
23
- Walker executes the same command on multiple directories.
24
-
25
- * Free software: BSD license
26
- * Documentation: https://walker.readthedocs.org.
27
-
28
- Installation
29
- ---------------
30
-
31
- Walker can be installed from PyPI. ::
32
-
33
- $ pip install walker
34
-
35
- Usage
36
- --------
37
-
38
- Walker only gets the immediate children of the current directory.
39
-
40
- Here is an example of it showing showing the status of different
41
- git repositories: ::
42
-
43
- $ walker git status
44
-
45
- walker: in /home/dyu/src/couchdb-lucene
46
- # On branch master
47
- nothing to commit (working directory clean)
48
-
49
- walker: in /home/dyu/src/dotfiles
50
- # On branch master
51
- # Changes not staged for commit:
52
- # (use "git add <file>..." to update what will be committed)
53
- # (use "git checkout -- <file>..." to discard changes in working directory)
54
- #
55
- # modified: gitignore_global
56
- #
57
- no changes added to commit (use "git add" and/or "git commit -a")
58
-
59
- walker: in /home/dyu/src/es
60
- fatal: Not a git repository (or any of the parent directories): .git
61
-
62
- Here is another example of it showing disk usage: ::
63
-
64
- $ walker du -cksh
65
-
66
- walker: in /home/dyu/src/cookiecutter
67
- 2.1M .
68
- 2.1M total
69
-
70
- walker: in /home/dyu/src/couchdb-lucene
71
- 145M .
72
- 145M total
73
-
74
- walker: in /home/dyu/src/dotfiles
75
- 588K .
76
- 588K total
77
-
78
- walker: in /home/dyu/src/es
79
- 245M .
80
- 245M total
81
-
82
-
83
-
84
-
85
- History
86
- -------
87
-
88
- 0.0.2 (2014-09-13)
89
- ---------------------
90
-
91
- * Some clean up and half-hearted docs.
92
-
93
- 0.0.1 (2014-09-13)
94
- ---------------------
95
-
96
- * First release on PyPI.
97
-
98
- Keywords: walker
99
- Platform: UNKNOWN
100
- Classifier: Development Status :: 2 - Pre-Alpha
101
- Classifier: Intended Audience :: Developers
102
- Classifier: License :: OSI Approved :: BSD License
103
- Classifier: Natural Language :: English
104
- Classifier: Programming Language :: Python :: 2
105
- Classifier: Programming Language :: Python :: 2.6
106
- Classifier: Programming Language :: Python :: 2.7
107
- Classifier: Programming Language :: Python :: 3
108
- Classifier: Programming Language :: Python :: 3.3
109
- Classifier: Programming Language :: Python :: 3.4
@@ -1,28 +0,0 @@
1
- AUTHORS.rst
2
- CONTRIBUTING.rst
3
- HISTORY.rst
4
- LICENSE
5
- MANIFEST.in
6
- README.rst
7
- setup.cfg
8
- setup.py
9
- docs/Makefile
10
- docs/authors.rst
11
- docs/conf.py
12
- docs/contributing.rst
13
- docs/history.rst
14
- docs/index.rst
15
- docs/installation.rst
16
- docs/make.bat
17
- docs/readme.rst
18
- docs/usage.rst
19
- tests/__init__.py
20
- tests/test_walker.py
21
- walker/__init__.py
22
- walker/main.py
23
- walker.egg-info/PKG-INFO
24
- walker.egg-info/SOURCES.txt
25
- walker.egg-info/dependency_links.txt
26
- walker.egg-info/entry_points.txt
27
- walker.egg-info/not-zip-safe
28
- walker.egg-info/top_level.txt
@@ -1,3 +0,0 @@
1
- [console_scripts]
2
- walker = walker.main:main
3
-
@@ -1 +0,0 @@
1
-
@@ -1 +0,0 @@
1
- walker
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes