Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Commit

Permalink
Set up use as a library
Browse files Browse the repository at this point in the history
  • Loading branch information
daggelpop committed Jan 20, 2021
1 parent f0159b4 commit 7438528
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include email2pdf
include *.py
include *.md
include .travis.yml
Empty file added __init__.py
Empty file.
1 change: 1 addition & 0 deletions email2pdf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
email2pdf
19 changes: 19 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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',
],
)
10 changes: 10 additions & 0 deletions tests/Direct/test_Direct_Module.py
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit 7438528

Please sign in to comment.