-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release v1.6.2 and add a release-generating script. (#97)
- Loading branch information
1 parent
7b9e4b9
commit da48c4a
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
# Copyright 2018-present Kensho Technologies, LLC. | ||
|
||
# Fail on first error, on undefined variables, and on errors in a pipeline. | ||
set -euo pipefail | ||
|
||
# Enable recursive globbing, and make globs that do not match return null values. | ||
shopt -s globstar nullglob | ||
|
||
# Make sure the current working directory is the root directory. | ||
if [ ! -f "./requirements.txt" ] || [ ! -f "./CHANGELOG.md" ]; then | ||
echo -e 'Please run this script from the root directory of the repo:\n' | ||
echo -e ' ./scripts/make_new_release.sh\n' | ||
exit 1 | ||
fi | ||
|
||
# Clean up old release artifacts. | ||
rm -r build/ dist/ | ||
|
||
# Build the source distribution. | ||
python setup.py sdist | ||
|
||
# Build the binary distribution. | ||
python setup.py bdist_wheel --universal | ||
|
||
# Upload the new release. | ||
twine upload dist/* |