Use poetry for dependency management

This commit is contained in:
coolneng 2020-12-31 01:56:28 +01:00
parent 4f642c502d
commit d656c32abe
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
4 changed files with 28 additions and 6 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
Notes.org

5
default.nix Normal file
View File

@ -0,0 +1,5 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
poetry2nix.mkPoetryApplication { projectDir = ./.; }

20
pyproject.toml Normal file
View File

@ -0,0 +1,20 @@
[tool.poetry]
name = "p3"
version = "0.1.0"
description = ""
authors = ["coolneng <akasroua@gmail.com>"]
[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"

View File

@ -1,9 +1,5 @@
{ pkgs ? import <nixpkgs> {} }:
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell {
buildInputs = [
];
}
mkShell { buildInputs = [ python38 poetry ]; }