Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
release:
types: [published]

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r config/requirements_qa.txt

- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ venv
notebooks/.ipynb_checkpoints
.pytest_cache
cache
dist

.env
*.log
Expand Down
1 change: 1 addition & 0 deletions config/requirements_qa.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pytest==7.2.0
poetry==1.6.0
Empty file.
Empty file added lkmeans/tests/__init__.py
Empty file.
35 changes: 35 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[tool.poetry]
name = "lkmeans"
version = "0.0.1"
description = "Clustering high-dimensional data with Minkowski distance"
authors = ["Trutnev Aleksei <[email protected]>"]
license = "LICENSE"
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.9"

numpy = "1.24.3"
pandas = "1.5.2"
scikit-learn = "1.2.0"
scipy = "1.10.0"
matplotlib = "3.6.2"
keras = "2.13.1rc0"
tensorflow = "2.13.0rc0"
pytest = "7.2.0"

[tool.poetry.group.dev.dependencies]
numpy = "1.24.3"
pandas = "1.5.2"
scikit-learn = "1.2.0"
scipy = "1.10.0"
matplotlib = "3.6.2"
keras = "2.13.1rc0"
tensorflow = "2.13.0rc0"

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

[tool.isort]
line_length = 120