>>> python release.py --help
Usage: release.py [OPTIONS]
| --verbose | Enabled more verbose output. |
| --tag-release | tag this release |
| --push-release | push this release to git |
| --build-release | |
| build this release | |
| --build-release-docs | |
| build this release’ docs | |
| --publish-release-pypi | |
| publish release to pypi | |
| --publish-release-docs-pypi | |
| publish release docs to pypi | |
| --publish-release-docs-rtd | |
| publish release docs to ReadTheDocs | |
| --pypirc TEXT | Path to .pypirc file. |
| --export-options TEXT | |
| Export all options to this file. | |
| --dryrun | Perform a dry-run (no side effects in git or pypi) |
| --profile-env TEXT | |
| Environmental variable which holds profile information in, defaults to RELEASEME_PROFILE. | |
| --profile TEXT | Load options from this profile file (overrides all other options). |
| --history-version TEXT | |
| New version (optional - previous version will be incremented). | |
| --history-date TEXT | |
| The date to use in the history synopsis when tagging a release. | |
| --history-comment TEXT | |
| The changelog comment to add. | |
| --history-file TEXT | |
| The history text file to use. | |
| --history-delimiter TEXT | |
| The history file synopsis delimiter (just prior to history entries). | |
| --history-meta TEXT | |
| The history file synopsis (prior to the delimiter). | |
| --git-profile TEXT | |
| Load options from this git profile file (overrides all other options) | |
| --git-repo TEXT | |
| Location of the git repo to release (defaults to cwd: /home/francis/PycharmProjects/freedom) | |
| --help | Show this message and exit. |
TODO: How the release process works.
The following freedom configuration values are honored by freedom. If the corresponding configuration is passed in to the freedom constructor, those will take precedence.
| verbose | A more verbose output. |
Each freedom instance has a logger instance variable that is by default not configured with a handler. You can add your own handler to obtain log messages emitted by freedom.
Simple stdout handler:
free = freedom(*args, **kwargs)
free.logger.addHandler(StreamHandler())
Reusing all the handlers of the logger instance of the freedom app:
free = freedom(*args, **kwargs)
for handler in free.logger.handlers:
free.logger.addHandler(handler)
alias of freedom.core
Bases: exceptions.Exception
There was an error loading the profile
Bases: exceptions.Exception
The profile file is not found at the given location.
Francis Horsman