From 93a621121c19185e27b2d37dbae392569db97fee Mon Sep 17 00:00:00 2001 From: Aaron Lichtman Date: Thu, 11 Jul 2024 19:33:56 -0700 Subject: [PATCH] [build] Address deprecations and make sure you're inside the pipenv shell when releasing --- scripts/release.sh | 6 ++++++ setup.cfg | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/release.sh b/scripts/release.sh index f21f152b..51d0cf78 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -9,6 +9,12 @@ if [[ ! -d ".git" ]]; then exit 1; fi +# Check if inside the pipenv virtual environment +if [[ "$PIPENV_ACTIVE" != "1" ]]; then + echo 'Must be inside the pipenv virtual environment!'; + exit 1; +fi + # Check if on main BRANCH=$(git rev-parse --abbrev-ref HEAD) if [[ "$BRANCH" != "main" ]]; then diff --git a/setup.cfg b/setup.cfg index 39297db3..c0ad55a8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -description-file = README.md +description_file = README.md [bdist_wheel] # This flag says to generate wheels that support both Python 2 and Python