Skip to content

Commit

Permalink
Add a bin/publish script and a publish make target.
Browse files Browse the repository at this point in the history
  • Loading branch information
netsettler committed Mar 13, 2020
1 parent 8dda026 commit 655dc75
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ release: clean

install: clean
poetry install

publish:
@bin/publish

20 changes: 20 additions & 0 deletions bin/publish
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

if [ -z "$PYPI_USER" ]; then
echo '$PYPI_USER is not set.'
exit 1
fi

if [ -z "$PYPI_PASSWORD" ]; then
echo '$PYPI_PASSWORD is not set.'
exit 1
fi

read -p "Are you sure you want to publish $(poetry version) to PyPi? " -n 1 -r
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
exit 1
fi


poetry publish --no-interaction --build --username=$PYPI_USER --password=$PYPI_PASSWORD
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "python-lambda-4dn"
version = "2.0.0b2"
version = "2.0.0b3"
description = "A forked version of python-lambda for 4DN-DCIC use in packaging and deploying lambda functions."
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
license = "MIT"
Expand Down

0 comments on commit 655dc75

Please sign in to comment.