debian: build a python 3 package

This commit is contained in:
Frédéric Péters 2020-04-18 10:55:02 +02:00
parent d32ee28fa8
commit fedf552cfe
5 changed files with 17 additions and 33 deletions

2
debian/compat vendored
View File

@ -1 +1 @@
7
10

32
debian/control vendored
View File

@ -2,35 +2,15 @@ Source: emails
Maintainer: Sergey Lavrinenko <s@lavr.me>
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="<p>Hi!<br>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)

2
debian/py3dist-overrides vendored Normal file
View File

@ -0,0 +1,2 @@
cssutils python3-cssutils
premailer python3-premailer

2
debian/pydist-overrides vendored Normal file
View File

@ -0,0 +1,2 @@
cssutils python-cssutils
premailer python-premailer

12
debian/rules vendored
View File

@ -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