diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3217691 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +build +build/* +dist +dist/* +*.pyc diff --git a/MANIFEST b/MANIFEST new file mode 100644 index 0000000..1b2228d --- /dev/null +++ b/MANIFEST @@ -0,0 +1,6 @@ +# file GENERATED by distutils, do NOT edit +README +setup.py +zxing/__init__.py +zxing/tests.py +zxing/zxing.py diff --git a/README.markdown b/README similarity index 100% rename from README.markdown rename to README diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..be70c8e --- /dev/null +++ b/setup.py @@ -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'], +) diff --git a/zxing.py b/zxing/__init__.py similarity index 97% rename from zxing.py rename to zxing/__init__.py index 9d0a122..87a29b9 100644 --- a/zxing.py +++ b/zxing/__init__.py @@ -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(): @@ -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" diff --git a/zxing/__init__.pyc b/zxing/__init__.pyc new file mode 100644 index 0000000..e1a1b1a Binary files /dev/null and b/zxing/__init__.pyc differ diff --git a/sample.png b/zxing/sample.png similarity index 100% rename from sample.png rename to zxing/sample.png diff --git a/tests.py b/zxing/tests.py similarity index 93% rename from tests.py rename to zxing/tests.py index c4e3cdf..0b37051 100644 --- a/tests.py +++ b/zxing/tests.py @@ -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)