File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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'
You can’t perform that action at this time.
0 commit comments