xbar plugins are self-contained scripts. As such, the
meta_package_manager.7h.py needs to be able to run without any extra
dependency, on the pre-installed Python distribution that ships with macOS.
xbar itself requires macOS Catalina or newer (>= 10.15).
With Python 2.x being deprecated as of macOS Catalina,
this plugin targets Python 3.7.3 or newer, which is the version available under
$ python WARNING: Python 2.7 is not recommended. This version is included in macOS for compatibility with legacy software. Future versions of macOS will not include Python 2.7. Instead, it is recommended that you transition to using 'python3' from within Terminal. Python 2.7.16 (default, Aug 24 2019, 18:37:03) [GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-118.104.22.168) (-macos10.15-objc-s on darwin Type "help", "copyright", "credits" or "license" for more information. >>>$ xcrun python3 Python 3.7.3 (default, Sep 5 2019, 17:14:41) [Clang 11.0.0 (clang-122.214.171.124)] on darwin
Active development of the plugin is happening here, as a side-project of mpm itself.
Releases of the plugin is synchronized with the package. Both share the exact same version to simplify management. This explain why the plugin could appears jumpimg ahead of a couple of major/minor version while providing tiny or no changes at all.
A release is ready when both the package and the plugin reach a stable state.
Fetch a local copy of the fork:
$ git clone https://github.com/kdeldycke/xbar-plugins $ cd xbar-plugins
Create a new branch and switch to it:
$ git branch meta-package-manager-v230 $ git checkout meta-package-manager-v230
Replace existing copy of the plugin with the latest tagged version:
$ wget https://raw.githubusercontent.com/kdeldycke/meta-package-manager/v2.3.0/meta_package_manager/xbar/meta_package_manager.7h.py $ mv ./meta_package_manager.7h.py ./Dev/ $ chmod 755 ./Dev/meta_package_manager.7h.py
Commit the new plugin:
$ git add ./Dev/meta_package_manager.7h.py $ git commit -m 'Upgrade to Meta Package Manager plugin v2.3.0.'
Push new branch:
$ git push --set-upstream origin meta-package-manager-v230
Create a pull-request in the original repository.