File tree Expand file tree Collapse file tree 3 files changed +61
-26
lines changed Expand file tree Collapse file tree 3 files changed +61
-26
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2
2
3
- on : push
3
+ on :
4
+ release :
5
+ types : [published]
4
6
5
7
jobs :
6
8
build :
91
93
gh release upload
92
94
'${{ github.ref_name }}' dist/**
93
95
--repo '${{ github.repository }}'
94
-
95
- publish-to-testpypi :
96
- name : Publish Python 🐍 distribution 📦 to TestPyPI
97
- needs :
98
- - build
99
- runs-on : ubuntu-latest
100
-
101
- environment :
102
- name : test
103
- url : https://test.pypi.org/p/<package-name>
104
-
105
- permissions :
106
- id-token : write # IMPORTANT: mandatory for trusted publishing
107
-
108
- steps :
109
- - name : Download all the dists
110
- uses : actions/download-artifact@v3
111
- with :
112
- name : python-package-distributions
113
- path : dist/
114
- - name : Publish distribution 📦 to TestPyPI
115
- uses : pypa/gh-action-pypi-publish@release/v1
116
- with :
117
- repository-url : https://test.pypi.org/legacy/
Original file line number Diff line number Diff line change
1
+ name : Publish Python 🐍 distribution 📦 to TestPyPI
2
+
3
+ on :
4
+ push :
5
+ # Pattern matched against refs/tags
6
+ tags :
7
+ - ' *' # Push events to every tag not containing /
8
+
9
+ jobs :
10
+ build :
11
+ name : Build distribution 📦
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - name : Set up Python
17
+ uses : actions/setup-python@v4
18
+ with :
19
+ python-version : " 3.x"
20
+ - name : Install pypa/build
21
+ run : >-
22
+ python3 -m
23
+ pip install
24
+ build
25
+ --user
26
+ - name : Build a binary wheel and a source tarball
27
+ run : python3 -m build
28
+ - name : Store the distribution packages
29
+ uses : actions/upload-artifact@v3
30
+ with :
31
+ name : python-package-distributions
32
+ path : dist/
33
+
34
+
35
+ publish-to-testpypi :
36
+ name : Publish Python 🐍 distribution 📦 to TestPyPI
37
+ needs :
38
+ - build
39
+ runs-on : ubuntu-latest
40
+
41
+ environment :
42
+ name : test
43
+ url : https://test.pypi.org/p/paramnormal
44
+
45
+ permissions :
46
+ id-token : write # IMPORTANT: mandatory for trusted publishing
47
+
48
+ steps :
49
+ - name : Download all the dists
50
+ uses : actions/download-artifact@v3
51
+ with :
52
+ name : python-package-distributions
53
+ path : dist/
54
+ - name : Publish distribution 📦 to TestPyPI
55
+ uses : pypa/gh-action-pypi-publish@release/v1
56
+ with :
57
+ repository-url : https://test.pypi.org/legacy/
Original file line number Diff line number Diff line change 7
7
DESCRIPTION = "paramnormal: Conventionally parameterized probability distributions"
8
8
LONG_DESCRIPTION = DESCRIPTION
9
9
NAME = "paramnormal"
10
- VERSION = "v0.4.1 "
10
+ VERSION = "v0.4.2 "
11
11
AUTHOR = "Paul Hobson"
12
12
AUTHOR_EMAIL = "[email protected] "
13
13
URL = "http://phobson.github.io/paramnormal/"
You can’t perform that action at this time.
0 commit comments