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.
- {foothold-0.1.1 → foothold-0.1.2}/CHANGELOG.md +6 -0
- {foothold-0.1.1 → foothold-0.1.2}/PKG-INFO +1 -1
- {foothold-0.1.1 → foothold-0.1.2}/pyproject.toml +1 -1
- foothold-0.1.2/src/foothold/__init__.py +7 -0
- {foothold-0.1.1 → foothold-0.1.2}/tests/unit/test_cli.py +2 -1
- foothold-0.1.1/src/foothold/__init__.py +0 -3
- {foothold-0.1.1 → foothold-0.1.2}/.foothold.toml +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/.github/ISSUE_TEMPLATE/bug.yml +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/.github/ISSUE_TEMPLATE/ranking.yml +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/.github/workflows/ci.yml +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/.github/workflows/release.yml +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/.gitignore +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/.pre-commit-config.yaml +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/ARCHITECTURE.md +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/CODE_OF_CONDUCT.md +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/CONTRIBUTING.md +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/LICENSE +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/README.md +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/SECURITY.md +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/docs/cost-model.md +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/analyze.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/cli.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/collectors/__init__.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/collectors/git_history.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/collectors/markers.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/collectors/python_ast.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/config.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/graph/__init__.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/graph/build.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/graph/rank.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/issues.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/models.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/narrator/__init__.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/narrator/client.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/render/__init__.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/render/markdown.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/render/mermaid.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/src/foothold/render/terminal.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/tests/conftest.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/tests/fixtures/minirepo/main.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/tests/fixtures/minirepo/pkg/__init__.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/tests/fixtures/minirepo/pkg/api.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/tests/fixtures/minirepo/pkg/core.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/tests/fixtures/minirepo/pkg/util/__init__.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/tests/fixtures/minirepo/pkg/util/helpers.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/tests/fixtures/minirepo/tests/test_core.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/tests/unit/test_git_history.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/tests/unit/test_graph.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/tests/unit/test_rank.py +0 -0
- {foothold-0.1.1 → foothold-0.1.2}/tests/unit/test_render_and_issues.py +0 -0
- {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
|
|
@@ -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
|
|
12
|
+
assert result.stdout.strip() == __version__
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
def test_map_runs_offline(minirepo):
|
|
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
|
|
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
|
|
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
|
|
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
|