Skip to content

Commit

Permalink
Merge pull request #1 from Tarrant/master
Browse files Browse the repository at this point in the history
Make htmlpurifier installable via pip
  • Loading branch information
kz26 committed Mar 18, 2013
2 parents 9f7f644 + f7cfc93 commit 8e67a4a
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 0 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions __init__.py → lib/__init__.py
@@ -1,2 +1,3 @@
from __version__ import __version__
from fields import *
from purify import *
1 change: 1 addition & 0 deletions lib/__version__.py
@@ -0,0 +1 @@
__version__="1.0.1"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions setup.py
@@ -0,0 +1,13 @@
from distutils.core import setup, Extension


setup ( name = 'htmlpurifier',
version = open('lib/__version__.py').readline().rstrip().split('=')[1].strip('"'),
author = 'whitehat2k9',
author_email = '',
description = 'A silly but useful hack for sanitizing untrusted HTML input in Django forms via the PHP HTML Purifier library',
package_dir = {'htmlpurifier': 'lib'},
packages = ['htmlpurifier'],
package_data = {'htmlpurifier': ['htmlpurifier-cli.php', 'readme.md',]},
include_package_data=True,
)

0 comments on commit 8e67a4a

Please sign in to comment.