From d656c32abe873a6f871f2dc7325b0d0eceb60db5 Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 31 Dec 2020 01:56:28 +0100 Subject: [PATCH] Use poetry for dependency management --- .gitignore | 1 + default.nix | 5 +++++ pyproject.toml | 20 ++++++++++++++++++++ shell.nix | 8 ++------ 4 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 .gitignore create mode 100644 default.nix create mode 100644 pyproject.toml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4a5297e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +Notes.org diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..d13b774 --- /dev/null +++ b/default.nix @@ -0,0 +1,5 @@ +{ pkgs ? import { } }: + +with pkgs; + +poetry2nix.mkPoetryApplication { projectDir = ./.; } diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a21a4de --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,20 @@ +[tool.poetry] +name = "p3" +version = "0.1.0" +description = "" +authors = ["coolneng "] + +[tool.poetry.dependencies] +python = "^3.8" +scikit-learn = "^0.24.0" +pandas = "^1.2.0" +imbalanced-learn = "^0.7.0" + +[tool.poetry.dev-dependencies] + +[build-system] +requires = ["poetry-core>=1.0.0"] +build-backend = "poetry.core.masonry.api" + +[tool.poetry.scripts] +competition = "processing:main" diff --git a/shell.nix b/shell.nix index 81c823e..39bb4fd 100644 --- a/shell.nix +++ b/shell.nix @@ -1,9 +1,5 @@ -{ pkgs ? import {} }: +{ pkgs ? import { } }: with pkgs; -mkShell { - buildInputs = [ - - ]; -} +mkShell { buildInputs = [ python38 poetry ]; }