diskcache-rs 0.1.0__tar.gz → 0.2.3__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.
- diskcache_rs-0.2.3/.cz.toml +18 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/.github/workflows/benchmark.yml +2 -2
- diskcache_rs-0.2.3/.github/workflows/build-abi3.yml +117 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/.github/workflows/build.yml +7 -6
- diskcache_rs-0.2.3/.github/workflows/bump-version.yml +33 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/.github/workflows/ci.yml +9 -5
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/.github/workflows/release.yml +41 -25
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/.gitignore +2 -0
- diskcache_rs-0.2.3/CHANGELOG.md +82 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/Cargo.lock +62 -204
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/Cargo.toml +24 -6
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/Dockerfile.test +1 -1
- diskcache_rs-0.2.3/PKG-INFO +683 -0
- diskcache_rs-0.2.3/README.md +651 -0
- diskcache_rs-0.2.3/benchmarks/comprehensive_performance_test.py +410 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/benchmarks/detailed_profiling.py +2 -2
- diskcache_rs-0.2.3/benchmarks/final_performance_comparison.py +256 -0
- diskcache_rs-0.2.3/benchmarks/memory_usage_test.py +245 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/benchmarks/micro_benchmark.py +1 -1
- diskcache_rs-0.2.3/benchmarks/optimization_validation_test.py +322 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/benchmarks/precise_benchmark.py +1 -1
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/benchmarks/set_performance_analysis.py +1 -1
- diskcache_rs-0.2.3/justfile +151 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/pyproject.toml +13 -0
- diskcache_rs-0.2.3/python/diskcache_rs/__init__.pyi +163 -0
- diskcache_rs-0.2.3/python/diskcache_rs/_diskcache_rs.pyi +93 -0
- diskcache_rs-0.2.3/scripts/generate_stubs.py +148 -0
- diskcache_rs-0.2.3/scripts/sync_version.py +64 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/src/cache.rs +58 -132
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/src/pickle_cache.rs +8 -2
- diskcache_rs-0.2.3/src/serialization.rs +163 -0
- diskcache_rs-0.2.3/src/storage/optimized_backend.rs +635 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/src/storage/tests.rs +2 -1
- diskcache_rs-0.2.3/src/storage.rs +21 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/src/utils.rs +2 -2
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/tests/test_basic_operations.py +1 -1
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/tests/test_compatibility.py +1 -1
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/tests/test_fast_cache.py +1 -1
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/tests/test_pickle_cache.py +1 -1
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/tests/test_rust_pickle_performance.py +1 -1
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/uv.lock +58 -6
- diskcache_rs-0.1.0/PKG-INFO +0 -324
- diskcache_rs-0.1.0/PROJECT_SUMMARY.md +0 -129
- diskcache_rs-0.1.0/README.md +0 -292
- diskcache_rs-0.1.0/README_zh.md +0 -228
- diskcache_rs-0.1.0/RELEASE.md +0 -167
- diskcache_rs-0.1.0/docs/PERFORMANCE_OPTIMIZATION_SUMMARY.md +0 -135
- diskcache_rs-0.1.0/src/serialization.rs +0 -271
- diskcache_rs-0.1.0/src/storage/hybrid_backend.rs +0 -497
- diskcache_rs-0.1.0/src/storage/ultra_fast_backend.rs +0 -96
- diskcache_rs-0.1.0/src/storage.rs +0 -239
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/.github/pull_request_template.md +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/LICENSE +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/benchmarks/high_performance_test.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/benchmarks/performance_comparison.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/docker-compose.test.yml +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/examples/basic_usage.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/python/diskcache_rs/__init__.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/python/diskcache_rs/cache.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/python/diskcache_rs/core.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/python/diskcache_rs/fast_cache.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/python/diskcache_rs/pickle_cache.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/python/diskcache_rs/rust_pickle.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/renovate.json +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/scripts/test-docker-network.sh +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/src/error.rs +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/src/eviction.rs +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/src/lib.rs +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/src/memory_cache.rs +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/src/migration.rs +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/tests/__init__.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/tests/benchmark_official.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/tests/conftest.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/tests/test_ci_benchmark.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/tests/test_cross_platform_network.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/tests/test_docker_network.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/tests/test_network_filesystem.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.3}/tests/test_performance.py +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[tool.commitizen]
|
|
2
|
+
name = "cz_conventional_commits"
|
|
3
|
+
version = "0.2.3"
|
|
4
|
+
tag_format = "v$version"
|
|
5
|
+
update_changelog_on_bump = true
|
|
6
|
+
major_version_zero = true
|
|
7
|
+
|
|
8
|
+
# Files to update with new version
|
|
9
|
+
version_files = [
|
|
10
|
+
"Cargo.toml:version"
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
# Bump rules
|
|
14
|
+
bump_pattern = "^(BREAKING CHANGE|feat|fix|refactor|perf)"
|
|
15
|
+
bump_map = {"BREAKING CHANGE" = "MAJOR", "feat" = "MINOR", "fix" = "PATCH", "refactor" = "MINOR", "perf" = "PATCH"}
|
|
16
|
+
|
|
17
|
+
# Change type order for changelog
|
|
18
|
+
change_type_order = ["BREAKING CHANGE", "feat", "fix", "refactor", "perf", "style", "test", "build", "ci", "docs", "chore"]
|
|
@@ -27,13 +27,13 @@ jobs:
|
|
|
27
27
|
|
|
28
28
|
- uses: actions/setup-python@v5
|
|
29
29
|
with:
|
|
30
|
-
python-version: '3.
|
|
30
|
+
python-version: '3.13'
|
|
31
31
|
|
|
32
32
|
- name: Install Rust
|
|
33
33
|
uses: dtolnay/rust-toolchain@stable
|
|
34
34
|
|
|
35
35
|
- name: Install uv
|
|
36
|
-
uses: astral-sh/setup-uv@
|
|
36
|
+
uses: astral-sh/setup-uv@v6
|
|
37
37
|
|
|
38
38
|
- name: Install dependencies
|
|
39
39
|
run: |
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
name: Build ABI3 Wheels
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- '*'
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
workflow_call:
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
actions: write # Required for uploading artifacts
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
# Linux ABI3 builds
|
|
16
|
+
linux-abi3:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
strategy:
|
|
19
|
+
matrix:
|
|
20
|
+
target: [x86_64, i686]
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
- uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: '3.13'
|
|
26
|
+
architecture: x64
|
|
27
|
+
- name: Build ABI3 wheels
|
|
28
|
+
uses: PyO3/maturin-action@v1
|
|
29
|
+
with:
|
|
30
|
+
target: ${{ matrix.target }}
|
|
31
|
+
args: --release --out dist --find-interpreter --features abi3
|
|
32
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
33
|
+
manylinux: auto
|
|
34
|
+
- name: Install built wheel
|
|
35
|
+
if: matrix.target == 'x86_64'
|
|
36
|
+
run: |
|
|
37
|
+
pip install diskcache_rs --find-links dist --force-reinstall
|
|
38
|
+
python -c "import diskcache_rs; print('diskcache_rs imported successfully')"
|
|
39
|
+
- name: Upload wheels
|
|
40
|
+
uses: actions/upload-artifact@v4
|
|
41
|
+
with:
|
|
42
|
+
name: wheels-linux-abi3-${{ matrix.target }}
|
|
43
|
+
path: dist
|
|
44
|
+
|
|
45
|
+
# Windows ABI3 builds
|
|
46
|
+
windows-abi3:
|
|
47
|
+
runs-on: windows-latest
|
|
48
|
+
strategy:
|
|
49
|
+
matrix:
|
|
50
|
+
target: [x64, x86]
|
|
51
|
+
steps:
|
|
52
|
+
- uses: actions/checkout@v4
|
|
53
|
+
- uses: actions/setup-python@v5
|
|
54
|
+
with:
|
|
55
|
+
python-version: '3.13'
|
|
56
|
+
architecture: ${{ matrix.target }}
|
|
57
|
+
- name: Build ABI3 wheels
|
|
58
|
+
uses: PyO3/maturin-action@v1
|
|
59
|
+
with:
|
|
60
|
+
target: ${{ matrix.target }}
|
|
61
|
+
args: --release --out dist --find-interpreter --features abi3
|
|
62
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
63
|
+
- name: Install built wheel
|
|
64
|
+
if: matrix.target == 'x64'
|
|
65
|
+
run: |
|
|
66
|
+
pip install diskcache_rs --find-links dist --force-reinstall
|
|
67
|
+
python -c "import diskcache_rs; print('diskcache_rs imported successfully')"
|
|
68
|
+
- name: Upload wheels
|
|
69
|
+
uses: actions/upload-artifact@v4
|
|
70
|
+
with:
|
|
71
|
+
name: wheels-windows-abi3-${{ matrix.target }}
|
|
72
|
+
path: dist
|
|
73
|
+
|
|
74
|
+
# macOS ABI3 builds
|
|
75
|
+
macos-abi3:
|
|
76
|
+
runs-on: macos-latest
|
|
77
|
+
strategy:
|
|
78
|
+
matrix:
|
|
79
|
+
target: [x86_64, aarch64]
|
|
80
|
+
steps:
|
|
81
|
+
- uses: actions/checkout@v4
|
|
82
|
+
- uses: actions/setup-python@v5
|
|
83
|
+
with:
|
|
84
|
+
python-version: '3.13'
|
|
85
|
+
architecture: x64
|
|
86
|
+
- name: Build ABI3 wheels
|
|
87
|
+
uses: PyO3/maturin-action@v1
|
|
88
|
+
with:
|
|
89
|
+
target: ${{ matrix.target }}
|
|
90
|
+
args: --release --out dist --find-interpreter --features abi3
|
|
91
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
92
|
+
- name: Install built wheel
|
|
93
|
+
if: matrix.target == 'x86_64'
|
|
94
|
+
run: |
|
|
95
|
+
pip install diskcache_rs --find-links dist --force-reinstall
|
|
96
|
+
python -c "import diskcache_rs; print('diskcache_rs imported successfully')"
|
|
97
|
+
- name: Upload wheels
|
|
98
|
+
uses: actions/upload-artifact@v4
|
|
99
|
+
with:
|
|
100
|
+
name: wheels-macos-abi3-${{ matrix.target }}
|
|
101
|
+
path: dist
|
|
102
|
+
|
|
103
|
+
# Build source distribution
|
|
104
|
+
sdist-abi3:
|
|
105
|
+
runs-on: ubuntu-latest
|
|
106
|
+
steps:
|
|
107
|
+
- uses: actions/checkout@v4
|
|
108
|
+
- name: Build sdist
|
|
109
|
+
uses: PyO3/maturin-action@v1
|
|
110
|
+
with:
|
|
111
|
+
command: sdist
|
|
112
|
+
args: --out dist
|
|
113
|
+
- name: Upload sdist
|
|
114
|
+
uses: actions/upload-artifact@v4
|
|
115
|
+
with:
|
|
116
|
+
name: wheels-sdist-abi3
|
|
117
|
+
path: dist
|
|
@@ -12,6 +12,7 @@ on:
|
|
|
12
12
|
|
|
13
13
|
permissions:
|
|
14
14
|
contents: read
|
|
15
|
+
actions: write # Required for uploading artifacts
|
|
15
16
|
|
|
16
17
|
jobs:
|
|
17
18
|
# Linux builds
|
|
@@ -24,7 +25,7 @@ jobs:
|
|
|
24
25
|
- uses: actions/checkout@v4
|
|
25
26
|
- uses: actions/setup-python@v5
|
|
26
27
|
with:
|
|
27
|
-
python-version: '3.
|
|
28
|
+
python-version: '3.13'
|
|
28
29
|
architecture: x64
|
|
29
30
|
- name: Build wheels
|
|
30
31
|
uses: PyO3/maturin-action@v1
|
|
@@ -54,7 +55,7 @@ jobs:
|
|
|
54
55
|
- uses: actions/checkout@v4
|
|
55
56
|
- uses: actions/setup-python@v5
|
|
56
57
|
with:
|
|
57
|
-
python-version: '3.
|
|
58
|
+
python-version: '3.13'
|
|
58
59
|
- name: Build wheels
|
|
59
60
|
uses: PyO3/maturin-action@v1
|
|
60
61
|
with:
|
|
@@ -95,7 +96,7 @@ jobs:
|
|
|
95
96
|
- uses: actions/checkout@v4
|
|
96
97
|
- uses: actions/setup-python@v5
|
|
97
98
|
with:
|
|
98
|
-
python-version: '3.
|
|
99
|
+
python-version: '3.13'
|
|
99
100
|
architecture: x64
|
|
100
101
|
- name: Build wheels
|
|
101
102
|
uses: PyO3/maturin-action@v1
|
|
@@ -143,7 +144,7 @@ jobs:
|
|
|
143
144
|
- uses: actions/checkout@v4
|
|
144
145
|
- uses: actions/setup-python@v5
|
|
145
146
|
with:
|
|
146
|
-
python-version: '3.
|
|
147
|
+
python-version: '3.13'
|
|
147
148
|
- name: Build wheels
|
|
148
149
|
uses: PyO3/maturin-action@v1
|
|
149
150
|
with:
|
|
@@ -187,7 +188,7 @@ jobs:
|
|
|
187
188
|
- uses: actions/checkout@v4
|
|
188
189
|
- uses: actions/setup-python@v5
|
|
189
190
|
with:
|
|
190
|
-
python-version: '3.
|
|
191
|
+
python-version: '3.13'
|
|
191
192
|
architecture: ${{ matrix.target }}
|
|
192
193
|
- uses: dtolnay/rust-toolchain@stable
|
|
193
194
|
- name: Build wheels
|
|
@@ -213,7 +214,7 @@ jobs:
|
|
|
213
214
|
- uses: actions/checkout@v4
|
|
214
215
|
- uses: actions/setup-python@v5
|
|
215
216
|
with:
|
|
216
|
-
python-version: '3.
|
|
217
|
+
python-version: '3.13'
|
|
217
218
|
architecture: x64
|
|
218
219
|
- uses: dtolnay/rust-toolchain@stable
|
|
219
220
|
- name: Build wheels - x86_64
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Bump version
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write # Required for: modify files, create tags, create releases
|
|
10
|
+
pull-requests: write # Optional: for automated PR operations
|
|
11
|
+
actions: write # Optional: for triggering other workflows
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
bump-version:
|
|
15
|
+
if: "!startsWith(github.event.head_commit.message, 'bump:')"
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
name: "Bump version and create changelog with commitizen"
|
|
18
|
+
steps:
|
|
19
|
+
- name: Check out
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
|
+
with:
|
|
22
|
+
fetch-depth: 0
|
|
23
|
+
token: '${{ secrets.GITHUB_TOKEN }}'
|
|
24
|
+
|
|
25
|
+
- name: Create bump and changelog
|
|
26
|
+
uses: commitizen-tools/commitizen-action@master
|
|
27
|
+
with:
|
|
28
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
29
|
+
branch: main
|
|
30
|
+
debug: true
|
|
31
|
+
|
|
32
|
+
- name: Print Version
|
|
33
|
+
run: echo "Bumped to version ${{ env.REVISION }}"
|
|
@@ -23,19 +23,23 @@ jobs:
|
|
|
23
23
|
steps:
|
|
24
24
|
- uses: actions/checkout@v4
|
|
25
25
|
- name: Install uv
|
|
26
|
-
uses: astral-sh/setup-uv@
|
|
26
|
+
uses: astral-sh/setup-uv@v6
|
|
27
27
|
with:
|
|
28
28
|
python-version: ${{ matrix.python-version }}
|
|
29
29
|
- name: Install Rust
|
|
30
30
|
uses: dtolnay/rust-toolchain@stable
|
|
31
31
|
- name: Install dependencies
|
|
32
|
-
run: uv sync --group
|
|
32
|
+
run: uv sync --group dev
|
|
33
33
|
- name: Install build dependencies
|
|
34
34
|
run: uv pip install maturin
|
|
35
35
|
- name: Build extension
|
|
36
36
|
run: uv run maturin develop
|
|
37
37
|
env:
|
|
38
38
|
RUST_BACKTRACE: 1
|
|
39
|
+
- name: Generate type stubs
|
|
40
|
+
run: |
|
|
41
|
+
uv run pyo3-stubgen diskcache_rs._diskcache_rs python/diskcache_rs/
|
|
42
|
+
echo "✅ Type stubs generated successfully"
|
|
39
43
|
- name: Run pytest
|
|
40
44
|
run: uv run python -m pytest tests/ -v --tb=short -m "not docker"
|
|
41
45
|
env:
|
|
@@ -50,7 +54,7 @@ jobs:
|
|
|
50
54
|
steps:
|
|
51
55
|
- uses: actions/checkout@v4
|
|
52
56
|
- name: Install uv
|
|
53
|
-
uses: astral-sh/setup-uv@
|
|
57
|
+
uses: astral-sh/setup-uv@v6
|
|
54
58
|
with:
|
|
55
59
|
python-version: "3.11"
|
|
56
60
|
- name: Install Rust
|
|
@@ -64,6 +68,6 @@ jobs:
|
|
|
64
68
|
- name: Run Clippy
|
|
65
69
|
run: cargo clippy --all-targets --all-features
|
|
66
70
|
- name: Run ruff check
|
|
67
|
-
run:
|
|
71
|
+
run: uv run ruff check .
|
|
68
72
|
- name: Run ruff format check
|
|
69
|
-
run:
|
|
73
|
+
run: uv run ruff format --check .
|
|
@@ -4,17 +4,29 @@ on:
|
|
|
4
4
|
push:
|
|
5
5
|
tags:
|
|
6
6
|
- 'v*'
|
|
7
|
+
- 'diskcache_rs-v*' # Support release-please tag format
|
|
7
8
|
workflow_dispatch:
|
|
9
|
+
workflow_call:
|
|
8
10
|
|
|
9
11
|
permissions:
|
|
10
|
-
contents:
|
|
12
|
+
contents: write # Required for creating releases and uploading artifacts
|
|
13
|
+
id-token: write # Required for PyPI trusted publishing
|
|
14
|
+
attestations: write # Required for artifact attestation
|
|
11
15
|
|
|
12
16
|
jobs:
|
|
13
|
-
# Call the build workflow to build
|
|
17
|
+
# Call the build workflow to build standard wheels
|
|
14
18
|
build:
|
|
15
19
|
uses: ./.github/workflows/build.yml
|
|
16
20
|
permissions:
|
|
17
21
|
contents: read
|
|
22
|
+
actions: write # Required for uploading artifacts
|
|
23
|
+
|
|
24
|
+
# Call the ABI3 build workflow to build universal wheels
|
|
25
|
+
build-abi3:
|
|
26
|
+
uses: ./.github/workflows/build-abi3.yml
|
|
27
|
+
permissions:
|
|
28
|
+
contents: read
|
|
29
|
+
actions: write # Required for uploading artifacts
|
|
18
30
|
|
|
19
31
|
# Call the CI workflow to run tests
|
|
20
32
|
test:
|
|
@@ -26,7 +38,7 @@ jobs:
|
|
|
26
38
|
release:
|
|
27
39
|
name: Publish to PyPI
|
|
28
40
|
runs-on: ubuntu-latest
|
|
29
|
-
needs: [build, test]
|
|
41
|
+
needs: [build, build-abi3, test]
|
|
30
42
|
permissions:
|
|
31
43
|
# IMPORTANT: this permission is mandatory for trusted publishing
|
|
32
44
|
id-token: write
|
|
@@ -65,7 +77,9 @@ jobs:
|
|
|
65
77
|
runs-on: ubuntu-latest
|
|
66
78
|
needs: [release]
|
|
67
79
|
permissions:
|
|
68
|
-
contents: write
|
|
80
|
+
contents: write # Required for creating releases
|
|
81
|
+
actions: read # Required for downloading artifacts
|
|
82
|
+
attestations: write # Required for artifact attestation
|
|
69
83
|
steps:
|
|
70
84
|
- uses: actions/checkout@v4
|
|
71
85
|
with:
|
|
@@ -73,20 +87,22 @@ jobs:
|
|
|
73
87
|
|
|
74
88
|
- name: Generate changelog
|
|
75
89
|
id: changelog
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
uses: jaywcjlove/changelog-generator@main
|
|
91
|
+
with:
|
|
92
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
93
|
+
filter-author: (loonghao|renovate\[bot\]|dependabot\[bot\]|Renovate Bot)
|
|
94
|
+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
|
|
95
|
+
template: |
|
|
96
|
+
## Bugs
|
|
97
|
+
{{fix}}
|
|
98
|
+
## Feature
|
|
99
|
+
{{feat}}
|
|
100
|
+
## Improve
|
|
101
|
+
{{refactor,perf,clean}}
|
|
102
|
+
## Misc
|
|
103
|
+
{{chore,style,ci}} 🔧 Nothing change}}
|
|
104
|
+
## Unknown
|
|
105
|
+
{{__unknown__}}
|
|
90
106
|
|
|
91
107
|
- name: Download all artifacts
|
|
92
108
|
uses: actions/download-artifact@v4
|
|
@@ -94,11 +110,11 @@ jobs:
|
|
|
94
110
|
path: release-artifacts
|
|
95
111
|
merge-multiple: true
|
|
96
112
|
|
|
97
|
-
-
|
|
98
|
-
uses: softprops/action-gh-release@v2
|
|
113
|
+
- uses: ncipollo/release-action@v1
|
|
99
114
|
with:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
115
|
+
artifacts: "release-artifacts/*"
|
|
116
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
117
|
+
body: |
|
|
118
|
+
Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
|
|
119
|
+
|
|
120
|
+
${{ steps.changelog.outputs.changelog }}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
## v0.2.3 (2025-07-13)
|
|
2
|
+
|
|
3
|
+
### Fix
|
|
4
|
+
|
|
5
|
+
- configure proper permissions for release workflows
|
|
6
|
+
- resolve release changelog generation issues
|
|
7
|
+
|
|
8
|
+
## v0.2.2 (2025-07-13)
|
|
9
|
+
|
|
10
|
+
### Fix
|
|
11
|
+
|
|
12
|
+
- add comprehensive GitHub Actions permissions for version management
|
|
13
|
+
- improve commitizen workflow with debug and proper permissions
|
|
14
|
+
|
|
15
|
+
## v0.2.1 (2025-07-13)
|
|
16
|
+
|
|
17
|
+
### Fix
|
|
18
|
+
|
|
19
|
+
- resolve merge conflicts and correct version field configurations
|
|
20
|
+
- correct ruff target-version configuration
|
|
21
|
+
|
|
22
|
+
## v0.2.0 (2025-07-13)
|
|
23
|
+
|
|
24
|
+
### Feat
|
|
25
|
+
|
|
26
|
+
- replace release-plz with commitizen for better multi-language support
|
|
27
|
+
- implement release-plz for automated version management
|
|
28
|
+
- add release-please for automated version management
|
|
29
|
+
- make ABI3 support optional and enhance README with PyPI badges
|
|
30
|
+
- modernize development setup and add ABI3 support
|
|
31
|
+
|
|
32
|
+
### Fix
|
|
33
|
+
|
|
34
|
+
- resolve ruff linting issues
|
|
35
|
+
- remove unsupported --compatibility abi3 flag from GitHub Actions
|
|
36
|
+
|
|
37
|
+
## v0.1.0 (2025-07-13)
|
|
38
|
+
|
|
39
|
+
### Feat
|
|
40
|
+
|
|
41
|
+
- implement ultra-fast storage backends with superior performance
|
|
42
|
+
- replace Python pickle with high-performance Rust implementation
|
|
43
|
+
- implement high-performance pickle cache with expiration support
|
|
44
|
+
- add missing Cache methods for API compatibility
|
|
45
|
+
- add Docker network environment testing and fix unit tests
|
|
46
|
+
- add missing exists() and keys() methods to Python Cache wrapper
|
|
47
|
+
- add CI-friendly benchmark tests and fix gitignore
|
|
48
|
+
- implement complete diskcache API compatibility and official benchmarks
|
|
49
|
+
- implement drop-in replacement API for diskcache compatibility
|
|
50
|
+
- upgrade CI/CD to use PyPI Trusted Publishing and comprehensive platform support
|
|
51
|
+
- enhance CI/CD pipeline with comprehensive testing and PyPI publishing
|
|
52
|
+
- initial commit with diskcache_rs implementation
|
|
53
|
+
|
|
54
|
+
### Fix
|
|
55
|
+
|
|
56
|
+
- make CI and build workflows reusable for release workflow
|
|
57
|
+
- resolve final ruff CI linting issues
|
|
58
|
+
- resolve Windows timing precision issues across all performance tests
|
|
59
|
+
- resolve Windows timing precision issue in pickle performance tests
|
|
60
|
+
- resolve CI syntax error and code quality issues
|
|
61
|
+
- resolve Windows pytest and CI issues
|
|
62
|
+
- resolve Python 3.8 compatibility and ruff configuration issues
|
|
63
|
+
- resolve all code quality issues and formatting problems
|
|
64
|
+
- resolve CI build failures by adding maturin installation step
|
|
65
|
+
- improve __contains__ method implementation for better compatibility
|
|
66
|
+
- resolve CI test failures and clippy format issues
|
|
67
|
+
- resolve all clippy warnings and test import issues
|
|
68
|
+
- resolve Alpine Linux ARMv7 py3-venv package availability issue
|
|
69
|
+
- resolve bincode import issues in Rust compilation
|
|
70
|
+
- resolve Alpine Linux externally-managed-environment errors in CI
|
|
71
|
+
- improve CI benchmark testing and add comprehensive test suite
|
|
72
|
+
- resolve module naming conflicts and API compatibility issues
|
|
73
|
+
- resolve macOS build issues and add comprehensive benchmark tests
|
|
74
|
+
- resolve circular import issue in Python wrapper
|
|
75
|
+
- resolve cross-platform build issues and modernize CI/CD
|
|
76
|
+
- correct uv syntax and dependency versions for Python 3.8+ compatibility
|
|
77
|
+
|
|
78
|
+
### Refactor
|
|
79
|
+
|
|
80
|
+
- adopt pydantic-core style dependency management and fix Linux CI issues
|
|
81
|
+
- remove diskcache as runtime dependency, make it optional for benchmarks
|
|
82
|
+
- restructure tests to use pytest and split CI workflows
|