Skip to content

Commit eee537a

Browse files
committed
ci: fix: build dist using python -m build
1 parent 95ca8ab commit eee537a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### 1.9.0
44

55
* All: Update `make test` runner to use `pytest` instead of deprecated `setup.py test`
6+
* All: Build wheel and sdist using `python -m build`
67
* pytest-server-fixtures: Update deprecated mongo 7.* to 8.2
78
* pytest-profile: add support for `cProfile` regex to filter output
89
* pytest-profile: update README.md args

Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,16 @@ copyfiles:
3030
./foreach.sh 'for file in ${COPY_FILES}; do cp ../$$file .; done'
3131

3232
wheels: copyfiles
33-
pip install ${PIP_INSTALL_ARGS} -U wheel
34-
./foreach.sh --changed 'python setup.py bdist_wheel'
33+
pip install ${PIP_INSTALL_ARGS} -U wheel build
34+
./foreach.sh --changed 'python -m build --wheel'
3535

3636
eggs: copyfiles
3737
./foreach.sh --changed 'python setup.py bdist_egg'
3838

3939
sdists: copyfiles
40-
./foreach.sh --changed 'python setup.py sdist'
40+
./foreach.sh --changed 'python -m build --sdist'
4141

42-
install: copyfiles
43-
pip install ${PIP_INSTALL_ARGS} -U wheel
44-
./foreach.sh 'python setup.py bdist_wheel'
42+
install: copyfiles wheels
4543
./foreach.sh 'pip install ${PIP_INSTALL_ARGS} dist/*.whl'
4644

4745
develop: copyfiles extras

0 commit comments

Comments
 (0)