Skip to content

Commit

Permalink
Release 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
liminspace committed Aug 21, 2024
1 parent 02cc033 commit 5222d7b
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 71 deletions.
134 changes: 67 additions & 67 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,31 @@ on:

jobs:
test-py-3-6:
runs-on: ubuntu-20.04
runs-on: ubuntu-20.04 # Python 3.6 is not available in newer releases
env:
PYTHON_VER: 3.6
NODE_VER: 14
NODE_VER: 20.x
strategy:
matrix:
django-ver: [ '<2.3', '<3.1', '<3.2', '<3.3' ]
mjml-ver: [ '4.6.3', '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1' ]
tcp-server-ver: [ 'v1.1' ]
mjml-ver: [ '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1', '4.15.2' ]
tcp-server-ver: [ 'v1.2' ]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout tcp server
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'liminspace/mjml-tcpserver'
ref: ${{ matrix.tcp-server-ver }}
path: './mjml-tcpserver'
- name: Set up Python ${{ env.PYTHON_VER }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VER }}
- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-pip
with:
Expand All @@ -44,11 +44,11 @@ jobs:
pip install "Django${{ matrix.django-ver }}"
pip install "requests>=2.24.0,<2.28.0"
- name: Set up Node.js ${{ env.NODE_VER }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VER }}
- name: Cache npm
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-npm
with:
Expand All @@ -71,28 +71,28 @@ jobs:
runs-on: ubuntu-latest
env:
PYTHON_VER: 3.7
NODE_VER: 14
NODE_VER: 20.x
strategy:
matrix:
django-ver: [ '<2.3', '<3.1', '<3.2', '<3.3' ]
mjml-ver: [ '4.6.3', '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1' ]
tcp-server-ver: [ 'v1.1' ]
mjml-ver: [ '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1', '4.15.2' ]
tcp-server-ver: [ 'v1.2' ]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout tcp server
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'liminspace/mjml-tcpserver'
ref: ${{ matrix.tcp-server-ver }}
path: './mjml-tcpserver'
- name: Set up Python ${{ env.PYTHON_VER }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VER }}
- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-pip
with:
Expand All @@ -105,11 +105,11 @@ jobs:
pip install "Django${{ matrix.django-ver }}"
pip install "requests>=2.24.0,<=2.29.0"
- name: Set up Node.js ${{ env.NODE_VER }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VER }}
- name: Cache npm
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-npm
with:
Expand All @@ -132,28 +132,28 @@ jobs:
runs-on: ubuntu-latest
env:
PYTHON_VER: 3.8
NODE_VER: 14
NODE_VER: 20.x
strategy:
matrix:
django-ver: [ '<2.3', '<3.1', '<3.2', '<3.3', '<4.1', '<4.2', '<4.3' ]
mjml-ver: [ '4.6.3', '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1' ]
tcp-server-ver: [ 'v1.1' ]
mjml-ver: [ '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1', '4.15.2' ]
tcp-server-ver: [ 'v1.2' ]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout tcp server
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'liminspace/mjml-tcpserver'
ref: ${{ matrix.tcp-server-ver }}
path: './mjml-tcpserver'
- name: Set up Python ${{ env.PYTHON_VER }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VER }}
- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-pip
with:
Expand All @@ -166,11 +166,11 @@ jobs:
pip install "Django${{ matrix.django-ver }}"
pip install "requests>=2.24.0,<=2.29.0"
- name: Set up Node.js ${{ env.NODE_VER }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VER }}
- name: Cache npm
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-npm
with:
Expand All @@ -193,28 +193,28 @@ jobs:
runs-on: ubuntu-latest
env:
PYTHON_VER: 3.9
NODE_VER: 14
NODE_VER: 20.x
strategy:
matrix:
django-ver: [ '<2.3', '<3.1', '<3.2', '<3.3', '<4.1', '<4.2', '<4.3' ]
mjml-ver: [ '4.6.3', '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1' ]
tcp-server-ver: [ 'v1.1' ]
mjml-ver: [ '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1', '4.15.2' ]
tcp-server-ver: [ 'v1.2' ]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout tcp server
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'liminspace/mjml-tcpserver'
ref: ${{ matrix.tcp-server-ver }}
path: './mjml-tcpserver'
- name: Set up Python ${{ env.PYTHON_VER }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VER }}
- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-pip
with:
Expand All @@ -227,11 +227,11 @@ jobs:
pip install "Django${{ matrix.django-ver }}"
pip install "requests>=2.24.0,<=2.29.0"
- name: Set up Node.js ${{ env.NODE_VER }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VER }}
- name: Cache npm
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-npm
with:
Expand All @@ -254,28 +254,28 @@ jobs:
runs-on: ubuntu-latest
env:
PYTHON_VER: '3.10'
NODE_VER: 14
NODE_VER: 20.x
strategy:
matrix:
django-ver: [ '<3.3', '<4.1', '<4.2', '<4.3', '<5.1' ]
mjml-ver: [ '4.6.3', '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1' ]
tcp-server-ver: [ 'v1.1' ]
django-ver: [ '<3.3', '<4.1', '<4.2', '<4.3', '<5.2' ]
mjml-ver: [ '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1', '4.15.2' ]
tcp-server-ver: [ 'v1.2' ]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout tcp server
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'liminspace/mjml-tcpserver'
ref: ${{ matrix.tcp-server-ver }}
path: './mjml-tcpserver'
- name: Set up Python ${{ env.PYTHON_VER }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VER }}
- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-pip
with:
Expand All @@ -288,11 +288,11 @@ jobs:
pip install "Django${{ matrix.django-ver }}"
pip install "requests>=2.24.0,<=2.29.0"
- name: Set up Node.js ${{ env.NODE_VER }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VER }}
- name: Cache npm
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-npm
with:
Expand All @@ -315,28 +315,28 @@ jobs:
runs-on: ubuntu-latest
env:
PYTHON_VER: '3.11'
NODE_VER: 14
NODE_VER: 20.x
strategy:
matrix:
django-ver: [ '<4.2', '<4.3', '<5.1' ]
mjml-ver: [ '4.6.3', '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1' ]
tcp-server-ver: [ 'v1.1' ]
django-ver: [ '<4.2', '<4.3', '<5.2' ]
mjml-ver: [ '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1', '4.15.2' ]
tcp-server-ver: [ 'v1.2' ]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout tcp server
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'liminspace/mjml-tcpserver'
ref: ${{ matrix.tcp-server-ver }}
path: './mjml-tcpserver'
- name: Set up Python ${{ env.PYTHON_VER }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VER }}
- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-pip
with:
Expand All @@ -349,11 +349,11 @@ jobs:
pip install "Django${{ matrix.django-ver }}"
pip install "requests>=2.24.0,<=2.29.0"
- name: Set up Node.js ${{ env.NODE_VER }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VER }}
- name: Cache npm
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-npm
with:
Expand All @@ -376,28 +376,28 @@ jobs:
runs-on: ubuntu-latest
env:
PYTHON_VER: '3.12'
NODE_VER: 14
NODE_VER: 20.x
strategy:
matrix:
django-ver: [ '<4.3', '<5.1' ]
mjml-ver: [ '4.6.3', '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1' ]
tcp-server-ver: [ 'v1.1' ]
django-ver: [ '<4.3', '<5.2' ]
mjml-ver: [ '4.7.1', '4.8.2', '4.9.3', '4.10.4', '4.11.0', '4.12.0', '4.13.0', '4.14.1', '4.15.2' ]
tcp-server-ver: [ 'v1.2' ]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout tcp server
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: 'liminspace/mjml-tcpserver'
ref: ${{ matrix.tcp-server-ver }}
path: './mjml-tcpserver'
- name: Set up Python ${{ env.PYTHON_VER }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VER }}
- name: Cache pip
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-pip
with:
Expand All @@ -410,11 +410,11 @@ jobs:
pip install "Django${{ matrix.django-ver }}"
pip install "requests>=2.24.0,<=2.29.0"
- name: Set up Node.js ${{ env.NODE_VER }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VER }}
- name: Cache npm
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-npm
with:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,7 @@ tests/db.sqlite3
node_modules/
package-lock.json
package.json


# tcpserver
mjml-tcpserver/
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.3 (2024-08-21)
================
* Added supporting Django 5.1


1.2 (2024-01-08)
================
* Added Python 3.12 in tests
Expand Down
10 changes: 8 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.. image:: https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg
:target: https://stand-with-ukraine.pp.ua
:alt: Stand With Ukraine

|
.. image:: https://github.com/liminspace/django-mjml/actions/workflows/test.yml/badge.svg?branch=main
:target: https://github.com/liminspace/django-mjml/actions/workflows/test.yml
:alt: test
Expand Down Expand Up @@ -25,9 +31,9 @@ Installation
Requirements:
^^^^^^^^^^^^^

* ``Django`` from 2.2 to 5.0
* ``Django`` from 2.2 to 5.1
* ``requests`` from 2.24.0 (only if you are going to use API HTTP-server for rendering)
* ``mjml`` from 3.6.3 to 4.14.1
* ``mjml`` from 4.7.1 to 4.15.2 (older version may work, but not tested anymore)

**\1\. Install** ``mjml``.

Expand Down
Loading

0 comments on commit 5222d7b

Please sign in to comment.