recommenders/setup.py

44 строки
1.5 KiB
Python

# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import time
from setuptools import setup, find_packages
from os import chdir, path, environ
chdir(path.abspath(path.dirname(__file__)))
version = __import__("reco_utils.__init__").VERSION
# Get the long description from the README file
with open(path.join("reco_utils", "README.md"), encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()
HASH = environ.get("HASH", None)
if HASH is not None:
version += ".post" + str(int(time.time()))
name = environ.get("LIBRARY_NAME", "reco_utils")
setup(
name=name,
version=version,
description="Recommender System Utilities",
long_description=LONG_DESCRIPTION,
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",
package_dir={"reco_utils": "reco_utils"},
packages=find_packages(where=".", exclude=["tests", "tools", "examples"]),
python_requires=">=3.6, <4",
)