From 68fd1b3b2d01c2abfa82aeef4f753fbb4491a08e Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Wed, 25 Jun 2025 15:47:36 -0700 Subject: [PATCH] Small fix for script release --- .changelog/80f748502d3e4258bcbf4a05d5f5bdb0.md | 4 ++++ script/changelog | 1 + script/release | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 .changelog/80f748502d3e4258bcbf4a05d5f5bdb0.md 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"