hegeltest 0.1.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.
- hegeltest-0.1.0/AGENTS.md +58 -0
- hegeltest-0.1.0/CHANGELOG.md +8 -0
- hegeltest-0.1.0/Cargo.lock +401 -0
- hegeltest-0.1.0/Cargo.toml +23 -0
- hegeltest-0.1.0/LICENSE +21 -0
- hegeltest-0.1.0/PKG-INFO +245 -0
- hegeltest-0.1.0/README.md +215 -0
- hegeltest-0.1.0/docs/comparison-with-hypothesis.md +153 -0
- hegeltest-0.1.0/docs/engine-issues.md +144 -0
- hegeltest-0.1.0/justfile +52 -0
- hegeltest-0.1.0/pyproject.toml +109 -0
- hegeltest-0.1.0/python/hegel/__init__.py +115 -0
- hegeltest-0.1.0/python/hegel/_draw_names.py +149 -0
- hegeltest-0.1.0/python/hegel/_labels.py +39 -0
- hegeltest-0.1.0/python/hegel/_native.pyi +231 -0
- hegeltest-0.1.0/python/hegel/errors.py +89 -0
- hegeltest-0.1.0/python/hegel/explicit.py +93 -0
- hegeltest-0.1.0/python/hegel/generators/__init__.py +93 -0
- hegeltest-0.1.0/python/hegel/generators/base.py +231 -0
- hegeltest-0.1.0/python/hegel/generators/collections.py +648 -0
- hegeltest-0.1.0/python/hegel/generators/combinators.py +282 -0
- hegeltest-0.1.0/python/hegel/generators/composite.py +140 -0
- hegeltest-0.1.0/python/hegel/generators/from_type.py +487 -0
- hegeltest-0.1.0/python/hegel/generators/numeric.py +345 -0
- hegeltest-0.1.0/python/hegel/generators/recursive.py +219 -0
- hegeltest-0.1.0/python/hegel/generators/strings.py +550 -0
- hegeltest-0.1.0/python/hegel/generators/time.py +211 -0
- hegeltest-0.1.0/python/hegel/pretty.py +180 -0
- hegeltest-0.1.0/python/hegel/py.typed +0 -0
- hegeltest-0.1.0/python/hegel/pytest_plugin.py +87 -0
- hegeltest-0.1.0/python/hegel/runner.py +739 -0
- hegeltest-0.1.0/python/hegel/settings.py +321 -0
- hegeltest-0.1.0/python/hegel/stateful.py +867 -0
- hegeltest-0.1.0/python/hegel/test_case.py +565 -0
- hegeltest-0.1.0/src/lib.rs +375 -0
- hegeltest-0.1.0/src/printer.rs +174 -0
- hegeltest-0.1.0/src/settings.rs +246 -0
- hegeltest-0.1.0/src/strings.rs +129 -0
- hegeltest-0.1.0/src/test_case.rs +846 -0
- hegeltest-0.1.0/tests/__init__.py +0 -0
- hegeltest-0.1.0/tests/conftest.py +49 -0
- hegeltest-0.1.0/tests/helpers.py +93 -0
- hegeltest-0.1.0/tests/hypothesis_port/README.md +23 -0
- hegeltest-0.1.0/tests/hypothesis_port/__init__.py +0 -0
- hegeltest-0.1.0/tests/hypothesis_port/common/__init__.py +78 -0
- hegeltest-0.1.0/tests/hypothesis_port/common/arguments.py +29 -0
- hegeltest-0.1.0/tests/hypothesis_port/common/compat.py +142 -0
- hegeltest-0.1.0/tests/hypothesis_port/common/debug.py +168 -0
- hegeltest-0.1.0/tests/hypothesis_port/common/strategies.py +40 -0
- hegeltest-0.1.0/tests/hypothesis_port/common/types.py +91 -0
- hegeltest-0.1.0/tests/hypothesis_port/common/utils.py +249 -0
- hegeltest-0.1.0/tests/hypothesis_port/conftest.py +33 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/__init__.py +0 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_arbitrary_data.py +58 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_asyncio.py +25 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_composite.py +166 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_composite_kwonlyargs.py +25 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_control.py +67 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_core.py +122 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_custom_reprs.py +195 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_datetimes.py +232 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_deferred_strategies.py +99 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_detection.py +57 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_direct_strategies.py +478 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_draw_values.py +25 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_error_in_draw.py +64 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_exceptiongroup.py +44 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_explicit_examples.py +234 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_failing_test_case_output.py +40 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_flakiness.py +218 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_float_nastiness.py +289 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_given_error_conditions.py +82 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_health_checks.py +164 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_lookup.py +777 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_lookup_py310.py +18 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_lookup_py38.py +154 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_lookup_py39.py +98 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_mock.py +41 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_nothing.py +30 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_numerics.py +79 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_one_of.py +61 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_permutations.py +35 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_phases.py +115 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_provisional_strategies.py +59 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_recursive.py +120 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_regex.py +653 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_regressions.py +151 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_replay_logic.py +138 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_reporting.py +52 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_reproduce_failure.py +198 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_sampled_from.py +174 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_searchstrategy.py +81 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_settings.py +358 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_simple_characters.py +153 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_simple_collections.py +171 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_simple_strings.py +120 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_slippage.py +248 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_stateful.py +891 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_statistical_events.py +82 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_subnormal_floats.py +100 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_targeting.py +117 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_testdecorators.py +515 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_threading.py +41 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_traceback_elision.py +44 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_type_lookup.py +392 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_type_lookup_forward_ref.py +150 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_typealias_py312.py +130 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_unittest.py +43 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_uuids.py +40 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_validation.py +124 -0
- hegeltest-0.1.0/tests/hypothesis_port/cover/test_verbosity.py +118 -0
- hegeltest-0.1.0/tests/hypothesis_port/datetime/__init__.py +0 -0
- hegeltest-0.1.0/tests/hypothesis_port/datetime/test_zoneinfo_timezones.py +94 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/__init__.py +0 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_argument_validation.py +68 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_bad_repr.py +65 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_baseexception.py +135 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_boundary_exploration.py +37 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_build_signature.py +115 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_characters.py +45 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_emails.py +26 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_exceptiongroup.py +174 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_filtering.py +69 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_flatmap.py +104 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_floating.py +148 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_from_type_recipe.py +45 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_given_error_conditions.py +21 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_given_reuse.py +44 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_health_checks.py +84 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_integer_ranges.py +90 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_interesting_origin.py +62 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_large_values.py +16 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_limits.py +25 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_pretty_repr.py +100 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_recursive.py +157 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_regex.py +121 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_regressions.py +34 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_sampled_from.py +137 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_sets.py +30 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_simple_numbers.py +223 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_simple_strings.py +20 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_skipping.py +46 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_stateful.py +250 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_strategy_state.py +172 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_subnormal_floats.py +58 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_targeting.py +85 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_testdecorators.py +55 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_threading.py +146 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_type_lookup.py +83 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_type_lookup_forward_ref.py +37 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_type_lookup_future_annotations.py +38 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_unusual_settings_configs.py +30 -0
- hegeltest-0.1.0/tests/hypothesis_port/nocover/test_uuids.py +24 -0
- hegeltest-0.1.0/tests/hypothesis_port/quality/__init__.py +0 -0
- hegeltest-0.1.0/tests/hypothesis_port/quality/test_deferred_strategies.py +44 -0
- hegeltest-0.1.0/tests/hypothesis_port/quality/test_float_shrinking.py +50 -0
- hegeltest-0.1.0/tests/hypothesis_port/quality/test_integers.py +28 -0
- hegeltest-0.1.0/tests/hypothesis_port/quality/test_shrink_quality.py +564 -0
- hegeltest-0.1.0/tests/hypothesis_port/quality/test_targeting_quality.py +60 -0
- hegeltest-0.1.0/tests/test_compat_hooks.py +166 -0
- hegeltest-0.1.0/tests/test_draw_names.py +96 -0
- hegeltest-0.1.0/tests/test_engine_issues.py +62 -0
- hegeltest-0.1.0/tests/test_explicit_and_errors.py +116 -0
- hegeltest-0.1.0/tests/test_generators_collections.py +331 -0
- hegeltest-0.1.0/tests/test_generators_combinators.py +301 -0
- hegeltest-0.1.0/tests/test_generators_composite.py +127 -0
- hegeltest-0.1.0/tests/test_generators_from_type.py +544 -0
- hegeltest-0.1.0/tests/test_generators_numeric.py +276 -0
- hegeltest-0.1.0/tests/test_generators_recursive.py +201 -0
- hegeltest-0.1.0/tests/test_generators_strings.py +269 -0
- hegeltest-0.1.0/tests/test_generators_time.py +137 -0
- hegeltest-0.1.0/tests/test_labels.py +20 -0
- hegeltest-0.1.0/tests/test_pretty.py +157 -0
- hegeltest-0.1.0/tests/test_pytest_plugin.py +76 -0
- hegeltest-0.1.0/tests/test_runner.py +1091 -0
- hegeltest-0.1.0/tests/test_settings.py +204 -0
- hegeltest-0.1.0/tests/test_stateful.py +718 -0
- hegeltest-0.1.0/tests/test_test_case.py +398 -0
- hegeltest-0.1.0/uv.lock +554 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
Guidance for coding agents (and people) working in this repository.
|
|
4
|
+
|
|
5
|
+
hegel-python is the Python binding of the Hegel property-based testing engine,
|
|
6
|
+
distributed as the `hegeltest` package and imported as `hegel`.
|
|
7
|
+
The engine is libhegel, built from source from the `hegeltest-c` crate (pinned
|
|
8
|
+
exactly in `Cargo.toml`) into a pyo3 extension module, `hegel._native`
|
|
9
|
+
(`src/*.rs`). The Python package lives in `python/hegel/`, and
|
|
10
|
+
`tests/hypothesis_port/` is Hypothesis's own test suite ported to the Hegel
|
|
11
|
+
API (see its README for the conventions).
|
|
12
|
+
|
|
13
|
+
## Workflow
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
just setup # create .venv (uv) and build the extension (maturin develop)
|
|
17
|
+
just build # rebuild the extension after changing src/
|
|
18
|
+
just test tests/test_x.py # run some tests (pytest arguments pass through)
|
|
19
|
+
just format # ruff format + fix, cargo fmt
|
|
20
|
+
just check # everything CI checks; must pass before you commit
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`just check` runs `check-format`, `check-lint` (ruff, clippy), `check-types`
|
|
24
|
+
(mypy), `check-release-script`, `check-coverage` and `check-hypothesis-port`.
|
|
25
|
+
Plain cargo commands use the interpreter in `.venv` (see `.cargo/config.toml`),
|
|
26
|
+
so run `just setup` first.
|
|
27
|
+
|
|
28
|
+
## Rules
|
|
29
|
+
|
|
30
|
+
- **Coverage is 100%.** `just check-coverage` requires full line and branch
|
|
31
|
+
coverage of `python/hegel` from the package's own tests (`tests/`, without
|
|
32
|
+
the ported suite). Cover new code with tests; mark genuinely unreachable
|
|
33
|
+
lines `# nocov` rather than lowering the bar. Code that only some Python
|
|
34
|
+
versions reach is marked `# unreachable on py3.X` instead, which excludes
|
|
35
|
+
it only when `just check-coverage` runs on 3.X.
|
|
36
|
+
- **Engine divergences are not worked around.** When libhegel behaves
|
|
37
|
+
differently from what Python's `re` or Hypothesis would do, record it in
|
|
38
|
+
`docs/engine-issues.md` and mark the affected test `xfail` (strict, so it
|
|
39
|
+
flags when the engine is fixed), instead of papering over it in the
|
|
40
|
+
bindings. The fix belongs in the engine.
|
|
41
|
+
- **Releases are currently switched off** (the `release` job in `ci.yml` and
|
|
42
|
+
the `check-release` workflow are disabled with `if: false`) while the
|
|
43
|
+
project is shared internally. The rest of this item describes how they
|
|
44
|
+
work once switched back on.
|
|
45
|
+
- **Every PR that changes what ships needs a `RELEASE.md`.** That means any
|
|
46
|
+
change to `src/`, `python/hegel/`, `Cargo.toml` or `Cargo.lock`. See
|
|
47
|
+
`RELEASE-sample.md` for the format and the semver rules (on 0.x, breaking
|
|
48
|
+
changes are `minor`, everything else `patch`). CI checks this
|
|
49
|
+
(`.github/scripts/release.py check`); on merge to main the release job bumps
|
|
50
|
+
the version, moves the text into `CHANGELOG.md`, tags and cuts a GitHub
|
|
51
|
+
release.
|
|
52
|
+
- **The version lives in `Cargo.toml` only.** `pyproject.toml` declares it
|
|
53
|
+
dynamic (maturin reads Cargo.toml) and `hegel.__version__` reads the
|
|
54
|
+
installed metadata. Don't edit it by hand; the release job does.
|
|
55
|
+
- **Engine bumps** go through `.github/workflows/bump-hegel-rust.yml`, which
|
|
56
|
+
rewrites the `hegeltest-c` pin, updates `Cargo.lock`, and opens a PR. To do
|
|
57
|
+
it by hand: change the `=X.Y.Z` pin, run `cargo update -p hegeltest-c`, and
|
|
58
|
+
update the version named at the top of `docs/engine-issues.md`.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0 - unreleased
|
|
4
|
+
|
|
5
|
+
Initial release of Hegel for Python: bindings to libhegel (`hegeltest-c` 0.45.13)
|
|
6
|
+
through a pyo3 extension module, the `hegel` API (`@hegel.test`, generators,
|
|
7
|
+
explicit test cases, failure reproduction, sequential and concurrent stateful
|
|
8
|
+
testing) and a pytest plugin.
|
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "adler2"
|
|
7
|
+
version = "2.0.1"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "autocfg"
|
|
13
|
+
version = "1.5.1"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "bitflags"
|
|
19
|
+
version = "2.13.2"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "cfg-if"
|
|
25
|
+
version = "1.0.5"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
28
|
+
|
|
29
|
+
[[package]]
|
|
30
|
+
name = "dashu-base"
|
|
31
|
+
version = "0.6.1"
|
|
32
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
+
checksum = "861a614e79388a4c72aa66b0bdabc91e3a4f30d53e0c8d962953e207d75884d0"
|
|
34
|
+
dependencies = [
|
|
35
|
+
"num-modular",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[[package]]
|
|
39
|
+
name = "dashu-int"
|
|
40
|
+
version = "0.6.2"
|
|
41
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
42
|
+
checksum = "64a0490b40a6a3f6427970035f17f76fd59c01d3cd9f9140809672863a0d64c8"
|
|
43
|
+
dependencies = [
|
|
44
|
+
"cfg-if",
|
|
45
|
+
"dashu-base",
|
|
46
|
+
"num-modular",
|
|
47
|
+
"static_assertions",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
[[package]]
|
|
51
|
+
name = "errno"
|
|
52
|
+
version = "0.3.14"
|
|
53
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
54
|
+
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
|
|
55
|
+
dependencies = [
|
|
56
|
+
"libc",
|
|
57
|
+
"windows-sys",
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
[[package]]
|
|
61
|
+
name = "hashbrown"
|
|
62
|
+
version = "0.17.1"
|
|
63
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
64
|
+
checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
|
|
65
|
+
|
|
66
|
+
[[package]]
|
|
67
|
+
name = "heck"
|
|
68
|
+
version = "0.5.0"
|
|
69
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
70
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
71
|
+
|
|
72
|
+
[[package]]
|
|
73
|
+
name = "hegel-python"
|
|
74
|
+
version = "0.1.0"
|
|
75
|
+
dependencies = [
|
|
76
|
+
"hegeltest-c",
|
|
77
|
+
"num-bigint",
|
|
78
|
+
"pyo3",
|
|
79
|
+
]
|
|
80
|
+
|
|
81
|
+
[[package]]
|
|
82
|
+
name = "hegeltest-c"
|
|
83
|
+
version = "0.45.13"
|
|
84
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
85
|
+
checksum = "2b1c7c535711557c14b3dff4014a1a93fe25659ed620ec388c728e85da33d066"
|
|
86
|
+
dependencies = [
|
|
87
|
+
"dashu-int",
|
|
88
|
+
"hashbrown",
|
|
89
|
+
"libm",
|
|
90
|
+
"miniz_oxide",
|
|
91
|
+
"once_cell",
|
|
92
|
+
"rand",
|
|
93
|
+
"rustc-hash",
|
|
94
|
+
"rustix",
|
|
95
|
+
"toml",
|
|
96
|
+
"windows-sys",
|
|
97
|
+
]
|
|
98
|
+
|
|
99
|
+
[[package]]
|
|
100
|
+
name = "libc"
|
|
101
|
+
version = "0.2.190"
|
|
102
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
103
|
+
checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
|
|
104
|
+
|
|
105
|
+
[[package]]
|
|
106
|
+
name = "libm"
|
|
107
|
+
version = "0.2.16"
|
|
108
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
109
|
+
checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
|
|
110
|
+
|
|
111
|
+
[[package]]
|
|
112
|
+
name = "linux-raw-sys"
|
|
113
|
+
version = "0.12.1"
|
|
114
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
115
|
+
checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
|
116
|
+
|
|
117
|
+
[[package]]
|
|
118
|
+
name = "miniz_oxide"
|
|
119
|
+
version = "0.8.9"
|
|
120
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
121
|
+
checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
|
|
122
|
+
dependencies = [
|
|
123
|
+
"adler2",
|
|
124
|
+
]
|
|
125
|
+
|
|
126
|
+
[[package]]
|
|
127
|
+
name = "num-bigint"
|
|
128
|
+
version = "0.4.8"
|
|
129
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
130
|
+
checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
|
|
131
|
+
dependencies = [
|
|
132
|
+
"num-integer",
|
|
133
|
+
"num-traits",
|
|
134
|
+
]
|
|
135
|
+
|
|
136
|
+
[[package]]
|
|
137
|
+
name = "num-integer"
|
|
138
|
+
version = "0.1.47"
|
|
139
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
140
|
+
checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
|
|
141
|
+
dependencies = [
|
|
142
|
+
"num-traits",
|
|
143
|
+
]
|
|
144
|
+
|
|
145
|
+
[[package]]
|
|
146
|
+
name = "num-modular"
|
|
147
|
+
version = "0.6.6"
|
|
148
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
149
|
+
checksum = "26ac76200f74e658124f95fa63e1a82b2fd2181c5b2fdde80b3d89d2d3f905e7"
|
|
150
|
+
|
|
151
|
+
[[package]]
|
|
152
|
+
name = "num-traits"
|
|
153
|
+
version = "0.2.19"
|
|
154
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
155
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
156
|
+
dependencies = [
|
|
157
|
+
"autocfg",
|
|
158
|
+
]
|
|
159
|
+
|
|
160
|
+
[[package]]
|
|
161
|
+
name = "once_cell"
|
|
162
|
+
version = "1.21.4"
|
|
163
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
164
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
165
|
+
|
|
166
|
+
[[package]]
|
|
167
|
+
name = "portable-atomic"
|
|
168
|
+
version = "1.15.0"
|
|
169
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
170
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
171
|
+
|
|
172
|
+
[[package]]
|
|
173
|
+
name = "proc-macro2"
|
|
174
|
+
version = "1.0.107"
|
|
175
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
176
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
177
|
+
dependencies = [
|
|
178
|
+
"unicode-ident",
|
|
179
|
+
]
|
|
180
|
+
|
|
181
|
+
[[package]]
|
|
182
|
+
name = "pyo3"
|
|
183
|
+
version = "0.29.3"
|
|
184
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
185
|
+
checksum = "700d18fa267b73b9b521fd7e13580e2f446916f176cacee1ab63fcc8191f1655"
|
|
186
|
+
dependencies = [
|
|
187
|
+
"libc",
|
|
188
|
+
"num-bigint",
|
|
189
|
+
"num-traits",
|
|
190
|
+
"once_cell",
|
|
191
|
+
"portable-atomic",
|
|
192
|
+
"pyo3-build-config",
|
|
193
|
+
"pyo3-ffi",
|
|
194
|
+
"pyo3-macros",
|
|
195
|
+
]
|
|
196
|
+
|
|
197
|
+
[[package]]
|
|
198
|
+
name = "pyo3-build-config"
|
|
199
|
+
version = "0.29.3"
|
|
200
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
201
|
+
checksum = "7b3fc0c4d08f6bb10e71fe39dfb9e2f59c6eb6854e22ec8092f50c69a4499adb"
|
|
202
|
+
dependencies = [
|
|
203
|
+
"target-lexicon",
|
|
204
|
+
]
|
|
205
|
+
|
|
206
|
+
[[package]]
|
|
207
|
+
name = "pyo3-ffi"
|
|
208
|
+
version = "0.29.3"
|
|
209
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
210
|
+
checksum = "dfc0b8e19df29aad7086cf977bb0c2a2f143e30567eb113e9cf72b62ca698330"
|
|
211
|
+
dependencies = [
|
|
212
|
+
"libc",
|
|
213
|
+
"pyo3-build-config",
|
|
214
|
+
]
|
|
215
|
+
|
|
216
|
+
[[package]]
|
|
217
|
+
name = "pyo3-macros"
|
|
218
|
+
version = "0.29.3"
|
|
219
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
220
|
+
checksum = "6100e8a4b5eba53afaa5ed078364851a0b2499c553a44c31026b929049b49dc6"
|
|
221
|
+
dependencies = [
|
|
222
|
+
"proc-macro2",
|
|
223
|
+
"pyo3-macros-backend",
|
|
224
|
+
"quote",
|
|
225
|
+
"syn 2.0.119",
|
|
226
|
+
]
|
|
227
|
+
|
|
228
|
+
[[package]]
|
|
229
|
+
name = "pyo3-macros-backend"
|
|
230
|
+
version = "0.29.3"
|
|
231
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
232
|
+
checksum = "6143877a16e82b5a727b7127ff4cd86858a24a28d745d72f43e6f227c7b1bdb3"
|
|
233
|
+
dependencies = [
|
|
234
|
+
"heck",
|
|
235
|
+
"proc-macro2",
|
|
236
|
+
"quote",
|
|
237
|
+
"syn 2.0.119",
|
|
238
|
+
]
|
|
239
|
+
|
|
240
|
+
[[package]]
|
|
241
|
+
name = "quote"
|
|
242
|
+
version = "1.0.47"
|
|
243
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
244
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
245
|
+
dependencies = [
|
|
246
|
+
"proc-macro2",
|
|
247
|
+
]
|
|
248
|
+
|
|
249
|
+
[[package]]
|
|
250
|
+
name = "rand"
|
|
251
|
+
version = "0.10.3"
|
|
252
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
253
|
+
checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af"
|
|
254
|
+
dependencies = [
|
|
255
|
+
"rand_core",
|
|
256
|
+
]
|
|
257
|
+
|
|
258
|
+
[[package]]
|
|
259
|
+
name = "rand_core"
|
|
260
|
+
version = "0.10.1"
|
|
261
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
262
|
+
checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
|
|
263
|
+
|
|
264
|
+
[[package]]
|
|
265
|
+
name = "rustc-hash"
|
|
266
|
+
version = "2.1.3"
|
|
267
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
268
|
+
checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
|
|
269
|
+
|
|
270
|
+
[[package]]
|
|
271
|
+
name = "rustix"
|
|
272
|
+
version = "1.1.5"
|
|
273
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
274
|
+
checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d"
|
|
275
|
+
dependencies = [
|
|
276
|
+
"bitflags",
|
|
277
|
+
"errno",
|
|
278
|
+
"libc",
|
|
279
|
+
"linux-raw-sys",
|
|
280
|
+
"windows-sys",
|
|
281
|
+
]
|
|
282
|
+
|
|
283
|
+
[[package]]
|
|
284
|
+
name = "serde_core"
|
|
285
|
+
version = "1.0.229"
|
|
286
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
287
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
288
|
+
dependencies = [
|
|
289
|
+
"serde_derive",
|
|
290
|
+
]
|
|
291
|
+
|
|
292
|
+
[[package]]
|
|
293
|
+
name = "serde_derive"
|
|
294
|
+
version = "1.0.229"
|
|
295
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
296
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
297
|
+
dependencies = [
|
|
298
|
+
"proc-macro2",
|
|
299
|
+
"quote",
|
|
300
|
+
"syn 3.0.6",
|
|
301
|
+
]
|
|
302
|
+
|
|
303
|
+
[[package]]
|
|
304
|
+
name = "serde_spanned"
|
|
305
|
+
version = "1.1.1"
|
|
306
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
307
|
+
checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"
|
|
308
|
+
dependencies = [
|
|
309
|
+
"serde_core",
|
|
310
|
+
]
|
|
311
|
+
|
|
312
|
+
[[package]]
|
|
313
|
+
name = "static_assertions"
|
|
314
|
+
version = "1.1.0"
|
|
315
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
316
|
+
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
|
317
|
+
|
|
318
|
+
[[package]]
|
|
319
|
+
name = "syn"
|
|
320
|
+
version = "2.0.119"
|
|
321
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
322
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
323
|
+
dependencies = [
|
|
324
|
+
"proc-macro2",
|
|
325
|
+
"quote",
|
|
326
|
+
"unicode-ident",
|
|
327
|
+
]
|
|
328
|
+
|
|
329
|
+
[[package]]
|
|
330
|
+
name = "syn"
|
|
331
|
+
version = "3.0.6"
|
|
332
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
333
|
+
checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
|
|
334
|
+
dependencies = [
|
|
335
|
+
"proc-macro2",
|
|
336
|
+
"quote",
|
|
337
|
+
"unicode-ident",
|
|
338
|
+
]
|
|
339
|
+
|
|
340
|
+
[[package]]
|
|
341
|
+
name = "target-lexicon"
|
|
342
|
+
version = "0.13.5"
|
|
343
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
344
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
345
|
+
|
|
346
|
+
[[package]]
|
|
347
|
+
name = "toml"
|
|
348
|
+
version = "1.1.6+spec-1.1.0"
|
|
349
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
350
|
+
checksum = "920602543f0911ab71da12c50d59701da54c196d1a2bf5cb4b75667f137a406a"
|
|
351
|
+
dependencies = [
|
|
352
|
+
"serde_spanned",
|
|
353
|
+
"toml_datetime",
|
|
354
|
+
"toml_parser",
|
|
355
|
+
"winnow",
|
|
356
|
+
]
|
|
357
|
+
|
|
358
|
+
[[package]]
|
|
359
|
+
name = "toml_datetime"
|
|
360
|
+
version = "1.1.1+spec-1.1.0"
|
|
361
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
362
|
+
checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7"
|
|
363
|
+
dependencies = [
|
|
364
|
+
"serde_core",
|
|
365
|
+
]
|
|
366
|
+
|
|
367
|
+
[[package]]
|
|
368
|
+
name = "toml_parser"
|
|
369
|
+
version = "1.1.3+spec-1.1.0"
|
|
370
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
371
|
+
checksum = "1d38ac1cf9b95face32296c0a3ede1fdc270627c9d9c02a7274dd6d960dc4d56"
|
|
372
|
+
dependencies = [
|
|
373
|
+
"winnow",
|
|
374
|
+
]
|
|
375
|
+
|
|
376
|
+
[[package]]
|
|
377
|
+
name = "unicode-ident"
|
|
378
|
+
version = "1.0.26"
|
|
379
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
380
|
+
checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
|
|
381
|
+
|
|
382
|
+
[[package]]
|
|
383
|
+
name = "windows-link"
|
|
384
|
+
version = "0.2.1"
|
|
385
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
386
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
387
|
+
|
|
388
|
+
[[package]]
|
|
389
|
+
name = "windows-sys"
|
|
390
|
+
version = "0.61.2"
|
|
391
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
392
|
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
|
393
|
+
dependencies = [
|
|
394
|
+
"windows-link",
|
|
395
|
+
]
|
|
396
|
+
|
|
397
|
+
[[package]]
|
|
398
|
+
name = "winnow"
|
|
399
|
+
version = "1.0.4"
|
|
400
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
401
|
+
checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "hegel-python"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2024"
|
|
5
|
+
rust-version = "1.86"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
description = "Python bindings to the Hegel property-based testing engine."
|
|
8
|
+
repository = "https://github.com/hegeldev/hegel-python"
|
|
9
|
+
publish = false
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
|
|
12
|
+
[lib]
|
|
13
|
+
name = "_native"
|
|
14
|
+
crate-type = ["cdylib"]
|
|
15
|
+
|
|
16
|
+
[dependencies]
|
|
17
|
+
pyo3 = { version = "0.29", features = ["num-bigint"] }
|
|
18
|
+
num-bigint = "0.4"
|
|
19
|
+
hegeltest-c = { version = "=0.45.13", default-features = false, features = ["std"] }
|
|
20
|
+
|
|
21
|
+
[profile.release]
|
|
22
|
+
opt-level = 3
|
|
23
|
+
debug = false
|
hegeltest-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Antithesis, LLC
|
|
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.
|