WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit d4a73bf

Browse files
Merge pull request #408 from newearthmartin/deps
moving optional dependencies
2 parents 126bb6f + 6fcd13a commit d4a73bf

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

README.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,20 @@ Currently, django-newsletter officially supports Django 4.2.x LTS, 5.0.x and 5.1
5858

5959
Requirements
6060
============
61-
Please refer to `requirements.txt <http://github.com/jazzband/django-newsletter/blob/master/requirements.txt>`_
61+
Please refer to `setup.py <http://github.com/jazzband/django-newsletter/blob/master/setup.py>`_
6262
for an updated list of required packages.
6363

64+
Also, you will need to install either one of these to use as a thumbnail engine:
65+
66+
* sorl-thumbnail
67+
* easy-thumbnails
68+
69+
Additional dependencies that need to be installed separately:
70+
71+
* python-ldap: for importing ldif files
72+
* unicodecsv: for importing csv files
73+
* python-card-me: for importing vCard files
74+
6475
Tests
6576
==========
6677
Fairly extensive tests are available for internal frameworks, web

setup.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,18 @@
4444
long_description=README,
4545
install_requires=[
4646
"Django>=4.2",
47-
"python-card-me<1.0",
48-
"python-ldap",
4947
"chardet",
50-
"unicodecsv<0.15",
5148
"Pillow",
5249
],
50+
extras_require={
51+
"test": [
52+
"python-ldap",
53+
"unicodecsv",
54+
"python-card-me",
55+
"django-tinymce",
56+
"django-imperavi"
57+
],
58+
},
5359
author='Mathijs de Bruin',
5460
author_email='[email protected]',
5561
url='http://github.com/jazzband/django-newsletter/',

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ envlist =
77
[testenv]
88
deps =
99
coverage
10-
django-imperavi
11-
django-tinymce
1210
pytz
1311
webtest
1412
django-webtest
1513
dj42: Django>=4.2,<4.3
1614
dj51: Django>=5.1,<5.2
1715
dj52: Django>=5.2,<5.3
1816
djmain: https://github.com/django/django/archive/main.tar.gz
17+
extras =
18+
test
1919
usedevelop = True
2020
ignore_outcome =
2121
djmain: True

0 commit comments

Comments
 (0)