rust-py-audit 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.
- rust_py_audit-0.1.0/.github/workflows/release.yml +108 -0
- rust_py_audit-0.1.0/.gitignore +11 -0
- rust_py_audit-0.1.0/Cargo.lock +734 -0
- rust_py_audit-0.1.0/Cargo.toml +59 -0
- rust_py_audit-0.1.0/LICENSE +21 -0
- rust_py_audit-0.1.0/PKG-INFO +283 -0
- rust_py_audit-0.1.0/README.md +245 -0
- rust_py_audit-0.1.0/examples/__init__.py +0 -0
- rust_py_audit-0.1.0/examples/basic_usage.py +38 -0
- rust_py_audit-0.1.0/examples/django_example/__init__.py +0 -0
- rust_py_audit-0.1.0/examples/django_example/settings.py +34 -0
- rust_py_audit-0.1.0/examples/django_example/urls.py +19 -0
- rust_py_audit-0.1.0/examples/django_example/views.py +17 -0
- rust_py_audit-0.1.0/examples/fastapi_app.py +45 -0
- rust_py_audit-0.1.0/pyproject.toml +61 -0
- rust_py_audit-0.1.0/python/rust_py_audit/__init__.py +12 -0
- rust_py_audit-0.1.0/python/rust_py_audit/django.py +96 -0
- rust_py_audit-0.1.0/python/rust_py_audit/fastapi.py +83 -0
- rust_py_audit-0.1.0/src/audit_logger.rs +196 -0
- rust_py_audit-0.1.0/src/errors.rs +60 -0
- rust_py_audit-0.1.0/src/event.rs +103 -0
- rust_py_audit-0.1.0/src/hash.rs +158 -0
- rust_py_audit-0.1.0/src/lib.rs +65 -0
- rust_py_audit-0.1.0/src/pyconv.rs +139 -0
- rust_py_audit-0.1.0/src/storage.rs +165 -0
- rust_py_audit-0.1.0/src/verifier.rs +204 -0
- rust_py_audit-0.1.0/tests/conftest.py +21 -0
- rust_py_audit-0.1.0/tests/test_audit_logger.py +121 -0
- rust_py_audit-0.1.0/tests/test_django_middleware.py +88 -0
- rust_py_audit-0.1.0/tests/test_fastapi_middleware.py +88 -0
- rust_py_audit-0.1.0/tests/test_hello.py +8 -0
- rust_py_audit-0.1.0/tests/test_verify.py +69 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
workflow_dispatch: {}
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
linux:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
strategy:
|
|
16
|
+
matrix:
|
|
17
|
+
target: [x86_64, aarch64]
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
- uses: PyO3/maturin-action@v1
|
|
21
|
+
with:
|
|
22
|
+
target: ${{ matrix.target }}
|
|
23
|
+
args: --release --out dist --find-interpreter
|
|
24
|
+
manylinux: auto
|
|
25
|
+
- uses: actions/upload-artifact@v4
|
|
26
|
+
with:
|
|
27
|
+
name: wheels-linux-${{ matrix.target }}
|
|
28
|
+
path: dist
|
|
29
|
+
|
|
30
|
+
musllinux:
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
strategy:
|
|
33
|
+
matrix:
|
|
34
|
+
target: [x86_64, aarch64]
|
|
35
|
+
steps:
|
|
36
|
+
- uses: actions/checkout@v4
|
|
37
|
+
- uses: PyO3/maturin-action@v1
|
|
38
|
+
with:
|
|
39
|
+
target: ${{ matrix.target }}
|
|
40
|
+
args: --release --out dist --find-interpreter
|
|
41
|
+
manylinux: musllinux_1_2
|
|
42
|
+
- uses: actions/upload-artifact@v4
|
|
43
|
+
with:
|
|
44
|
+
name: wheels-musllinux-${{ matrix.target }}
|
|
45
|
+
path: dist
|
|
46
|
+
|
|
47
|
+
windows:
|
|
48
|
+
runs-on: windows-latest
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/checkout@v4
|
|
51
|
+
- uses: actions/setup-python@v5
|
|
52
|
+
with:
|
|
53
|
+
architecture: x64
|
|
54
|
+
- uses: PyO3/maturin-action@v1
|
|
55
|
+
with:
|
|
56
|
+
target: x64
|
|
57
|
+
args: --release --out dist --find-interpreter
|
|
58
|
+
- uses: actions/upload-artifact@v4
|
|
59
|
+
with:
|
|
60
|
+
name: wheels-windows-x64
|
|
61
|
+
path: dist
|
|
62
|
+
|
|
63
|
+
macos:
|
|
64
|
+
runs-on: macos-latest
|
|
65
|
+
strategy:
|
|
66
|
+
matrix:
|
|
67
|
+
target: [x86_64, aarch64]
|
|
68
|
+
steps:
|
|
69
|
+
- uses: actions/checkout@v4
|
|
70
|
+
- uses: PyO3/maturin-action@v1
|
|
71
|
+
with:
|
|
72
|
+
target: ${{ matrix.target }}
|
|
73
|
+
args: --release --out dist --find-interpreter
|
|
74
|
+
- uses: actions/upload-artifact@v4
|
|
75
|
+
with:
|
|
76
|
+
name: wheels-macos-${{ matrix.target }}
|
|
77
|
+
path: dist
|
|
78
|
+
|
|
79
|
+
sdist:
|
|
80
|
+
runs-on: ubuntu-latest
|
|
81
|
+
steps:
|
|
82
|
+
- uses: actions/checkout@v4
|
|
83
|
+
- uses: PyO3/maturin-action@v1
|
|
84
|
+
with:
|
|
85
|
+
command: sdist
|
|
86
|
+
args: --out dist
|
|
87
|
+
- uses: actions/upload-artifact@v4
|
|
88
|
+
with:
|
|
89
|
+
name: wheels-sdist
|
|
90
|
+
path: dist
|
|
91
|
+
|
|
92
|
+
release:
|
|
93
|
+
name: Publish to PyPI
|
|
94
|
+
runs-on: ubuntu-latest
|
|
95
|
+
needs: [linux, musllinux, windows, macos, sdist]
|
|
96
|
+
steps:
|
|
97
|
+
- uses: actions/download-artifact@v4
|
|
98
|
+
with:
|
|
99
|
+
pattern: wheels-*
|
|
100
|
+
path: dist
|
|
101
|
+
merge-multiple: true
|
|
102
|
+
- name: Publish to PyPI
|
|
103
|
+
uses: PyO3/maturin-action@v1
|
|
104
|
+
env:
|
|
105
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
106
|
+
with:
|
|
107
|
+
command: upload
|
|
108
|
+
args: --non-interactive --skip-existing dist/*
|