mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 08:17:08 +08:00
updated package setup (#485)
* updated package setup * updated to use python 3.9 * fixed test runner * fixed typecheck tests * fixed discrepencies * added override to runner * updated travis * updated pre-commit hooks * updated dep
This commit is contained in:
committed by
GitHub
parent
a3624dec36
commit
44151c485d
17
release.sh
Executable file
17
release.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
if [[ -z $(git status -s) ]]
|
||||
then
|
||||
if [[ "$VIRTUAL_ENV" != "" ]]
|
||||
then
|
||||
pip install --upgrade setuptools wheel twine
|
||||
python setup.py sdist bdist_wheel
|
||||
twine upload dist/*
|
||||
rm -rf dist/ build/
|
||||
else
|
||||
echo "this script must be executed inside an active virtual env, aborting"
|
||||
fi
|
||||
else
|
||||
echo "git working tree is not clean, aborting"
|
||||
fi
|
||||
Reference in New Issue
Block a user