bug fix with installer
This commit is contained in:
parent
b4c1e1a8c2
commit
69998cc2e1
|
@ -74,7 +74,7 @@ def format_proc(value):
|
||||||
else:
|
else:
|
||||||
return value
|
return value
|
||||||
|
|
||||||
def map(row,config,version):
|
def get_map(row,config,version):
|
||||||
|
|
||||||
label = config['label'] if 'label' in config else None
|
label = config['label'] if 'label' in config else None
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ def map(row,config,version):
|
||||||
# we are dealing with a complex object
|
# we are dealing with a complex object
|
||||||
object_value = []
|
object_value = []
|
||||||
for row_item in row :
|
for row_item in row :
|
||||||
object_value.append( list(map(row_item,config,version)))
|
object_value.append( list(get_map(row_item,config,version)))
|
||||||
# object_value = {label:object_value}
|
# object_value = {label:object_value}
|
||||||
return object_value
|
return object_value
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ def get_content(filename,config,section=None) :
|
||||||
|
|
||||||
row = split(x12_file[3])
|
row = split(x12_file[3])
|
||||||
_info = get_config(config,row)
|
_info = get_config(config,row)
|
||||||
_default_value = list(map(row,_info,VERSION)) if _info else None
|
_default_value = get_map(row,_info,VERSION) if _info else None
|
||||||
N = len(locations)
|
N = len(locations)
|
||||||
|
|
||||||
for index in range(0,N-1):
|
for index in range(0,N-1):
|
||||||
|
@ -157,7 +157,8 @@ def get_content(filename,config,section=None) :
|
||||||
_info = get_config(config,row)
|
_info = get_config(config,row)
|
||||||
if _info :
|
if _info :
|
||||||
try:
|
try:
|
||||||
tmp = map(row,_info,VERSION)
|
# tmp = get_map(row,_info,VERSION)
|
||||||
|
tmp = get_map(row,_info,VERSION)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if sys.verion_info[0] > 2 :
|
if sys.verion_info[0] > 2 :
|
||||||
logs.append ({"version":VERSION,"filename":filename,"msg":e.args[0],"X12":x12_file[beg:end]})
|
logs.append ({"version":VERSION,"filename":filename,"msg":e.args[0],"X12":x12_file[beg:end]})
|
45
setup.py
45
setup.py
|
@ -3,23 +3,32 @@ This is a build file for the
|
||||||
"""
|
"""
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
def read(fname):
|
def read(fname):
|
||||||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||||
setup(
|
args = {"name":"parse-edi","version":"1.0.0","author":"Vanderbilt University Medical Center","license":"MIT","packages":["edi"],"keywords":["healthcare","edi","x12","data","transport","protocol"]}
|
||||||
name = "parse-edi",
|
args["install_requires"] = ['data-transport@git+https://dev.the-phi.com/git/steve/data-transport.git','pymongo','numpy','cloudant','pika','boto','flask-session','smart_open']
|
||||||
version = "1.0.1",
|
args['url'] = 'https://hiplab.mc.vanderbilt.edu'
|
||||||
author = "Vanderbilt University Medical Center",
|
if sys.version_info[0] == 2 :
|
||||||
author_email = "steve.l.nyemba@vanderbilt.edu",
|
args['use_2to3'] = False
|
||||||
license = "MIT",
|
args['use_2to3_exclude_fixers'] = ['lib2to3.fixes.fix_import']
|
||||||
packages=['edi'],
|
setup(**args)
|
||||||
keywords=['healthcare', 'edi','x12','mongodb','couchdb','rabbitmq','file','read','write','s3'],
|
#setup(
|
||||||
install_requires = [
|
# name = "parse-edi",
|
||||||
'data-transport@git+https://dev.the-phi.com/git/steve/data-transport.git',
|
# version = "1.0",
|
||||||
'pymongo','numpy','cloudant','pika','boto','flask-session','smart_open'],
|
# author = "Vanderbilt University Medical Center",
|
||||||
url="https://hiplab.mc.vanderbilt.edu/tools",
|
# author_email = "steve.l.nyemba@vanderbilt.edu",
|
||||||
use_2to3=True,
|
# license = "MIT",
|
||||||
long_description=read('README.md'),
|
# packages=['edi'],
|
||||||
convert_2to3_doctests=['README.md'],
|
# keywords=['healthcare', 'edi','x12','mongodb','couchdb','rabbitmq','file','read','write','s3'],
|
||||||
#use_2to3_fixers=['your.fixers'],
|
# install_requires = [
|
||||||
use_2to3_exclude_fixers=['lib2to3.fixes.fix_import'],
|
# 'data-transport@git+https://dev.the-phi.com/git/steve/data-transport.git',
|
||||||
)
|
# 'pymongo','numpy','cloudant','pika','boto','flask-session','smart_open'],
|
||||||
|
# url="https://hiplab.mc.vanderbilt.edu/tools",
|
||||||
|
# use_2to3=True,
|
||||||
|
# long_description=read('README.md'),
|
||||||
|
# convert_2to3_doctests=['README.md'],
|
||||||
|
# #use_2to3_fixers=['your.fixers'],
|
||||||
|
# use_2to3_exclude_fixers=['lib2to3.fixes.fix_import'],
|
||||||
|
# )
|
||||||
|
|
Loading…
Reference in New Issue