Skip to content

Commit 0f27033

Browse files
committed
build(deps): packages
1 parent ae39b69 commit 0f27033

File tree

4 files changed

+31
-65
lines changed

4 files changed

+31
-65
lines changed

poetry.lock

Lines changed: 16 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pytorch_optimizer"
3-
version = "2.4.1"
3+
version = "2.4.2"
44
description = "optimizer & lr scheduler implementations in PyTorch with clean-code, strict types. Also, including useful optimization ideas."
55
license = "Apache-2.0"
66
authors = ["kozistr <[email protected]>"]
@@ -34,10 +34,10 @@ classifiers = [
3434
[tool.poetry.dependencies]
3535
python = "^3.7.2"
3636
numpy = [
37-
{ version = "=1.21.1", python = ">=3.7,<3.8"},
38-
{ version = "*", python = ">=3.8"},
37+
{ version = "=1.21.1", python = ">=3.7,<3.8" },
38+
{ version = "*", python = ">=3.8" },
3939
]
40-
torch = "^1.10"
40+
torch = { version = ">=1.10", source = "torch" }
4141

4242
[tool.poetry.dev-dependencies]
4343
isort = "^5.11.5"
@@ -46,6 +46,11 @@ ruff = "^0.0.244"
4646
pytest = "^7.2.1"
4747
pytest-cov = "^4.0.0"
4848

49+
[[tool.poetry.source]]
50+
name = "torch"
51+
url = "https://download.pytorch.org/whl/cpu"
52+
secondary = true
53+
4954
[tool.ruff]
5055
select = ["A", "B", "C4", "D", "E", "F", "G", "I", "N", "S", "T", "ISC", "ICN", "W", "INP", "PIE", "T20", "RET", "SIM", "TID", "ARG", "ERA", "RUF", "YTT", "PL"]
5156
ignore = ["D100", "D102", "D104", "D105", "D107", "D203", "D213", "PIE790", "PLR0912", "PLR0913", "PLR0915", "PLR2004"]

requirements-dev.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
--extra-index-url https://download.pytorch.org/whl/cpu
2+
13
attrs==22.2.0 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
24
black==23.1.0 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
35
click==8.1.3 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
@@ -17,10 +19,8 @@ pluggy==1.0.0 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
1719
pytest-cov==4.0.0 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
1820
pytest==7.2.1 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
1921
ruff==0.0.244 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
20-
setuptools==67.2.0 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0" and platform_system == "Linux"
2122
tomli==2.0.1 ; python_full_version >= "3.7.2" and python_full_version <= "3.11.0a6"
22-
torch==1.13.1 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
23+
torch==1.13.1+cpu ; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
2324
typed-ast==1.5.4 ; python_version < "3.8" and implementation_name == "cpython" and python_full_version >= "3.7.2"
2425
typing-extensions==4.4.0 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
25-
wheel==0.38.4 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0" and platform_system == "Linux"
2626
zipp==3.13.0 ; python_full_version >= "3.7.2" and python_version < "3.8"

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
--extra-index-url https://download.pytorch.org/whl/cpu
2+
13
numpy==1.21.1 ; python_full_version >= "3.7.2" and python_version < "3.8"
24
numpy==1.24.2 ; python_version >= "3.8" and python_full_version < "4.0.0"
3-
setuptools==67.2.0 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0" and platform_system == "Linux"
4-
torch==1.13.1 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
5+
torch==1.13.1+cpu ; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
56
typing-extensions==4.4.0 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0"
6-
wheel==0.38.4 ; python_full_version >= "3.7.2" and python_full_version < "4.0.0" and platform_system == "Linux"

0 commit comments

Comments
 (0)