Manage Evergreen modules locally.
Project description
Evergreen Module Manager
Manage Evergreen modules in your local environment.
Table of contents
- Description
- Getting Help
- Documentation
- Dependencies
- Installation
- Usage
- Contributor's Guide
- Resources
Description
The evg-module-manager is a tool to help improve the local workflows of working with modules in your evergreen projects. It will help you keep any modules defined in your local project in sync. It supports the following functionality:
- List what modules are defined in the local project.
- List what modules are currently active in your local repo.
- Clone a module repository.
- Enable/disable modules in your local repo.
- Create an evergreen patch build that includes changes from the local patch build and all enabled modules.
- Submit a changes to the commit-queue that includes changes from the local patch build and all enabled modules.
Getting Help
What's the right channel to ask my question?
If you have a question about evg-module-manager, please mention @dag-on-call in the slack channel #evergreen-users or email us at dev-prod-dag@mongodb.com.
How can I request a change/report a bug in evg-module-manager?
Create a DAG ticket.
What should I include in my ticket or #evergreen-users question?
Since #evergreen-users questions are interrupts, please include as much information as possible. This can help avoid long information-gathering threads.
Please include the following in any created tickets:
- Motivation for Request
- Provide us the motivation for this change.
- Context
- Provide some background context for this issue.
- Description
- Provide some description on how this issue happened.
Documentation
Read the documentation here.
Dependencies
- Python 3.7 or later
- git
- evergreen command line tool
- Evergreen config file
- github CLI
See Usage Prerequisites for more details.
Installation
We strongly recommend using a tool like pipx to install this tool. This will isolate the dependencies and ensure they don't conflict with other tools.
$ pipx install evg-module-manager
Debugging installation issues
A common issue that arises during installation is pipx failing to install emm and printing out the following error:
$ pipx install evg-module-manager
Fatal error from pip prevented installation. Full pip output in file:
/home/ubuntu/.local/pipx/logs/cmd_2022-03-31_13.24.42_pip_errors.log
Some possibly relevant errors from pip install:
ERROR: Could not find a version that satisfies the requirement evg-module-manager (from versions: none)
ERROR: No matching distribution found for evg-module-manager
Error installing evg-module-manager.
This error indicates that pipx could not find a version of emm that was built to support the version of Python installed on your machine. Make sure to check that your version of Python matches the requirements called out in the Dependencies section. You can check the version of Python that is on your computer by running
$ python --version
Usage
See the documentation for details about using this tool.
Usage: evg-module-manager [OPTIONS] COMMAND [ARGS]...
Evergreen Module Manager is a tool help simplify the local workflows of evergreen modules.
Options:
--modules-dir PATH Directory to store module repositories [default='..']
--evg-config-file PATH Path to file with evergreen auth configuration
[default='/Users/dbradf/.evergreen.yml']
--evg-project TEXT Name of Evergreen project [default='mongodb-mongo-master']
--help Show this message and exit.
Commands:
disable Disable the specified module in the current repo.
enable Enable the specified module in the current repo.
evg Perform evergreen actions against the base repo and enabled modules.
git Perform git actions against the base repo and enabled modules.
list-modules List the modules available for the current repo.
pull-request Create a Github pull request for changes in the base repository and any...
Contributor's Guide
Setting up a local development environment
This project uses poetry for setting up a local environment.
git clone ...
cd evg-module-manager
poetry install
linting/formatting
This project uses black and isort for formatting.
poetry run black src tests
poetry run isort src tests
Running tests
This project uses pytest for testing.
poetry run pytest
Automatically running checks on commit
This project has pre-commit configured. Pre-commit will run configured checks at git commit time. To enable pre-commit on your local repository run:
poetry run pre-commit install
Versioning
This project uses semver for versioning.
Please include a description what is added for each new version in CHANGELOG.md
.
Code Review
Please open a Github Pull Request for code review.
Deployment
Deployment to pypi is automatically triggered on merges to main.
Resources
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file evg-module-manager-1.2.0.tar.gz
.
File metadata
- Download URL: evg-module-manager-1.2.0.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.9.13 Linux/5.15.0-1017-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a49a22de00d59603f27c06d17a7ec4ab68a2d5c1b3dba2406e78a59d1c4be0d |
|
MD5 | fa6032cd2e0f9d77ce31a214684eca93 |
|
BLAKE2b-256 | d71f544046ba7dbae60ce68b273e55f5cb6d60e4ad85424cb642017d018af46d |
Provenance
File details
Details for the file evg_module_manager-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: evg_module_manager-1.2.0-py3-none-any.whl
- Upload date:
- Size: 33.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.9.13 Linux/5.15.0-1017-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24d3d582a82579232010c44586b358f998f8d1b7e599f061b9e2151deb577f70 |
|
MD5 | 5a1778a2aaf5daa31194bd08bdc714d5 |
|
BLAKE2b-256 | af754cb1189aa670071f91808b623d23fbf653f315aac023fc72fee21203d97f |