diff --git a/debian/compat b/debian/compat
index 7f8f011..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-7
+10
diff --git a/debian/control b/debian/control
index e474717..1344f9f 100644
--- a/debian/control
+++ b/debian/control
@@ -2,35 +2,15 @@ Source: emails
Maintainer: Sergey Lavrinenko
Section: python
Priority: optional
-Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 7.4.3)
+Build-Depends: python-setuptools, python-all, debhelper (>= 10), python3-setuptools, python3-all, dh-python
Standards-Version: 3.9.1
-
-
Package: python-emails
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}
-Description: Modern python library for emails.
- python-emails
- ~~~~~~~~~~~~~
- .
- Modern python library for email.
- .
- Build message:
- .
- .. code-block:: python
- .
- >>> import emails
- >>> message = emails.html(html="
Hi!
Here is your receipt...",
- subject="Your receipt No. 567098123",
- mail_from=('Some Store', 'store@somestore.com'))
- >>> message.attach(data=open('bill.pdf', 'rb'), filename='bill.pdf')
- .
- send message and get response from smtp server:
- .
- .. code-block:: python
- .
- >>> r = message.send(to='s@lavr.me', smtp={'host': 'aspmx.l.google.com', 'timeout': 5})
-
-
+Description: Modern python library for emails (Python 2 module)
+Package: python3-emails
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: Modern python library for emails (Python 3 module)
diff --git a/debian/py3dist-overrides b/debian/py3dist-overrides
new file mode 100644
index 0000000..782c39d
--- /dev/null
+++ b/debian/py3dist-overrides
@@ -0,0 +1,2 @@
+cssutils python3-cssutils
+premailer python3-premailer
diff --git a/debian/pydist-overrides b/debian/pydist-overrides
new file mode 100644
index 0000000..6486d17
--- /dev/null
+++ b/debian/pydist-overrides
@@ -0,0 +1,2 @@
+cssutils python-cssutils
+premailer python-premailer
diff --git a/debian/rules b/debian/rules
index 72b36b7..cdd1686 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,11 @@
#!/usr/bin/make -f
-# This file was automatically generated by stdeb 0.8.5 at
-# Mon, 04 Jul 2016 17:40:45 +0200
+export PYBUILD_NAME=emails
+export PYBUILD_DISABLE=test
%:
- dh $@ --with python2
-
-
-
+ dh $@ --with python2,python3 --buildsystem=pybuild
+override_dh_install:
+ dh_install
+ rm $(CURDIR)/debian/python-emails/usr/bin/make_rfc822.py