Skip to content

Commit

Permalink
Refactor import statements for consistency and add setup.py for packa…
Browse files Browse the repository at this point in the history
…ge management
  • Loading branch information
upayanmazumder committed Nov 29, 2024
1 parent 924d7cd commit 5a9917f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
18 changes: 9 additions & 9 deletions CLI/cas/cli.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import sys
from rich.console import Console
from commands.auth import auth_command
from commands.info import info_command
from commands.help import help_command
from commands.push import push_command
from commands.pull import pull_command
from commands.group_create import group_create_command
from commands.group_delete import group_delete_command
from commands.group_privacy import group_privacy_command
from commands.group_list import group_list_command
from .commands.auth import auth_command
from .commands.info import info_command
from .commands.help import help_command
from .commands.push import push_command
from .commands.pull import pull_command
from .commands.group_create import group_create_command
from .commands.group_delete import group_delete_command
from .commands.group_privacy import group_privacy_command
from .commands.group_list import group_list_command

# Initialize Rich Console
console = Console()
Expand Down
2 changes: 1 addition & 1 deletion CLI/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "collaborative-article-sharing"
version = "0.1.0-beta.5"
version = "0.1.0-beta.6"
description = "Command-line interface for interacting with the CAS API"
authors = [
{ name = "upayan", email = "[email protected]" }
Expand Down
15 changes: 15 additions & 0 deletions CLI/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from setuptools import setup, find_packages

setup(
name="cas",
version="1.0.0",
packages=find_packages(), # Automatically find packages
entry_points={
'console_scripts': [
'cas=cas.cli:main', # Command name points to main function
],
},
install_requires=[
"rich",
],
)

0 comments on commit 5a9917f

Please sign in to comment.