File tree Expand file tree Collapse file tree 2 files changed +20
-22
lines changed Expand file tree Collapse file tree 2 files changed +20
-22
lines changed Original file line number Diff line number Diff line change 1
- name : Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
1
+ name : Publish Python 🐍 distributions 📦 to PyPI with Poetry
2
2
3
3
on :
4
4
release :
5
5
types : [published]
6
6
7
7
jobs :
8
8
build-n-publish :
9
- name : Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
9
+ name : Build and publish with Poetry
10
10
runs-on : ubuntu-latest
11
11
12
12
steps :
13
- - uses : actions/checkout@master
14
- - name : Set up Python 3.9
15
- uses : actions/setup-python@v3
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Set up Python 3.12
17
+ uses : actions/setup-python@v5
16
18
with :
17
- python-version : 3.9
19
+ python-version : " 3.12"
20
+
21
+ - name : Install Poetry and Versioning Plugin
22
+ run : |
23
+ pip install poetry
24
+ poetry self add "poetry-dynamic-versioning[plugin]"
25
+
26
+ - name : Build package
27
+ run : poetry build
18
28
19
- - name : Install pypa/build
20
- run : >-
21
- python -m
22
- pip install
23
- build
24
- --user
25
- - name : Build a binary wheel and a source tarball
26
- run : >-
27
- python -m
28
- build
29
- --sdist
30
- --wheel
31
- --outdir dist/
32
- .
33
- - name : Publish distribution 📦 to PyPI
34
- if : startsWith(github.ref, 'refs/tags')
29
+ - name : Publish to PyPI
35
30
uses : pypa/gh-action-pypi-publish@release/v1
36
31
with :
37
32
password : ${{ secrets.CHEMOTOOLS }}
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ mypy = "^1.13.0"
22
22
pandas-stubs = " ^2.2.3.241126"
23
23
scipy-stubs = " ^1.15.1.0"
24
24
25
+ [tool .poetry-dynamic-versioning ]
26
+ enable = true
27
+
25
28
[tool .pytest .ini_options ]
26
29
filterwarnings = " always"
27
30
You can’t perform that action at this time.
0 commit comments