Skip to content
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

Update fabfile.py to Fabric 2.6 and Python 3.6, resolves #1957 #1979

Closed
wants to merge 1 commit into from

Conversation

jmorsecode
Copy link

Summary of Major Changes:

  • fabric.api.env no longer exists. Although there are some methods such as "from_v1" they seemed to be more problematic than helpful when trying to target py3.6+. This has been converted to local dictionary for now.
  • Functools decorator wraps removed and standard function with similar functionality placed inside where previously decorated. Caused issues with checks in v2 API "Context" object parsing.
  • Almost all functions and methods need to be passed the connection context object created at runtime.
  • Interactive prompts seem to be awkward sometimes so added checks before disabling root login after sudo user creation.
  • Several new custom functions to replace those previously used now removed in v2+.

Notes

  • Fabric 2+ CLI usage is mostly the same except for commands that need arguments, which is now:
    fab run --command="id" or fab pip --packages="needed_pkg_name" etc. fab -h will display proper usage but still figured it was worth mentioning.

@jmorsecode jmorsecode changed the title Update fabfile.py to Fabric 2.6 and Python 3.6 Update fabfile.py to Fabric 2.6 and Python 3.6, resolves #1957 Feb 28, 2021
@jerivas jerivas linked an issue Jul 22, 2021 that may be closed by this pull request
@jerivas
Copy link
Collaborator

jerivas commented Jul 22, 2021

Hi @jmorsecode. As part of the Mezzanine 5.0 release process I have made the difficult decision to remove built-in fabric support from Mezzanine, largely because maintaining the fabfile requires a lot of time and attention (which I don't have anymore). I encourage you to create your own package based on the code on this branch. I actually did something similar when I used to deploy Mezzanine to Webfaction: see jerivas/mezzanine-webf.

If you do, feel free to open a PR adding your package to the list of Third-party Plugins. Thanks for your contribution!

@jerivas jerivas closed this in 8556460 Jul 22, 2021
@github-actions
Copy link
Contributor

🎉 This issue has been resolved in version 5.0.0-rc.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link
Contributor

🎉 This issue has been resolved in version 5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fabric < 2.0 requirement creates Python 2.7 dependency
2 participants