Skip to content

Commit

Permalink
Merge pull request #1 from xamox/master
Browse files Browse the repository at this point in the history
I added setuptools so it can be installed as module
  • Loading branch information
oostendo committed Feb 14, 2012
2 parents 1ff5c98 + fd79523 commit 9980bc0
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build
build/*
dist
dist/*
*.pyc
6 changes: 6 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# file GENERATED by distutils, do NOT edit
README
setup.py
zxing/__init__.py
zxing/tests.py
zxing/zxing.py
File renamed without changes.
13 changes: 13 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env python

from distutils.core import setup

setup(
name='zxing',
version='0.1',
description="wrapper for zebra crossing (zxing) barcode library",
url='http://simplecv.org',
author='Ingenuitas',
author_email='public.relations@ingenuitas.com',
packages=['zxing'],
)
5 changes: 5 additions & 0 deletions zxing.py → zxing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# otherwise you must specify the location as a parameter to the constructor
#

__version__ = '0.2'
import subprocess, re, os

class BarCodeReader():
Expand Down Expand Up @@ -107,3 +108,7 @@ def __init__(self, zxing_output):
self.points.append((float(m.group(2)), float(m.group(3))))

return


if __name__ == "__main__":
print "Zxing module"
Binary file added zxing/__init__.pyc
Binary file not shown.
File renamed without changes
3 changes: 2 additions & 1 deletion tests.py → zxing/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def test_barcode_parser():


def test_codereader():
zx = BarCodeReader(zxing_location)
#~ zx = BarCodeReader(zxing_location)
zx = BarCodeReader()

barcode = zx.decode(testimage)

Expand Down

0 comments on commit 9980bc0

Please sign in to comment.