File tree Expand file tree Collapse file tree 2 files changed +15
-14
lines changed
Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -17,21 +17,22 @@ jobs:
1717 environment : pypi_prod
1818 needs : [build]
1919 steps :
20- - name : Checkout code
21- uses : actions/checkout@v4
20+ - uses : actions/checkout@v4
2221 - name : Set up Python
2322 uses : actions/setup-python@v5
2423 with :
25- python-version : 3.12
26- - name : Install flit
24+ python-version : ' 3.8 '
25+ - name : Install dependencies
2726 run : |
28- pip install flit
29- - name : Publish the distibution to PyPI
30- run : flit publish
31- env :
32- FLIT_INDEX_URL : https://upload.pypi.org/legacy/
33- FLIT_USERNAME : __token__
34- FLIT_PASSWORD : ${{ secrets. PYPI_API_TOKEN }}
27+ python -m pip install --upgrade pip
28+ pip install build
29+ - name : Build package
30+ run : python -m build
31+ - name : Publish package
32+ uses : pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf
33+ with :
34+ user : __token__
35+ password : ${{ secrets.PYPI_API_TOKEN }}
3536
3637 release :
3738 name : Create release
Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [" flit_core >=3.2,<4 " ]
3- build-backend = " flit_core.buildapi "
2+ requires = [" setuptools>=65.5.0 " , " wheel " ]
3+ build-backend = " setuptools.build_meta "
44
55[project ]
66name = " msgraph-sdk"
@@ -58,7 +58,7 @@ pythonpath = [
5858]
5959
6060[tool .bumpver ]
61- current_version = " 1.1 .0"
61+ current_version = " 1..0"
6262version_pattern = " MAJOR.MINOR.PATCH[PYTAGNUM]"
6363commit_message = " bump version {old_version} -> {new_version}"
6464commit = true
You can’t perform that action at this time.
0 commit comments