renames etc.
This commit is contained in:
2
scripts/clean.sh
Normal file → Executable file
2
scripts/clean.sh
Normal file → Executable file
@ -1,5 +1,5 @@
|
||||
#!/bin/sh -e
|
||||
PACKAGE="orm"
|
||||
PACKAGE="ormar"
|
||||
if [ -d 'dist' ] ; then
|
||||
rm -r dist
|
||||
fi
|
||||
|
||||
23
scripts/publish.sh
Normal file
23
scripts/publish.sh
Normal file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
PACKAGE="ormar"
|
||||
|
||||
PREFIX=""
|
||||
if [ -d 'venv' ] ; then
|
||||
PREFIX="venv/bin/"
|
||||
fi
|
||||
|
||||
VERSION=`cat ${PACKAGE}/__init__.py | grep __version__ | sed "s/__version__ = //" | sed "s/'//g"`
|
||||
|
||||
set -x
|
||||
|
||||
scripts/clean.sh
|
||||
|
||||
${PREFIX}python setup.py sdist
|
||||
${PREFIX}twine upload dist/*
|
||||
|
||||
echo "You probably want to also tag the version now:"
|
||||
echo "git tag -a ${VERSION} -m 'version ${VERSION}'"
|
||||
echo "git push --tags"
|
||||
|
||||
scripts/clean.sh
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
PACKAGE="orm"
|
||||
PACKAGE="ormar"
|
||||
|
||||
PREFIX=""
|
||||
if [ -d 'venv' ] ; then
|
||||
|
||||
Reference in New Issue
Block a user