Skip to content

Commit d045d2c

Browse files
committed
Use build to generate packages
python setup.py is deprecated.
1 parent 07727c9 commit d045d2c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,21 @@ jobs:
9797

9898
steps:
9999
- uses: actions/checkout@v1
100+
100101
- name: Set up Python
101102
uses: actions/setup-python@v1
102103
with:
103104
python-version: "3.9"
104-
- name: Install wheel
105+
106+
- name: Install dependencies
105107
run: |
106108
python -m pip install --upgrade pip
107-
pip install wheel
109+
pip install build
110+
108111
- name: Build package
109112
run: |
110-
python setup.py sdist bdist_wheel
113+
python -m build
114+
111115
- name: Publish package to PyPI
112116
uses: pypa/gh-action-pypi-publish@master
113117
with:

0 commit comments

Comments
 (0)