You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* mike likes hatch so move to it
* update release pipeline
* there is no more setup.py
* improve description of release arg
* version is now stored in init, not pyproject, so commit right file
* install packages before using them, since doing opposite tends to not work
Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+21-16Lines changed: 21 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,10 @@ on:
5
5
workflow_dispatch:
6
6
inputs:
7
7
version:
8
-
description: 'Version to use. Leave default to use the current version'
8
+
description: |
9
+
Version to publish.
10
+
Leave default to publish the current version.
11
+
To change version pass the number or a segment like path, minor, major, etc. See https://hatch.pypa.io/1.12/version/#supported-segments for all available segments.
9
12
required: true
10
13
default: '~~version~~'
11
14
@@ -22,44 +25,47 @@ jobs:
22
25
23
26
steps:
24
27
- name: Checkout repo
25
-
uses: actions/checkout@v2
28
+
uses: actions/checkout@v4
26
29
27
30
- name: Set up python
28
-
uses: actions/setup-python@v2
31
+
uses: actions/setup-python@v5
29
32
with:
30
-
python-version: "3.9"
33
+
python-version: "3.13"
34
+
35
+
- name: Install required packages
36
+
run: |
37
+
python -m pip install --upgrade pip
38
+
pip --version
39
+
pip install hatch twine
40
+
pip list
31
41
32
42
- name: Set version
33
43
# A specific version was set in the action trigger.
34
44
# Change the version in pyproject.toml to that version
0 commit comments