Skip to content

Commit 8b5b2b3

Browse files
authored
Switch build front-end to build (#980)
[build](https://pypi.org/project/build/) builds the package in an isolated environment providing the requested build tools per `pyproject.toml`. This way we can be sure that wheel builds from source dist will also work one the customers' machines.
1 parent a2c650b commit 8b5b2b3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

bin/dist-functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function set_metadata_and_setup
9999
# Create source distribution
100100
find . -name *.pyc -delete
101101
rm -rf "${SRC}/*.egg-info" 2> /dev/null
102-
python setup.py $*
102+
python -m build $*
103103
check_file "${DIST}/${PACKAGE}-${VERSION}.tar.gz"
104104

105105
trap - EXIT

bin/make-dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ then
1111
exit 1
1212
else
1313
source "${ROOT}/bin/dist-functions"
14-
setup "${VERSION}" sdist
14+
setup "${VERSION}" --sdist
1515
fi

requirements-dev.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# the driver itself
22
-e .[pandas,numpy,pyarrow]
33

4+
# needed for packaging
5+
build
6+
47
# auto-generate sync driver from async code
58
unasync>=0.5.0
69
# pre-commit hooks and tools

0 commit comments

Comments
 (0)