foothold 0.1.1__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.
Files changed (52) hide show
  1. {foothold-0.1.1 → foothold-0.1.2}/CHANGELOG.md +6 -0
  2. {foothold-0.1.1 → foothold-0.1.2}/PKG-INFO +1 -1
  3. {foothold-0.1.1 → foothold-0.1.2}/pyproject.toml +1 -1
  4. foothold-0.1.2/src/foothold/__init__.py +7 -0
  5. {foothold-0.1.1 → foothold-0.1.2}/tests/unit/test_cli.py +2 -1
  6. foothold-0.1.1/src/foothold/__init__.py +0 -3
  7. {foothold-0.1.1 → foothold-0.1.2}/.foothold.toml +0 -0
  8. {foothold-0.1.1 → foothold-0.1.2}/.github/ISSUE_TEMPLATE/bug.yml +0 -0
  9. {foothold-0.1.1 → foothold-0.1.2}/.github/ISSUE_TEMPLATE/ranking.yml +0 -0
  10. {foothold-0.1.1 → foothold-0.1.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  11. {foothold-0.1.1 → foothold-0.1.2}/.github/workflows/ci.yml +0 -0
  12. {foothold-0.1.1 → foothold-0.1.2}/.github/workflows/release.yml +0 -0
  13. {foothold-0.1.1 → foothold-0.1.2}/.gitignore +0 -0
  14. {foothold-0.1.1 → foothold-0.1.2}/.pre-commit-config.yaml +0 -0
  15. {foothold-0.1.1 → foothold-0.1.2}/ARCHITECTURE.md +0 -0
  16. {foothold-0.1.1 → foothold-0.1.2}/CODE_OF_CONDUCT.md +0 -0
  17. {foothold-0.1.1 → foothold-0.1.2}/CONTRIBUTING.md +0 -0
  18. {foothold-0.1.1 → foothold-0.1.2}/LICENSE +0 -0
  19. {foothold-0.1.1 → foothold-0.1.2}/README.md +0 -0
  20. {foothold-0.1.1 → foothold-0.1.2}/SECURITY.md +0 -0
  21. {foothold-0.1.1 → foothold-0.1.2}/docs/cost-model.md +0 -0
  22. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/analyze.py +0 -0
  23. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/cli.py +0 -0
  24. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/collectors/__init__.py +0 -0
  25. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/collectors/git_history.py +0 -0
  26. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/collectors/markers.py +0 -0
  27. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/collectors/python_ast.py +0 -0
  28. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/config.py +0 -0
  29. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/graph/__init__.py +0 -0
  30. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/graph/build.py +0 -0
  31. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/graph/rank.py +0 -0
  32. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/issues.py +0 -0
  33. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/models.py +0 -0
  34. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/narrator/__init__.py +0 -0
  35. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/narrator/client.py +0 -0
  36. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/render/__init__.py +0 -0
  37. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/render/markdown.py +0 -0
  38. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/render/mermaid.py +0 -0
  39. {foothold-0.1.1 → foothold-0.1.2}/src/foothold/render/terminal.py +0 -0
  40. {foothold-0.1.1 → foothold-0.1.2}/tests/conftest.py +0 -0
  41. {foothold-0.1.1 → foothold-0.1.2}/tests/fixtures/minirepo/main.py +0 -0
  42. {foothold-0.1.1 → foothold-0.1.2}/tests/fixtures/minirepo/pkg/__init__.py +0 -0
  43. {foothold-0.1.1 → foothold-0.1.2}/tests/fixtures/minirepo/pkg/api.py +0 -0
  44. {foothold-0.1.1 → foothold-0.1.2}/tests/fixtures/minirepo/pkg/core.py +0 -0
  45. {foothold-0.1.1 → foothold-0.1.2}/tests/fixtures/minirepo/pkg/util/__init__.py +0 -0
  46. {foothold-0.1.1 → foothold-0.1.2}/tests/fixtures/minirepo/pkg/util/helpers.py +0 -0
  47. {foothold-0.1.1 → foothold-0.1.2}/tests/fixtures/minirepo/tests/test_core.py +0 -0
  48. {foothold-0.1.1 → foothold-0.1.2}/tests/unit/test_git_history.py +0 -0
  49. {foothold-0.1.1 → foothold-0.1.2}/tests/unit/test_graph.py +0 -0
  50. {foothold-0.1.1 → foothold-0.1.2}/tests/unit/test_rank.py +0 -0
  51. {foothold-0.1.1 → foothold-0.1.2}/tests/unit/test_render_and_issues.py +0 -0
  52. {foothold-0.1.1 → foothold-0.1.2}/uv.lock +0 -0
@@ -6,6 +6,12 @@ All notable changes are documented here. Format follows
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.1.2]
10
+
11
+ ### Fixed
12
+
13
+ - `foothold --version` printed a stale number. The version lived in a constant in `__init__.py` that drifted from `pyproject.toml` during the 0.1.1 release. It is now read from package metadata, so the two cannot disagree again.
14
+
9
15
  ## [0.1.1]
10
16
 
11
17
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: foothold
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Turn an unfamiliar repository into a reading path
5
5
  Project-URL: Homepage, https://github.com/serdairy/foothold
6
6
  Project-URL: Issues, https://github.com/serdairy/foothold/issues
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "foothold"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "Turn an unfamiliar repository into a reading path"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -0,0 +1,7 @@
1
+ """Foothold: turn an unfamiliar repository into a reading path."""
2
+
3
+ from importlib.metadata import version
4
+
5
+ # Single source of truth. The version is read from package metadata so it cannot
6
+ # drift from pyproject.toml, which is exactly what happened in v0.1.1.
7
+ __version__ = version("foothold")
@@ -1,5 +1,6 @@
1
1
  from typer.testing import CliRunner
2
2
 
3
+ from foothold import __version__
3
4
  from foothold.cli import app
4
5
 
5
6
  runner = CliRunner()
@@ -8,7 +9,7 @@ runner = CliRunner()
8
9
  def test_version():
9
10
  result = runner.invoke(app, ["--version"])
10
11
  assert result.exit_code == 0
11
- assert "0.1.0" in result.stdout
12
+ assert result.stdout.strip() == __version__
12
13
 
13
14
 
14
15
  def test_map_runs_offline(minirepo):
@@ -1,3 +0,0 @@
1
- """Foothold: turn an unfamiliar repository into a reading path."""
2
-
3
- __version__ = "0.1.0"
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
File without changes
File without changes