MOPUp#
Features#
MOPUp is the macOS Python.org Updater.
If you prefer to use the binary installers from python.org, it’s easy to forget
to update them. This is a program that does that; it updates them. Just pip
install mopup
into a virtualenv using the Python you are using, run mopup
and provide your password when required.
Normally, it does this using a CLI in the background, but if you’d prefer, you
can run it with --interactive
for it to launch the usual macOS GUI
Installer app.
Installation#
You can install MOPUp via pip from PyPI:
$ pip install mopup
Usage#
Please see the Command-line Reference for details.
Contributing#
Contributions are very welcome. To learn more, see the Contributor Guide.
License#
Distributed under the terms of the MIT license, MOPUp is free and open source software.
Issues#
If you encounter any problems, please file an issue along with a detailed description.
Credits#
This project was generated from @cjolowicz’s Hypermodern Python Cookiecutter template.
Usage#
mopup#
MOPUp - the (m)ac(O)S (P)ython.org (Up)dater
Run this program and enter your administrator password to install the most recent version from Python.org that matches your major/minor version.
mopup [OPTIONS]
Options
- --interactive <interactive>#
use the installer GUI
- --force <force>#
reinstall python even if it’s up to date
- --minor <minor>#
do a minor version upgrade rather than the default (a micro-version)
- --dry-run <dry_run>#
don’t actually download or install anything even if we’re not up to date
Reference#
mopup#
Auto-updater for official python.org builds of python.
- mopup.alllinksin(u, e)#
Get all the links in the given URL whose text matches the given pattern.
- Parameters:
u (DecodedURL) –
e (Pattern[str]) –
- Return type:
Iterable[Tuple[Match[str], DecodedURL]]
- mopup.do_download(download_url)#
Download the given URL into the downloads directory.
Returning the path when successful.
- Parameters:
download_url (DecodedURL) –
- Return type:
str
- mopup.main(interactive, force, minor_upgrade, dry_run)#
Do an update.
- Parameters:
interactive (bool) –
force (bool) –
minor_upgrade (bool) –
dry_run (bool) –
- Return type:
None
Contributor Guide#
Thank you for your interest in improving this project. This project is open-source under the MIT license and welcomes contributions in the form of bug reports, feature requests, and pull requests.
Here is a list of important resources for contributors:
How to report a bug#
Report bugs on the Issue Tracker.
When filing an issue, make sure to answer these questions:
Which operating system and Python version are you using?
Which version of this project are you using?
What did you do?
What did you expect to see?
What did you see instead?
The best way to get your bug fixed is to provide a test case, and/or steps to reproduce the issue.
How to request a feature#
Request features on the Issue Tracker.
How to set up your development environment#
You need Python 3.7+ and the following tools:
Install the package with development requirements:
$ poetry install
You can now run an interactive Python session, or the command-line interface:
$ poetry run python
$ poetry run MOPUp
How to test the project#
Run the full test suite:
$ nox
List the available Nox sessions:
$ nox --list-sessions
You can also run a specific Nox session. For example, invoke the unit test suite like this:
$ nox --session=tests
Unit tests are located in the tests
directory,
and are written using the pytest testing framework.
How to submit changes#
Open a pull request to submit changes to this project.
Your pull request needs to meet the following guidelines for acceptance:
The Nox test suite must pass without errors and warnings.
Include unit tests. This project maintains 100% code coverage.
If your changes add functionality, update the documentation accordingly.
Feel free to submit early, though—we can always iterate on this.
To run linting and code formatting checks before committing your change, you can install pre-commit as a Git hook by running the following command:
$ nox --session=pre-commit -- install
It is recommended to open an issue before starting work on anything. This will allow a chance to talk it over with the owners and validate your approach.
# Contributor Code of Conduct
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
Examples of unacceptable behavior by participants include:
The use of sexualized language or imagery
Personal attacks
Trolling or insulting/derogatory comments
Public or private harassment
Publishing other’s private information, such as physical or electronic addresses, without explicit permission
Other unethical or unprofessional conduct
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting a project maintainer (see below). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter of an incident.
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.3.0, available at [http://contributor-covenant.org/version/1/3/0/][version]
[homepage]: http://contributor-covenant.org [version]: http://contributor-covenant.org/version/1/3/0/
MIT License#
Copyright © 2022 Glyph Lefkowitz
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.