File tree 3 files changed +45
-12
lines changed
3 files changed +45
-12
lines changed Original file line number Diff line number Diff line change 3
3
4
4
name : Publish Python distributions to PyPI
5
5
6
- on : push
6
+ on :
7
+ release :
8
+ types : [published]
9
+ push :
10
+ branches : [master]
11
+ pull_request :
12
+
13
+ permissions :
14
+ contents : read
15
+
16
+ concurrency :
17
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18
+ cancel-in-progress : true
7
19
8
20
jobs :
9
- build-n-publish :
21
+ build :
10
22
name : Build and publish Python distributions to PyPI
11
23
runs-on : ubuntu-latest
12
24
steps :
13
25
- uses : actions/checkout@v4
14
- - name : Set up Python 3.11
26
+ - name : Set up Python
15
27
uses : actions/setup-python@v5
16
28
with :
17
- python-version : " 3.11 "
29
+ python-version : " 3.x "
18
30
- name : Install pypa/build
19
31
run : >-
20
- python -m
21
- pip install
22
- build
23
- --user
32
+ python -m pip install --upgrade build
24
33
- name : Build a binary wheel and a source tarball
25
34
run : >-
26
35
python -m
29
38
--wheel
30
39
--outdir dist/
31
40
.
41
+ - name : Store the distribution packages
42
+ uses : actions/upload-artifact@v4
43
+ with :
44
+ name : python-package-distributions
45
+ path : dist/
46
+
47
+ publish :
48
+ name : Publish distribution to PyPI
49
+ if : github.event_name == 'release'
50
+ needs :
51
+ - build
52
+ runs-on : ubuntu-latest
53
+ environment :
54
+ name : publish
55
+ url : https://pypi.org/p/pyanalyze
56
+ permissions :
57
+ id-token : write
58
+ steps :
59
+ - name : Download all the dists
60
+ uses : actions/download-artifact@v4
61
+ with :
62
+ name : python-package-distributions
63
+ path : dist/
32
64
- name : Publish distribution to PyPI
33
- if : startsWith(github.ref, 'refs/tags')
34
65
uses : pypa/gh-action-pypi-publish@release/v1
35
- with :
36
- password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## Version 0.13.1 (August 7, 2024)
4
+
5
+ - Use Trusted Publishing to publish releases (#806 )
6
+
3
7
## Version 0.13.0 (August 7, 2024)
4
8
5
9
- Flag use of generators that are immediately discarded (#800 )
Original file line number Diff line number Diff line change 2
2
3
3
from setuptools import setup
4
4
5
- version = "0.13.0 "
5
+ version = "0.13.1 "
6
6
package_data = ["test.toml" , "stubs/*/*.pyi" ]
7
7
8
8
You can’t perform that action at this time.
0 commit comments