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*.*.*" # Déclenche l'action uniquement sur les tags de version
7+
8+ jobs :
9+ deploy :
10+ name : Build and Publish
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@v4
16+
17+ - name : Set up Python
18+ uses : actions/setup-python@v4
19+ with :
20+ python-version : " 3.11"
21+
22+ - name : Install build dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ pip install build twine
26+
27+ - name : Build package
28+ run : python -m build
29+
30+ - name : Publish to PyPI
31+ env :
32+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
33+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
34+ run : twine upload dist/*
Original file line number Diff line number Diff line change 3030#
3131## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
3232
33- __version__ = '5.0 '
33+ __version__ = '5.1 '
3434
3535def serialize_date (obj ):
3636 if isinstance (obj , date ):
Original file line number Diff line number Diff line change 5858
5959__authors__ = "Laurent Capocchi <capocchi@univ-corse.fr>, <santucci@univ-corse.fr>"
6060__date__ = str (datetime .datetime .now ())
61- __version__ = '5.0 '
61+ __version__ = '5.1 '
6262__docformat__ = 'epytext'
6363__min_wx_version__ = '4.0'
6464
You can’t perform that action at this time.
0 commit comments