diff --git a/{{ cookiecutter.repo_name }}/README.md b/{{ cookiecutter.repo_name }}/README.md index 2c5e877..8d2b574 100644 --- a/{{ cookiecutter.repo_name }}/README.md +++ b/{{ cookiecutter.repo_name }}/README.md @@ -15,9 +15,9 @@ Project plan: ## Install requirements -This project uses [poetry](https://python-poetry.org/) for requirement and is set up for torch using cuda. +This project uses [uv](https://github.com/astral-sh/uv) for requirements. ~~~ -poetry install +uv sync ~~~ ## How to get data diff --git a/{{ cookiecutter.repo_name }}/pyproject.toml b/{{ cookiecutter.repo_name }}/pyproject.toml index 1feba80..3cdb2eb 100644 --- a/{{ cookiecutter.repo_name }}/pyproject.toml +++ b/{{ cookiecutter.repo_name }}/pyproject.toml @@ -1,51 +1,41 @@ -[tool.poetry] +[project] name = "{{ cookiecutter.project_name.lower().replace(' ', '_') }}" version = "0.1.0" description = "{{ cookiecutter.description }}" authors = ["{{ cookiecutter.author_name }}"] license = "MIT" readme = "README.md" +requires-python = ">=3.10" +dependencies = [ + python = ">=3.10" + numpy = "^1.26.1" + pandas = "^2.1.1" + matplotlib = "^3.8.0" + scikit-learn = "^1.3.1" + loguru = "^0.7.2" + tqdm = "^4.66.1" + # einops = "^0.7.0" + # simple-parsing = "^0.1.4" + # torch = {version = "^2.1.0+cu124", source = "pytorch"} + # lightning = "^2.1.0" + # pytorch-optimizer = "^2.12.0" + # torchinfo = "^1.8.0" + # accelerate = "^0.24.1" + # transformers = "4.34.0" + # accelerate = "^0.24.1" + # peft = "^0.5.0" + # loguru = "^0.7.2" + # einops = "^0.3.1" +] -[virtualenvs] -in-project=true - -[tool.poetry.dependencies] -python = ">=3.10" -numpy = "^1.26.1" -pandas = "^2.1.1" -matplotlib = "^3.8.0" -scikit-learn = "^1.3.1" -loguru = "^0.7.2" -tqdm = "^4.66.1" -# einops = "^0.7.0" -# simple-parsing = "^0.1.4" -# torch = {version = "^2.1.0+cu124", source = "pytorch"} -# lightning = "^2.1.0" -# pytorch-optimizer = "^2.12.0" -# torchinfo = "^1.8.0" -# accelerate = "^0.24.1" -# transformers = "4.34.0" -# accelerate = "^0.24.1" -# peft = "^0.5.0" -# loguru = "^0.7.2" -# einops = "^0.3.1" - -[[tool.poetry.source]] -# pytorch cuda needs to compe from another source https://python-poetry.org/docs/dependency-specification/#source-dependencies -name = "pytorch" -url = "https://download.pytorch.org/whl/cu124" -priority = "explicit" - -[tool.poetry.group.dev.dependencies] -ipykernel = "^6.25.2" -ipywidgets = "^8.1.3" -ruff = "^0.1.3" -pylama = "^8.4.1" +[dependency-groups] +dev = [ + "ipykernel>=6.29.5", + "ipywidgets>=8.1.5", + "pytest>=8.0.2", + "ruff>=0.8.3", +] [build-system] -requires = ["poetry-core"] -build-backend = "poetry.core.masonry.api" - -[virtualenvs] -create = true -in-project = true +requires = ["hatchling"] +build-backend = "hatchling.build"