-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Tastypie needs to upgrade our dependencies to support Python3 #3570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
will api v1 still be supported in the long term? |
I will like to work on this issue @humitos |
@humitos @stsewd |
@142ayushkumar that's because that url was just an example, you need to create a project on your local instance and take the id. Thanks for your interest on contributing :) |
@stsewd, I am facing some problem in webhook integration on my local instance the same way i followed on my live account and it worked. But on the local server And one more thing is that how to run my local instance with python3 |
@142ayushkumar did you have any problem when building your project? You can check the builds section |
@142ayushkumar That isn't a successfully build, it's just triggered. I think you need to setup your build environment (see https://docs.readthedocs.io/en/latest/development/buildenvironments.html), by the way, that guide needs improvement, so probably you may want to read https://github.com/rtfd/readthedocs.org/pull/2692/files too. |
@stsewd, Can you help me with the configuration part. How to change these configurations? |
You need to create a file This is my local settings https://gist.github.com/stsewd/1fd3178435397c72c563dc83480dc663, you need to set |
@142ayushkumar in any place you like, the important step here is building the image |
@stsewd I am still getting error |
@stsewd the API v1 is deprecated but people still use it. So, we don't want to add features or support it if this involves too much work, but making this small change to keep the compatibility shouldn't be so complicated and I think it worth the effort. Anyway, the first step is to write a test that fails with Python3 so at least we are covered and this error doesn't pass silently. |
@142ayushkumar you should use Also I believe we are populating this issue with irrelevant content, probably is better to make this questions on https://gitter.im/rtfd/readthedocs.org or irc (#readthedocs), I would be glad to help you there if you don't mind. |
@humitos I was submitting a PR to fix this, but I realize that this endpoint doesn't work at all. the So always return an exception I think that was used internally only, now RTD uses the apiv2 endpoint to sync versions. |
Should this endpoint be deleted then? |
This code was removed in #4038. We only need to update the Also I wanna point this that a found about tastypie and breaks our code when updating to |
Based on docs I wrote documenting our APIv2, I stated that we'd support APIv1 through at least Jan 2019. If that isn't possible, let me know. |
I don't think this will be a problem when updating django or python, so we can hold till 2019 😁, but there are some solutions in the related issue (I'm not really familiar with the Authorization part, so I'm not sure how this will affect our code if we want to apply that fix). |
@davidfischer I found that we need to update tastypie to support django 1.10 (#4319), if isn't possible to adapt our code to django-tastypie/django-tastypie#1407 we will need to remove tastypie, I'm not sure what decision will be taken here (keep tastypie to extend the api v1 life or upgrade django). |
I'm closing this because the endpoint with the problem no longer exists and #4426 already upgraded the requirement. |
If you go to http://localhost:8000/api/v1/project/46162/sync_versions/ while running your instance with Python3 you will get this error:
I found that we are using
mimetype
, https://github.com/rtfd/readthedocs.org/blob/df8079a18ed9c15e9c85f0646e3e9169e725b310/requirements/pip.txt#L49 andpython-mimeparse
should be used.We should write a simple test for this, otherwise we will find this out in production :)
Ref: http://django-tastypie.readthedocs.io/en/latest/python3.html#changed-requirements
The text was updated successfully, but these errors were encountered: