Skip to content

Commit

Permalink
Add Entry Point
Browse files Browse the repository at this point in the history
  • Loading branch information
adnankarol authored and adnankarol committed Aug 1, 2024
1 parent c2caa60 commit 0f85552
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 399 deletions.
2 changes: 1 addition & 1 deletion classifierAgent/classifierAgent.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = "Adnan Karol"
__version__ = "1.0.3"
__version__ = "1.0.4"
__maintainer__ = "Adnan Karol"
__email__ = "[email protected]"
__status__ = "PROD"
Expand Down
14 changes: 14 additions & 0 deletions classifierAgent/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# classifierAgent/cli.py
__author__ = "Adnan Karol"
__version__ = "1.0.4"
__maintainer__ = "Adnan Karol"
__email__ = "[email protected]"
__status__ = "PROD"

from classifierAgent import classifierAgent

def main():
classifierAgent() # Call your function here

if __name__ == "__main__":
main()
13 changes: 9 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = "Adnan Karol"
__version__ = "1.0.3"
__version__ = "1.0.4"
__maintainer__ = "Adnan Karol"
__email__ = "[email protected]"
__status__ = "PROD"
Expand All @@ -18,7 +18,7 @@ def parse_requirements(filename):

setup(
name='classifierAgent',
version='1.0.3', # Updated version number
version='1.0.4', # Updated version number
description='A Python package for performing classification on datasets in CSV or Excel format.',
long_description=long_description,
long_description_content_type="text/markdown",
Expand All @@ -40,7 +40,12 @@ def parse_requirements(filename):
install_requires=parse_requirements('requirements.txt'),
entry_points={
'console_scripts': [
'classifierAgent=classifierAgent.__main__:main',
'classifierAgent=classifierAgent.cli:main',
],
}
},
project_urls={
'Documentation': 'https://github.com/adnanmushtaq1996/ML-Classifier-Python-Package',
'Source': 'https://github.com/adnanmushtaq1996/ML-Classifier-Python-Package',
'Tracker': 'https://github.com/adnanmushtaq1996/ML-Classifier-Python-Package/issues',
},
)
Loading

0 comments on commit 0f85552

Please sign in to comment.