diskcache-rs 0.1.0__tar.gz → 0.2.1__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.1/.cz.toml +18 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/.github/workflows/benchmark.yml +2 -2
- diskcache_rs-0.2.1/.github/workflows/build-abi3.yml +116 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/.github/workflows/build.yml +6 -6
- diskcache_rs-0.2.1/.github/workflows/bump-version.yml +25 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/.github/workflows/ci.yml +9 -5
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/.github/workflows/release.yml +42 -12
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/.gitignore +2 -0
- diskcache_rs-0.2.1/CHANGELOG.md +68 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/Cargo.lock +62 -204
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/Cargo.toml +24 -6
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/Dockerfile.test +1 -1
- diskcache_rs-0.2.1/PKG-INFO +683 -0
- diskcache_rs-0.2.1/README.md +651 -0
- diskcache_rs-0.2.1/benchmarks/comprehensive_performance_test.py +410 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/benchmarks/detailed_profiling.py +2 -2
- diskcache_rs-0.2.1/benchmarks/final_performance_comparison.py +256 -0
- diskcache_rs-0.2.1/benchmarks/memory_usage_test.py +245 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/benchmarks/micro_benchmark.py +1 -1
- diskcache_rs-0.2.1/benchmarks/optimization_validation_test.py +322 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/benchmarks/precise_benchmark.py +1 -1
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/benchmarks/set_performance_analysis.py +1 -1
- diskcache_rs-0.2.1/justfile +151 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/pyproject.toml +13 -0
- diskcache_rs-0.2.1/python/diskcache_rs/__init__.pyi +163 -0
- diskcache_rs-0.2.1/python/diskcache_rs/_diskcache_rs.pyi +93 -0
- diskcache_rs-0.2.1/scripts/generate_stubs.py +148 -0
- diskcache_rs-0.2.1/scripts/sync_version.py +64 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/src/cache.rs +58 -132
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/src/pickle_cache.rs +8 -2
- diskcache_rs-0.2.1/src/serialization.rs +163 -0
- diskcache_rs-0.2.1/src/storage/optimized_backend.rs +635 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/src/storage/tests.rs +2 -1
- diskcache_rs-0.2.1/src/storage.rs +21 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/src/utils.rs +2 -2
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/tests/test_basic_operations.py +1 -1
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/tests/test_compatibility.py +1 -1
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/tests/test_fast_cache.py +1 -1
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/tests/test_pickle_cache.py +1 -1
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/tests/test_rust_pickle_performance.py +1 -1
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/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.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/.github/pull_request_template.md +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/LICENSE +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/benchmarks/high_performance_test.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/benchmarks/performance_comparison.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/docker-compose.test.yml +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/examples/basic_usage.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/python/diskcache_rs/__init__.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/python/diskcache_rs/cache.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/python/diskcache_rs/core.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/python/diskcache_rs/fast_cache.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/python/diskcache_rs/pickle_cache.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/python/diskcache_rs/rust_pickle.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/renovate.json +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/scripts/test-docker-network.sh +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/src/error.rs +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/src/eviction.rs +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/src/lib.rs +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/src/memory_cache.rs +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/src/migration.rs +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/tests/__init__.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/tests/benchmark_official.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/tests/conftest.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/tests/test_ci_benchmark.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/tests/test_cross_platform_network.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/tests/test_docker_network.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/tests/test_network_filesystem.py +0 -0
- {diskcache_rs-0.1.0 → diskcache_rs-0.2.1}/tests/test_performance.py +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[tool.commitizen]
|
|
2
|
+
name = "cz_conventional_commits"
|
|
3
|
+
version = "0.2.1"
|
|
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,116 @@
|
|
|
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
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
# Linux ABI3 builds
|
|
15
|
+
linux-abi3:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
target: [x86_64, i686]
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- uses: actions/setup-python@v5
|
|
23
|
+
with:
|
|
24
|
+
python-version: '3.13'
|
|
25
|
+
architecture: x64
|
|
26
|
+
- name: Build ABI3 wheels
|
|
27
|
+
uses: PyO3/maturin-action@v1
|
|
28
|
+
with:
|
|
29
|
+
target: ${{ matrix.target }}
|
|
30
|
+
args: --release --out dist --find-interpreter --features abi3
|
|
31
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
32
|
+
manylinux: auto
|
|
33
|
+
- name: Install built wheel
|
|
34
|
+
if: matrix.target == 'x86_64'
|
|
35
|
+
run: |
|
|
36
|
+
pip install diskcache_rs --find-links dist --force-reinstall
|
|
37
|
+
python -c "import diskcache_rs; print('diskcache_rs imported successfully')"
|
|
38
|
+
- name: Upload wheels
|
|
39
|
+
uses: actions/upload-artifact@v4
|
|
40
|
+
with:
|
|
41
|
+
name: wheels-linux-abi3-${{ matrix.target }}
|
|
42
|
+
path: dist
|
|
43
|
+
|
|
44
|
+
# Windows ABI3 builds
|
|
45
|
+
windows-abi3:
|
|
46
|
+
runs-on: windows-latest
|
|
47
|
+
strategy:
|
|
48
|
+
matrix:
|
|
49
|
+
target: [x64, x86]
|
|
50
|
+
steps:
|
|
51
|
+
- uses: actions/checkout@v4
|
|
52
|
+
- uses: actions/setup-python@v5
|
|
53
|
+
with:
|
|
54
|
+
python-version: '3.13'
|
|
55
|
+
architecture: ${{ matrix.target }}
|
|
56
|
+
- name: Build ABI3 wheels
|
|
57
|
+
uses: PyO3/maturin-action@v1
|
|
58
|
+
with:
|
|
59
|
+
target: ${{ matrix.target }}
|
|
60
|
+
args: --release --out dist --find-interpreter --features abi3
|
|
61
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
62
|
+
- name: Install built wheel
|
|
63
|
+
if: matrix.target == 'x64'
|
|
64
|
+
run: |
|
|
65
|
+
pip install diskcache_rs --find-links dist --force-reinstall
|
|
66
|
+
python -c "import diskcache_rs; print('diskcache_rs imported successfully')"
|
|
67
|
+
- name: Upload wheels
|
|
68
|
+
uses: actions/upload-artifact@v4
|
|
69
|
+
with:
|
|
70
|
+
name: wheels-windows-abi3-${{ matrix.target }}
|
|
71
|
+
path: dist
|
|
72
|
+
|
|
73
|
+
# macOS ABI3 builds
|
|
74
|
+
macos-abi3:
|
|
75
|
+
runs-on: macos-latest
|
|
76
|
+
strategy:
|
|
77
|
+
matrix:
|
|
78
|
+
target: [x86_64, aarch64]
|
|
79
|
+
steps:
|
|
80
|
+
- uses: actions/checkout@v4
|
|
81
|
+
- uses: actions/setup-python@v5
|
|
82
|
+
with:
|
|
83
|
+
python-version: '3.13'
|
|
84
|
+
architecture: x64
|
|
85
|
+
- name: Build ABI3 wheels
|
|
86
|
+
uses: PyO3/maturin-action@v1
|
|
87
|
+
with:
|
|
88
|
+
target: ${{ matrix.target }}
|
|
89
|
+
args: --release --out dist --find-interpreter --features abi3
|
|
90
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
91
|
+
- name: Install built wheel
|
|
92
|
+
if: matrix.target == 'x86_64'
|
|
93
|
+
run: |
|
|
94
|
+
pip install diskcache_rs --find-links dist --force-reinstall
|
|
95
|
+
python -c "import diskcache_rs; print('diskcache_rs imported successfully')"
|
|
96
|
+
- name: Upload wheels
|
|
97
|
+
uses: actions/upload-artifact@v4
|
|
98
|
+
with:
|
|
99
|
+
name: wheels-macos-abi3-${{ matrix.target }}
|
|
100
|
+
path: dist
|
|
101
|
+
|
|
102
|
+
# Build source distribution
|
|
103
|
+
sdist-abi3:
|
|
104
|
+
runs-on: ubuntu-latest
|
|
105
|
+
steps:
|
|
106
|
+
- uses: actions/checkout@v4
|
|
107
|
+
- name: Build sdist
|
|
108
|
+
uses: PyO3/maturin-action@v1
|
|
109
|
+
with:
|
|
110
|
+
command: sdist
|
|
111
|
+
args: --out dist
|
|
112
|
+
- name: Upload sdist
|
|
113
|
+
uses: actions/upload-artifact@v4
|
|
114
|
+
with:
|
|
115
|
+
name: wheels-sdist-abi3
|
|
116
|
+
path: dist
|
|
@@ -24,7 +24,7 @@ jobs:
|
|
|
24
24
|
- uses: actions/checkout@v4
|
|
25
25
|
- uses: actions/setup-python@v5
|
|
26
26
|
with:
|
|
27
|
-
python-version: '3.
|
|
27
|
+
python-version: '3.13'
|
|
28
28
|
architecture: x64
|
|
29
29
|
- name: Build wheels
|
|
30
30
|
uses: PyO3/maturin-action@v1
|
|
@@ -54,7 +54,7 @@ jobs:
|
|
|
54
54
|
- uses: actions/checkout@v4
|
|
55
55
|
- uses: actions/setup-python@v5
|
|
56
56
|
with:
|
|
57
|
-
python-version: '3.
|
|
57
|
+
python-version: '3.13'
|
|
58
58
|
- name: Build wheels
|
|
59
59
|
uses: PyO3/maturin-action@v1
|
|
60
60
|
with:
|
|
@@ -95,7 +95,7 @@ jobs:
|
|
|
95
95
|
- uses: actions/checkout@v4
|
|
96
96
|
- uses: actions/setup-python@v5
|
|
97
97
|
with:
|
|
98
|
-
python-version: '3.
|
|
98
|
+
python-version: '3.13'
|
|
99
99
|
architecture: x64
|
|
100
100
|
- name: Build wheels
|
|
101
101
|
uses: PyO3/maturin-action@v1
|
|
@@ -143,7 +143,7 @@ jobs:
|
|
|
143
143
|
- uses: actions/checkout@v4
|
|
144
144
|
- uses: actions/setup-python@v5
|
|
145
145
|
with:
|
|
146
|
-
python-version: '3.
|
|
146
|
+
python-version: '3.13'
|
|
147
147
|
- name: Build wheels
|
|
148
148
|
uses: PyO3/maturin-action@v1
|
|
149
149
|
with:
|
|
@@ -187,7 +187,7 @@ jobs:
|
|
|
187
187
|
- uses: actions/checkout@v4
|
|
188
188
|
- uses: actions/setup-python@v5
|
|
189
189
|
with:
|
|
190
|
-
python-version: '3.
|
|
190
|
+
python-version: '3.13'
|
|
191
191
|
architecture: ${{ matrix.target }}
|
|
192
192
|
- uses: dtolnay/rust-toolchain@stable
|
|
193
193
|
- name: Build wheels
|
|
@@ -213,7 +213,7 @@ jobs:
|
|
|
213
213
|
- uses: actions/checkout@v4
|
|
214
214
|
- uses: actions/setup-python@v5
|
|
215
215
|
with:
|
|
216
|
-
python-version: '3.
|
|
216
|
+
python-version: '3.13'
|
|
217
217
|
architecture: x64
|
|
218
218
|
- uses: dtolnay/rust-toolchain@stable
|
|
219
219
|
- name: Build wheels - x86_64
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: Bump version
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
pull-requests: write
|
|
10
|
+
jobs:
|
|
11
|
+
bump-version:
|
|
12
|
+
if: "!startsWith(github.event.head_commit.message, 'bump:')"
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
name: "Bump version and create changelog with commitizen"
|
|
15
|
+
steps:
|
|
16
|
+
- name: Check out
|
|
17
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
token: '${{ secrets.GITHUB_TOKEN }}'
|
|
21
|
+
- name: Create bump and changelog
|
|
22
|
+
uses: commitizen-tools/commitizen-action@master
|
|
23
|
+
with:
|
|
24
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
25
|
+
branch: main
|
|
@@ -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,18 +4,26 @@ 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
12
|
contents: read
|
|
11
13
|
|
|
12
14
|
jobs:
|
|
13
|
-
# Call the build workflow to build
|
|
15
|
+
# Call the build workflow to build standard wheels
|
|
14
16
|
build:
|
|
15
17
|
uses: ./.github/workflows/build.yml
|
|
16
18
|
permissions:
|
|
17
19
|
contents: read
|
|
18
20
|
|
|
21
|
+
# Call the ABI3 build workflow to build universal wheels
|
|
22
|
+
build-abi3:
|
|
23
|
+
uses: ./.github/workflows/build-abi3.yml
|
|
24
|
+
permissions:
|
|
25
|
+
contents: read
|
|
26
|
+
|
|
19
27
|
# Call the CI workflow to run tests
|
|
20
28
|
test:
|
|
21
29
|
uses: ./.github/workflows/ci.yml
|
|
@@ -26,7 +34,7 @@ jobs:
|
|
|
26
34
|
release:
|
|
27
35
|
name: Publish to PyPI
|
|
28
36
|
runs-on: ubuntu-latest
|
|
29
|
-
needs: [build, test]
|
|
37
|
+
needs: [build, build-abi3, test]
|
|
30
38
|
permissions:
|
|
31
39
|
# IMPORTANT: this permission is mandatory for trusted publishing
|
|
32
40
|
id-token: write
|
|
@@ -74,16 +82,38 @@ jobs:
|
|
|
74
82
|
- name: Generate changelog
|
|
75
83
|
id: changelog
|
|
76
84
|
run: |
|
|
77
|
-
#
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
# Check if any tags exist
|
|
86
|
+
if git describe --tags --abbrev=0 >/dev/null 2>&1; then
|
|
87
|
+
# Get the latest tag
|
|
88
|
+
LATEST_TAG=$(git describe --tags --abbrev=0)
|
|
89
|
+
|
|
90
|
+
# Try to get previous tag
|
|
91
|
+
if PREVIOUS_TAG=$(git describe --tags --abbrev=0 $LATEST_TAG^ 2>/dev/null); then
|
|
92
|
+
echo "## Changes in $LATEST_TAG" > CHANGELOG.md
|
|
93
|
+
echo "" >> CHANGELOG.md
|
|
94
|
+
|
|
95
|
+
# Get commits between tags
|
|
96
|
+
git log --pretty=format:"- %s (%h)" $PREVIOUS_TAG..$LATEST_TAG >> CHANGELOG.md
|
|
97
|
+
else
|
|
98
|
+
# Only one tag exists, show all commits up to this tag
|
|
99
|
+
echo "## Changes in $LATEST_TAG" > CHANGELOG.md
|
|
100
|
+
echo "" >> CHANGELOG.md
|
|
101
|
+
|
|
102
|
+
# Get all commits up to the tag
|
|
103
|
+
git log --pretty=format:"- %s (%h)" $LATEST_TAG >> CHANGELOG.md
|
|
104
|
+
fi
|
|
105
|
+
else
|
|
106
|
+
# No tags exist, create changelog from all commits
|
|
107
|
+
echo "## Initial Release" > CHANGELOG.md
|
|
108
|
+
echo "" >> CHANGELOG.md
|
|
109
|
+
echo "This is the first release of diskcache_rs." >> CHANGELOG.md
|
|
110
|
+
echo "" >> CHANGELOG.md
|
|
111
|
+
echo "### All Changes:" >> CHANGELOG.md
|
|
112
|
+
|
|
113
|
+
# Get all commits
|
|
114
|
+
git log --pretty=format:"- %s (%h)" >> CHANGELOG.md
|
|
115
|
+
fi
|
|
116
|
+
|
|
87
117
|
echo "changelog<<EOF" >> $GITHUB_OUTPUT
|
|
88
118
|
cat CHANGELOG.md >> $GITHUB_OUTPUT
|
|
89
119
|
echo "EOF" >> $GITHUB_OUTPUT
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
## v0.2.1 (2025-07-13)
|
|
2
|
+
|
|
3
|
+
### Fix
|
|
4
|
+
|
|
5
|
+
- resolve merge conflicts and correct version field configurations
|
|
6
|
+
- correct ruff target-version configuration
|
|
7
|
+
|
|
8
|
+
## v0.2.0 (2025-07-13)
|
|
9
|
+
|
|
10
|
+
### Feat
|
|
11
|
+
|
|
12
|
+
- replace release-plz with commitizen for better multi-language support
|
|
13
|
+
- implement release-plz for automated version management
|
|
14
|
+
- add release-please for automated version management
|
|
15
|
+
- make ABI3 support optional and enhance README with PyPI badges
|
|
16
|
+
- modernize development setup and add ABI3 support
|
|
17
|
+
|
|
18
|
+
### Fix
|
|
19
|
+
|
|
20
|
+
- resolve ruff linting issues
|
|
21
|
+
- remove unsupported --compatibility abi3 flag from GitHub Actions
|
|
22
|
+
|
|
23
|
+
## v0.1.0 (2025-07-13)
|
|
24
|
+
|
|
25
|
+
### Feat
|
|
26
|
+
|
|
27
|
+
- implement ultra-fast storage backends with superior performance
|
|
28
|
+
- replace Python pickle with high-performance Rust implementation
|
|
29
|
+
- implement high-performance pickle cache with expiration support
|
|
30
|
+
- add missing Cache methods for API compatibility
|
|
31
|
+
- add Docker network environment testing and fix unit tests
|
|
32
|
+
- add missing exists() and keys() methods to Python Cache wrapper
|
|
33
|
+
- add CI-friendly benchmark tests and fix gitignore
|
|
34
|
+
- implement complete diskcache API compatibility and official benchmarks
|
|
35
|
+
- implement drop-in replacement API for diskcache compatibility
|
|
36
|
+
- upgrade CI/CD to use PyPI Trusted Publishing and comprehensive platform support
|
|
37
|
+
- enhance CI/CD pipeline with comprehensive testing and PyPI publishing
|
|
38
|
+
- initial commit with diskcache_rs implementation
|
|
39
|
+
|
|
40
|
+
### Fix
|
|
41
|
+
|
|
42
|
+
- make CI and build workflows reusable for release workflow
|
|
43
|
+
- resolve final ruff CI linting issues
|
|
44
|
+
- resolve Windows timing precision issues across all performance tests
|
|
45
|
+
- resolve Windows timing precision issue in pickle performance tests
|
|
46
|
+
- resolve CI syntax error and code quality issues
|
|
47
|
+
- resolve Windows pytest and CI issues
|
|
48
|
+
- resolve Python 3.8 compatibility and ruff configuration issues
|
|
49
|
+
- resolve all code quality issues and formatting problems
|
|
50
|
+
- resolve CI build failures by adding maturin installation step
|
|
51
|
+
- improve __contains__ method implementation for better compatibility
|
|
52
|
+
- resolve CI test failures and clippy format issues
|
|
53
|
+
- resolve all clippy warnings and test import issues
|
|
54
|
+
- resolve Alpine Linux ARMv7 py3-venv package availability issue
|
|
55
|
+
- resolve bincode import issues in Rust compilation
|
|
56
|
+
- resolve Alpine Linux externally-managed-environment errors in CI
|
|
57
|
+
- improve CI benchmark testing and add comprehensive test suite
|
|
58
|
+
- resolve module naming conflicts and API compatibility issues
|
|
59
|
+
- resolve macOS build issues and add comprehensive benchmark tests
|
|
60
|
+
- resolve circular import issue in Python wrapper
|
|
61
|
+
- resolve cross-platform build issues and modernize CI/CD
|
|
62
|
+
- correct uv syntax and dependency versions for Python 3.8+ compatibility
|
|
63
|
+
|
|
64
|
+
### Refactor
|
|
65
|
+
|
|
66
|
+
- adopt pydantic-core style dependency management and fix Linux CI issues
|
|
67
|
+
- remove diskcache as runtime dependency, make it optional for benchmarks
|
|
68
|
+
- restructure tests to use pytest and split CI workflows
|