autor3search 0.4.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 (77) hide show
  1. autor3search-0.4.0/.github/workflows/ci.yml +27 -0
  2. autor3search-0.4.0/.github/workflows/release.yml +53 -0
  3. autor3search-0.4.0/.gitignore +20 -0
  4. autor3search-0.4.0/LICENSE +21 -0
  5. autor3search-0.4.0/PKG-INFO +592 -0
  6. autor3search-0.4.0/README.md +547 -0
  7. autor3search-0.4.0/pyproject.toml +50 -0
  8. autor3search-0.4.0/src/autor3search/__init__.py +11 -0
  9. autor3search-0.4.0/src/autor3search/benchio.py +250 -0
  10. autor3search-0.4.0/src/autor3search/cli/__init__.py +0 -0
  11. autor3search-0.4.0/src/autor3search/cli/baseline.py +140 -0
  12. autor3search-0.4.0/src/autor3search/cli/doctor.py +53 -0
  13. autor3search-0.4.0/src/autor3search/cli/eval.py +253 -0
  14. autor3search-0.4.0/src/autor3search/cli/init.py +229 -0
  15. autor3search-0.4.0/src/autor3search/cli/main.py +86 -0
  16. autor3search-0.4.0/src/autor3search/cli/profile.py +47 -0
  17. autor3search-0.4.0/src/autor3search/cli/report.py +74 -0
  18. autor3search-0.4.0/src/autor3search/cli/runctx.py +54 -0
  19. autor3search-0.4.0/src/autor3search/cli/status.py +71 -0
  20. autor3search-0.4.0/src/autor3search/cli/stop.py +157 -0
  21. autor3search-0.4.0/src/autor3search/cli/version.py +43 -0
  22. autor3search-0.4.0/src/autor3search/config.py +223 -0
  23. autor3search-0.4.0/src/autor3search/containment.py +71 -0
  24. autor3search-0.4.0/src/autor3search/discover.py +141 -0
  25. autor3search-0.4.0/src/autor3search/doctor.py +586 -0
  26. autor3search-0.4.0/src/autor3search/freeze.py +203 -0
  27. autor3search-0.4.0/src/autor3search/gitx.py +144 -0
  28. autor3search-0.4.0/src/autor3search/measure.py +189 -0
  29. autor3search-0.4.0/src/autor3search/pipeline.py +589 -0
  30. autor3search-0.4.0/src/autor3search/profile.py +283 -0
  31. autor3search-0.4.0/src/autor3search/profiling.py +226 -0
  32. autor3search-0.4.0/src/autor3search/results.py +136 -0
  33. autor3search-0.4.0/src/autor3search/runner.py +463 -0
  34. autor3search-0.4.0/src/autor3search/runstop.py +211 -0
  35. autor3search-0.4.0/src/autor3search/scope.py +62 -0
  36. autor3search-0.4.0/src/autor3search/state.py +177 -0
  37. autor3search-0.4.0/src/autor3search/stats.py +197 -0
  38. autor3search-0.4.0/src/autor3search/templates/__init__.py +10 -0
  39. autor3search-0.4.0/src/autor3search/templates/program.md +389 -0
  40. autor3search-0.4.0/src/autor3search/verdict.py +227 -0
  41. autor3search-0.4.0/src/autor3search/winjob.py +156 -0
  42. autor3search-0.4.0/testdata/demo/README.md +18 -0
  43. autor3search-0.4.0/testdata/demo/fast_wordcount.py.txt +21 -0
  44. autor3search-0.4.0/testdata/demo/test_wordcount.py +25 -0
  45. autor3search-0.4.0/testdata/demo/wordcount.py +16 -0
  46. autor3search-0.4.0/tests/__init__.py +0 -0
  47. autor3search-0.4.0/tests/conftest.py +43 -0
  48. autor3search-0.4.0/tests/test_benchio.py +186 -0
  49. autor3search-0.4.0/tests/test_cli_baseline.py +102 -0
  50. autor3search-0.4.0/tests/test_cli_eval.py +318 -0
  51. autor3search-0.4.0/tests/test_cli_init.py +147 -0
  52. autor3search-0.4.0/tests/test_cli_main.py +65 -0
  53. autor3search-0.4.0/tests/test_cli_report.py +67 -0
  54. autor3search-0.4.0/tests/test_cli_runctx.py +80 -0
  55. autor3search-0.4.0/tests/test_cli_status.py +87 -0
  56. autor3search-0.4.0/tests/test_cli_stop.py +127 -0
  57. autor3search-0.4.0/tests/test_config.py +140 -0
  58. autor3search-0.4.0/tests/test_containment.py +73 -0
  59. autor3search-0.4.0/tests/test_discover.py +105 -0
  60. autor3search-0.4.0/tests/test_doctor.py +446 -0
  61. autor3search-0.4.0/tests/test_e2e.py +172 -0
  62. autor3search-0.4.0/tests/test_freeze.py +163 -0
  63. autor3search-0.4.0/tests/test_gitx.py +126 -0
  64. autor3search-0.4.0/tests/test_measure.py +168 -0
  65. autor3search-0.4.0/tests/test_pipeline.py +861 -0
  66. autor3search-0.4.0/tests/test_profile.py +486 -0
  67. autor3search-0.4.0/tests/test_readme.py +55 -0
  68. autor3search-0.4.0/tests/test_results.py +124 -0
  69. autor3search-0.4.0/tests/test_runner.py +473 -0
  70. autor3search-0.4.0/tests/test_runstop.py +227 -0
  71. autor3search-0.4.0/tests/test_scope.py +52 -0
  72. autor3search-0.4.0/tests/test_state.py +117 -0
  73. autor3search-0.4.0/tests/test_stats.py +130 -0
  74. autor3search-0.4.0/tests/test_templates.py +112 -0
  75. autor3search-0.4.0/tests/test_verdict.py +146 -0
  76. autor3search-0.4.0/tests/test_version.py +8 -0
  77. autor3search-0.4.0/tests/test_winjob.py +75 -0
@@ -0,0 +1,27 @@
1
+ name: ci
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ pull_request:
6
+
7
+ jobs:
8
+ test:
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ os: [ubuntu-latest, macos-latest, windows-latest]
13
+ python: ["3.11", "3.12", "3.13"]
14
+ runs-on: ${{ matrix.os }}
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: actions/setup-python@v5
18
+ with:
19
+ python-version: ${{ matrix.python }}
20
+ - run: python -m pip install -e ".[dev]"
21
+ - run: python -m ruff check .
22
+ - run: python -m ruff format --check .
23
+ - name: test
24
+ run: python -m pytest -m "not slow" -q
25
+ - name: test (slow, real measurement)
26
+ if: matrix.os == 'ubuntu-latest' && matrix.python == '3.13'
27
+ run: python -m pytest -m slow -q
@@ -0,0 +1,53 @@
1
+ name: release
2
+
3
+ # Publishes to PyPI when a v* tag is pushed, through Trusted Publishing:
4
+ # PyPI verifies GitHub's short-lived OIDC token for this repository and this
5
+ # workflow file, so no API token exists to store, leak or rotate.
6
+ #
7
+ # One-time setup on PyPI (project → Publishing → Add a new publisher):
8
+ # PyPI project: autor3search (renamed from autor3search-python; the
9
+ # publisher must be registered as a PENDING publisher until the first
10
+ # release of the new name exists)
11
+ # Owner: autor3search Repository: python
12
+ # Workflow: release.yml Environment: (leave blank)
13
+ #
14
+ # To release: bump `version` in pyproject.toml, commit, then
15
+ # git tag v<version> && git push origin v<version>
16
+ on:
17
+ push:
18
+ tags: ["v*"]
19
+
20
+ jobs:
21
+ publish:
22
+ runs-on: ubuntu-latest
23
+ permissions:
24
+ # The only permission Trusted Publishing needs: mint an OIDC token.
25
+ id-token: write
26
+ steps:
27
+ - uses: actions/checkout@v4
28
+ - uses: actions/setup-python@v5
29
+ with:
30
+ python-version: "3.13"
31
+
32
+ - name: the tag must be the version it claims to be
33
+ # A tag that disagrees with pyproject.toml would publish a version
34
+ # nobody can check out. Refuse rather than guess which one is right.
35
+ run: |
36
+ tag="${GITHUB_REF_NAME#v}"
37
+ version=$(python -c "import pathlib, tomllib; print(tomllib.loads(pathlib.Path('pyproject.toml').read_text())['project']['version'])")
38
+ if [ "$tag" != "$version" ]; then
39
+ echo "tag $GITHUB_REF_NAME does not match pyproject version $version" >&2
40
+ exit 1
41
+ fi
42
+ echo "publishing $version"
43
+
44
+ - run: python -m pip install -e ".[dev]" build
45
+
46
+ # The same gates ci.yml runs. A release is not the place to find out
47
+ # that the tagged commit does not pass them.
48
+ - run: python -m ruff check .
49
+ - run: python -m ruff format --check .
50
+ - run: python -m pytest -m "not slow" -q
51
+
52
+ - run: python -m build
53
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,20 @@
1
+ # Harness output inside a repository being optimized (this repo optimizes
2
+ # nothing, but the demo testdata repo under testdata/ does).
3
+ .autor3search/
4
+ results.tsv
5
+ run.log
6
+
7
+ # Python
8
+ __pycache__/
9
+ *.py[cod]
10
+ .venv/
11
+ venv/
12
+ build/
13
+ dist/
14
+ *.egg-info/
15
+ .pytest_cache/
16
+ .ruff_cache/
17
+ .coverage
18
+
19
+ # Planning artifacts (spec, implementation plan) — kept locally, not published.
20
+ docs/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Gal Be
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.