-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from NaturalHistoryMuseum/feature/24-pylibdmtx
Feature/24 pylibdmtx
- Loading branch information
Showing
7 changed files
with
104 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
language: python | ||
language: | ||
- python | ||
|
||
sudo: | ||
- required | ||
|
||
python: | ||
- "2.7" | ||
|
||
virtualenv: | ||
system_site_packages: true | ||
|
||
before_install: | ||
- sudo apt-get update | ||
|
||
install: | ||
- sudo apt-get install --fix-missing python-opencv python-numpy python-zbar libdmtx-dev | ||
- pip install -e 'git+git://libdmtx.git.sourceforge.net/gitroot/libdmtx/dmtx-wrappers#egg=pydmtx&subdirectory=python' | ||
- sudo apt-get -qq update | ||
- sudo apt-get install -y --fix-missing libdmtx0a python-opencv | ||
- pip install -r requirements.txt | ||
- "export DISPLAY=:99.0" | ||
- "sh -e /etc/init.d/xvfb start" | ||
|
||
script: | ||
- nosetests | ||
|
||
after_success: | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# v0.1.8 | ||
- #24 Support pylibdmtx | ||
|
||
# v0.1.7 | ||
- #21 Build scripts to exit on failure | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
pathlib>=1.0 | ||
Pillow>=2.7.0 | ||
pylibdmtx>=0.1.1 | ||
numpy>=1.8.2 | ||
|
||
# Packages required for testing | ||
coveralls>=1.1 | ||
nose>=1.3.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,57 @@ | ||
#!/usr/bin/env python | ||
from setuptools import setup | ||
import sys | ||
|
||
import gouda | ||
|
||
setup( | ||
name='gouda', | ||
version=gouda.__version__, | ||
description=gouda.__doc__, | ||
author='Lawrence Hudson', | ||
author_email='[email protected]', | ||
packages=['gouda', 'gouda.engines', 'gouda.java', 'gouda.strategies', | ||
'gouda.strategies.roi'], | ||
test_suite="gouda.tests", | ||
scripts=['gouda/scripts/decode_barcodes.py'], | ||
install_requires=[l.replace('==', '>=') for l in open('requirements.txt')], | ||
) | ||
SCRIPTS = ['decode_barcodes'] | ||
|
||
URL = 'https://github.com/NaturalHistoryMuseum/gouda/' | ||
|
||
|
||
setup_data = { | ||
'name': 'gouda', | ||
'version': gouda.__version__, | ||
'author': 'Lawrence Hudson', | ||
'author_email': '[email protected]', | ||
'url': URL, | ||
'description': gouda.__doc__, | ||
'long_description': 'Visit {0} for more details.'.format(URL), | ||
'packages': [ | ||
'gouda', 'gouda.engines', 'gouda.java', 'gouda.strategies', | ||
'gouda.strategies.roi', 'gouda.tests', | ||
], | ||
'include_package_data': True, | ||
'test_suite': 'gouda.tests', | ||
'scripts': ['gouda/scripts/{0}.py'.format(script) for script in SCRIPTS], | ||
'entry_points': { | ||
'console_scripts': | ||
['{0}=gouda.scripts.{0}:main'.format(script) for script in SCRIPTS], | ||
}, | ||
'install_requires': [ | ||
# TODO How to specify OpenCV? 'cv2>=2.4.8,<3', | ||
'pathlib>=1.0.1', | ||
'pylibdmtx>=0.1.1', | ||
'numpy>=1.8.2', | ||
], | ||
'tests_require': [ | ||
'nose>=1.3.4', | ||
], | ||
'classifiers': [ | ||
'Development Status :: 4 - Beta', | ||
'License :: OSI Approved :: MIT License', | ||
'Topic :: Utilities', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
] | ||
} | ||
|
||
|
||
def setuptools_setup(): | ||
from setuptools import setup | ||
setup(**setup_data) | ||
|
||
|
||
if (2, 7) == sys.version_info[:2]: | ||
setuptools_setup() | ||
else: | ||
sys.exit('Only Python 2.7 is supported') |