From 658b75a1209b4d273bfb12dbdbb1bca8e018ced4 Mon Sep 17 00:00:00 2001 From: Emiliy Feldman Date: Fri, 17 May 2024 19:30:11 +0000 Subject: [PATCH 01/11] used the latest lightfm revision --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0b9d453c..127d30e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,7 +69,7 @@ attrs = ">=19.1.0,<24.0.0" typeguard = "^4.1.0" -lightfm = {version = ">=1.16,<=1.17", python = "<3.12", optional = true} +lightfm = {git = "https://github.com/lyst/lightfm", rev = "0c9c31e", optional = true} nmslib = {version = "^2.0.4", python = "<3.11", optional = true} From 2414b772187279a1b29790b364d28fac3770e88f Mon Sep 17 00:00:00 2001 From: Emiliy Feldman Date: Fri, 17 May 2024 19:30:43 +0000 Subject: [PATCH 02/11] used poetry-core instead of poetry as a build backend --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 127d30e1..2fd9b006 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -117,5 +117,5 @@ target-version = ["py38", "py39", "py310", "py311", "py312"] [build-system] -requires = ["poetry>=1.0.5"] -build-backend = "poetry.masonry.api" +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" From f717a6f501fe8ae0298b1a102a56ba2697cdf579 Mon Sep 17 00:00:00 2001 From: Emiliy Feldman Date: Fri, 17 May 2024 19:30:54 +0000 Subject: [PATCH 03/11] updated lock file --- poetry.lock | 145 +++++----------------------------------------------- 1 file changed, 12 insertions(+), 133 deletions(-) diff --git a/poetry.lock b/poetry.lock index acd3e09b..5604eefa 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,10 +1,9 @@ -# This file is automatically @generated by Poetry 1.4.0 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. [[package]] name = "aiohttp" version = "3.9.5" description = "Async http client/server framework (asyncio)" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -101,7 +100,6 @@ speedups = ["Brotli", "aiodns", "brotlicffi"] name = "aiosignal" version = "1.3.1" description = "aiosignal: a list of registered asynchronous callbacks" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -116,7 +114,6 @@ frozenlist = ">=1.1.0" name = "appnope" version = "0.1.4" description = "Disable App Nap on macOS >= 10.9" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -128,7 +125,6 @@ files = [ name = "astroid" version = "3.1.0" description = "An abstract syntax tree for Python with inference support." -category = "dev" optional = false python-versions = ">=3.8.0" files = [ @@ -143,7 +139,6 @@ typing-extensions = {version = ">=4.0.0", markers = "python_version < \"3.11\""} name = "asttokens" version = "2.4.1" description = "Annotate AST trees with source code positions" -category = "main" optional = true python-versions = "*" files = [ @@ -162,7 +157,6 @@ test = ["astroid (>=1,<2)", "astroid (>=2,<4)", "pytest"] name = "async-timeout" version = "4.0.3" description = "Timeout context manager for asyncio programs" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -174,7 +168,6 @@ files = [ name = "attrs" version = "23.2.0" description = "Classes Without Boilerplate" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -194,7 +187,6 @@ tests-no-zope = ["attrs[tests-mypy]", "cloudpickle", "hypothesis", "pympler", "p name = "autopep8" version = "2.1.0" description = "A tool that automatically formats Python code to conform to the PEP 8 style guide" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -210,7 +202,6 @@ tomli = {version = "*", markers = "python_version < \"3.11\""} name = "backcall" version = "0.2.0" description = "Specifications for callback functions passed in to an API" -category = "main" optional = true python-versions = "*" files = [ @@ -222,7 +213,6 @@ files = [ name = "bandit" version = "1.7.8" description = "Security oriented static analyser for python code." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -247,7 +237,6 @@ yaml = ["PyYAML"] name = "black" version = "24.4.2" description = "The uncompromising code formatter." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -294,7 +283,6 @@ uvloop = ["uvloop (>=0.15.2)"] name = "certifi" version = "2024.2.2" description = "Python package for providing Mozilla's CA Bundle." -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -306,7 +294,6 @@ files = [ name = "charset-normalizer" version = "3.3.2" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." -category = "main" optional = true python-versions = ">=3.7.0" files = [ @@ -406,7 +393,6 @@ files = [ name = "click" version = "8.1.7" description = "Composable command line interface toolkit" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -421,7 +407,6 @@ colorama = {version = "*", markers = "platform_system == \"Windows\""} name = "codespell" version = "2.2.6" description = "Codespell" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -439,7 +424,6 @@ types = ["chardet (>=5.1.0)", "mypy", "pytest", "pytest-cov", "pytest-dependency name = "colorama" version = "0.4.6" description = "Cross-platform colored terminal text." -category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" files = [ @@ -451,7 +435,6 @@ files = [ name = "comm" version = "0.2.2" description = "Jupyter Python Comm implementation, for usage in ipykernel, xeus-python etc." -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -469,7 +452,6 @@ test = ["pytest"] name = "coverage" version = "7.5.0" description = "Code coverage measurement for Python" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -537,7 +519,6 @@ toml = ["tomli"] name = "decorator" version = "5.1.1" description = "Decorators for Humans" -category = "main" optional = true python-versions = ">=3.5" files = [ @@ -549,7 +530,6 @@ files = [ name = "dill" version = "0.3.8" description = "serialize all of Python" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -565,7 +545,6 @@ profile = ["gprof2dot (>=2022.7.29)"] name = "exceptiongroup" version = "1.2.1" description = "Backport of PEP 654 (exception groups)" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -580,7 +559,6 @@ test = ["pytest (>=6)"] name = "executing" version = "2.0.1" description = "Get the currently executing AST node of a frame, and other information" -category = "main" optional = true python-versions = ">=3.5" files = [ @@ -595,7 +573,6 @@ tests = ["asttokens (>=2.1.0)", "coverage", "coverage-enable-subprocess", "ipyth name = "filelock" version = "3.13.4" description = "A platform independent file lock." -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -612,7 +589,6 @@ typing = ["typing-extensions (>=4.8)"] name = "flake8" version = "7.0.0" description = "the modular source code checker: pep8 pyflakes and co" -category = "dev" optional = false python-versions = ">=3.8.1" files = [ @@ -629,7 +605,6 @@ pyflakes = ">=3.2.0,<3.3.0" name = "flake8-docstrings" version = "1.7.0" description = "Extension for flake8 which uses pydocstyle to check docstrings" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -645,7 +620,6 @@ pydocstyle = ">=2.1" name = "frozenlist" version = "1.4.1" description = "A list-like structure which implements collections.abc.MutableSequence" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -732,7 +706,6 @@ files = [ name = "fsspec" version = "2024.3.1" description = "File-system specification" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -771,7 +744,6 @@ tqdm = ["tqdm"] name = "idna" version = "3.7" description = "Internationalized Domain Names in Applications (IDNA)" -category = "main" optional = true python-versions = ">=3.5" files = [ @@ -783,7 +755,6 @@ files = [ name = "implicit" version = "0.7.2" description = "Collaborative Filtering for Implicit Feedback Datasets" -category = "main" optional = false python-versions = "*" files = [ @@ -832,7 +803,6 @@ tqdm = ">=4.27" name = "importlib-metadata" version = "7.1.0" description = "Read metadata from Python packages" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -852,7 +822,6 @@ testing = ["flufl.flake8", "importlib-resources (>=1.3)", "jaraco.test (>=5.4)", name = "iniconfig" version = "2.0.0" description = "brain-dead simple config-ini parsing" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -864,7 +833,6 @@ files = [ name = "intel-openmp" version = "2021.4.0" description = "Intel OpenMP* Runtime Library" -category = "main" optional = true python-versions = "*" files = [ @@ -879,7 +847,6 @@ files = [ name = "ipython" version = "8.12.3" description = "IPython: Productive Interactive Computing" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -919,7 +886,6 @@ test-extra = ["curio", "matplotlib (!=3.2.0)", "nbformat", "numpy (>=1.21)", "pa name = "ipywidgets" version = "8.1.2" description = "Jupyter interactive widgets" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -941,7 +907,6 @@ test = ["ipykernel", "jsonschema", "pytest (>=3.6.0)", "pytest-cov", "pytz"] name = "isort" version = "5.13.2" description = "A Python utility / library to sort Python imports." -category = "dev" optional = false python-versions = ">=3.8.0" files = [ @@ -956,7 +921,6 @@ colors = ["colorama (>=0.4.6)"] name = "jedi" version = "0.19.1" description = "An autocompletion tool for Python that can be used for text editors." -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -976,7 +940,6 @@ testing = ["Django", "attrs", "colorama", "docopt", "pytest (<7.0.0)"] name = "jinja2" version = "3.1.3" description = "A very fast and expressive template engine." -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -994,7 +957,6 @@ i18n = ["Babel (>=2.7)"] name = "joblib" version = "1.4.0" description = "Lightweight pipelining with Python functions" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1006,7 +968,6 @@ files = [ name = "jupyterlab-widgets" version = "3.0.10" description = "Jupyter interactive widgets for JupyterLab" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -1018,12 +979,10 @@ files = [ name = "lightfm" version = "1.17" description = "LightFM recommendation model" -category = "main" optional = true python-versions = "*" -files = [ - {file = "lightfm-1.17.tar.gz", hash = "sha256:2b77ada182ccd768a8d7643ab3cfcd8b6e855db09087f7cc7329bd63316697a8"}, -] +files = [] +develop = false [package.dependencies] numpy = "*" @@ -1031,11 +990,16 @@ requests = "*" scikit-learn = "*" scipy = ">=0.17.0" +[package.source] +type = "git" +url = "https://github.com/lyst/lightfm" +reference = "0c9c31e" +resolved_reference = "0c9c31e027b976beab2385e268b58010fff46096" + [[package]] name = "lightning-utilities" version = "0.11.2" description = "Lightning toolbox for across the our ecosystem." -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1057,7 +1021,6 @@ typing = ["mypy (>=1.0.0)", "types-setuptools"] name = "mando" version = "0.7.1" description = "Create Python CLI apps with little to no effort at all!" -category = "dev" optional = false python-versions = "*" files = [ @@ -1075,7 +1038,6 @@ restructuredtext = ["rst2ansi"] name = "markdown-it-py" version = "3.0.0" description = "Python port of markdown-it. Markdown parsing, done right!" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1100,7 +1062,6 @@ testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"] name = "markupsafe" version = "2.1.5" description = "Safely add untrusted strings to HTML/XML markup." -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -1170,7 +1131,6 @@ files = [ name = "matplotlib-inline" version = "0.1.7" description = "Inline Matplotlib backend for Jupyter" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1185,7 +1145,6 @@ traitlets = "*" name = "mccabe" version = "0.7.0" description = "McCabe checker, plugin for flake8" -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1197,7 +1156,6 @@ files = [ name = "mdurl" version = "0.1.2" description = "Markdown URL utilities" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1209,7 +1167,6 @@ files = [ name = "mkl" version = "2021.4.0" description = "IntelĀ® oneAPI Math Kernel Library" -category = "main" optional = true python-versions = "*" files = [ @@ -1221,14 +1178,13 @@ files = [ ] [package.dependencies] -intel-openmp = ">=2021.0.0,<2022.0.0" -tbb = ">=2021.0.0,<2022.0.0" +intel-openmp = "==2021.*" +tbb = "==2021.*" [[package]] name = "mpmath" version = "1.3.0" description = "Python library for arbitrary-precision floating-point arithmetic" -category = "main" optional = true python-versions = "*" files = [ @@ -1246,7 +1202,6 @@ tests = ["pytest (>=4.6)"] name = "multidict" version = "6.0.5" description = "multidict implementation" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -1346,7 +1301,6 @@ files = [ name = "mypy" version = "1.10.0" description = "Optional static typing for Python" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1394,7 +1348,6 @@ reports = ["lxml"] name = "mypy-extensions" version = "1.0.0" description = "Type system extensions for programs checked with the mypy type checker." -category = "dev" optional = false python-versions = ">=3.5" files = [ @@ -1406,7 +1359,6 @@ files = [ name = "networkx" version = "3.1" description = "Python package for creating and manipulating graphs and networks" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1425,7 +1377,6 @@ test = ["codecov (>=2.1)", "pytest (>=7.2)", "pytest-cov (>=4.0)"] name = "nmslib" version = "2.1.1" description = "Non-Metric Space Library (NMSLIB)" -category = "main" optional = true python-versions = "*" files = [ @@ -1475,7 +1426,6 @@ pybind11 = "<2.6.2" name = "numpy" version = "1.24.4" description = "Fundamental package for array computing in Python" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -1513,7 +1463,6 @@ files = [ name = "numpy" version = "1.26.4" description = "Fundamental package for array computing in Python" -category = "main" optional = false python-versions = ">=3.9" files = [ @@ -1559,7 +1508,6 @@ files = [ name = "nvidia-cublas-cu12" version = "12.1.3.1" description = "CUBLAS native runtime libraries" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1571,7 +1519,6 @@ files = [ name = "nvidia-cuda-cupti-cu12" version = "12.1.105" description = "CUDA profiling tools runtime libs." -category = "main" optional = true python-versions = ">=3" files = [ @@ -1583,7 +1530,6 @@ files = [ name = "nvidia-cuda-nvrtc-cu12" version = "12.1.105" description = "NVRTC native runtime libraries" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1595,7 +1541,6 @@ files = [ name = "nvidia-cuda-runtime-cu12" version = "12.1.105" description = "CUDA Runtime native Libraries" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1607,7 +1552,6 @@ files = [ name = "nvidia-cudnn-cu12" version = "8.9.2.26" description = "cuDNN runtime libraries" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1621,7 +1565,6 @@ nvidia-cublas-cu12 = "*" name = "nvidia-cufft-cu12" version = "11.0.2.54" description = "CUFFT native runtime libraries" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1633,7 +1576,6 @@ files = [ name = "nvidia-curand-cu12" version = "10.3.2.106" description = "CURAND native runtime libraries" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1645,7 +1587,6 @@ files = [ name = "nvidia-cusolver-cu12" version = "11.4.5.107" description = "CUDA solver native runtime libraries" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1662,7 +1603,6 @@ nvidia-nvjitlink-cu12 = "*" name = "nvidia-cusparse-cu12" version = "12.1.0.106" description = "CUSPARSE native runtime libraries" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1677,7 +1617,6 @@ nvidia-nvjitlink-cu12 = "*" name = "nvidia-nccl-cu12" version = "2.20.5" description = "NVIDIA Collective Communication Library (NCCL) Runtime" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1689,7 +1628,6 @@ files = [ name = "nvidia-nvjitlink-cu12" version = "12.4.127" description = "Nvidia JIT LTO Library" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1701,7 +1639,6 @@ files = [ name = "nvidia-nvtx-cu12" version = "12.1.105" description = "NVIDIA Tools Extension" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1713,7 +1650,6 @@ files = [ name = "packaging" version = "24.0" description = "Core utilities for Python packages" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1725,7 +1661,6 @@ files = [ name = "pandas" version = "2.0.3" description = "Powerful data structures for data analysis, time series, and statistics" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -1793,7 +1728,6 @@ xml = ["lxml (>=4.6.3)"] name = "parso" version = "0.8.4" description = "A Python Parser" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -1809,7 +1743,6 @@ testing = ["docopt", "pytest"] name = "pathspec" version = "0.12.1" description = "Utility library for gitignore style pattern matching of file paths." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1821,7 +1754,6 @@ files = [ name = "pbr" version = "6.0.0" description = "Python Build Reasonableness" -category = "dev" optional = false python-versions = ">=2.6" files = [ @@ -1833,7 +1765,6 @@ files = [ name = "pep8-naming" version = "0.13.3" description = "Check PEP-8 naming conventions, plugin for flake8" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1848,7 +1779,6 @@ flake8 = ">=5.0.0" name = "pexpect" version = "4.9.0" description = "Pexpect allows easy control of interactive console applications." -category = "main" optional = true python-versions = "*" files = [ @@ -1863,7 +1793,6 @@ ptyprocess = ">=0.5" name = "pickleshare" version = "0.7.5" description = "Tiny 'shelve'-like database with concurrency support" -category = "main" optional = true python-versions = "*" files = [ @@ -1875,7 +1804,6 @@ files = [ name = "platformdirs" version = "4.2.1" description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1892,7 +1820,6 @@ type = ["mypy (>=1.8)"] name = "pluggy" version = "1.5.0" description = "plugin and hook calling mechanisms for python" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -1908,7 +1835,6 @@ testing = ["pytest", "pytest-benchmark"] name = "prompt-toolkit" version = "3.0.43" description = "Library for building powerful interactive command lines in Python" -category = "main" optional = true python-versions = ">=3.7.0" files = [ @@ -1923,7 +1849,6 @@ wcwidth = "*" name = "psutil" version = "5.9.8" description = "Cross-platform lib for process and system monitoring in Python." -category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" files = [ @@ -1952,7 +1877,6 @@ test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"] name = "ptyprocess" version = "0.7.0" description = "Run a subprocess in a pseudo terminal" -category = "main" optional = true python-versions = "*" files = [ @@ -1964,7 +1888,6 @@ files = [ name = "pure-eval" version = "0.2.2" description = "Safely evaluate AST nodes without side effects" -category = "main" optional = true python-versions = "*" files = [ @@ -1979,7 +1902,6 @@ tests = ["pytest"] name = "pybind11" version = "2.6.1" description = "Seamless operability between C++11 and Python" -category = "main" optional = true python-versions = "!=3.0,!=3.1,!=3.2,!=3.3,!=3.4,>=2.7" files = [ @@ -1994,7 +1916,6 @@ global = ["pybind11-global (==2.6.1)"] name = "pycodestyle" version = "2.11.1" description = "Python style guide checker" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -2006,7 +1927,6 @@ files = [ name = "pydocstyle" version = "6.3.0" description = "Python docstring style checker" -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -2024,7 +1944,6 @@ toml = ["tomli (>=1.2.3)"] name = "pyflakes" version = "3.2.0" description = "passive checker of Python programs" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -2036,7 +1955,6 @@ files = [ name = "pygments" version = "2.17.2" description = "Pygments is a syntax highlighting package written in Python." -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -2052,7 +1970,6 @@ windows-terminal = ["colorama (>=0.4.6)"] name = "pylint" version = "3.1.0" description = "python code static checker" -category = "dev" optional = false python-versions = ">=3.8.0" files = [ @@ -2083,7 +2000,6 @@ testutils = ["gitpython (>3)"] name = "pytest" version = "8.1.1" description = "pytest: simple powerful testing with Python" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -2106,7 +2022,6 @@ testing = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygm name = "pytest-cov" version = "5.0.0" description = "Pytest plugin for measuring coverage." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -2125,7 +2040,6 @@ testing = ["fields", "hunter", "process-tests", "pytest-xdist", "virtualenv"] name = "pytest-mock" version = "3.14.0" description = "Thin-wrapper around the mock package for easier use with pytest" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -2143,7 +2057,6 @@ dev = ["pre-commit", "pytest-asyncio", "tox"] name = "pytest-subtests" version = "0.12.1" description = "unittest subTest() support and subtests fixture" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -2159,7 +2072,6 @@ pytest = ">=7.0" name = "python-dateutil" version = "2.9.0.post0" description = "Extensions to the standard Python datetime module" -category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" files = [ @@ -2174,7 +2086,6 @@ six = ">=1.5" name = "pytorch-lightning" version = "2.2.3" description = "PyTorch Lightning is the lightweight PyTorch wrapper for ML researchers. Scale your models. Write less boilerplate." -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2206,7 +2117,6 @@ test = ["cloudpickle (>=1.3)", "coverage (==7.3.1)", "fastapi", "onnx (>=0.14.0) name = "pytz" version = "2024.1" description = "World timezone definitions, modern and historical" -category = "main" optional = false python-versions = "*" files = [ @@ -2218,7 +2128,6 @@ files = [ name = "pyyaml" version = "6.0.1" description = "YAML parser and emitter for Python" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -2240,7 +2149,6 @@ files = [ {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, - {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, @@ -2279,7 +2187,6 @@ files = [ name = "radon" version = "6.0.1" description = "Code Metrics in Python" -category = "dev" optional = false python-versions = "*" files = [ @@ -2298,7 +2205,6 @@ toml = ["tomli (>=2.0.1)"] name = "requests" version = "2.31.0" description = "Python HTTP for Humans." -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2320,7 +2226,6 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] name = "rich" version = "13.7.1" description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" -category = "dev" optional = false python-versions = ">=3.7.0" files = [ @@ -2340,7 +2245,6 @@ jupyter = ["ipywidgets (>=7.5.1,<9)"] name = "scikit-learn" version = "1.3.2" description = "A set of python modules for machine learning and data mining" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2388,7 +2292,6 @@ tests = ["black (>=23.3.0)", "matplotlib (>=3.1.3)", "mypy (>=1.3)", "numpydoc ( name = "scipy" version = "1.10.1" description = "Fundamental algorithms for scientific computing in Python" -category = "main" optional = false python-versions = "<3.12,>=3.8" files = [ @@ -2427,7 +2330,6 @@ test = ["asv", "gmpy2", "mpmath", "pooch", "pytest", "pytest-cov", "pytest-timeo name = "scipy" version = "1.12.0" description = "Fundamental algorithms for scientific computing in Python" -category = "main" optional = false python-versions = ">=3.9" files = [ @@ -2470,7 +2372,6 @@ test = ["asv", "gmpy2", "hypothesis", "mpmath", "pooch", "pytest", "pytest-cov", name = "setuptools" version = "69.5.1" description = "Easily download, build, install, upgrade, and uninstall Python packages" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2487,7 +2388,6 @@ testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jar name = "six" version = "1.16.0" description = "Python 2 and 3 compatibility utilities" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" files = [ @@ -2499,7 +2399,6 @@ files = [ name = "snowballstemmer" version = "2.2.0" description = "This package provides 29 stemmers for 28 languages generated from Snowball algorithms." -category = "dev" optional = false python-versions = "*" files = [ @@ -2511,7 +2410,6 @@ files = [ name = "stack-data" version = "0.6.3" description = "Extract data from python stack frames and tracebacks for informative displays" -category = "main" optional = true python-versions = "*" files = [ @@ -2531,7 +2429,6 @@ tests = ["cython", "littleutils", "pygments", "pytest", "typeguard"] name = "stevedore" version = "5.2.0" description = "Manage dynamic plugins for Python applications" -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -2546,7 +2443,6 @@ pbr = ">=2.0.0,<2.1.0 || >2.1.0" name = "sympy" version = "1.12" description = "Computer algebra system (CAS) in Python" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2561,7 +2457,6 @@ mpmath = ">=0.19" name = "tbb" version = "2021.12.0" description = "IntelĀ® oneAPI Threading Building Blocks (oneTBB)" -category = "main" optional = true python-versions = "*" files = [ @@ -2575,7 +2470,6 @@ files = [ name = "threadpoolctl" version = "3.4.0" description = "threadpoolctl" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -2587,7 +2481,6 @@ files = [ name = "tomli" version = "2.0.1" description = "A lil' TOML parser" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -2599,7 +2492,6 @@ files = [ name = "tomlkit" version = "0.12.4" description = "Style preserving TOML library" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -2611,7 +2503,6 @@ files = [ name = "torch" version = "2.3.0" description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration" -category = "main" optional = true python-versions = ">=3.8.0" files = [ @@ -2666,7 +2557,6 @@ optree = ["optree (>=0.9.1)"] name = "torchmetrics" version = "1.3.2" description = "PyTorch native Metrics" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2696,7 +2586,6 @@ visual = ["SciencePlots (>=2.0.0)", "matplotlib (>=3.3.0)"] name = "tqdm" version = "4.66.2" description = "Fast, Extensible Progress Meter" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -2717,7 +2606,6 @@ telegram = ["requests"] name = "traitlets" version = "5.14.3" description = "Traitlets Python configuration system" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2733,7 +2621,6 @@ test = ["argcomplete (>=3.0.3)", "mypy (>=1.7.0)", "pre-commit", "pytest (>=7.0, name = "triton" version = "2.3.0" description = "A language and compiler for custom Deep Learning operations" -category = "main" optional = true python-versions = "*" files = [ @@ -2757,7 +2644,6 @@ tutorials = ["matplotlib", "pandas", "tabulate", "torch"] name = "typeguard" version = "4.2.1" description = "Run-time type checker for Python" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -2777,7 +2663,6 @@ test = ["coverage[toml] (>=7)", "mypy (>=1.2.0)", "pytest (>=7)"] name = "typing-extensions" version = "4.11.0" description = "Backported and Experimental Type Hints for Python 3.8+" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -2789,7 +2674,6 @@ files = [ name = "tzdata" version = "2024.1" description = "Provider of IANA time zone data" -category = "main" optional = false python-versions = ">=2" files = [ @@ -2801,7 +2685,6 @@ files = [ name = "urllib3" version = "2.2.1" description = "HTTP library with thread-safe connection pooling, file post, and more." -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2819,7 +2702,6 @@ zstd = ["zstandard (>=0.18.0)"] name = "wcwidth" version = "0.2.13" description = "Measures the displayed width of unicode strings in a terminal" -category = "main" optional = true python-versions = "*" files = [ @@ -2831,7 +2713,6 @@ files = [ name = "widgetsnbextension" version = "4.0.10" description = "Jupyter interactive widgets for Jupyter Notebook" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2843,7 +2724,6 @@ files = [ name = "yarl" version = "1.9.4" description = "Yet another URL library" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2947,7 +2827,6 @@ multidict = ">=4.0" name = "zipp" version = "3.18.1" description = "Backport of pathlib-compatible object wrapper for zip files" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -2969,4 +2848,4 @@ visuals = ["ipywidgets"] [metadata] lock-version = "2.0" python-versions = ">=3.8.1, <3.13" -content-hash = "583ec06080e8dec8c1fce878fbbce86e6ba578f343f5af55f8e76cadf3f35379" +content-hash = "45e41db276a45ab79b656cedfdce2bb978b500e7b94664ea45b629e45d00bb7d" From 03ec9a5c729734321e8ca7511f1f5ea5a7dcc54f Mon Sep 17 00:00:00 2001 From: Emiliy Feldman Date: Fri, 17 May 2024 19:31:14 +0000 Subject: [PATCH 04/11] removed poetry old version restrictions --- .github/workflows/publish.yml | 2 +- .github/workflows/test.yml | 2 +- poetry.toml | 4 ---- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bb260925..2c6343f3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,7 +29,7 @@ jobs: python-version: "3.10" - name: Install poetry - run: pip install urllib3==1.26.15 poetry==1.4.0 + run: pip install urllib3==1.26.15 poetry==1.8.3 - name: Install Dependencies run: poetry install --no-dev diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb5351d0..6e5bdbde 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: python-version: "3.10" - name: Install poetry - run: pip install urllib3==1.26.15 poetry==1.4.0 + run: pip install urllib3==1.26.15 poetry==1.8.3 - name: Load cached venv id: cached-poetry-dependencies diff --git a/poetry.toml b/poetry.toml index ab446d99..53b35d37 100644 --- a/poetry.toml +++ b/poetry.toml @@ -1,7 +1,3 @@ - [virtualenvs] create = true in-project = true - -[experimental] -new-installer = false From 92ee121f2485f8fc6fc583aec9dff3c0719b3049 Mon Sep 17 00:00:00 2001 From: Emiliy Feldman Date: Fri, 17 May 2024 19:43:07 +0000 Subject: [PATCH 05/11] updated changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b879567..59e19655 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Extended Theory&Practice RecSys baselines tutorial ([#139](https://github.com/MobileTeleSystems/RecTools/pull/139)) +### Changed +- Used the latest version of `lightfm` that allows to install it using `poetry 1.5.0+` + ## [0.6.0] - 13.05.2024 From 5a680b99696695d155ee8b23c99a8f61c6ede359 Mon Sep 17 00:00:00 2001 From: Emiliy Feldman Date: Fri, 17 May 2024 19:44:51 +0000 Subject: [PATCH 06/11] returned <3.12 restriction for lightfm --- poetry.lock | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index 5604eefa..0afba01b 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2848,4 +2848,4 @@ visuals = ["ipywidgets"] [metadata] lock-version = "2.0" python-versions = ">=3.8.1, <3.13" -content-hash = "45e41db276a45ab79b656cedfdce2bb978b500e7b94664ea45b629e45d00bb7d" +content-hash = "db6f61b568860e8e5f1ded501dc43cf158d8a9b661c6f83f4e7c81cc1cdf4232" diff --git a/pyproject.toml b/pyproject.toml index 2fd9b006..dddfb4d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,7 +69,7 @@ attrs = ">=19.1.0,<24.0.0" typeguard = "^4.1.0" -lightfm = {git = "https://github.com/lyst/lightfm", rev = "0c9c31e", optional = true} +lightfm = {git = "https://github.com/lyst/lightfm", rev = "0c9c31e", python = "<3.12", optional = true} nmslib = {version = "^2.0.4", python = "<3.11", optional = true} From 66016402158c361b35d2152d354ad8e5a647a768 Mon Sep 17 00:00:00 2001 From: Emiliy Feldman Date: Fri, 17 May 2024 19:45:08 +0000 Subject: [PATCH 07/11] removed poetry version warning from readme --- README.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/README.md b/README.md index 8438bcd4..d1b50c11 100644 --- a/README.md +++ b/README.md @@ -87,11 +87,6 @@ Install all extensions: pip install rectools[all] ``` -**Important:** If you're using `poetry` and you want to add `rectools` to your project, then you should either install `rectools` without `lightfm` extras or use `poetry==1.4.0` and add to your `poetry.toml` file the next lines: -``` -[experimental] -new-installer = false -``` ## Recommender Models The table below lists recommender models that are available in RecTools. From 92e67a7e634dbfc2059d1ba3a7bb62ef36548e38 Mon Sep 17 00:00:00 2001 From: Emiliy Feldman Date: Fri, 17 May 2024 19:46:27 +0000 Subject: [PATCH 08/11] added PR number to changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59e19655..40996d37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Extended Theory&Practice RecSys baselines tutorial ([#139](https://github.com/MobileTeleSystems/RecTools/pull/139)) ### Changed -- Used the latest version of `lightfm` that allows to install it using `poetry 1.5.0+` +- Used the latest version of `lightfm` that allows to install it using `poetry 1.5.0+` ([#141](https://github.com/MobileTeleSystems/RecTools/pull/141)) ## [0.6.0] - 13.05.2024 From dc3402944ab46566c094bd31b9da89a88501c549 Mon Sep 17 00:00:00 2001 From: Emiliy Feldman Date: Fri, 17 May 2024 20:18:04 +0000 Subject: [PATCH 09/11] added comments to lightfm version --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index dddfb4d5..c8d200e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,6 +69,9 @@ attrs = ">=19.1.0,<24.0.0" typeguard = "^4.1.0" +# The latest released version of lightfm is 1.17 and it's not compatible with PEP-517 installers (like latest poetry versions). +# So we use the latest commit from the master branch. +# Will update to the latest version when it's released. lightfm = {git = "https://github.com/lyst/lightfm", rev = "0c9c31e", python = "<3.12", optional = true} nmslib = {version = "^2.0.4", python = "<3.11", optional = true} From 77a921c11afc47717041563ab0953272c3166a32 Mon Sep 17 00:00:00 2001 From: Emiliy Feldman Date: Sat, 18 May 2024 08:30:53 +0200 Subject: [PATCH 10/11] added torch version restriction --- poetry.lock | 103 ++++++++++++++++++++++++++++++++++++++++++++++--- pyproject.toml | 6 ++- 2 files changed, 102 insertions(+), 7 deletions(-) diff --git a/poetry.lock b/poetry.lock index 0afba01b..be9b1300 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. [[package]] name = "aiohttp" @@ -1613,6 +1613,16 @@ files = [ [package.dependencies] nvidia-nvjitlink-cu12 = "*" +[[package]] +name = "nvidia-nccl-cu12" +version = "2.19.3" +description = "NVIDIA Collective Communication Library (NCCL) Runtime" +optional = true +python-versions = ">=3" +files = [ + {file = "nvidia_nccl_cu12-2.19.3-py3-none-manylinux1_x86_64.whl", hash = "sha256:a9734707a2c96443331c1e48c717024aa6678a0e2a4cb66b2c364d18cee6b48d"}, +] + [[package]] name = "nvidia-nccl-cu12" version = "2.20.5" @@ -1694,7 +1704,7 @@ files = [ [package.dependencies] numpy = [ {version = ">=1.20.3", markers = "python_version < \"3.10\""}, - {version = ">=1.21.0", markers = "python_version >= \"3.10\""}, + {version = ">=1.21.0", markers = "python_version >= \"3.10\" and python_version < \"3.11\""}, {version = ">=1.23.2", markers = "python_version >= \"3.11\""}, ] python-dateutil = ">=2.8.2" @@ -1982,7 +1992,7 @@ astroid = ">=3.1.0,<=3.2.0-dev0" colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} dill = [ {version = ">=0.2", markers = "python_version < \"3.11\""}, - {version = ">=0.3.6", markers = "python_version >= \"3.11\""}, + {version = ">=0.3.6", markers = "python_version >= \"3.11\" and python_version < \"3.12\""}, {version = ">=0.3.7", markers = "python_version >= \"3.12\""}, ] isort = ">=4.2.5,<5.13.0 || >5.13.0,<6" @@ -2499,6 +2509,64 @@ files = [ {file = "tomlkit-0.12.4.tar.gz", hash = "sha256:7ca1cfc12232806517a8515047ba66a19369e71edf2439d0f5824f91032b6cc3"}, ] +[[package]] +name = "torch" +version = "2.2.2" +description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration" +optional = true +python-versions = ">=3.8.0" +files = [ + {file = "torch-2.2.2-cp310-cp310-manylinux1_x86_64.whl", hash = "sha256:bc889d311a855dd2dfd164daf8cc903a6b7273a747189cebafdd89106e4ad585"}, + {file = "torch-2.2.2-cp310-cp310-manylinux2014_aarch64.whl", hash = "sha256:15dffa4cc3261fa73d02f0ed25f5fa49ecc9e12bf1ae0a4c1e7a88bbfaad9030"}, + {file = "torch-2.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:11e8fe261233aeabd67696d6b993eeb0896faa175c6b41b9a6c9f0334bdad1c5"}, + {file = "torch-2.2.2-cp310-none-macosx_10_9_x86_64.whl", hash = "sha256:b2e2200b245bd9f263a0d41b6a2dab69c4aca635a01b30cca78064b0ef5b109e"}, + {file = "torch-2.2.2-cp310-none-macosx_11_0_arm64.whl", hash = "sha256:877b3e6593b5e00b35bbe111b7057464e76a7dd186a287280d941b564b0563c2"}, + {file = "torch-2.2.2-cp311-cp311-manylinux1_x86_64.whl", hash = "sha256:ad4c03b786e074f46606f4151c0a1e3740268bcf29fbd2fdf6666d66341c1dcb"}, + {file = "torch-2.2.2-cp311-cp311-manylinux2014_aarch64.whl", hash = "sha256:32827fa1fbe5da8851686256b4cd94cc7b11be962862c2293811c94eea9457bf"}, + {file = "torch-2.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:f9ef0a648310435511e76905f9b89612e45ef2c8b023bee294f5e6f7e73a3e7c"}, + {file = "torch-2.2.2-cp311-none-macosx_10_9_x86_64.whl", hash = "sha256:95b9b44f3bcebd8b6cd8d37ec802048c872d9c567ba52c894bba90863a439059"}, + {file = "torch-2.2.2-cp311-none-macosx_11_0_arm64.whl", hash = "sha256:49aa4126ede714c5aeef7ae92969b4b0bbe67f19665106463c39f22e0a1860d1"}, + {file = "torch-2.2.2-cp312-cp312-manylinux1_x86_64.whl", hash = "sha256:cf12cdb66c9c940227ad647bc9cf5dba7e8640772ae10dfe7569a0c1e2a28aca"}, + {file = "torch-2.2.2-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:89ddac2a8c1fb6569b90890955de0c34e1724f87431cacff4c1979b5f769203c"}, + {file = "torch-2.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:451331406b760f4b1ab298ddd536486ab3cfb1312614cfe0532133535be60bea"}, + {file = "torch-2.2.2-cp312-none-macosx_10_9_x86_64.whl", hash = "sha256:eb4d6e9d3663e26cd27dc3ad266b34445a16b54908e74725adb241aa56987533"}, + {file = "torch-2.2.2-cp312-none-macosx_11_0_arm64.whl", hash = "sha256:bf9558da7d2bf7463390b3b2a61a6a3dbb0b45b161ee1dd5ec640bf579d479fc"}, + {file = "torch-2.2.2-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:cd2bf7697c9e95fb5d97cc1d525486d8cf11a084c6af1345c2c2c22a6b0029d0"}, + {file = "torch-2.2.2-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:b421448d194496e1114d87a8b8d6506bce949544e513742b097e2ab8f7efef32"}, + {file = "torch-2.2.2-cp38-cp38-win_amd64.whl", hash = "sha256:3dbcd563a9b792161640c0cffe17e3270d85e8f4243b1f1ed19cca43d28d235b"}, + {file = "torch-2.2.2-cp38-none-macosx_10_9_x86_64.whl", hash = "sha256:31f4310210e7dda49f1fb52b0ec9e59382cfcb938693f6d5378f25b43d7c1d29"}, + {file = "torch-2.2.2-cp38-none-macosx_11_0_arm64.whl", hash = "sha256:c795feb7e8ce2e0ef63f75f8e1ab52e7fd5e1a4d7d0c31367ade1e3de35c9e95"}, + {file = "torch-2.2.2-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:a6e5770d68158d07456bfcb5318b173886f579fdfbf747543901ce718ea94782"}, + {file = "torch-2.2.2-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:67dcd726edff108e2cd6c51ff0e416fd260c869904de95750e80051358680d24"}, + {file = "torch-2.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:539d5ef6c4ce15bd3bd47a7b4a6e7c10d49d4d21c0baaa87c7d2ef8698632dfb"}, + {file = "torch-2.2.2-cp39-none-macosx_10_9_x86_64.whl", hash = "sha256:dff696de90d6f6d1e8200e9892861fd4677306d0ef604cb18f2134186f719f82"}, + {file = "torch-2.2.2-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:3a4dd910663fd7a124c056c878a52c2b0be4a5a424188058fe97109d4436ee42"}, +] + +[package.dependencies] +filelock = "*" +fsspec = "*" +jinja2 = "*" +networkx = "*" +nvidia-cublas-cu12 = {version = "12.1.3.1", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cuda-cupti-cu12 = {version = "12.1.105", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cuda-nvrtc-cu12 = {version = "12.1.105", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cuda-runtime-cu12 = {version = "12.1.105", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cudnn-cu12 = {version = "8.9.2.26", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cufft-cu12 = {version = "11.0.2.54", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-curand-cu12 = {version = "10.3.2.106", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cusolver-cu12 = {version = "11.4.5.107", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cusparse-cu12 = {version = "12.1.0.106", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-nccl-cu12 = {version = "2.19.3", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-nvtx-cu12 = {version = "12.1.105", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +sympy = "*" +triton = {version = "2.2.0", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and python_version < \"3.12\""} +typing-extensions = ">=4.8.0" + +[package.extras] +opt-einsum = ["opt-einsum (>=3.3)"] +optree = ["optree (>=0.9.1)"] + [[package]] name = "torch" version = "2.3.0" @@ -2617,6 +2685,29 @@ files = [ docs = ["myst-parser", "pydata-sphinx-theme", "sphinx"] test = ["argcomplete (>=3.0.3)", "mypy (>=1.7.0)", "pre-commit", "pytest (>=7.0,<8.2)", "pytest-mock", "pytest-mypy-testing"] +[[package]] +name = "triton" +version = "2.2.0" +description = "A language and compiler for custom Deep Learning operations" +optional = true +python-versions = "*" +files = [ + {file = "triton-2.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a2294514340cfe4e8f4f9e5c66c702744c4a117d25e618bd08469d0bfed1e2e5"}, + {file = "triton-2.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:da58a152bddb62cafa9a857dd2bc1f886dbf9f9c90a2b5da82157cd2b34392b0"}, + {file = "triton-2.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0af58716e721460a61886668b205963dc4d1e4ac20508cc3f623aef0d70283d5"}, + {file = "triton-2.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e8fe46d3ab94a8103e291bd44c741cc294b91d1d81c1a2888254cbf7ff846dab"}, + {file = "triton-2.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b8ce26093e539d727e7cf6f6f0d932b1ab0574dc02567e684377630d86723ace"}, + {file = "triton-2.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:227cc6f357c5efcb357f3867ac2a8e7ecea2298cd4606a8ba1e931d1d5a947df"}, +] + +[package.dependencies] +filelock = "*" + +[package.extras] +build = ["cmake (>=3.20)", "lit"] +tests = ["autopep8", "flake8", "isort", "numpy", "pytest", "scipy (>=1.7.1)", "torch"] +tutorials = ["matplotlib", "pandas", "tabulate", "torch"] + [[package]] name = "triton" version = "2.3.0" @@ -2839,13 +2930,13 @@ docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.link testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy", "pytest-ruff (>=0.2.1)"] [extras] -all = ["ipywidgets", "lightfm", "nmslib", "pytorch-lightning", "torch"] +all = ["ipywidgets", "lightfm", "nmslib", "pytorch-lightning", "torch", "torch"] lightfm = ["lightfm"] nmslib = ["nmslib"] -torch = ["pytorch-lightning", "torch"] +torch = ["pytorch-lightning", "torch", "torch"] visuals = ["ipywidgets"] [metadata] lock-version = "2.0" python-versions = ">=3.8.1, <3.13" -content-hash = "db6f61b568860e8e5f1ded501dc43cf158d8a9b661c6f83f4e7c81cc1cdf4232" +content-hash = "85d761fd2c5c0a3cd8b21c2d8dc6daff0a9ca8742188315d126a622e096fed13" diff --git a/pyproject.toml b/pyproject.toml index c8d200e3..2a143fe0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,7 +76,11 @@ lightfm = {git = "https://github.com/lyst/lightfm", rev = "0c9c31e", python = "< nmslib = {version = "^2.0.4", python = "<3.11", optional = true} -torch = {version = ">=1.6.0, <3.0.0", optional = true} +# The latest torch version available for MacOSX + x86_64 is 2.2.2 +torch = [ + {version = ">=1.6.0, <2.3.0", markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'", optional = true}, + {version = ">=1.6.0, <3.0.0", optional = true} +] pytorch-lightning = {version = ">=1.6.0, <3.0.0", optional = true} ipywidgets = {version = ">=7.7,<8.2", optional = true} From 0eae9388adc615dcb65fe33dc4abee7ce7a89b67 Mon Sep 17 00:00:00 2001 From: Emiliy Feldman Date: Sat, 18 May 2024 08:31:04 +0200 Subject: [PATCH 11/11] updated changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40996d37..44b2e49b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,8 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Extended Theory&Practice RecSys baselines tutorial ([#139](https://github.com/MobileTeleSystems/RecTools/pull/139)) -### Changed +### Fixed - Used the latest version of `lightfm` that allows to install it using `poetry 1.5.0+` ([#141](https://github.com/MobileTeleSystems/RecTools/pull/141)) +- Added restriction to `pytorch` version for MacOSX + x86_64 that allows to install it on such platforms ([#142](https://github.com/MobileTeleSystems/RecTools/pull/142)) ## [0.6.0] - 13.05.2024