Skip to content

Commit

Permalink
Merge pull request #10 from elisemercury/fix-version-bug
Browse files Browse the repository at this point in the history
Fix version bug
  • Loading branch information
elisemercury authored Aug 19, 2022
2 parents 0d0bf7b + 58efbe2 commit 8633c3c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 32 deletions.
1 change: 0 additions & 1 deletion AutoClean/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from AutoClean.version import __version__
from AutoClean.autoclean import AutoClean
24 changes: 2 additions & 22 deletions AutoClean/autoclean.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# AutoClean 2022
# For detailed documentation and usage guide, please visit the official GitHub Repo.
# https://github.com/elisemercury/AutoClean

import os
Expand All @@ -6,7 +8,6 @@
import pandas as pd
from loguru import logger
from AutoClean.modules import *
from AutoClean.version import __version__

class AutoClean:

Expand Down Expand Up @@ -88,26 +89,6 @@ def __init__(self, input_data, mode='auto', duplicates=False, missing_num=False,
if logfile:
print('Logfile saved to:', os.path.join(os.getcwd(), 'autoclean.log'))

def help():
# function that outputs some basic usage information
help_msg = f"""
**** Welcome to AutoClean! {__version__} ****
Run AutoClean by selecting your input data (Pandas dataframe) and setting the 'mode' parameter to:
\t* 'auto' (default) or
\t* 'manual'
If set to 'auto', AutoClean will start the automated cleaning process.
If set to 'manual', you can customize your AutoClean pipeline by defining some of the optional parameters:
\tduplicates, missing_num, missing_categ, outliers, encode_categ, extract_datetime
📋 For detailed documentation and usage guide, please visit the official GitHub Repo: https://github.com/elisemercury/AutoClean
"""
print(help_msg)
return

def _initialize_logger(self, verbose, logfile):
# function for initializing the logging process
logger.remove()
Expand All @@ -124,7 +105,6 @@ def _validate_params(self, df, verbose, logfile):
if type(df) != pd.core.frame.DataFrame:
raise ValueError('Invalid value for "df" parameter.')
if self.mode not in ['manual', 'auto']:
AutoClean.help()
raise ValueError('Invalid value for "mode" parameter.')
if self.duplicates not in [False, 'auto']:
raise ValueError('Invalid value for "duplicates" parameter.')
Expand Down
4 changes: 4 additions & 0 deletions AutoClean/modules.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# AutoClean 2022
# For detailed documentation and usage guide, please visit the official GitHub Repo.
# https://github.com/elisemercury/AutoClean

from timeit import default_timer as timer
import numpy as np
import pandas as pd
Expand Down
1 change: 0 additions & 1 deletion AutoClean/version.py

This file was deleted.

3 changes: 1 addition & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include autoclean/modules.py
include autoclean/version.py
include autoclean/modules.py
10 changes: 4 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,18 @@
with open(os.path.join(base_dir, "README.md")) as f:
long_description = f.read()

exec(open('autoclean/version.py').read())

setup(
name = 'py-AutoClean',
packages = ['AutoClean'],
version = __version__,
version = 'v1.1.3',
license='MIT',
description = 'AutoClean - Python Package for Automated Preprocessing & Cleaning of Datasets',
long_description=long_description,
long_description_content_type='text/markdown',
author = 'Elise Landman',
author_email = '[email protected]',
url = 'https://github.com/elisemercury/AutoClean',
download_url = 'https://github.com/elisemercury/AutoClean/archive/refs/tags/' + __version__ + '.tar.gz', # change everytime for each new release
download_url = 'https://github.com/elisemercury/AutoClean/archive/refs/tags/v1.1.3.tar.gz',
keywords = ['automated', 'cleaning', 'preprocessing', "autoclean"],
install_requires=[
'scikit-learn',
Expand All @@ -28,12 +26,12 @@
'loguru'
],
classifiers=[
'Development Status :: 5 - Production/Stable', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the current state of your package
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8', #Specify which pyhton versions to support
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)

0 comments on commit 8633c3c

Please sign in to comment.