walker 0.0.2__tar.gz → 0.1.0__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.0/.gitignore +48 -0
  2. {walker-0.0.2 → walker-0.1.0}/CONTRIBUTING.rst +10 -12
  3. walker-0.1.0/HISTORY.rst +22 -0
  4. walker-0.1.0/PKG-INFO +97 -0
  5. {walker-0.0.2 → walker-0.1.0}/README.rst +9 -8
  6. walker-0.1.0/docs/conf.py +15 -0
  7. walker-0.1.0/docs/installation.rst +17 -0
  8. walker-0.1.0/docs/usage.rst +8 -0
  9. walker-0.1.0/pyproject.toml +62 -0
  10. walker-0.1.0/tests/__init__.py +0 -0
  11. walker-0.1.0/tests/test_walker.py +47 -0
  12. {walker-0.0.2 → walker-0.1.0}/walker/__init__.py +1 -3
  13. {walker-0.0.2 → walker-0.1.0}/walker/main.py +7 -6
  14. walker-0.0.2/HISTORY.rst +0 -14
  15. walker-0.0.2/MANIFEST.in +0 -11
  16. walker-0.0.2/PKG-INFO +0 -109
  17. walker-0.0.2/docs/conf.py +0 -275
  18. walker-0.0.2/docs/installation.rst +0 -12
  19. walker-0.0.2/docs/usage.rst +0 -7
  20. walker-0.0.2/setup.cfg +0 -8
  21. walker-0.0.2/setup.py +0 -59
  22. walker-0.0.2/tests/__init__.py +0 -1
  23. walker-0.0.2/tests/test_walker.py +0 -28
  24. walker-0.0.2/walker.egg-info/PKG-INFO +0 -109
  25. walker-0.0.2/walker.egg-info/SOURCES.txt +0 -28
  26. walker-0.0.2/walker.egg-info/dependency_links.txt +0 -1
  27. walker-0.0.2/walker.egg-info/entry_points.txt +0 -3
  28. walker-0.0.2/walker.egg-info/not-zip-safe +0 -1
  29. walker-0.0.2/walker.egg-info/top_level.txt +0 -1
  30. {walker-0.0.2 → walker-0.1.0}/AUTHORS.rst +0 -0
  31. {walker-0.0.2 → walker-0.1.0}/LICENSE +0 -0
  32. {walker-0.0.2 → walker-0.1.0}/docs/Makefile +0 -0
  33. {walker-0.0.2 → walker-0.1.0}/docs/authors.rst +0 -0
  34. {walker-0.0.2 → walker-0.1.0}/docs/contributing.rst +0 -0
  35. {walker-0.0.2 → walker-0.1.0}/docs/history.rst +0 -0
  36. {walker-0.0.2 → walker-0.1.0}/docs/index.rst +0 -0
  37. {walker-0.0.2 → walker-0.1.0}/docs/make.bat +0 -0
  38. {walker-0.0.2 → walker-0.1.0}/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
@@ -62,11 +62,11 @@ Ready to contribute? Here's how to set up `walker` for local development.
62
62
 
63
63
  $ git clone git@github.com:your_name_here/walker.git
64
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::
65
+ 3. Set up your fork for local development. This uses `uv <https://docs.astral.sh/uv/>`_,
66
+ which creates the virtualenv and installs walker and its dev tools into it::
66
67
 
67
- $ mkvirtualenv walker
68
68
  $ cd walker/
69
- $ python setup.py develop
69
+ $ uv sync
70
70
 
71
71
  4. Create a branch for local development::
72
72
 
@@ -74,13 +74,11 @@ Ready to contribute? Here's how to set up `walker` for local development.
74
74
 
75
75
  Now you can make your changes locally.
76
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::
77
+ 5. When you're done making changes, check that your changes pass ruff and the tests, including testing other Python versions with tox::
78
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.
79
+ $ make lint
80
+ $ make test
81
+ $ make test-all
84
82
 
85
83
  6. Commit your changes and push your branch to GitHub::
86
84
 
@@ -99,8 +97,8 @@ Before you submit a pull request, check that it meets these guidelines:
99
97
  2. If the pull request adds functionality, the docs should be updated. Put
100
98
  your new functionality into a function with a docstring, and add the
101
99
  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
100
+ 3. The pull request should work for Python 3.11 and newer. Check
101
+ https://github.com/darylyu/walker/actions
104
102
  and make sure that the tests pass for all supported Python versions.
105
103
 
106
104
  Tips
@@ -108,4 +106,4 @@ Tips
108
106
 
109
107
  To run a subset of tests::
110
108
 
111
- $ python -m unittest tests.test_walker
109
+ $ uv run pytest tests/test_walker.py
@@ -0,0 +1,22 @@
1
+ .. :changelog:
2
+
3
+ History
4
+ -------
5
+
6
+ 0.1.0 (2026-11-24)
7
+ ---------------------
8
+
9
+ * Python 3 support (3.11+); Python 2 is no longer supported.
10
+ * Packaging moved to ``pyproject.toml``.
11
+ * CI moved from Travis CI to GitHub Actions.
12
+ * Added real tests.
13
+
14
+ 0.0.2 (2014-09-13)
15
+ ---------------------
16
+
17
+ * Some clean up and half-hearted docs.
18
+
19
+ 0.0.1 (2014-09-13)
20
+ ---------------------
21
+
22
+ * First release on PyPI.
walker-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,97 @@
1
+ Metadata-Version: 2.5
2
+ Name: walker
3
+ Version: 0.1.0
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/master/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
+ Here is an example of it showing showing the status of different
58
+ git repositories: ::
59
+
60
+ $ walker git status
61
+
62
+ walker: in /home/dyu/src/couchdb-lucene
63
+ # On branch master
64
+ nothing to commit (working directory clean)
65
+
66
+ walker: in /home/dyu/src/dotfiles
67
+ # On branch master
68
+ # Changes not staged for commit:
69
+ # (use "git add <file>..." to update what will be committed)
70
+ # (use "git checkout -- <file>..." to discard changes in working directory)
71
+ #
72
+ # modified: gitignore_global
73
+ #
74
+ no changes added to commit (use "git add" and/or "git commit -a")
75
+
76
+ walker: in /home/dyu/src/es
77
+ fatal: Not a git repository (or any of the parent directories): .git
78
+
79
+ Here is another example of it showing disk usage: ::
80
+
81
+ $ walker du -cksh
82
+
83
+ walker: in /home/dyu/src/cookiecutter
84
+ 2.1M .
85
+ 2.1M total
86
+
87
+ walker: in /home/dyu/src/couchdb-lucene
88
+ 145M .
89
+ 145M total
90
+
91
+ walker: in /home/dyu/src/dotfiles
92
+ 588K .
93
+ 588K total
94
+
95
+ walker: in /home/dyu/src/es
96
+ 245M .
97
+ 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,10 +17,14 @@ 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
 
@@ -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/master/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,47 @@
1
+ """Tests for the `walker` command."""
2
+
3
+ import os
4
+ import sys
5
+
6
+ from walker import main
7
+
8
+
9
+ def test_runs_command_in_each_child_dir_sorted(tmp_path, monkeypatch, capsys):
10
+ for name in ["b", "A", "c"]:
11
+ (tmp_path / name).mkdir()
12
+ (tmp_path / "a_file.txt").write_text("not a dir")
13
+
14
+ monkeypatch.chdir(tmp_path)
15
+ monkeypatch.setattr(
16
+ sys, "argv", ["walker", sys.executable, "-c", "import os; print(os.getcwd())"]
17
+ )
18
+
19
+ main.main()
20
+
21
+ out = capsys.readouterr().out
22
+ headers = [line for line in out.splitlines() if line.startswith("walker: in ")]
23
+ assert headers == [f"walker: in {tmp_path}/{name}" for name in ["A", "b", "c"]]
24
+
25
+
26
+ def test_returns_to_base_dir(tmp_path, monkeypatch):
27
+ (tmp_path / "child").mkdir()
28
+ monkeypatch.chdir(tmp_path)
29
+ monkeypatch.setattr(sys, "argv", ["walker", sys.executable, "-c", "pass"])
30
+
31
+ main.main()
32
+
33
+ assert os.getcwd() == str(tmp_path)
34
+
35
+
36
+ def test_failed_command_prints_error_and_continues(tmp_path, monkeypatch, capsys):
37
+ for name in ["one", "two"]:
38
+ (tmp_path / name).mkdir()
39
+ monkeypatch.chdir(tmp_path)
40
+ monkeypatch.setattr(
41
+ sys, "argv", ["walker", sys.executable, "-c", "raise SystemExit(1)"]
42
+ )
43
+
44
+ main.main()
45
+
46
+ out = capsys.readouterr().out
47
+ 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.0'
@@ -1,32 +1,33 @@
1
- #!/usr/bin/env python
2
- # -*- coding: utf-8 -*-
3
1
  import os
4
2
  import subprocess
5
3
  import sys
6
4
 
5
+
7
6
  def execute_command(target):
8
7
  os.chdir(target)
9
8
  command = sys.argv[1:]
10
9
  try:
11
10
  subprocess.check_call(command)
12
11
  except Exception as e:
13
- print "ERROR in %s: %s" % (target, e)
12
+ print(f"ERROR in {target}: {e}")
13
+
14
14
 
15
15
  def main():
16
- base = os.getcwdu() + "/"
16
+ base = os.getcwd() + "/"
17
17
  targets = None
18
18
 
19
19
  # Get immediate child directories.
20
- for root, dirs, files in os.walk('.'):
20
+ for _root, dirs, _files in os.walk('.'):
21
21
  targets = dirs
22
22
  break # dirty hack so we only get the first level
23
23
 
24
24
  # Traverse through the directories.
25
25
  for target in sorted(targets, key=lambda s: s.lower()):
26
26
  target_full_path = base + target
27
- print "\nwalker: in %s" % target_full_path
27
+ print(f"\nwalker: in {target_full_path}", flush=True)
28
28
  execute_command(target_full_path)
29
29
  os.chdir(base)
30
30
 
31
+
31
32
  if __name__ == '__main__':
32
33
  main()
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
File without changes