2019-08-22 03:08:52 +03:00
|
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
# Licensed under the MIT License.
|
|
|
|
|
2020-03-11 15:01:57 +03:00
|
|
|
import time
|
2020-03-10 15:20:57 +03:00
|
|
|
from setuptools import setup, find_packages
|
2020-03-11 13:47:32 +03:00
|
|
|
from os import chdir, path, environ
|
2019-08-22 03:08:52 +03:00
|
|
|
|
2019-10-21 16:30:03 +03:00
|
|
|
chdir(path.abspath(path.dirname(__file__)))
|
2020-03-11 13:47:32 +03:00
|
|
|
version = __import__("reco_utils.__init__").VERSION
|
2019-08-22 03:08:52 +03:00
|
|
|
|
|
|
|
# Get the long description from the README file
|
2019-10-21 16:30:03 +03:00
|
|
|
with open(path.join("reco_utils", "README.md"), encoding="utf-8") as f:
|
|
|
|
LONG_DESCRIPTION = f.read()
|
2019-08-22 03:08:52 +03:00
|
|
|
|
2020-03-11 15:01:57 +03:00
|
|
|
HASH = environ.get("HASH", None)
|
|
|
|
if HASH is not None:
|
2020-03-11 15:06:12 +03:00
|
|
|
version += ".post" + str(int(time.time()))
|
2020-03-11 13:47:32 +03:00
|
|
|
|
2020-04-08 14:43:59 +03:00
|
|
|
name = environ.get("LIBRARY_NAME", "reco_utils")
|
2020-03-12 14:15:44 +03:00
|
|
|
|
2019-08-22 03:08:52 +03:00
|
|
|
setup(
|
2020-03-12 14:15:44 +03:00
|
|
|
name=name,
|
2020-03-11 15:01:57 +03:00
|
|
|
version=version,
|
2019-08-22 03:08:52 +03:00
|
|
|
description="Recommender System Utilities",
|
2019-10-21 16:30:03 +03:00
|
|
|
long_description=LONG_DESCRIPTION,
|
2019-08-22 03:08:52 +03:00
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
url="https://github.com/microsoft/recommenders",
|
|
|
|
author="RecoDev Team at Microsoft",
|
|
|
|
author_email="RecoDevTeam@service.microsoft.com",
|
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 4 - Beta",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Intended Audience :: Science/Research",
|
|
|
|
"Topic :: Scientific/Engineering",
|
|
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Programming Language :: Python :: 3.6",
|
|
|
|
],
|
|
|
|
keywords="recommendations recommenders recommender system engine machine learning python spark gpu",
|
2020-03-18 15:39:57 +03:00
|
|
|
package_dir={"reco_utils": "reco_utils"},
|
2020-06-16 17:58:21 +03:00
|
|
|
packages=find_packages(where=".", exclude=["tests", "tools", "examples"]),
|
2019-08-22 03:08:52 +03:00
|
|
|
python_requires=">=3.6, <4",
|
|
|
|
)
|