Skip to content

johnatas-x/drupal-releases-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Drupal Releases Lifecycle Graph

This Python script generates a visual timeline of the maintenance and security lifecycle for recent Drupal versions (10.3 to 11.3) using color-coded horizontal bars.

  • βœ… Green: The version is actively maintained.
  • 🟑 Yellow: Security fixes only.
  • πŸ”΄ Red: The version is no longer supported.
  • πŸ“ A vertical dotted line indicates today's date.
  • ⏳ Versions are sorted chronologically (oldest at the top).
  • ⚠️ Future dates are estimates and will be updated when official release/support dates are confirmed by the Drupal team.

πŸ“Έ Output

The chart displays:

  • The version number on the left, with a background color matching the current support level.
  • A time-based X-axis labeled in French, showing the month and year.
  • Faded bars for phases that are in the past, to visually distinguish historical from current/future periods.
  • A legend in the top-right corner.

πŸ–ΌοΈ An example of the final output is available at the root of the repository as graph_example.png.

πŸ› οΈ Requirements

Ensure Python and required libraries are installed.

Step-by-step installation on Ubuntu example:

# Install Python.
sudo apt update
sudo apt install python3
sudo apt install python3-pip
sudo apt install python3.12-venv

# Create and activate a virtual environment.
python3 -m venv .venv
source .venv/bin/activate

# Install required Python packages.
pip install matplotlib pandas

# Run the script.
python drupal_releases_graph.py

# Deactivate the virtual environment when done.
deactivate

πŸ–ΌοΈ Output Behavior

By default, the script will open a preview window showing the generated chart.
This allows you to tweak the layout and manually export it if needed.

To automatically export the chart as a PNG without preview, edit the file:

  • Comment out the preview line:
    plt.show()
  • Uncomment the PNG export lines:
    plt.savefig("drupal_versions_lifecycle.png", dpi=300)
    print("βœ… File saved: drupal_versions_lifecycle.png")

These lines are located near the end of the script (drupal_releases_graph.py, around line 137).

πŸ“‚ Output File

When the preview is disabled, the chart will be saved as:

drupal_versions_lifecycle.png

in the same directory as the script.

πŸ“Œ Notes

  • This chart can help teams anticipate version transitions and end-of-life deadlines.
  • If you'd like to generate an SVG version or change language settings, feel free to adapt the script.

About

Drupal releases lifecycle graph

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages