File: release.sh

package info (click to toggle)
python-motor 3.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,572 kB
  • sloc: python: 12,252; javascript: 137; makefile: 74; sh: 8
file content (23 lines) | stat: -rwxr-xr-x 468 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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