Skip to content

Commit

Permalink
Switch build front-end to build (#980)
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
robsdedude authored Oct 26, 2023
1 parent a2c650b commit 8b5b2b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/dist-functions
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function set_metadata_and_setup
# Create source distribution
find . -name *.pyc -delete
rm -rf "${SRC}/*.egg-info" 2> /dev/null
python setup.py $*
python -m build $*
check_file "${DIST}/${PACKAGE}-${VERSION}.tar.gz"

trap - EXIT
Expand Down
2 changes: 1 addition & 1 deletion bin/make-dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ then
exit 1
else
source "${ROOT}/bin/dist-functions"
setup "${VERSION}" sdist
setup "${VERSION}" --sdist
fi
3 changes: 3 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# the driver itself
-e .[pandas,numpy,pyarrow]

# needed for packaging
build

# auto-generate sync driver from async code
unasync>=0.5.0
# pre-commit hooks and tools
Expand Down

0 comments on commit 8b5b2b3

Please sign in to comment.