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.
- autor3search-0.4.0/.github/workflows/ci.yml +27 -0
- autor3search-0.4.0/.github/workflows/release.yml +53 -0
- autor3search-0.4.0/.gitignore +20 -0
- autor3search-0.4.0/LICENSE +21 -0
- autor3search-0.4.0/PKG-INFO +592 -0
- autor3search-0.4.0/README.md +547 -0
- autor3search-0.4.0/pyproject.toml +50 -0
- autor3search-0.4.0/src/autor3search/__init__.py +11 -0
- autor3search-0.4.0/src/autor3search/benchio.py +250 -0
- autor3search-0.4.0/src/autor3search/cli/__init__.py +0 -0
- autor3search-0.4.0/src/autor3search/cli/baseline.py +140 -0
- autor3search-0.4.0/src/autor3search/cli/doctor.py +53 -0
- autor3search-0.4.0/src/autor3search/cli/eval.py +253 -0
- autor3search-0.4.0/src/autor3search/cli/init.py +229 -0
- autor3search-0.4.0/src/autor3search/cli/main.py +86 -0
- autor3search-0.4.0/src/autor3search/cli/profile.py +47 -0
- autor3search-0.4.0/src/autor3search/cli/report.py +74 -0
- autor3search-0.4.0/src/autor3search/cli/runctx.py +54 -0
- autor3search-0.4.0/src/autor3search/cli/status.py +71 -0
- autor3search-0.4.0/src/autor3search/cli/stop.py +157 -0
- autor3search-0.4.0/src/autor3search/cli/version.py +43 -0
- autor3search-0.4.0/src/autor3search/config.py +223 -0
- autor3search-0.4.0/src/autor3search/containment.py +71 -0
- autor3search-0.4.0/src/autor3search/discover.py +141 -0
- autor3search-0.4.0/src/autor3search/doctor.py +586 -0
- autor3search-0.4.0/src/autor3search/freeze.py +203 -0
- autor3search-0.4.0/src/autor3search/gitx.py +144 -0
- autor3search-0.4.0/src/autor3search/measure.py +189 -0
- autor3search-0.4.0/src/autor3search/pipeline.py +589 -0
- autor3search-0.4.0/src/autor3search/profile.py +283 -0
- autor3search-0.4.0/src/autor3search/profiling.py +226 -0
- autor3search-0.4.0/src/autor3search/results.py +136 -0
- autor3search-0.4.0/src/autor3search/runner.py +463 -0
- autor3search-0.4.0/src/autor3search/runstop.py +211 -0
- autor3search-0.4.0/src/autor3search/scope.py +62 -0
- autor3search-0.4.0/src/autor3search/state.py +177 -0
- autor3search-0.4.0/src/autor3search/stats.py +197 -0
- autor3search-0.4.0/src/autor3search/templates/__init__.py +10 -0
- autor3search-0.4.0/src/autor3search/templates/program.md +389 -0
- autor3search-0.4.0/src/autor3search/verdict.py +227 -0
- autor3search-0.4.0/src/autor3search/winjob.py +156 -0
- autor3search-0.4.0/testdata/demo/README.md +18 -0
- autor3search-0.4.0/testdata/demo/fast_wordcount.py.txt +21 -0
- autor3search-0.4.0/testdata/demo/test_wordcount.py +25 -0
- autor3search-0.4.0/testdata/demo/wordcount.py +16 -0
- autor3search-0.4.0/tests/__init__.py +0 -0
- autor3search-0.4.0/tests/conftest.py +43 -0
- autor3search-0.4.0/tests/test_benchio.py +186 -0
- autor3search-0.4.0/tests/test_cli_baseline.py +102 -0
- autor3search-0.4.0/tests/test_cli_eval.py +318 -0
- autor3search-0.4.0/tests/test_cli_init.py +147 -0
- autor3search-0.4.0/tests/test_cli_main.py +65 -0
- autor3search-0.4.0/tests/test_cli_report.py +67 -0
- autor3search-0.4.0/tests/test_cli_runctx.py +80 -0
- autor3search-0.4.0/tests/test_cli_status.py +87 -0
- autor3search-0.4.0/tests/test_cli_stop.py +127 -0
- autor3search-0.4.0/tests/test_config.py +140 -0
- autor3search-0.4.0/tests/test_containment.py +73 -0
- autor3search-0.4.0/tests/test_discover.py +105 -0
- autor3search-0.4.0/tests/test_doctor.py +446 -0
- autor3search-0.4.0/tests/test_e2e.py +172 -0
- autor3search-0.4.0/tests/test_freeze.py +163 -0
- autor3search-0.4.0/tests/test_gitx.py +126 -0
- autor3search-0.4.0/tests/test_measure.py +168 -0
- autor3search-0.4.0/tests/test_pipeline.py +861 -0
- autor3search-0.4.0/tests/test_profile.py +486 -0
- autor3search-0.4.0/tests/test_readme.py +55 -0
- autor3search-0.4.0/tests/test_results.py +124 -0
- autor3search-0.4.0/tests/test_runner.py +473 -0
- autor3search-0.4.0/tests/test_runstop.py +227 -0
- autor3search-0.4.0/tests/test_scope.py +52 -0
- autor3search-0.4.0/tests/test_state.py +117 -0
- autor3search-0.4.0/tests/test_stats.py +130 -0
- autor3search-0.4.0/tests/test_templates.py +112 -0
- autor3search-0.4.0/tests/test_verdict.py +146 -0
- autor3search-0.4.0/tests/test_version.py +8 -0
- 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.
|