This package allows you to dynamically create Makefile files for various purposes. One of its applications is in creating Makefile with predefined commands to be performed in your CI/CD pipeline.
pip install makefilepy
This package has 3 classes:
Variable
: variables to be used in your Makefile.Command
: commands to be executed usingmake
.Makefile
: the Makefile itself, which will contain the variables and commands.
The package is designed to work intuitively. Take a look at the examples to better understand how to use each class.
You will find examples of how to use the package in the examples
directory.
Contributions are more than welcome. Fork, improve and make a pull request. For bugs, ideas for improvement or other, please create an issue.
To check the syntax using linter, just run the command below:
make lint
To test the package just run the following commands:
# (first time only) Build the Docker image
make build
# Run tests
make test
# Run tests and check coverage
make test-coverage
This project is licensed under the MIT License - see the LICENSE file for details.