corpnewt / MountEFI

An even more robust edition of my previous MountEFI scripts
1.07k stars 119 forks source link

Packaging MountEFI #7

Open jrjsmrtn opened 3 years ago

jrjsmrtn commented 3 years ago

I refactored MountEFI for packaging using setupmeta.

It can be installed using:

$ git clone https://github.com/jrjsmrtn/MountEFI
$ cd MountEFI
$ pip install .

Or, if uploaded to PyPI:

$ pip install --user MountEFI

I added two console_scripts entry points so it can be invoked as:

$ MountEFI

or:

$ mount-efi

The MountEFI.command is still in the repo, so it can copied from a git clone and double-clicked.


I added two features:

  1. a --settings option to specify the settings.json location;

  2. if not specified, the settings file will use the XDG convention by default:

    /Users/${USER}/Library/Application Support/MountEFI/settings.json

    To do that, I added a dependency to the appdirs package.

I removed one feature:


I kept individual commits in the PR so you can more easily examine my changes. If this PR is ok for you, I will rebase as one commit.

jrjsmrtn commented 3 years ago

Two files are still missing for packaging:

It would also be useful to tag versions before/if it's released on PyPI.