Giter VIP home page Giter VIP logo

Comments (11)

peterbe avatar peterbe commented on August 15, 2024

@Osmose how do you do the releases? If you don't already use it, all you need to do is:

$ pip install wheel
$ python setup.py sdist bdist_wheel upload

I would recommend that you let travis run this. That's what I do on all my python projects. For example

from django-browserid.

Osmose avatar Osmose commented on August 15, 2024

I bumped the version and added a setup.cfg file: 729e1af

However, when I published to PyPI it marked the universal wheel as Python 2.7: https://pypi.python.org/pypi/django-browserid/1.0.1/

Any ideas as to why this happened?

from django-browserid.

Osmose avatar Osmose commented on August 15, 2024

CC @jezdez as he is brilliant and may know why. :D

from django-browserid.

jezdez avatar jezdez commented on August 15, 2024

@Osmose Don't worry, that's just PyPI being silly, it shows which platform the upload was from when it can't figure out the version from the file name. pip and wheel will take a look at the filename of the wheel file and find it to be matching both platforms, py2 and py3, so all should be good.

BTW, since @peterbe was referring to using the upload subcommand of setup.py, please don't use it. It sends your credentials unencrypted because distutils is stupid. Follow the officially recommended guidelines and use twine instead.

from django-browserid.

jezdez avatar jezdez commented on August 15, 2024

OOPS, forgot the link to the docs: https://packaging.python.org/en/latest/distributing/#upload-your-distributions

from django-browserid.

jezdez avatar jezdez commented on August 15, 2024

That's what Travis is using since this summer as well, travis-ci/dpl@8b091fa

from django-browserid.

peterbe avatar peterbe commented on August 15, 2024

Wow! That I had no idea about! How disappointing that it does that.
Ok. So I'll use python setup.py sdist bdist_wheel and twine upload dist/* instead if I ever do it manually.

But is this safe? I know that stopped working at some point until I added pip install twine.

from django-browserid.

jezdez avatar jezdez commented on August 15, 2024

@peterbe Yeah, that should be safe, travis-ci/dpl@8b091fa made Travis install twine in their virtualenv by default, it's odd that it failed for you. Could you open a ticket in the dpl repo in case you can reproduce it?

from django-browserid.

peterbe avatar peterbe commented on August 15, 2024

@jezdez I can't reproduce it any more. It was a long time ago. I think the error some simply something like bash: twine: command not found at the very bottom of the travisCI output. When it happened I had never heard of twine and some quick stackoverflow searches said to simply add pip install twine as a prerequisite.

from django-browserid.

edmorley avatar edmorley commented on August 15, 2024

That's great - thank you :-)

from django-browserid.

Osmose avatar Osmose commented on August 15, 2024

Closing this, since we have a wheel that apparently works. :D

from django-browserid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.