From 6a68e35daa515b93aed1c41ed28253a4aa4d0055 Mon Sep 17 00:00:00 2001 From: Maciej Kula Date: Fri, 27 Nov 2020 11:34:13 -0800 Subject: [PATCH 1/2] Bump version to v1.16. Update changelong. Add long description to setup.py. --- changelog.md | 9 +++++++++ lightfm/__init__.py | 2 +- setup.py | 8 +++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index e5033fb0..99aa3838 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,14 @@ # Changelog +## [1.16][2020-11-27] + +### Addded +- Set the `LIGHTFM_NO_CFLAGS` environment variable when building LightFM to prevent it from setting + `-ffast-math` or `-march=native` compiler flags. + +### Changed +- `predict` now returns float32 predictions. + ## [1.15][2018-05-26] ### Added - Added a check that there is no overlap between test and train in `predict_ranks` (thanks to [@artdgn](https://github.com/artdgn)). diff --git a/lightfm/__init__.py b/lightfm/__init__.py index e964c283..5c92a981 100644 --- a/lightfm/__init__.py +++ b/lightfm/__init__.py @@ -3,6 +3,6 @@ except NameError: from .lightfm import LightFM -__version__ = "1.15" +__version__ = "1.16" __all__ = ["LightFM", "datasets", "evaluation"] diff --git a/setup.py b/setup.py index 67ae16f0..ae1a5f90 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,6 @@ # coding=utf-8 import os +import pathlib import subprocess import sys import textwrap @@ -157,10 +158,15 @@ def run(self): "win" ) +long_description = (pathlib.Path(__file__).parent + .joinpath("README.md") + .read_text()) + setup( name="lightfm", version=version, description="LightFM recommendation model", + long_description=long_description, url="https://github.com/lyst/lightfm", download_url="https://github.com/lyst/lightfm/tarball/{}".format(version), packages=["lightfm", "lightfm.datasets"], @@ -172,7 +178,7 @@ def run(self): author_email="data@ly.st", license="MIT", classifiers=[ - "Development Status :: 3 - Alpha", + "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Topic :: Scientific/Engineering :: Artificial Intelligence", ], From 1022acd28e68a027c48b2ada50b4c107c70e63a6 Mon Sep 17 00:00:00 2001 From: Maciej Kula Date: Fri, 27 Nov 2020 11:39:12 -0800 Subject: [PATCH 2/2] Update with Black formatting. --- setup.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setup.py b/setup.py index ae1a5f90..040d39aa 100644 --- a/setup.py +++ b/setup.py @@ -158,9 +158,7 @@ def run(self): "win" ) -long_description = (pathlib.Path(__file__).parent - .joinpath("README.md") - .read_text()) +long_description = pathlib.Path(__file__).parent.joinpath("README.md").read_text() setup( name="lightfm",