motor/release.sh
2023-08-23 15:52:07 -05:00

24 lines
468 B
Bash
Executable File

#!/bin/bash -ex
# This script should be run on macOS.
# It will create the following distributions:
# motor-<version>.tar.gz
# motor-<version>-py3-none-any.whl
set -o xtrace # Write all commands first to stderr
set -o errexit # Exit the script with error if any of the commands fail
# Cleanup destinations
rm -rf build
rm -rf dist
# Install deps
python3 -m pip install build
# Build the source dist and wheel
python3 -m build .
# Cleanup
rm -rf build
ls dist