forked from jfkirk/tensorrec
-
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.
- Loading branch information
Showing
1 changed file
with
8 additions
and
7 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,23 +1,24 @@ | ||
from pip.req import parse_requirements | ||
from pip.download import PipSession | ||
from setuptools import setup | ||
|
||
from os import path | ||
|
||
here = path.abspath(path.dirname(__file__)) | ||
def parse_requirements(filename): | ||
""" load requirements from a pip requirements file """ | ||
lineiter = (line.strip() for line in open(filename)) | ||
return [line for line in lineiter if line and not line.startswith("#")] | ||
|
||
install_reqs = parse_requirements(path.join(here, 'requirements.txt'), session=PipSession()) | ||
reqs = [str(ir.req) for ir in install_reqs] | ||
here = path.abspath(path.dirname(__file__)) | ||
install_reqs = parse_requirements(path.join(here, 'requirements.txt')) | ||
|
||
setup( | ||
name='tensorrec', | ||
packages=['tensorrec'], | ||
version='0.25.5', | ||
version='0.25.6', | ||
description='A TensorFlow recommendation algorithm and framework in Python.', | ||
author='James Kirk', | ||
author_email='james.f.kirk@gmail.com', | ||
url='https://github.com/jfkirk/tensorrec', | ||
keywords=['machine-learning', 'tensorflow', 'recommendation-system', 'python', 'recommender-system'], | ||
classifiers=[], | ||
install_requires=reqs, | ||
install_requires=install_reqs, | ||
) |