fixing version import in setup.py (#958)

* fixing version import in setup.py

* moving setup.py

* updating pip install instructions
This commit is contained in:
Scott Graham 2019-10-21 09:30:03 -04:00 коммит произвёл GitHub
Родитель 1c7d1076cb
Коммит 8443388039
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 11 добавлений и 14 удалений

Просмотреть файл

@ -320,12 +320,12 @@ A [setup.py](reco_utils/setup.py) file is provided in order to simplify the inst
This still requires the conda environment to be installed as described above. Once the necessary dependencies are installed, you can use the following command to install `reco_utils` as a python package.
pip install -e reco_utils
pip install -e .
It is also possible to install directly from Github. Or from a specific branch as well.
It is also possible to install directly from GitHub. Or from a specific branch as well.
pip install -e git+https://github.com/microsoft/recommenders/#egg=pkg\&subdirectory=reco_utils
pip install -e git+https://github.com/microsoft/recommenders/@staging#egg=pkg\&subdirectory=reco_utils
pip install -e git+https://github.com/microsoft/recommenders/#egg=pkg
pip install -e git+https://github.com/microsoft/recommenders/@staging#egg=pkg
**NOTE** - The pip installation does not install any of the necessary package dependencies, it is expected that conda will be used as shown above to setup the environment for the utilities being used.

Просмотреть файл

@ -1,24 +1,21 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from setuptools import setup, find_packages
from setuptools import setup
from os import chdir, path
VERSION = __import__("__init__").VERSION
here = path.abspath(path.dirname(__file__))
chdir(path.abspath(path.dirname(__file__)))
VERSION = __import__("reco_utils.__init__").VERSION
# Get the long description from the README file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
with open(path.join("reco_utils", "README.md"), encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()
chdir(here)
setup(
name="reco_utils",
version=VERSION,
description="Recommender System Utilities",
long_description=long_description,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/microsoft/recommenders",
author="RecoDev Team at Microsoft",
@ -33,6 +30,6 @@ setup(
"Programming Language :: Python :: 3.6",
],
keywords="recommendations recommenders recommender system engine machine learning python spark gpu",
packages=find_packages(),
packages=["reco_utils"],
python_requires=">=3.6, <4",
)