# Travis deploying sdist but not wheel

**URL:** <https://travis-ci.community/t/travis-deploying-sdist-but-not-wheel/4239>\
**Category:** Deployment\
**Tags:** pypi\
**Created:** [July 17, 2019, 7:14am UTC](https://travis-ci.community/t/travis-deploying-sdist-but-not-wheel/4239 "2019-07-17T07:14:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![geissdoerfer](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@geissdoerfer](https://travis-ci.community/u/geissdoerfer)\
**Post date:** [July 17, 2019, 7:14am UTC](https://travis-ci.community/t/travis-deploying-sdist-but-not-wheel/4239/1 "2019-07-17T07:14:28Z")

</div>

I try to deploy to PyPI on tags. The documentation suggests that `on: tags: true` will trigger deployments when a tagged commit is pushed.  
Here’s a snippet from my `travis.yml`:

```
deploy:

 - provider: script
   script: SSHPASS=$DEPLOY_PASS sshpass -e scp -v -o StrictHostKeyChecking=no $PROJECT_DIR/artifacts/debian/* $DEPLOY_USER@$DEPLOY_HOST:shepherd/debian/
   skip_cleanup: true

 - provider: pypi
   user: $PYPI_USER
   password: $PYPI_PASS
   on:
     tags: true
     all_branches: true

```

I’m pushing with: `git push origin --tags`  
Here’s a link to the build: [https://travis-ci.org/geissdoerfer/shepherd/jobs/559649862](https://travis-ci.org/geissdoerfer/shepherd/jobs/559649862)

Did I miss something?

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [July 17, 2019, 7:44am UTC](https://travis-ci.community/t/travis-deploying-sdist-but-not-wheel/4239/3 "2019-07-17T07:44:56Z")

</div>

[I see that the sdist was successfully uploaded](https://travis-ci.org/geissdoerfer/shepherd/jobs/559649862#L5227-L5229), and [the file is available at PyPI](https://pypi.org/project/shepherd-herd/#files).

According to [https://docs.travis-ci.com/user/deployment/pypi/#uploading-different-distributions](https://docs.travis-ci.com/user/deployment/pypi/#uploading-different-distributions) (and [confirmed by source](https://github.com/travis-ci/dpl/blob/master/lib/dpl/provider/pypi.rb#L20)), you need to specify `distributions:` if you wish to upload something else.

---

<div class="post-metadata">

**Author:** ![geissdoerfer](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@geissdoerfer](https://travis-ci.community/u/geissdoerfer)\
**Post date:** [July 17, 2019, 7:52am UTC](https://travis-ci.community/t/travis-deploying-sdist-but-not-wheel/4239/4 "2019-07-17T07:52:26Z")

</div>

Thanks for pointing that out. Indeed the upload to PyPI wasn’t working at some stage and then I focussed on the warning `Skipping a deployment with the script provider because this branch is not permitted: v0.0.8` without actually checking on PyPI.  
Everything working as expected now.
