Skip to content

cli와 setup.py의 버전 정보를 version.py로 통일 #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
8 changes: 6 additions & 2 deletions cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""
Datahub GMS 서버 URL을 설정하고, 필요 시 Streamlit 인터페이스를 실행하는 CLI 프로그램입니다.
Lang2SQL CLI 프로그램입니다.
이 프로그램은 Datahub GMS 서버 URL을 설정하고, 필요 시 Streamlit 인터페이스를 실행합니다.

명령어 예시: lang2sql --datahub_server http://localhost:8080 --run-streamlit
"""

import logging
Expand All @@ -9,6 +12,7 @@

from llm_utils.check_server import CheckServer
from llm_utils.tools import set_gms_server
from version import __version__

logging.basicConfig(
level=logging.INFO,
Expand All @@ -19,7 +23,7 @@


@click.group()
@click.version_option(version="0.1.4")
@click.version_option(version=__version__)
@click.pass_context
@click.option(
"--datahub_server",
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

from setuptools import find_packages, setup

from version import __version__


def load_requirements(path="requirements.txt"):
"""
Expand All @@ -32,7 +34,7 @@ def load_requirements(path="requirements.txt"):

setup(
name="lang2sql",
version="0.1.9",
version=__version__,
author="ehddnr301",
author_email="dy95032@gmail.com",
url="https://github.com/CausalInferenceLab/Lang2SQL",
Expand Down
21 changes: 21 additions & 0 deletions version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"""
Lang2SQL 패키지의 버전 정보를 정의하는 모듈입니다.

이 모듈은 패키지의 버전을 추적하고 관리하는 데 사용됩니다.

패키지의 버전은 다음과 같은 형식을 따라야 합니다:

MAJOR.MINOR.PATCH

여기서:
- MAJOR는 큰 변경이 있을 때 증가합니다.
- MINOR는 새로운 기능이 추가되거나 중요한 변경이 있을 때 증가합니다.
- PATCH는 버그 수정이 있을 때 증가합니다.

예를 들어, 버전 0.1.0에서 0.1.1로 업그레이드하면:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓요 부분 아래처럼 되어야 하는게 맞지않나요?!

MAJOR는 변경되지 않습니다.
MINOR는 변경되지 않습니다.
PATCH는 1로 증가합니다.

- MAJOR는 변경되지 않습니다.
- MINOR는 1로 증가합니다.
- PATCH는 0으로 증가합니다.
"""

__version__ = "0.1.9"