-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
77 additions
and
59 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 |
---|---|---|
|
@@ -8,7 +8,6 @@ language: shell | |
branches: | ||
only: | ||
- master | ||
- develop | ||
|
||
before_install: | ||
- env | sort | ||
|
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,25 +1,31 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright (c) 2020, Monogramm and Contributors | ||
# See license.txt | ||
"""Configuration for desktop.""" | ||
|
||
from __future__ import unicode_literals | ||
|
||
from frappe import _ | ||
|
||
|
||
def get_data(): | ||
return [ | ||
{ | ||
"module_name": "OCR Read", | ||
"_doctype": "OCR Read", | ||
"color": "#00bcd4", | ||
"icon": "fa fa-eye", | ||
"type": "link", | ||
"link": "List/OCR Read" | ||
}, | ||
"""Returns the application desktop icons configuration.""" | ||
return [ | ||
{ | ||
"module_name": "OCR Read", | ||
"_doctype": "OCR Read", | ||
"color": "#00bcd4", | ||
"icon": "fa fa-eye", | ||
"type": "link", | ||
"link": "List/OCR Read" | ||
}, | ||
|
||
{ | ||
"module_name": "ERPNext OCR", | ||
"color": "#00bcd4", | ||
"icon": "octicon octicon-eye", | ||
"type": "module", | ||
"label": _("ERPNext OCR"), | ||
"hidden": 1 | ||
} | ||
] | ||
{ | ||
"module_name": "ERPNext OCR", | ||
"color": "#00bcd4", | ||
"icon": "octicon octicon-eye", | ||
"type": "module", | ||
"label": _("ERPNext OCR"), | ||
"hidden": 1 | ||
} | ||
] |
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,18 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Configuration for docs | ||
""" | ||
# Copyright (c) 2020, Monogramm and Contributors | ||
# See license.txt | ||
"""Configuration for docs.""" | ||
|
||
from __future__ import unicode_literals | ||
|
||
|
||
source_link = "https://github.com/Monogramm/erpnext_ocr" | ||
docs_base_url = "https://monogramm.github.io/erpnext_ocr" | ||
headline = "ERPNext OCR Integration" | ||
sub_heading = "Optical Character Recognition using tesseract within ERPNext" | ||
|
||
|
||
def get_context(context): | ||
context.brand_html = "ERPNext OCR" | ||
context.source_link = source_link | ||
context.docs_base_url = docs_base_url | ||
context.headline = headline | ||
context.sub_heading = sub_heading | ||
"""Returns the application documentation context. | ||
:param context: application documentation context""" | ||
context.brand_html = "ERPNext OCR" | ||
context.source_link = source_link | ||
context.docs_base_url = docs_base_url | ||
context.headline = headline | ||
context.sub_heading = sub_heading |
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,4 @@ | ||
# **erpnext_ocr** Documentation | ||
# **ERPNext OCR** Documentation | ||
|
||
This is the Documentation for **ERPNext OCR**. | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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,11 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright (c) 2020, Monogramm and Contributors | ||
# For license information, please see license.txt | ||
|
||
from __future__ import unicode_literals | ||
|
||
import frappe | ||
|
||
|
||
def before_tests(): | ||
"""Frappe trigger before application tests.""" | ||
settings = frappe.get_doc("System Settings") | ||
settings.time_zone = "Etc/GMT+3" | ||
settings.language = "en" | ||
settings.save() | ||
selling_settings = frappe.get_doc("Selling Settings") | ||
selling_settings.allow_multiple_items = 1 | ||
selling_settings.save() | ||
selling_settings.save() |
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,30 +1,28 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright (c) 2020, Monogramm and Contributors | ||
# See license.txt | ||
|
||
from setuptools import setup, find_packages | ||
try: # for pip >= 10 | ||
from pip._internal.req import parse_requirements | ||
except ImportError: # for pip <= 9.0.3 | ||
from pip.req import parse_requirements | ||
import re, ast | ||
|
||
with open('requirements.txt') as f: | ||
install_requires = f.read().strip().split('\n') | ||
|
||
# get version from __version__ variable in erpnext_ocr/__init__.py | ||
# get version from __version__ variable in erpnext_autoinstall/__init__.py | ||
_version_re = re.compile(r'__version__\s+=\s+(.*)') | ||
|
||
with open('erpnext_ocr/__init__.py', 'rb') as f: | ||
version = str(ast.literal_eval(_version_re.search( | ||
f.read().decode('utf-8')).group(1))) | ||
|
||
requirements = parse_requirements("requirements.txt", session="") | ||
|
||
setup( | ||
name='erpnext_ocr', | ||
version=version, | ||
description='OCR', | ||
author='Monogramm', | ||
author_email='opensource@monogramm.io', | ||
packages=find_packages(), | ||
zip_safe=False, | ||
include_package_data=True, | ||
install_requires=[str(ir.req) for ir in requirements], | ||
dependency_links=[str(ir._link) for ir in requirements if ir._link] | ||
name='erpnext_ocr', | ||
version=version, | ||
description='Optical Character Recognition using tesseract within Frappe..', | ||
author='Monogramm', | ||
author_email='opensource@monogramm.io', | ||
packages=find_packages(), | ||
zip_safe=False, | ||
include_package_data=True, | ||
install_requires=install_requires | ||
) |