forked from nok/sklearn-porter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release/0.7.0: Improve and replace 'porter' by native sdist
- Loading branch information
Showing
7 changed files
with
70 additions
and
65 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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,9 @@ | |
import os | ||
from setuptools import setup | ||
from setuptools import find_packages | ||
from typing import List | ||
|
||
|
||
def read_version(): | ||
# type: () -> str | ||
"""Read the module version from __version__.txt""" | ||
src_dir = os.path.abspath(os.path.dirname(__file__)) | ||
ver_file = os.path.join(src_dir, 'sklearn_porter', '__version__.txt') | ||
|
@@ -19,24 +17,28 @@ def read_version(): | |
|
||
|
||
def parse_requirements(): | ||
# type: () -> List[str] | ||
"""Parse the modules from requirements.txt""" | ||
src_dir = os.path.abspath(os.path.dirname(__file__)) | ||
req_file = os.path.join(src_dir, 'requirements.txt') | ||
reqs = open(req_file, 'r').read().strip().split('\n') | ||
reqs = [req.strip() for req in reqs if 'git+' not in req] | ||
return reqs | ||
|
||
|
||
setup( | ||
name='sklearn-porter', | ||
packages=find_packages(exclude=["tests.*", "tests"]), | ||
include_package_data=True, | ||
version=read_version(), | ||
description='Transpile trained scikit-learn models to C, Java, JavaScript and others.', | ||
description='Transpile trained scikit-learn models ' | ||
'to C, Java, JavaScript and others.', | ||
author='Darius Morawiec', | ||
author_email='[email protected]', | ||
url='https://github.com/nok/sklearn-porter/tree/stable', | ||
entry_points={ | ||
'console_scripts': [ | ||
'porter = sklearn_porter.cli.__main__:main' | ||
], | ||
}, | ||
classifiers=[ | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
|
Empty file.
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
class PHP(object): | ||
|
||
KEY = 'php' | ||
LABEL = 'KEY' | ||
LABEL = 'PHP' | ||
|
||
DEPENDENCIES = ['php'] | ||
TEMP_DIR = 'php' | ||
|