psycache 26.3.0__tar.gz → 26.5.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.
Files changed (74) hide show
  1. {psycache-26.3.0 → psycache-26.5.0}/.github/AI_POLICY.md +6 -0
  2. {psycache-26.3.0 → psycache-26.5.0}/.github/PULL_REQUEST_TEMPLATE.md +1 -1
  3. psycache-26.5.0/.github/SECURITY.md +22 -0
  4. psycache-26.5.0/.github/workflows/actions.lock +131 -0
  5. {psycache-26.3.0 → psycache-26.5.0}/.github/workflows/ci.yml +30 -33
  6. {psycache-26.3.0 → psycache-26.5.0}/.github/workflows/codeql-analysis.yml +4 -4
  7. {psycache-26.3.0 → psycache-26.5.0}/.github/workflows/pypi-package.yml +6 -6
  8. psycache-26.5.0/.github/workflows/verify-lockfile.yml +29 -0
  9. {psycache-26.3.0 → psycache-26.5.0}/.github/workflows/zizmor.yml +2 -2
  10. {psycache-26.3.0 → psycache-26.5.0}/.pre-commit-config.yaml +4 -5
  11. {psycache-26.3.0 → psycache-26.5.0}/.readthedocs.yaml +4 -3
  12. psycache-26.5.0/CHANGELOG.md +71 -0
  13. {psycache-26.3.0 → psycache-26.5.0}/PKG-INFO +28 -17
  14. {psycache-26.3.0 → psycache-26.5.0}/README.md +12 -4
  15. {psycache-26.3.0 → psycache-26.5.0}/conftest.py +23 -5
  16. psycache-26.5.0/docs/assets/stylesheets/fonts.css +18 -0
  17. {psycache-26.3.0 → psycache-26.5.0}/docs/cleanup.md +59 -1
  18. {psycache-26.3.0 → psycache-26.5.0}/docs/getting-started.md +10 -15
  19. {psycache-26.3.0 → psycache-26.5.0}/docs/index.md +3 -3
  20. {psycache-26.3.0 → psycache-26.5.0}/docs/instrumentation/custom.md +8 -6
  21. {psycache-26.3.0 → psycache-26.5.0}/docs/instrumentation/sentry.md +2 -2
  22. {psycache-26.3.0 → psycache-26.5.0}/docs/pool-adapters.md +3 -3
  23. {psycache-26.3.0 → psycache-26.5.0}/pyproject.toml +60 -21
  24. {psycache-26.3.0 → psycache-26.5.0}/src/psycache/__main__.py +11 -9
  25. {psycache-26.3.0 → psycache-26.5.0}/src/psycache/_async.py +2 -6
  26. {psycache-26.3.0 → psycache-26.5.0}/src/psycache/_sql.py +24 -25
  27. {psycache-26.3.0 → psycache-26.5.0}/src/psycache/_sync.py +6 -9
  28. psycache-26.5.0/src/psycache/_tables.py +26 -0
  29. {psycache-26.3.0 → psycache-26.5.0}/src/psycache/instrumentation/_spans.py +6 -6
  30. {psycache-26.3.0 → psycache-26.5.0}/src/psycache/instrumentation/prometheus.py +6 -6
  31. {psycache-26.3.0 → psycache-26.5.0}/src/psycache/instrumentation/sentry.py +27 -26
  32. {psycache-26.3.0 → psycache-26.5.0}/src/psycache/psycopg_pool.py +3 -3
  33. {psycache-26.3.0 → psycache-26.5.0}/src/psycache/sqlalchemy.py +12 -6
  34. {psycache-26.3.0 → psycache-26.5.0}/src/psycache/typing.py +6 -3
  35. {psycache-26.3.0 → psycache-26.5.0}/tests/test_cli.py +29 -9
  36. {psycache-26.3.0 → psycache-26.5.0}/tests/test_raw.py +9 -9
  37. {psycache-26.3.0 → psycache-26.5.0}/tests/test_raw_async.py +3 -3
  38. psycache-26.5.0/tests/test_sentry.py +166 -0
  39. psycache-26.5.0/tests/test_sqlalchemy.py +40 -0
  40. psycache-26.5.0/tests/test_sqlalchemy_async.py +44 -0
  41. {psycache-26.3.0 → psycache-26.5.0}/tox.ini +8 -6
  42. psycache-26.5.0/typing_tests/__init__.py +0 -0
  43. {psycache-26.3.0/tests/typing → psycache-26.5.0/typing_tests}/core.py +4 -2
  44. {psycache-26.3.0 → psycache-26.5.0}/zensical.toml +4 -0
  45. psycache-26.3.0/CHANGELOG.md +0 -47
  46. psycache-26.3.0/src/psycache/_tables.py +0 -26
  47. psycache-26.3.0/tests/test_sqlalchemy.py +0 -85
  48. {psycache-26.3.0 → psycache-26.5.0}/.git_archival.txt +0 -0
  49. {psycache-26.3.0 → psycache-26.5.0}/.gitattributes +0 -0
  50. {psycache-26.3.0 → psycache-26.5.0}/.github/CODE_OF_CONDUCT.md +0 -0
  51. {psycache-26.3.0 → psycache-26.5.0}/.github/CONTRIBUTING.md +0 -0
  52. {psycache-26.3.0 → psycache-26.5.0}/.github/FUNDING.yml +0 -0
  53. {psycache-26.3.0 → psycache-26.5.0}/.github/dependabot.yml +0 -0
  54. {psycache-26.3.0 → psycache-26.5.0}/.gitignore +0 -0
  55. {psycache-26.3.0 → psycache-26.5.0}/.python-version +0 -0
  56. {psycache-26.3.0 → psycache-26.5.0}/LICENSE +0 -0
  57. {psycache-26.3.0 → psycache-26.5.0}/docs/api-types.md +0 -0
  58. {psycache-26.3.0 → psycache-26.5.0}/docs/api.md +0 -0
  59. {psycache-26.3.0 → psycache-26.5.0}/docs/assets/javascript/readthedocs.js +0 -0
  60. {psycache-26.3.0 → psycache-26.5.0}/docs/async.md +0 -0
  61. {psycache-26.3.0 → psycache-26.5.0}/docs/instrumentation/index.md +0 -0
  62. {psycache-26.3.0 → psycache-26.5.0}/docs/instrumentation/prometheus.md +0 -0
  63. {psycache-26.3.0 → psycache-26.5.0}/docs/quality-of-life.md +0 -0
  64. {psycache-26.3.0 → psycache-26.5.0}/docs/raw-queries.md +0 -0
  65. {psycache-26.3.0 → psycache-26.5.0}/src/psycache/__init__.py +0 -0
  66. {psycache-26.3.0 → psycache-26.5.0}/src/psycache/_durations.py +0 -0
  67. {psycache-26.3.0 → psycache-26.5.0}/src/psycache/instrumentation/__init__.py +0 -0
  68. {psycache-26.3.0 → psycache-26.5.0}/src/psycache/py.typed +0 -0
  69. {psycache-26.3.0 → psycache-26.5.0}/tests/__init__.py +0 -0
  70. {psycache-26.3.0 → psycache-26.5.0}/tests/test_maintenance.py +0 -0
  71. {psycache-26.3.0 → psycache-26.5.0}/tests/test_psycopg_pool.py +0 -0
  72. {psycache-26.3.0/tests/typing → psycache-26.5.0/typing_tests}/README.md +0 -0
  73. {psycache-26.3.0/tests/typing → psycache-26.5.0/typing_tests}/psycopg_pool.py +0 -0
  74. {psycache-26.3.0/tests/typing → psycache-26.5.0/typing_tests}/sqlalchemy.py +0 -0
@@ -17,13 +17,19 @@ However, due to both legal and human reasons, we have to establish boundaries.
17
17
  >
18
18
  > - Absolutely **no** unsupervised agentic tools like OpenClaw.
19
19
  >
20
+ > - Do **not** trigger bots like Copilot on this repository.
21
+ > GitHub won't let us block Copilot, but it's a great way to tell you didn't read this.
22
+ >
20
23
  > ---
21
24
  >
22
25
  > By submitting a pull request, you certify that:
23
26
  >
24
27
  > - You are the author of the contribution or have the legal right to submit it.
28
+ >
25
29
  > - You either hold the copyright to the changes or have explicit legal authorization to contribute them under this project's license.
30
+ >
26
31
  > - You understand the code.
32
+ >
27
33
  > - You accept full responsibility for it.
28
34
 
29
35
 
@@ -20,7 +20,7 @@ You may check boxes that don't apply to your pull request to indicate that there
20
20
  - [ ] This pull request is [**not** from my `main` branch](https://hynek.me/articles/pull-requests-branch/).
21
21
  - Consider granting [push permissions to the PR branch](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork), so maintainers can fix minor issues themselves without pestering you.
22
22
  - [ ] There's **tests** for all new and changed code.
23
- - [ ] **New APIs** are added to our typing tests at <https://github.com/hynek/psycache/blob/main/tests/typing/>.
23
+ - [ ] **New APIs** are added to our typing tests at <https://github.com/hynek/psycache/blob/main/typing_tests/>.
24
24
  - [ ] Updated **documentation** for changed code.
25
25
  - [ ] New functions/classes have to be added to `docs/core-concepts.md` or one of the integration guides by hand.
26
26
  - [ ] Changed/added classes/methods/functions have appropriate `versionadded`, `versionchanged`, or `deprecated` [directives](http://www.sphinx-doc.org/en/stable/markup/para.html#directive-versionadded).
@@ -0,0 +1,22 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ We follow [Calendar Versioning](https://calver.org) with generous backwards-compatibility guarantees.
6
+ Therefore, we only support the latest version.
7
+
8
+ That said, you shouldn't be afraid to upgrade if you're only using our documented public APIs and pay attention to `DeprecationWarning`s.
9
+ Whenever there is a need to break compatibility, it is announced in the changelog and raises a `DeprecationWarning` for a year (if possible) before it's finally really broken.
10
+
11
+ > [!WARNING]
12
+ > There is **one** exception:
13
+ >
14
+ > APIs may be marked as *provisional*.
15
+ > They are not guaranteed to be stable and may change or be removed without prior notice.
16
+
17
+
18
+ ## Reporting a Vulnerability
19
+
20
+ If you think you found a vulnerability, please use [GitHub's security advisory form](https://github.com/hynek/svcs/security/advisories/new), or email Hynek Schlawack at <hs@ox.cx>.
21
+
22
+ If you submit AI slop, you will be permanently blocked.
@@ -0,0 +1,131 @@
1
+ # This file is machine-generated by `gh actions-lock`.
2
+ # Do not edit by hand; run `gh actions-lock` to update.
3
+ # Docs: https://gh.io/actions-lockfile
4
+ version: 'v0.0.3'
5
+ workflows:
6
+ '.github/workflows/ci.yml':
7
+ - 'actions/checkout@v7.0.1'
8
+ - 'actions/download-artifact@v8.0.2'
9
+ - 'actions/setup-python@v7.1.0'
10
+ - 'actions/upload-artifact@v7.0.2'
11
+ - 'hynek/build-and-inspect-python-package@v3.0.2'
12
+ - 'hynek/setup-cached-uv@v2.6.0'
13
+ - 're-actors/alls-green@v1.3.0'
14
+ '.github/workflows/codeql-analysis.yml':
15
+ - 'actions/checkout@v7.0.1'
16
+ - 'github/codeql-action@v4.39.4'
17
+ '.github/workflows/pypi-package.yml':
18
+ - 'actions/checkout@v7.0.1'
19
+ - 'actions/download-artifact@v8.0.2'
20
+ - 'hynek/build-and-inspect-python-package@v3.0.2'
21
+ - 'pypa/gh-action-pypi-publish@v1.14.3'
22
+ '.github/workflows/verify-lockfile.yml':
23
+ - 'actions/checkout@v7.0.1'
24
+ '.github/workflows/zizmor.yml':
25
+ - 'actions/checkout@v7.0.1'
26
+ - 'zizmorcore/zizmor-action@v0.9.0'
27
+ dependencies:
28
+ 'actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8':
29
+ ref: 'v4.2.2'
30
+ commit: 'sha1-4d101475d8b20a2381f78447822ac1eab6504dd8'
31
+ owner_id: 44036562
32
+ repo_id: 760702757
33
+ uses:
34
+ - 'actions/attest@508db95dd578ae2727ebd6217d5ba78e4fbda05d'
35
+ 'actions/attest@508db95dd578ae2727ebd6217d5ba78e4fbda05d':
36
+ ref: 'v4.2.1'
37
+ commit: 'sha1-508db95dd578ae2727ebd6217d5ba78e4fbda05d'
38
+ owner_id: 44036562
39
+ repo_id: 760701061
40
+ 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9':
41
+ ref: 'v6.1.0'
42
+ commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
43
+ owner_id: 44036562
44
+ repo_id: 215566462
45
+ 'actions/checkout@v7.0.1':
46
+ ref: 'v7.0.1'
47
+ commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
48
+ owner_id: 44036562
49
+ repo_id: 197814629
50
+ 'actions/download-artifact@v8.0.2':
51
+ ref: 'v8.0.2'
52
+ commit: 'sha1-9000827ccba6bdab643e8b6fd33ac0654aef8333'
53
+ owner_id: 44036562
54
+ repo_id: 192626254
55
+ 'actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97':
56
+ ref: 'v7.0.0'
57
+ commit: 'sha1-5fda3b95a4ea91299a34e894583c3862153e4b97'
58
+ owner_id: 44036562
59
+ repo_id: 192625525
60
+ 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405':
61
+ ref: 'v6.2.0'
62
+ commit: 'sha1-a309ff8b426b58ec0e2a45f0f869d46889d02405'
63
+ owner_id: 44036562
64
+ repo_id: 192625525
65
+ 'actions/setup-python@v7.1.0':
66
+ ref: 'v7.1.0'
67
+ commit: 'sha1-6d4fd22b20465ccc0f7354476588e8df7c9ca0e0'
68
+ owner_id: 44036562
69
+ repo_id: 192625525
70
+ 'actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9':
71
+ ref: 'v7.0.2'
72
+ commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9'
73
+ owner_id: 44036562
74
+ repo_id: 192625955
75
+ 'actions/upload-artifact@v7.0.2':
76
+ ref: 'v7.0.2'
77
+ commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9'
78
+ owner_id: 44036562
79
+ repo_id: 192625955
80
+ 'gacts/run-and-post-run@598d7a875d5620e0457490555b5e18e46082aa47':
81
+ ref: 'v1.4.4'
82
+ commit: 'sha1-598d7a875d5620e0457490555b5e18e46082aa47'
83
+ owner_id: 56696274
84
+ repo_id: 617991574
85
+ 'github/codeql-action@33d7b85da1a04171e211befe2c739303b9a4c066':
86
+ ref: 'v4.39.3'
87
+ commit: 'sha1-33d7b85da1a04171e211befe2c739303b9a4c066'
88
+ owner_id: 9919
89
+ repo_id: 259445878
90
+ 'github/codeql-action@v4.39.4':
91
+ ref: 'v4.39.4'
92
+ commit: 'sha1-1bd86f2fdb4b86187fa4059f16f31a3202acc9ea'
93
+ owner_id: 9919
94
+ repo_id: 259445878
95
+ 'hynek/build-and-inspect-python-package@v3.0.2':
96
+ ref: 'v3.0.2'
97
+ commit: 'sha1-67230f7b8410ae0052b39c1efc89d89fff43ff10'
98
+ owner_id: 41240
99
+ repo_id: 526525235
100
+ uses:
101
+ - 'actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8'
102
+ - 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
103
+ - 'actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97'
104
+ - 'actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9'
105
+ 'hynek/setup-cached-uv@v2.6.0':
106
+ ref: 'v2.6.0'
107
+ commit: 'sha1-34e35d30f1ebc7421a5cc733bca38dcc62603960'
108
+ owner_id: 41240
109
+ repo_id: 779953216
110
+ uses:
111
+ - 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
112
+ - 'gacts/run-and-post-run@598d7a875d5620e0457490555b5e18e46082aa47'
113
+ 'pypa/gh-action-pypi-publish@v1.14.3':
114
+ ref: 'v1.14.3'
115
+ commit: 'sha1-7245906fb61fa33a13554f9d5fb856fe61758086'
116
+ owner_id: 647025
117
+ repo_id: 178055147
118
+ uses:
119
+ - 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405'
120
+ 're-actors/alls-green@v1.3.0':
121
+ ref: 'v1.3.0'
122
+ commit: 'sha1-b5b5b37504aa4183270bd3d855c52a67f212be35'
123
+ owner_id: 46427759
124
+ repo_id: 434447646
125
+ 'zizmorcore/zizmor-action@v0.9.0':
126
+ ref: 'v0.9.0'
127
+ commit: 'sha1-bd12b495c90993a4301c73398142281a61499af3'
128
+ owner_id: 210636713
129
+ repo_id: 985558803
130
+ uses:
131
+ - 'github/codeql-action@33d7b85da1a04171e211befe2c739303b9a4c066'
@@ -9,8 +9,6 @@ on:
9
9
 
10
10
  env:
11
11
  FORCE_COLOR: "1" # Make tools pretty.
12
- PIP_DISABLE_PIP_VERSION_CHECK: "1"
13
- PIP_NO_PYTHON_VERSION_WARNING: "1"
14
12
 
15
13
  concurrency:
16
14
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -24,12 +22,12 @@ jobs:
24
22
  runs-on: ubuntu-latest
25
23
 
26
24
  steps:
27
- - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
25
+ - uses: actions/checkout@v7.0.1
28
26
  with:
29
27
  fetch-depth: 0
30
28
  persist-credentials: false
31
29
 
32
- - uses: hynek/build-and-inspect-python-package@d44ca7d91762de7a7d5436ddae667c6da6d1c3df # v2.18.0
30
+ - uses: hynek/build-and-inspect-python-package@v3.0.2
33
31
  id: baipp
34
32
 
35
33
  outputs:
@@ -53,18 +51,18 @@ jobs:
53
51
 
54
52
  steps:
55
53
  - name: Download pre-built packages
56
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
54
+ uses: actions/download-artifact@v8.0.2
57
55
  with:
58
56
  name: Packages
59
57
  path: dist
60
58
  - run: |
61
59
  tar xf dist/*.tar.gz --strip-components=1
62
60
  rm -rf src
63
- - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
61
+ - uses: actions/setup-python@v7.1.0
64
62
  with:
65
63
  python-version: ${{ matrix.python-version }}
66
64
  allow-prereleases: true
67
- - uses: hynek/setup-cached-uv@4300ec2180bc77d705e626a34e381b81a4772c51 # v2.5.0
65
+ - uses: hynek/setup-cached-uv@v2.6.0
68
66
 
69
67
  - name: Start PostgreSQL
70
68
  run: |
@@ -80,12 +78,13 @@ jobs:
80
78
 
81
79
  - name: Run tests
82
80
  run: >
83
- uvx --with tox-uv tox run
81
+ uvx --with tox-uv-bare
82
+ tox run
84
83
  --installpkg dist/*.whl
85
84
  -f ${PYTHON}-tests
86
85
 
87
86
  - name: Upload coverage data
88
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
87
+ uses: actions/upload-artifact@v7.0.2
89
88
  with:
90
89
  name: coverage-data-${{ matrix.python-version }}
91
90
  path: .coverage.*
@@ -99,16 +98,16 @@ jobs:
99
98
  if: always()
100
99
 
101
100
  steps:
102
- - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
101
+ - uses: actions/checkout@v7.0.1
103
102
  with:
104
103
  persist-credentials: false
105
- - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
104
+ - uses: actions/setup-python@v7.1.0
106
105
  with:
107
106
  python-version-file: .python-version
108
- - uses: hynek/setup-cached-uv@4300ec2180bc77d705e626a34e381b81a4772c51 # v2.5.0
107
+ - uses: hynek/setup-cached-uv@v2.6.0
109
108
 
110
109
  - name: Download coverage data
111
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
110
+ uses: actions/download-artifact@v8.0.2
112
111
  with:
113
112
  pattern: coverage-data-*
114
113
  merge-multiple: true
@@ -127,7 +126,7 @@ jobs:
127
126
  coverage report --fail-under=100
128
127
 
129
128
  - name: Upload HTML report if check failed.
130
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
129
+ uses: actions/upload-artifact@v7.0.2
131
130
  with:
132
131
  name: html-report
133
132
  path: htmlcov
@@ -140,36 +139,35 @@ jobs:
140
139
 
141
140
  steps:
142
141
  - name: Download pre-built packages
143
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
142
+ uses: actions/download-artifact@v8.0.2
144
143
  with:
145
144
  name: Packages
146
145
  path: dist
147
146
  - run: tar xf dist/*.tar.gz --strip-components=1
148
- - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
147
+ - uses: actions/setup-python@v7.1.0
149
148
  with:
150
149
  python-version-file: .python-version
151
- - uses: hynek/setup-cached-uv@4300ec2180bc77d705e626a34e381b81a4772c51 # v2.5.0
150
+ - uses: hynek/setup-cached-uv@v2.6.0
152
151
 
153
152
  - run: >
154
- uvx --with tox-uv
153
+ uvx --with tox-uv-bare
155
154
  tox run -f typing
156
155
 
157
156
  docs:
158
157
  name: Run doctests
159
158
  needs: build-package
160
- runs-on: ubuntu-latest
159
+ runs-on: ubuntu-24.04 # the version affects postgres paths!
161
160
  steps:
162
161
  - name: Download pre-built packages
163
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
162
+ uses: actions/download-artifact@v8.0.2
164
163
  with:
165
164
  name: Packages
166
165
  path: dist
167
166
  - run: tar xf dist/*.tar.gz --strip-components=1
168
- - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
167
+ - uses: actions/setup-python@v7.1.0
169
168
  with:
170
- # Keep in sync with tox.ini's base_python_file.
171
169
  python-version-file: .python-version
172
- - uses: hynek/setup-cached-uv@4300ec2180bc77d705e626a34e381b81a4772c51 # v2.5.0
170
+ - uses: hynek/setup-cached-uv@v2.6.0
173
171
 
174
172
  - name: Start PostgreSQL
175
173
  # The README examples connect to a real database, so the doctests need
@@ -186,7 +184,7 @@ jobs:
186
184
  until sudo -u postgres pg_isready -q; do sleep 1; done
187
185
 
188
186
  - run: >
189
- uvx --with tox-uv
187
+ uvx --with tox-uv-bare
190
188
  tox run -e docs-doctests
191
189
 
192
190
  docs-build:
@@ -195,19 +193,18 @@ jobs:
195
193
  runs-on: ubuntu-latest
196
194
  steps:
197
195
  - name: Download pre-built packages
198
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
196
+ uses: actions/download-artifact@v8.0.2
199
197
  with:
200
198
  name: Packages
201
199
  path: dist
202
200
  - run: tar xf dist/*.tar.gz --strip-components=1
203
- - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
201
+ - uses: actions/setup-python@v7.1.0
204
202
  with:
205
- # Keep in sync with tox.ini's base_python_file.
206
203
  python-version-file: .python-version
207
- - uses: hynek/setup-cached-uv@4300ec2180bc77d705e626a34e381b81a4772c51 # v2.5.0
204
+ - uses: hynek/setup-cached-uv@v2.6.0
208
205
 
209
206
  - run: >
210
- uvx --with tox-uv
207
+ uvx --with tox-uv-bare
211
208
  tox run -e docs-build -- --strict
212
209
 
213
210
  install-dev:
@@ -215,13 +212,13 @@ jobs:
215
212
  runs-on: ubuntu-latest
216
213
 
217
214
  steps:
218
- - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
215
+ - uses: actions/checkout@v7.0.1
219
216
  with:
220
217
  persist-credentials: false
221
- - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
218
+ - uses: actions/setup-python@v7.1.0
222
219
  with:
223
220
  python-version-file: .python-version
224
- - uses: hynek/setup-cached-uv@4300ec2180bc77d705e626a34e381b81a4772c51 # v2.5.0
221
+ - uses: hynek/setup-cached-uv@v2.6.0
225
222
 
226
223
  - run: uv venv
227
224
  - run: uv pip install -e . --group dev
@@ -243,6 +240,6 @@ jobs:
243
240
 
244
241
  steps:
245
242
  - name: Decide whether the needed jobs succeeded or failed
246
- uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
243
+ uses: re-actors/alls-green@v1.3.0
247
244
  with:
248
245
  jobs: ${{ toJSON(needs) }}
@@ -26,17 +26,17 @@ jobs:
26
26
 
27
27
  steps:
28
28
  - name: Checkout repository
29
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
29
+ uses: actions/checkout@v7.0.1
30
30
  with:
31
31
  persist-credentials: false
32
32
 
33
33
  - name: Initialize CodeQL
34
- uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
34
+ uses: github/codeql-action/init@v4.39.4
35
35
  with:
36
36
  languages: ${{ matrix.language }}
37
37
 
38
38
  - name: Autobuild
39
- uses: github/codeql-action/autobuild@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
39
+ uses: github/codeql-action/autobuild@v4.39.4
40
40
 
41
41
  - name: Perform CodeQL Analysis
42
- uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
42
+ uses: github/codeql-action/analyze@v4.39.4
@@ -26,12 +26,12 @@ jobs:
26
26
  id-token: write # necessary for GitHub attestations
27
27
 
28
28
  steps:
29
- - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
29
+ - uses: actions/checkout@v7.0.1
30
30
  with:
31
31
  fetch-depth: 0
32
32
  persist-credentials: false
33
33
 
34
- - uses: hynek/build-and-inspect-python-package@d44ca7d91762de7a7d5436ddae667c6da6d1c3df # v2.18.0
34
+ - uses: hynek/build-and-inspect-python-package@v3.0.2
35
35
  with:
36
36
  attest-build-provenance-github: 'true'
37
37
 
@@ -48,13 +48,13 @@ jobs:
48
48
 
49
49
  steps:
50
50
  - name: Download packages built by build-and-inspect-python-package
51
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
51
+ uses: actions/download-artifact@v8.0.2
52
52
  with:
53
53
  name: Packages
54
54
  path: dist
55
55
 
56
56
  - name: Upload package to Test PyPI
57
- uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
57
+ uses: pypa/gh-action-pypi-publish@v1.14.3
58
58
  with:
59
59
  repository-url: https://test.pypi.org/legacy/
60
60
 
@@ -71,12 +71,12 @@ jobs:
71
71
 
72
72
  steps:
73
73
  - name: Download packages built by build-and-inspect-python-package
74
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
74
+ uses: actions/download-artifact@v8.0.2
75
75
  with:
76
76
  name: Packages
77
77
  path: dist
78
78
 
79
79
  - name: Upload package to PyPI
80
- uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
80
+ uses: pypa/gh-action-pypi-publish@v1.14.3
81
81
  with:
82
82
  attestations: true
@@ -0,0 +1,29 @@
1
+ # Fails when .github/workflows/actions.lock is out of sync with the
2
+ # workflows or a locked pin no longer verifies upstream.
3
+
4
+ name: verify-lockfile
5
+
6
+ on:
7
+ pull_request:
8
+ push:
9
+ branches: ["main"]
10
+
11
+ concurrency:
12
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13
+ cancel-in-progress: true
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ verify:
20
+ name: Verify actions lockfile
21
+ runs-on: ubuntu-latest
22
+ env:
23
+ GH_TOKEN: ${{ github.token }}
24
+ steps:
25
+ - uses: actions/checkout@v7.0.1
26
+ with:
27
+ persist-credentials: false
28
+ - run: gh extension install github/gh-actions-lock
29
+ - run: gh actions-lock --verify
@@ -22,12 +22,12 @@ jobs:
22
22
  security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
23
23
  steps:
24
24
  - name: Checkout repository
25
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
25
+ uses: actions/checkout@v7.0.1
26
26
  with:
27
27
  persist-credentials: false
28
28
 
29
29
  - name: Run zizmor 🌈
30
- uses: zizmorcore/zizmor-action@192e21d79ab29983730a13d1382995c2307fbcaa # v0.5.7
30
+ uses: zizmorcore/zizmor-action@v0.9.0
31
31
  with:
32
32
  persona: pedantic
33
33
  ...
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  repos:
3
3
  - repo: https://github.com/astral-sh/ruff-pre-commit
4
- rev: v0.15.18
4
+ rev: v0.17.6
5
5
  hooks:
6
6
  - id: ruff-check
7
7
  args: [--fix, --exit-non-zero-on-fix]
@@ -14,19 +14,18 @@ repos:
14
14
  args: [tests]
15
15
 
16
16
  - repo: https://github.com/codespell-project/codespell
17
- rev: v2.4.2
17
+ rev: v2.4.3
18
18
  hooks:
19
19
  - id: codespell
20
20
 
21
21
  - repo: https://github.com/abravalheri/validate-pyproject
22
- rev: v0.25
22
+ rev: "v0.27"
23
23
  hooks:
24
24
  - id: validate-pyproject
25
25
  # Optional extra validations from SchemaStore:
26
26
  additional_dependencies: ["validate-pyproject-schema-store[all]"]
27
27
 
28
- - repo: https://github.com/pre-commit/pre-commit-hooks
29
- rev: v6.0.0
28
+ - repo: builtin
30
29
  hooks:
31
30
  - id: trailing-whitespace
32
31
  - id: end-of-file-fixer
@@ -4,8 +4,9 @@ version: 2
4
4
  build:
5
5
  os: ubuntu-lts-latest
6
6
  tools:
7
- # Keep in sync with .python-version and tox.ini's docs base_python.
8
- python: "3.14"
7
+ # Mandatory field. We allow uv to install Python to avoid manual
8
+ # duplication, but latest is usually the correct version.
9
+ python: latest
9
10
  jobs:
10
11
  create_environment:
11
12
  # Need the tags to calculate the version.
@@ -19,7 +20,7 @@ build:
19
20
  html:
20
21
  # Set canonical URL
21
22
  - sed -i "s|https://psycache.hynek.me/|$READTHEDOCS_CANONICAL_URL|g" zensical.toml
22
- - uvx --with tox-uv tox run -e docs-build
23
+ - uvx --with tox-uv-bare tox run -e docs-build
23
24
  # Zensical builds into site/; hand it to Read the Docs.
24
25
  # https://docs.readthedocs.com/platform/latest/intro/zensical.html
25
26
  - mkdir -p $READTHEDOCS_OUTPUT/html/
@@ -0,0 +1,71 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/) and this project adheres to [Calendar Versioning](https://calver.org/).
6
+
7
+ The **first number** of the version is the year.
8
+ The **second number** is incremented with each release, starting at 1 for each year.
9
+ The **third number** is for emergencies when we need to start branches for older releases.
10
+
11
+ You can find our backwards-compatibility policy [here](https://github.com/hynek/psycache/blob/main/.github/SECURITY.md).
12
+
13
+ <!-- changelog follows -->
14
+
15
+
16
+ ## [26.5.0](https://github.com/hynek/psycache/compare/26.4.0...26.5.0) - 2026-11-23
17
+
18
+ ### Changed
19
+
20
+ - `psycache.instrumentation.sentry.SentryInstrumentation` now requires *sentry-sdk* 3.0 or later.
21
+ The span data are now span attributes, and the operation is the `sentry.op` attribute.
22
+ [#12](https://github.com/hynek/psycache/pull/12)
23
+
24
+
25
+ ## [26.4.0](https://github.com/hynek/psycache/compare/26.3.0...26.4.0) - 2026-09-29
26
+
27
+ ### Changed
28
+
29
+ - *psycache* is now considered stable and the usual [backwards-compatibility](https://github.com/hynek/psycache/blob/main/.github/SECURITY.md) promises apply.
30
+
31
+ - The *schema* parameters of `init_db()`, `PostgresCache`, and `AsyncPostgresCache` and the `--schema` option of `init-db` have been replaced by *table* and `--table`.
32
+ They take the name of the cache table, optionally schema-qualified with a dot (for example, `app_cache.psycache`).
33
+
34
+
35
+ ### Fixed
36
+
37
+ - sqlalchemy: Imports from `sqlalchemy.ext.asyncio` are now protected using `if TYPE_CHECKING:`.
38
+ This fixes the runtime dependency on *greenlet* on SQLALchemy 2.1+, even if `psycache.sqlalchemy.AsyncSQLAlchemyCachePool` is not used.
39
+ [#11](https://github.com/hynek/psycache/pull/11)
40
+
41
+
42
+ ## [26.3.0](https://github.com/hynek/psycache/compare/26.2.0...26.3.0) - 2026-06-26
43
+
44
+ ### Added
45
+
46
+ - Support for PostgreSQL schemas for keeping multiple cache tables in one database.
47
+ [#5](https://github.com/hynek/psycache/pull/5)
48
+
49
+ - `python -Im psycache init-db` now prints the initialization SQL to stdout if no DSN is passed.
50
+ [#6](https://github.com/hynek/psycache/pull/6)
51
+
52
+
53
+ ## [26.2.0](https://github.com/hynek/psycache/compare/26.1.0...26.2.0) - 2026-06-25
54
+
55
+ ### Added
56
+
57
+ - Proper docs at <https://psycache.hynek.me/>.
58
+ [#2](https://github.com/hynek/psycache/pull/2)
59
+
60
+
61
+ ## Changed
62
+
63
+ - Replaced *attrs* by hand-written classes.
64
+ Sadly, the documentation ecosystem is not ready and *dataclasses* are not fit for public APIs.
65
+ This means Psycopg is the **only** dependency.
66
+ [#3](https://github.com/hynek/psycache/pull/3)
67
+
68
+
69
+ ## [26.1.0](https://github.com/hynek/psycache/tree/26.1.0) - 2026-06-24
70
+
71
+ Initial release.