diskcache-rs 0.2.1__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.
Files changed (70) hide show
  1. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/.cz.toml +1 -1
  2. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/.github/workflows/build-abi3.yml +1 -0
  3. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/.github/workflows/build.yml +1 -0
  4. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/.github/workflows/bump-version.yml +11 -3
  5. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/.github/workflows/release.yml +31 -45
  6. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/CHANGELOG.md +14 -0
  7. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/Cargo.lock +1 -1
  8. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/Cargo.toml +1 -1
  9. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/PKG-INFO +1 -1
  10. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  11. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  12. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/.github/pull_request_template.md +0 -0
  13. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/.github/workflows/benchmark.yml +0 -0
  14. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/.github/workflows/ci.yml +0 -0
  15. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/.gitignore +0 -0
  16. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/Dockerfile.test +0 -0
  17. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/LICENSE +0 -0
  18. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/README.md +0 -0
  19. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/benchmarks/comprehensive_performance_test.py +0 -0
  20. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/benchmarks/detailed_profiling.py +0 -0
  21. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/benchmarks/final_performance_comparison.py +0 -0
  22. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/benchmarks/high_performance_test.py +0 -0
  23. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/benchmarks/memory_usage_test.py +0 -0
  24. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/benchmarks/micro_benchmark.py +0 -0
  25. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/benchmarks/optimization_validation_test.py +0 -0
  26. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/benchmarks/performance_comparison.py +0 -0
  27. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/benchmarks/precise_benchmark.py +0 -0
  28. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/benchmarks/set_performance_analysis.py +0 -0
  29. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/docker-compose.test.yml +0 -0
  30. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/examples/basic_usage.py +0 -0
  31. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/justfile +0 -0
  32. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/pyproject.toml +0 -0
  33. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/python/diskcache_rs/__init__.py +0 -0
  34. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/python/diskcache_rs/__init__.pyi +0 -0
  35. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/python/diskcache_rs/_diskcache_rs.pyi +0 -0
  36. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/python/diskcache_rs/cache.py +0 -0
  37. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/python/diskcache_rs/core.py +0 -0
  38. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/python/diskcache_rs/fast_cache.py +0 -0
  39. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/python/diskcache_rs/pickle_cache.py +0 -0
  40. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/python/diskcache_rs/rust_pickle.py +0 -0
  41. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/renovate.json +0 -0
  42. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/scripts/generate_stubs.py +0 -0
  43. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/scripts/sync_version.py +0 -0
  44. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/scripts/test-docker-network.sh +0 -0
  45. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/src/cache.rs +0 -0
  46. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/src/error.rs +0 -0
  47. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/src/eviction.rs +0 -0
  48. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/src/lib.rs +0 -0
  49. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/src/memory_cache.rs +0 -0
  50. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/src/migration.rs +0 -0
  51. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/src/pickle_cache.rs +0 -0
  52. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/src/serialization.rs +0 -0
  53. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/src/storage/optimized_backend.rs +0 -0
  54. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/src/storage/tests.rs +0 -0
  55. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/src/storage.rs +0 -0
  56. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/src/utils.rs +0 -0
  57. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/tests/__init__.py +0 -0
  58. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/tests/benchmark_official.py +0 -0
  59. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/tests/conftest.py +0 -0
  60. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/tests/test_basic_operations.py +0 -0
  61. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/tests/test_ci_benchmark.py +0 -0
  62. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/tests/test_compatibility.py +0 -0
  63. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/tests/test_cross_platform_network.py +0 -0
  64. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/tests/test_docker_network.py +0 -0
  65. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/tests/test_fast_cache.py +0 -0
  66. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/tests/test_network_filesystem.py +0 -0
  67. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/tests/test_performance.py +0 -0
  68. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/tests/test_pickle_cache.py +0 -0
  69. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/tests/test_rust_pickle_performance.py +0 -0
  70. {diskcache_rs-0.2.1 → diskcache_rs-0.2.3}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  [tool.commitizen]
2
2
  name = "cz_conventional_commits"
3
- version = "0.2.1"
3
+ version = "0.2.3"
4
4
  tag_format = "v$version"
5
5
  update_changelog_on_bump = true
6
6
  major_version_zero = true
@@ -9,6 +9,7 @@ on:
9
9
 
10
10
  permissions:
11
11
  contents: read
12
+ actions: write # Required for uploading artifacts
12
13
 
13
14
  jobs:
14
15
  # Linux ABI3 builds
@@ -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
@@ -4,9 +4,12 @@ on:
4
4
  push:
5
5
  branches:
6
6
  - main
7
+
7
8
  permissions:
8
- contents: write
9
- pull-requests: write
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
+
10
13
  jobs:
11
14
  bump-version:
12
15
  if: "!startsWith(github.event.head_commit.message, 'bump:')"
@@ -14,12 +17,17 @@ jobs:
14
17
  name: "Bump version and create changelog with commitizen"
15
18
  steps:
16
19
  - name: Check out
17
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
20
+ uses: actions/checkout@v4
18
21
  with:
19
22
  fetch-depth: 0
20
23
  token: '${{ secrets.GITHUB_TOKEN }}'
24
+
21
25
  - name: Create bump and changelog
22
26
  uses: commitizen-tools/commitizen-action@master
23
27
  with:
24
28
  github_token: ${{ secrets.GITHUB_TOKEN }}
25
29
  branch: main
30
+ debug: true
31
+
32
+ - name: Print Version
33
+ run: echo "Bumped to version ${{ env.REVISION }}"
@@ -9,7 +9,9 @@ on:
9
9
  workflow_call:
10
10
 
11
11
  permissions:
12
- contents: read
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
13
15
 
14
16
  jobs:
15
17
  # Call the build workflow to build standard wheels
@@ -17,12 +19,14 @@ jobs:
17
19
  uses: ./.github/workflows/build.yml
18
20
  permissions:
19
21
  contents: read
22
+ actions: write # Required for uploading artifacts
20
23
 
21
24
  # Call the ABI3 build workflow to build universal wheels
22
25
  build-abi3:
23
26
  uses: ./.github/workflows/build-abi3.yml
24
27
  permissions:
25
28
  contents: read
29
+ actions: write # Required for uploading artifacts
26
30
 
27
31
  # Call the CI workflow to run tests
28
32
  test:
@@ -73,7 +77,9 @@ jobs:
73
77
  runs-on: ubuntu-latest
74
78
  needs: [release]
75
79
  permissions:
76
- contents: write
80
+ contents: write # Required for creating releases
81
+ actions: read # Required for downloading artifacts
82
+ attestations: write # Required for artifact attestation
77
83
  steps:
78
84
  - uses: actions/checkout@v4
79
85
  with:
@@ -81,42 +87,22 @@ jobs:
81
87
 
82
88
  - name: Generate changelog
83
89
  id: changelog
84
- run: |
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
-
117
- echo "changelog<<EOF" >> $GITHUB_OUTPUT
118
- cat CHANGELOG.md >> $GITHUB_OUTPUT
119
- echo "EOF" >> $GITHUB_OUTPUT
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__}}
120
106
 
121
107
  - name: Download all artifacts
122
108
  uses: actions/download-artifact@v4
@@ -124,11 +110,11 @@ jobs:
124
110
  path: release-artifacts
125
111
  merge-multiple: true
126
112
 
127
- - name: Create Release
128
- uses: softprops/action-gh-release@v2
113
+ - uses: ncipollo/release-action@v1
129
114
  with:
130
- body: ${{ steps.changelog.outputs.changelog }}
131
- files: release-artifacts/*
132
- draft: false
133
- prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
134
- generate_release_notes: true
115
+ artifacts: "release-artifacts/*"
116
+ token: ${{ secrets.GITHUB_TOKEN }}
117
+ body: |
118
+ Comparing Changes: ${{ steps.changelog.outputs.compareurl }}
119
+
120
+ ${{ steps.changelog.outputs.changelog }}
@@ -1,3 +1,17 @@
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
+
1
15
  ## v0.2.1 (2025-07-13)
2
16
 
3
17
  ### Fix
@@ -242,7 +242,7 @@ dependencies = [
242
242
 
243
243
  [[package]]
244
244
  name = "diskcache_rs"
245
- version = "0.2.1"
245
+ version = "0.2.3"
246
246
  dependencies = [
247
247
  "anyhow",
248
248
  "bincode",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "diskcache_rs"
3
- version = "0.2.1"
3
+ version = "0.2.3"
4
4
  edition = "2021"
5
5
  authors = ["longhao <hal.long@outlook.com>"]
6
6
  description = "A high-performance disk cache implementation in Rust with Python bindings"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diskcache_rs
3
- Version: 0.2.1
3
+ Version: 0.2.3
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: Apache Software License
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes