-
-
Notifications
You must be signed in to change notification settings - Fork 16.2k
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
Updating extension guidelines v2 #1220
Conversation
@untitaker - I'm unclear if you want to include updates to I think
This conflicts with the recommendation in
I suspect (but not certain) that
Linking to the old docs should provide enough context on flask.ext.foo.
Leaving this in might accidentally encourage users to use I would happily submit a PR to implement the above changes except I'm not 100% confident on the proper solutions to these issues. Feel free to either implement changes or let me know the desired solutions and I'll fix them. |
I agree that the wording implies the user should use
As mentioned in #1135, we need another migration tool for this. If we remove this section maybe more docstring text should be added to
Not sure... if yes, the additional text mentioned above should be added in the maintenance branch. I'd say the change would be a bit radical, a safe thing to do is to rename it to make room for the new fixer. We also could extend the current compat tool so that it can do all kinds of conversions (the default being that it would convert
In general i'd rather just convert information to the past tense instead of deleting it... maybe we could move all information about flask.ext into just one chapter, and link this chapter sometimes for historic reasons, but not leave mentions of flask.ext scattered. |
Oh, and i think any such changes should go in a separate PR pointed to master. |
Flask extensions should urge users to import from ``flask.ext.foo`` | ||
instead of ``flask_foo`` or ``flaskext_foo`` so that extensions can | ||
Flask extensions should urge users to import from ``flask_foo`` | ||
instead of ``flask.ext.foo`` or ``flaskext_foo`` so that extensions can |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
According to #1092 (comment) and #1085 (comment) , the correct order to attempt to import extensions should be flask_foo, then flask.ext.foo, then flaskext_foo.
pip doesn't install links included in the description of projects anymore. Therefore ==dev install doesn't work anymore.
Python 2.6 is not supported by python-dev anymore and does not get any security updates. Even though Flask supports 2.6 at the moment, I think it's not necessary for any extensions that are going to be approved in the future to support 2.6.
Flask and several extensions already supports Python 3.3 and higher. By requiring approved extensions to support Python 3.3 as well we can quickly achieve better Python 3 adoption and make using Python 3 easier for users. The effort of supporting both Python 2.7 and Python 3.3 is small enough that it shouldn't be a problem to require this from extension authors.
a61ed9f
to
67d7fc3
Compare
This is a complete mess and doesn't merge anymore, we should cherry-pick out of it and kill it then. |
67d7fc3
to
f80ea4f
Compare
@@ -410,8 +404,8 @@ deprecated ``flaskext.foo``. Flask 0.8 introduces a redirect import | |||
system that lets uses import from ``flask.ext.foo`` and it will try |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Taken care of in #1484 |
Not really, we still need to update the extension guidelines in some way. |
@jeffwidman Yes, I think the enumerated list for extension requirements has to be updated as well. That is a completely unrelated change, see #1035 |
needs a rebase! |
i merged this manually. |
Continuing #1035 and #1218, #1135 related.