diff --git a/.changelog/80f748502d3e4258bcbf4a05d5f5bdb0.md b/.changelog/80f748502d3e4258bcbf4a05d5f5bdb0.md new file mode 100644 index 0000000..fbf6c6d --- /dev/null +++ b/.changelog/80f748502d3e4258bcbf4a05d5f5bdb0.md @@ -0,0 +1,4 @@ +--- +type: none +--- +Create dist directory in scripte/release if it doesn't exist \ No newline at end of file diff --git a/script/changelog b/script/changelog index 046c3ea..a2a63bb 100755 --- a/script/changelog +++ b/script/changelog @@ -47,6 +47,7 @@ See https://semver.org/ for more info''', parser.add_argument( '-a', '--add', + action='store_true', default=False, help='git add the newly created changelog entry', ) diff --git a/script/release b/script/release index da5d216..1fab0eb 100755 --- a/script/release +++ b/script/release @@ -44,6 +44,10 @@ echo "Created clean room $TMP_DIR and archived $VERSION into it" (cd "$TMP_DIR" && python -m build --sdist --wheel) +if [ ! -d dist ]; then + mkdir dist/ +fi + cp $TMP_DIR/dist/*$VERSION.tar.gz $TMP_DIR/dist/*$VERSION*.whl dist/ echo "Copied $TMP_DIR/dists into ./dist"