Skip to content

Commit

Permalink
fix: reduce number of dependencies (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmnemoi authored Aug 30, 2023
1 parent 661ad40 commit 3125b88
Show file tree
Hide file tree
Showing 6 changed files with 1,168 additions and 136 deletions.
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@ The package will be published on PyPI at each push to the `main` branch through

# Install the package

## pyenv and poetry
```bash
pyenv install 3.11
pyenv local 3.11
poetry install
```

## Anaconda or Miniconda
```bash
conda create -n cmnemoi-learn python=3.11 -y
conda activate cmnemoi-learn
pip install cmnemoi-learn
```

Expand All @@ -27,16 +37,20 @@ git clone https://github.com/cmnemoi/cmnemoi-learn.git
cd cmnemoi-learn
```

Then install dependencies. If you run Miniconda or Anaconda:
Then install dependencies.

If you run Poetry and pyenv:
```bash
conda create -n cmnemoi-learn python=3.11 -y
conda activate cmnemoi-learn
pip install -r requirements.txt
pyenv install 3.11
pyenv local 3.11
poetry install --with=dev,test
```

If you run Poetry:
If you run Miniconda or Anaconda:
```bash
poetry install
conda create -n cmnemoi-learn-dev python=3.11 -y
conda activate cmnemoi-learn-dev
pip install -r requirements-dev.txt
```

# License
Expand Down
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 14 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,36 @@
[tool.poetry]
name = "cmnemoi-learn"
version = "0.2.1"
version = "0.2.2"
description = "Machine Learning from scratch by Charles-Meldhine Madi Mnemoi"
authors = ["Charles-Meldhine Madi Mnemoi <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/cmnemoi/cmnemoi-learn.git"
packages = [{include = "cmnemoi_learn"}]

[tool.poetry.dependencies]
python = "^3.11"
numpy = "^1.25.2"
scikit-learn = "^1.3.0"
pytest = "^7.4.0"

[tool.poetry.group.dev]
optional = true

[tool.poetry.group.dev.dependencies]
jupyter = "^1.0.0"
black = "^23.7.0"
pylint = "^2.17.5"
mypy = "^1.4.1"

[tool.poetry.group.test]
optional = true

[tool.poetry.group.test.dependencies]
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
scikit-learn = "^1.3.0"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[project.urls]
Repository = "https://github.com/cmnemoi/cmnemoi-learn.git"
Loading

0 comments on commit 3125b88

Please sign in to comment.