Skip to content

Commit 655dc75

Browse files
committed
Add a bin/publish script and a publish make target.
1 parent 8dda026 commit 655dc75

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ release: clean
3030

3131
install: clean
3232
poetry install
33+
34+
publish:
35+
@bin/publish
36+

bin/publish

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
if [ -z "$PYPI_USER" ]; then
4+
echo '$PYPI_USER is not set.'
5+
exit 1
6+
fi
7+
8+
if [ -z "$PYPI_PASSWORD" ]; then
9+
echo '$PYPI_PASSWORD is not set.'
10+
exit 1
11+
fi
12+
13+
read -p "Are you sure you want to publish $(poetry version) to PyPi? " -n 1 -r
14+
if [[ ! $REPLY =~ ^[Yy]$ ]]
15+
then
16+
exit 1
17+
fi
18+
19+
20+
poetry publish --no-interaction --build --username=$PYPI_USER --password=$PYPI_PASSWORD

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "python-lambda-4dn"
3-
version = "2.0.0b2"
3+
version = "2.0.0b3"
44
description = "A forked version of python-lambda for 4DN-DCIC use in packaging and deploying lambda functions."
55
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
66
license = "MIT"

0 commit comments

Comments
 (0)