Makefile to Markdown
Overview
Simple command-line utility that converts Makefiles to Markdown if specific commenting style is followed.
Headers
Headers (sections) should look like this:
# -----------------------------------------------------------------------------
# Header Name
# -----------------------------------------------------------------------------
Commands
Commands should look like this:
command: ## Command description
echo "do something"
Example Makefile
# -----------------------------------------------------------------------------
# Testing
# -----------------------------------------------------------------------------
pytest: ## Run tests
pytest -vx
pytest_verbose: ## Run tests in verbose mode
pytest -vvs
coverage: ## Run tests with coverage
coverage run -m pytest && coverage html
coverage_verbose: ## Run tests with coverage in verbose mode
coverage run -m pytest -vss && coverage html
coverage_skip: ## Run tests with coverage and skip covered
coverage run -m pytest -vs && coverage html --skip-covered
open_coverage: ## Open coverage report
open htmlcov/index.html
# -----------------------------------------------------------------------------
# Ruff
# -----------------------------------------------------------------------------
ruff_format: ## Run ruff format
ruff format src/env_secret_extractor
ruff_check: ## Run ruff check
ruff check src/env_secret_extractor
ruff_clean: ## Run ruff clean
ruff clean
Installation
python3 -m pip install makefile-to-markdown
Usage
makefile-to-markdown convert --path "Makefile"
Development
make env
make pip_install
make pip_install_editable
Testing
make pytest
make coverage
make open_coverage
Issues
If you experience any issues, please create an issue on Github.
Not Exactly What You Want?
This is what I want. It might not be what you want. If you have differences in your preferred setup, I encourage you to fork this to create your own version.
History
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
0.1.1 (2024-04-23)
- Moved from
argparsetoclick
0.1.0 (2024-04-16)
- First release
Metadata
Release files for makefile-to-markdown 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| makefile_to_markdown-0.1.1.tar.gz | 8.8 kB | Without provenance | Details for makefile_to_markdown-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| makefile_to_markdown-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for makefile_to_markdown-0.1.1-py3-none-any.whl |
Total release size: 14.7 kB
Release files / makefile_to_markdown-0.1.1.tar.gz
| Download URL | makefile_to_markdown-0.1.1.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8f4aa3669b2ed0f22a393e35d101b4ec23929f1a5a951273c092093a2cfbb0a
|
|
BLAKE2b-256 checksum How to use checksums |
eeb3e8cbf8dcaf0c297d7cff5fb997030a887a14e4392ea2e01cc6b5dfc4c34b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.11
|
Release files / makefile_to_markdown-0.1.1-py3-none-any.whl
| Download URL | makefile_to_markdown-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06235aaef1c89a70011459144dd95cfdbe3e3bd6a4e8ed5f535d17edb425bb79
|
|
BLAKE2b-256 checksum How to use checksums |
5e43af47d823e5204adfbbe638719ad5635fd05f2a998850fc85ad647ed76d22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.11
|
Security for makefile-to-markdown 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.