Commit 8d5812a
committed
Make HTML transformation dependencies optional
pip install emails - lightweight, only message building and sending
pip install emails[html] - full install with HTML transformer (lxml, cssutils,
premailer, chardet, requests)
Move heavy dependencies (lxml, cssutils, premailer, chardet, requests) from
install_requires to extras_require['html']. Make requests import lazy in
utils.py so that `import emails` works without it.1 parent 7d40007 commit 8d5812a
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
| |||
270 | 268 | | |
271 | 269 | | |
272 | 270 | | |
| 271 | + | |
273 | 272 | | |
274 | 273 | | |
275 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
| |||
0 commit comments