File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,19 +15,20 @@ install_dependencies() {
1515
1616build_distribution () {
1717 echo " Building distribution ..."
18- python setup.py bdist_wheel --universal
18+ python setup.py sdist bdist_wheel --universal
1919}
2020
2121upload_to_pypi () {
2222 echo " Uploading to PyPi ..."
2323
2424 distribution_filepath=" dist/${project_underscore} -${package_version} -py2.py3-none-any.whl"
25+ sdist_filepath=" dist/${project_underscore} -${package_version} .tar.gz"
2526
2627 if [[ " $CI " == " true" ]]
2728 then
28- twine upload -u __token__ -p " $PYPI_PASSWORD " --skip-existing --non-interactive " $distribution_filepath "
29+ twine upload -u __token__ -p " $PYPI_PASSWORD " --skip-existing --non-interactive " $distribution_filepath " " $sdist_filepath "
2930 else
30- twine upload --skip-existing --non-interactive " $distribution_filepath "
31+ twine upload --skip-existing --non-interactive " $distribution_filepath " " $sdist_filepath "
3132 fi
3233}
3334
You can’t perform that action at this time.
0 commit comments