Skip to content

Commit fa34f42

Browse files
Merge pull request #69 from cloudsmith-io/iduffy/no-ticket
fix(no-ticket): Deploy sdist as part of the build/deploy process
2 parents 80725aa + a70ec3d commit fa34f42

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

bindings/python/deploy.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,20 @@ install_dependencies() {
1515

1616
build_distribution() {
1717
echo "Building distribution ..."
18-
python setup.py bdist_wheel --universal
18+
python setup.py sdist bdist_wheel --universal
1919
}
2020

2121
upload_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

0 commit comments

Comments
 (0)