polars-hashfilter 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.
- polars_hashfilter-0.1.0/.github/workflows/ci.yml +66 -0
- polars_hashfilter-0.1.0/.github/workflows/release.yml +84 -0
- polars_hashfilter-0.1.0/.gitignore +36 -0
- polars_hashfilter-0.1.0/.pre-commit-config.yaml +17 -0
- polars_hashfilter-0.1.0/Cargo.lock +3447 -0
- polars_hashfilter-0.1.0/Cargo.toml +21 -0
- polars_hashfilter-0.1.0/LICENSE +21 -0
- polars_hashfilter-0.1.0/PKG-INFO +180 -0
- polars_hashfilter-0.1.0/README.md +169 -0
- polars_hashfilter-0.1.0/justfile +44 -0
- polars_hashfilter-0.1.0/pyproject.toml +32 -0
- polars_hashfilter-0.1.0/python/polars_hashfilter/__init__.py +159 -0
- polars_hashfilter-0.1.0/python/polars_hashfilter/_internal.pyi +77 -0
- polars_hashfilter-0.1.0/python/polars_hashfilter/py.typed +0 -0
- polars_hashfilter-0.1.0/src/expressions.rs +131 -0
- polars_hashfilter-0.1.0/src/hashset.rs +140 -0
- polars_hashfilter-0.1.0/src/lib.rs +24 -0
- polars_hashfilter-0.1.0/tests/test_hashfilter.py +228 -0
- polars_hashfilter-0.1.0/uv.lock +357 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
name: Test on ${{ matrix.os }} / Python ${{ matrix.python-version }}
|
|
12
|
+
runs-on: ${{ matrix.os }}
|
|
13
|
+
strategy:
|
|
14
|
+
fail-fast: false
|
|
15
|
+
matrix:
|
|
16
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
17
|
+
python-version: ['3.10', '3.14']
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- name: Install Rust
|
|
23
|
+
uses: dtolnay/rust-toolchain@stable
|
|
24
|
+
|
|
25
|
+
- name: Cache Rust dependencies
|
|
26
|
+
uses: Swatinem/rust-cache@v2
|
|
27
|
+
with:
|
|
28
|
+
key: py${{ matrix.python-version }}
|
|
29
|
+
|
|
30
|
+
- name: Install uv
|
|
31
|
+
uses: astral-sh/setup-uv@v4
|
|
32
|
+
with:
|
|
33
|
+
enable-cache: true
|
|
34
|
+
cache-dependency-glob: "**/pyproject.toml"
|
|
35
|
+
|
|
36
|
+
- name: Install Python
|
|
37
|
+
run: uv python install ${{ matrix.python-version }}
|
|
38
|
+
|
|
39
|
+
- name: Install dependencies
|
|
40
|
+
run: uv sync --python ${{ matrix.python-version }}
|
|
41
|
+
|
|
42
|
+
- name: Run tests
|
|
43
|
+
run: uv run --python ${{ matrix.python-version }} pytest tests/ -v
|
|
44
|
+
|
|
45
|
+
lint:
|
|
46
|
+
name: Lint
|
|
47
|
+
runs-on: ubuntu-latest
|
|
48
|
+
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/checkout@v4
|
|
51
|
+
|
|
52
|
+
- name: Set up Python
|
|
53
|
+
uses: actions/setup-python@v5
|
|
54
|
+
with:
|
|
55
|
+
python-version: "3.11"
|
|
56
|
+
|
|
57
|
+
- name: Install Rust
|
|
58
|
+
uses: dtolnay/rust-toolchain@stable
|
|
59
|
+
with:
|
|
60
|
+
components: clippy
|
|
61
|
+
|
|
62
|
+
- name: Run pre-commit
|
|
63
|
+
uses: pre-commit/action@v3.0.1
|
|
64
|
+
|
|
65
|
+
- name: Rust clippy
|
|
66
|
+
run: cargo clippy --all-features -- -D warnings
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build-wheels:
|
|
13
|
+
name: Build wheels on ${{ matrix.os }}
|
|
14
|
+
runs-on: ${{ matrix.os }}
|
|
15
|
+
strategy:
|
|
16
|
+
fail-fast: false
|
|
17
|
+
matrix:
|
|
18
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
- name: Set up Python
|
|
24
|
+
uses: actions/setup-python@v5
|
|
25
|
+
with:
|
|
26
|
+
python-version: "3.11"
|
|
27
|
+
|
|
28
|
+
- name: Install Rust
|
|
29
|
+
uses: dtolnay/rust-toolchain@stable
|
|
30
|
+
|
|
31
|
+
- name: Build wheels
|
|
32
|
+
uses: PyO3/maturin-action@v1
|
|
33
|
+
with:
|
|
34
|
+
command: build
|
|
35
|
+
args: --release --out dist --interpreter python3.10 python3.11 python3.12 python3.13 python3.14
|
|
36
|
+
manylinux: auto
|
|
37
|
+
|
|
38
|
+
- name: Upload wheels
|
|
39
|
+
uses: actions/upload-artifact@v4
|
|
40
|
+
with:
|
|
41
|
+
name: wheels-${{ matrix.os }}
|
|
42
|
+
path: dist/*.whl
|
|
43
|
+
|
|
44
|
+
build-sdist:
|
|
45
|
+
name: Build source distribution
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
|
|
48
|
+
steps:
|
|
49
|
+
- uses: actions/checkout@v4
|
|
50
|
+
|
|
51
|
+
- name: Build sdist
|
|
52
|
+
uses: PyO3/maturin-action@v1
|
|
53
|
+
with:
|
|
54
|
+
command: sdist
|
|
55
|
+
args: --out dist
|
|
56
|
+
|
|
57
|
+
- name: Upload sdist
|
|
58
|
+
uses: actions/upload-artifact@v4
|
|
59
|
+
with:
|
|
60
|
+
name: sdist
|
|
61
|
+
path: dist/*.tar.gz
|
|
62
|
+
|
|
63
|
+
publish:
|
|
64
|
+
name: Publish to PyPI
|
|
65
|
+
runs-on: ubuntu-latest
|
|
66
|
+
needs: [build-wheels, build-sdist]
|
|
67
|
+
environment:
|
|
68
|
+
name: pypi
|
|
69
|
+
url: https://pypi.org/p/polars-hashfilter
|
|
70
|
+
permissions:
|
|
71
|
+
id-token: write
|
|
72
|
+
|
|
73
|
+
steps:
|
|
74
|
+
- name: Download all artifacts
|
|
75
|
+
uses: actions/download-artifact@v4
|
|
76
|
+
with:
|
|
77
|
+
pattern: "*"
|
|
78
|
+
path: dist
|
|
79
|
+
merge-multiple: true
|
|
80
|
+
|
|
81
|
+
- name: Publish to PyPI
|
|
82
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
83
|
+
with:
|
|
84
|
+
skip-existing: true
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
*.so
|
|
6
|
+
*.egg-info/
|
|
7
|
+
dist/
|
|
8
|
+
build/
|
|
9
|
+
.eggs/
|
|
10
|
+
*.egg
|
|
11
|
+
.pytest_cache/
|
|
12
|
+
.mypy_cache/
|
|
13
|
+
.ruff_cache/
|
|
14
|
+
.venv/
|
|
15
|
+
venv/
|
|
16
|
+
ENV/
|
|
17
|
+
env/
|
|
18
|
+
|
|
19
|
+
# Rust
|
|
20
|
+
target/
|
|
21
|
+
Cargo.lock
|
|
22
|
+
**/*.rs.bk
|
|
23
|
+
|
|
24
|
+
# IDEs
|
|
25
|
+
.vscode/
|
|
26
|
+
.idea/
|
|
27
|
+
*.swp
|
|
28
|
+
*.swo
|
|
29
|
+
*~
|
|
30
|
+
|
|
31
|
+
# OS
|
|
32
|
+
.DS_Store
|
|
33
|
+
Thumbs.db
|
|
34
|
+
|
|
35
|
+
# Build artifacts
|
|
36
|
+
*.whl
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
3
|
+
rev: v0.9.2
|
|
4
|
+
hooks:
|
|
5
|
+
# Run the formatter
|
|
6
|
+
- id: ruff-format
|
|
7
|
+
types_or: [python, pyi]
|
|
8
|
+
# Run the linter
|
|
9
|
+
- id: ruff
|
|
10
|
+
types_or: [python, pyi]
|
|
11
|
+
args: [--fix]
|
|
12
|
+
|
|
13
|
+
- repo: https://github.com/doublify/pre-commit-rust
|
|
14
|
+
rev: v1.0
|
|
15
|
+
hooks:
|
|
16
|
+
- id: fmt
|
|
17
|
+
args: [--manifest-path=Cargo.toml, --]
|