File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,16 +118,23 @@ if [ -f docs/conf.py ]; then git add docs/conf.py; fi
118118echo -e " ${YELLOW} --->${COLOR_OFF} Creating release"
119119git commit -q -m " Release version $next_version "
120120
121+ if [[ " $PUBLIC " == " true" ]]; then
122+ echo -e " ${YELLOW} --->${COLOR_OFF} Creating python release files"
123+ cp README.rst README
124+ python setup.py sdist bdist_wheel > /dev/null
125+
126+ echo -e " ${YELLOW} --->${COLOR_OFF} Validating long_description"
127+ twine check dist/*
128+ fi
129+
121130echo -e " ${YELLOW} --->${COLOR_OFF} Tagging release"
122131git tag -a $next_version -m " Release version $next_version "
123132
124133echo -e " ${YELLOW} --->${COLOR_OFF} Pushing release and tags to github"
125134git push -q origin master && git push -q --tags
126135
127136if [[ " $PUBLIC " == " true" ]]; then
128- echo -e " ${YELLOW} --->${COLOR_OFF} Creating python release"
129- cp README.rst README
130- python setup.py sdist bdist_wheel > /dev/null
137+ echo -e " ${YELLOW} --->${COLOR_OFF} Uploading python release"
131138 twine upload dist/*
132139 rm README
133140fi
You can’t perform that action at this time.
0 commit comments