From 988c5b46fd9f7311afac4fbf2b5f7a9d0923fd3d Mon Sep 17 00:00:00 2001 From: Alex Nelson Date: Sun, 24 Oct 2021 00:35:36 -0600 Subject: [PATCH] add release script --- README.md | 2 +- release.sh | 15 +++++++++++++++ tests/.gitkeep | 0 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 release.sh create mode 100644 tests/.gitkeep diff --git a/README.md b/README.md index 6196f7f..8aad645 100644 --- a/README.md +++ b/README.md @@ -48,4 +48,4 @@ Refer to the [documentation](https://pyfatsecret.readthedocs.org/en/latest/) for ## Contributing -All contributions are welcome! I'm not actively maintaining this library, so there's a good chance that any API changes have not been implemented in this wrapper. +All contributions are welcome! I'm not actively maintaining this library, so there's a good chance that any API changes have not been implemented in this wrapper. \ No newline at end of file diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..600abf5 --- /dev/null +++ b/release.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# Simple script to automate the build and release of new packages. +# This is based on the deployment guides found at +# https://packaging.python.org/tutorials/packaging-projects/ + +echo "setting up build tools" +python3 -m pip install --upgrade build +python3 -m pip install --upgrade twine + +echo "creating new build" +python3 -m build + +echo "uploading build assets" +python3 -m twine upload --repository fatsecret dist/* \ No newline at end of file diff --git a/tests/.gitkeep b/tests/.gitkeep new file mode 100644 index 0000000..e69de29