Skip to content

Commit c450ae1

Browse files
committed
Add a publish script
1 parent c326e1b commit c450ae1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

publish.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/bash
2+
3+
set -ex
4+
5+
NAME=django-cacheops
6+
VERSION=`awk '/__version__ = /{gsub(/'\''/, "", $3); print $3}' cacheops/__init__.py`
7+
8+
python setup.py sdist bdist_wheel
9+
twine check dist/$NAME-$VERSION*
10+
twine upload --skip-existing -uSuor dist/$NAME-$VERSION*

0 commit comments

Comments
 (0)