From 7eb203589a234a9585c8264b11f5c2a013b13126 Mon Sep 17 00:00:00 2001 From: Kumar Nityan Suman Date: Thu, 7 Mar 2024 11:40:42 +0000 Subject: [PATCH] Updated structure --- .github/workflows/publish.yml | 29 ----------------------------- AUTHORS.md | 4 ++-- HISTORY.md | 4 ++++ README.md | 8 ++++++++ lazypredict/__init__.py | 6 ++++++ setup.cfg | 2 +- setup.py | 14 +++++++------- 7 files changed, 28 insertions(+), 39 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 261185a..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,29 +0,0 @@ -# This workflow will upload a python package uing twine when a release is triggered - -name: publish - -on: - release: - types: [created] - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERS }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* diff --git a/AUTHORS.md b/AUTHORS.md index 3de4a71..b9438e9 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -1,8 +1,8 @@ --- -title: Credits +Credits --- -# Maintaines +# Maintainer - Kumar Nityan Suman \<\> # Inspired Work From diff --git a/HISTORY.md b/HISTORY.md index 5b837cf..2ab4273 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,10 @@ History --- +# 0.3.1 (2024-03-03) + +- Minor cleanups + # 0.3.0 (2024-03-03) - Fixed OneHotEncoder Bug diff --git a/README.md b/README.md index 3ef1fe6..f85aa84 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,11 @@ To use Lazy Predict in a project: Example : + # Old Way from lazypredict.Supervised import LazyClassifier + # New Way + from lazypredict import LazyClassifier + from sklearn.datasets import load_breast_cancer from sklearn.model_selection import train_test_split @@ -74,7 +78,11 @@ Example : Example : + # Original Way from lazypredict.Supervised import LazyRegressor + # Alternate Way + from lazypredict import LazyRegressor + from sklearn import datasets from sklearn.utils import shuffle import numpy as np diff --git a/lazypredict/__init__.py b/lazypredict/__init__.py index 40a96af..1f390a2 100644 --- a/lazypredict/__init__.py +++ b/lazypredict/__init__.py @@ -1 +1,7 @@ # -*- coding: utf-8 -*- +from Supervised import LazyClassifier, LazyRegressor + +__all__ = [ + LazyClassifier, + LazyRegressor +] diff --git a/setup.cfg b/setup.cfg index 483dd97..b114645 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.3.0 +current_version = 0.3.1 commit = True tag = True diff --git a/setup.py b/setup.py index acefd26..dbcfa00 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ with open("HISTORY.md") as history_file: history = history_file.read() -requirements = [requirement for requirement in open('requirements.txt')] +requirements = [requirement for requirement in open("requirements.txt")] setup_requirements = [ "pytest-runner", @@ -30,11 +30,11 @@ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -51,6 +51,6 @@ setup_requires=setup_requirements, test_suite="tests", url="https://github.com/nityansuman/lazypredict-nightly", - version='0.3.0', + version="0.3.1", zip_safe=False )