Skip to content

Commit

Permalink
Merge e26b98c into 5aabac1
Browse files Browse the repository at this point in the history
  • Loading branch information
krinart committed Jan 30, 2019
2 parents 5aabac1 + e26b98c commit 3a70ddd
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
@@ -1,6 +1,8 @@
language: python

python:
- "3.4"
- "3.5"
- "3.6"

install:
Expand Down
21 changes: 21 additions & 0 deletions setup.py
@@ -0,0 +1,21 @@
from setuptools import find_packages, setup

setup(
name='m2cgen',
version='0.1.0',
url='https://github.com/BayesWitnesses/m2cgen',
description='Code-generation for various ML models into native code.',
license='MIT',
packages=find_packages(exclude=['tests.*', 'tests']),
include_package_data=True,
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
],
python_requires='!=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
)
6 changes: 3 additions & 3 deletions tests/e2e/executors/java.py
Expand Up @@ -24,8 +24,8 @@ def predict(self, X):
"Executor", "Model", "score"
]
exec_args.extend(map(str, X))
result = subprocess.run(exec_args, stdout=subprocess.PIPE)
items = result.stdout.decode("utf-8").split(" ")
result = subprocess.Popen(exec_args, stdout=subprocess.PIPE)
items = result.stdout.read().decode("utf-8").split(" ")
if len(items) == 1:
return float(items[0])
else:
Expand All @@ -51,4 +51,4 @@ def prepare(self):
# Compile all files together.
exec_args = [self._javac_bin] + files_to_compile + (
[os.path.join(self._resource_tmp_dir, "Executor.java")])
subprocess.run(exec_args)
subprocess.call(exec_args)

0 comments on commit 3a70ddd

Please sign in to comment.