Comments (11)
@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.
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.
CC @jezdez as he is brilliant and may know why. :D
from django-browserid.
@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.
OOPS, forgot the link to the docs: https://packaging.python.org/en/latest/distributing/#upload-your-distributions
from django-browserid.
That's what Travis is using since this summer as well, travis-ci/dpl@8b091fa
from django-browserid.
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.
@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.
@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.
That's great - thank you :-)
from django-browserid.
Closing this, since we have a wheel that apparently works. :D
from django-browserid.
Related Issues (20)
- Document context processor removal in upgrade docs HOT 4
- csrftoken cookie not set by Django for most views HOT 4
- Impossible to override the redirect URL
- CsrfToken view should not be cached
- Use stateless Persona API HOT 1
- Updates to Goldilocks API HOT 2
- Docs for Custom User Model are a bit screwy HOT 2
- Disable autologin.js when BROWSERID_AUTOLOGIN_ENABLED = False even if it on the page. HOT 1
- Template tag browserid_logout breaks when link_class attribute is set HOT 2
- SSL certificate error HOT 3
- [Errno 32] Broken pipe on POST to /browserid/login/ and /browserid/csrf/ HOT 3
- The fancy_tag library isn't actually necessary HOT 4
- CSRF token fetching does not work with Django 1.8 HOT 4
- Document how to add a DTL template engine for 1.8 sites HOT 4
- Removal of /info/ endpoint causes problems for sites not using Django templating HOT 5
- Internet Explorer 11 specific error: "Relay frame could not be found " HOT 6
- Django 1.9 compatibility HOT 1
- Django 1.8+ deprecation warning for urlpatterns in urls.py:28
- Verify.success_url never used with {% browserid_login %} HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-browserid.