presolv 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.
- presolv-0.1.0/.github/workflows/ci.yml +23 -0
- presolv-0.1.0/.github/workflows/wheels.yml +14 -0
- presolv-0.1.0/.gitignore +6 -0
- presolv-0.1.0/Cargo.lock +1494 -0
- presolv-0.1.0/Cargo.toml +28 -0
- presolv-0.1.0/LICENSE-APACHE +202 -0
- presolv-0.1.0/LICENSE-MIT +21 -0
- presolv-0.1.0/PKG-INFO +134 -0
- presolv-0.1.0/README.md +118 -0
- presolv-0.1.0/dist/presolv-0.1.0-cp39-abi3-manylinux_2_34_x86_64.whl +0 -0
- presolv-0.1.0/docs/superpowers/plans/2026-10-03-presolv-v1.md +4068 -0
- presolv-0.1.0/examples/_rabbitmq_common.py +22 -0
- presolv-0.1.0/examples/load_test.py +73 -0
- presolv-0.1.0/examples/rabbitmq_publish.py +55 -0
- presolv-0.1.0/examples/rabbitmq_resolve.py +78 -0
- presolv-0.1.0/examples/throughput_vs_concurrency.png +0 -0
- presolv-0.1.0/pyproject.toml +37 -0
- presolv-0.1.0/python/presolv/__init__.py +17 -0
- presolv-0.1.0/python/presolv/_convert.py +68 -0
- presolv-0.1.0/python/presolv/_presolv.pyi +30 -0
- presolv-0.1.0/python/presolv/errors.py +56 -0
- presolv-0.1.0/python/presolv/query.py +53 -0
- presolv-0.1.0/python/presolv/resolver.py +228 -0
- presolv-0.1.0/python/presolv/result.py +18 -0
- presolv-0.1.0/python/tests/conftest.py +194 -0
- presolv-0.1.0/python/tests/test_behavior.py +254 -0
- presolv-0.1.0/python/tests/test_convert.py +75 -0
- presolv-0.1.0/python/tests/test_errors.py +37 -0
- presolv-0.1.0/python/tests/test_native.py +100 -0
- presolv-0.1.0/python/tests/test_query.py +72 -0
- presolv-0.1.0/python/tests/test_resolver.py +190 -0
- presolv-0.1.0/python/tests/test_smoke.py +4 -0
- presolv-0.1.0/python/tests/test_throughput.py +35 -0
- presolv-0.1.0/spec.md +467 -0
- presolv-0.1.0/src/demux.rs +162 -0
- presolv-0.1.0/src/error.rs +48 -0
- presolv-0.1.0/src/health.rs +128 -0
- presolv-0.1.0/src/lib.rs +13 -0
- presolv-0.1.0/src/pool.rs +129 -0
- presolv-0.1.0/src/python.rs +234 -0
- presolv-0.1.0/src/query.rs +42 -0
- presolv-0.1.0/src/rate_limiter.rs +114 -0
- presolv-0.1.0/src/resolver.rs +181 -0
- presolv-0.1.0/src/system.rs +26 -0
- presolv-0.1.0/src/transport.rs +213 -0
- presolv-0.1.0/src/wire.rs +40 -0
- presolv-0.1.0/tests/common/mod.rs +176 -0
- presolv-0.1.0/tests/engine.rs +269 -0
- presolv-0.1.0/tests/pool.rs +117 -0
- presolv-0.1.0/tests/transport.rs +119 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
on: [push, pull_request]
|
|
3
|
+
jobs:
|
|
4
|
+
test:
|
|
5
|
+
strategy:
|
|
6
|
+
matrix:
|
|
7
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
8
|
+
runs-on: ${{ matrix.os }}
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v4
|
|
11
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
12
|
+
with: { components: "clippy, rustfmt" }
|
|
13
|
+
- uses: actions/setup-python@v5
|
|
14
|
+
with: { python-version: "3.12" }
|
|
15
|
+
- run: cargo fmt --check
|
|
16
|
+
- run: cargo clippy --all-targets -- -D warnings
|
|
17
|
+
- if: matrix.os == 'ubuntu-latest'
|
|
18
|
+
run: cargo clippy --features python --all-targets -- -D warnings
|
|
19
|
+
- run: cargo test
|
|
20
|
+
- run: pip install maturin pytest dnspython
|
|
21
|
+
- run: maturin build --out dist && pip install --no-index --find-links dist presolv
|
|
22
|
+
shell: bash
|
|
23
|
+
- run: pytest python/tests -q
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
name: wheels
|
|
2
|
+
on:
|
|
3
|
+
push: { tags: ["v*"] }
|
|
4
|
+
jobs:
|
|
5
|
+
build:
|
|
6
|
+
strategy:
|
|
7
|
+
matrix:
|
|
8
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
9
|
+
runs-on: ${{ matrix.os }}
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v4
|
|
12
|
+
- uses: pypa/cibuildwheel@v2
|
|
13
|
+
- uses: actions/upload-artifact@v4
|
|
14
|
+
with: { name: wheels-${{ matrix.os }}, path: wheelhouse/*.whl }
|