walker 0.1.0__tar.gz → 0.1.2__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.
@@ -3,6 +3,17 @@
3
3
  History
4
4
  -------
5
5
 
6
+ 0.1.2 (2026-11-26)
7
+ ---------------------
8
+
9
+ * Releases are now published to PyPI from GitHub Actions.
10
+ * Removed the empty Authors and Contributing pages from the docs.
11
+
12
+ 0.1.1 (2026-11-26)
13
+ ---------------------
14
+
15
+ * Added ``walker --version``.
16
+
6
17
  0.1.0 (2026-11-24)
7
18
  ---------------------
8
19
 
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: walker
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Walker executes the same command on multiple directories.
5
5
  Project-URL: Homepage, https://github.com/darylyu/walker
6
6
  Project-URL: Documentation, https://walker.readthedocs.org
7
7
  Project-URL: Issues, https://github.com/darylyu/walker/issues
8
- Project-URL: Changelog, https://github.com/darylyu/walker/blob/master/HISTORY.rst
8
+ Project-URL: Changelog, https://github.com/darylyu/walker/blob/main/HISTORY.rst
9
9
  Author-email: "D. Yu" <dyu+honeypot@fastmail.fm>
10
10
  License-Expression: BSD-3-Clause
11
11
  License-File: LICENSE
@@ -54,6 +54,9 @@ Usage
54
54
 
55
55
  Walker only gets the immediate children of the current directory.
56
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
+
57
60
  Here is an example of it showing showing the status of different
58
61
  git repositories: ::
59
62
 
@@ -30,6 +30,9 @@ Usage
30
30
 
31
31
  Walker only gets the immediate children of the current directory.
32
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
+
33
36
  Here is an example of it showing showing the status of different
34
37
  git repositories: ::
35
38
 
@@ -14,8 +14,6 @@ Contents:
14
14
  readme
15
15
  installation
16
16
  usage
17
- contributing
18
- authors
19
17
  history
20
18
 
21
19
  Indices and tables
@@ -28,7 +28,7 @@ classifiers = [
28
28
  Homepage = "https://github.com/darylyu/walker"
29
29
  Documentation = "https://walker.readthedocs.org"
30
30
  Issues = "https://github.com/darylyu/walker/issues"
31
- Changelog = "https://github.com/darylyu/walker/blob/master/HISTORY.rst"
31
+ Changelog = "https://github.com/darylyu/walker/blob/main/HISTORY.rst"
32
32
 
33
33
  [project.scripts]
34
34
  walker = "walker.main:main"
@@ -45,8 +45,6 @@ include = [
45
45
  "walker",
46
46
  "tests",
47
47
  "docs",
48
- "AUTHORS.rst",
49
- "CONTRIBUTING.rst",
50
48
  "HISTORY.rst",
51
49
  "README.rst",
52
50
  ]
@@ -3,7 +3,32 @@
3
3
  import os
4
4
  import sys
5
5
 
6
- from walker import main
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
7
32
 
8
33
 
9
34
  def test_runs_command_in_each_child_dir_sorted(tmp_path, monkeypatch, capsys):
@@ -1,3 +1,3 @@
1
1
  __author__ = 'D. Yu'
2
2
  __email__ = 'dyu+honeypot@fastmail.fm'
3
- __version__ = '0.1.0'
3
+ __version__ = '0.1.2'
@@ -2,6 +2,8 @@ import os
2
2
  import subprocess
3
3
  import sys
4
4
 
5
+ from walker import __version__
6
+
5
7
 
6
8
  def execute_command(target):
7
9
  os.chdir(target)
@@ -13,6 +15,10 @@ def execute_command(target):
13
15
 
14
16
 
15
17
  def main():
18
+ if sys.argv[1:2] == ['--version']:
19
+ print(f"walker {__version__}")
20
+ return
21
+
16
22
  base = os.getcwd() + "/"
17
23
  targets = None
18
24
 
walker-0.1.0/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,109 +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. 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::
67
-
68
- $ cd walker/
69
- $ uv sync
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 ruff and the tests, including testing other Python versions with tox::
78
-
79
- $ make lint
80
- $ make test
81
- $ make test-all
82
-
83
- 6. Commit your changes and push your branch to GitHub::
84
-
85
- $ git add .
86
- $ git commit -m "Your detailed description of your changes."
87
- $ git push origin name-of-your-bugfix-or-feature
88
-
89
- 7. Submit a pull request through the GitHub website.
90
-
91
- Pull Request Guidelines
92
- -----------------------
93
-
94
- Before you submit a pull request, check that it meets these guidelines:
95
-
96
- 1. The pull request should include tests.
97
- 2. If the pull request adds functionality, the docs should be updated. Put
98
- your new functionality into a function with a docstring, and add the
99
- feature to the list in README.rst.
100
- 3. The pull request should work for Python 3.11 and newer. Check
101
- https://github.com/darylyu/walker/actions
102
- and make sure that the tests pass for all supported Python versions.
103
-
104
- Tips
105
- ----
106
-
107
- To run a subset of tests::
108
-
109
- $ uv run pytest tests/test_walker.py
@@ -1 +0,0 @@
1
- .. include:: ../AUTHORS.rst
@@ -1 +0,0 @@
1
- .. include:: ../CONTRIBUTING.rst
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
File without changes