Skip to content

Commit f4e515f

Browse files
committed
Revert to setuptools as publishing agent
1 parent d7f0a6d commit f4e515f

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff 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

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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]
66
name = "msgraph-sdk"
@@ -58,7 +58,7 @@ pythonpath = [
5858
]
5959

6060
[tool.bumpver]
61-
current_version = "1.1.0"
61+
current_version = "1..0"
6262
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
6363
commit_message = "bump version {old_version} -> {new_version}"
6464
commit = true

0 commit comments

Comments
 (0)