recommenders/setup.py

44 строки
1.5 KiB
Python
Исходник Обычный вид История

# 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
chdir(path.abspath(path.dirname(__file__)))
2020-03-11 13:47:32 +03:00
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()
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
setup(
2020-03-12 14:15:44 +03:00
name=name,
2020-03-11 15:01:57 +03:00
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",
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"]),
python_requires=">=3.6, <4",
)