Skip to content

Commit 7efeb41

Browse files
vavsabclaude
andcommitted
chore: rename to mapped-diskcache, add PyPI publish CI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent da93160 commit 7efeb41

2 files changed

Lines changed: 47 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.10'
18+
19+
- name: Install dependencies
20+
run: pip install pytest
21+
22+
- name: Run tests
23+
run: pytest tests/ -x -q
24+
25+
publish:
26+
needs: test
27+
runs-on: ubuntu-latest
28+
permissions:
29+
contents: read
30+
steps:
31+
- uses: actions/checkout@v4
32+
33+
- name: Set up Python
34+
uses: actions/setup-python@v5
35+
with:
36+
python-version: '3.10'
37+
38+
- name: Build package
39+
run: |
40+
pip install build
41+
python -m build
42+
43+
- name: Publish to PyPI
44+
uses: pypa/gh-action-pypi-publish@release/v1
45+
with:
46+
password: ${{ secrets.PYPI_API_TOKEN }}

diskcache/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
# Django not installed or not setup so ignore.
6565
pass
6666

67-
__title__ = 'diskcache'
67+
__title__ = 'mapped-diskcache'
6868
__version__ = '6.0.0'
6969
__build__ = 0x060000
7070
__author__ = 'Grant Jenks'

0 commit comments

Comments
 (0)