diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..78e7197 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,4 @@ +include email2pdf +include *.py +include *.md +include .travis.yml \ No newline at end of file diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/email2pdf.py b/email2pdf.py new file mode 100755 index 0000000..c1fae7b --- /dev/null +++ b/email2pdf.py @@ -0,0 +1 @@ +email2pdf \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..71c689e --- /dev/null +++ b/setup.py @@ -0,0 +1,19 @@ +from setuptools import setup + +setup( + name='email2pdf', + version='', + packages=['tests', 'tests.Direct', 'tests.Subprocess'], + url='https://github.com/andrewferrier/email2pdf', + license='MIT', + author='Andrew Ferrier', + description='email2pdf is a Python script to convert emails to PDF.', + install_requires=[ + 'beautifulsoup4>=4.6.3', + 'html5lib', + 'lxml', + 'pypdf2', + 'python-magic', + 'reportlab', + ], +) diff --git a/tests/Direct/test_Direct_Module.py b/tests/Direct/test_Direct_Module.py new file mode 100644 index 0000000..0603986 --- /dev/null +++ b/tests/Direct/test_Direct_Module.py @@ -0,0 +1,10 @@ +from tests import BaseTestClasses + + +class Direct_Module(BaseTestClasses.Email2PDFTestCase): + def setUp(self): + super(Direct_Module, self).setUp() + + def test_import(self): + import email2pdf + self.assertEqual(email2pdf.WKHTMLTOPDF_EXTERNAL_COMMAND, 'wkhtmltopdf')