Skip to content

Commit

Permalink
feat: Update version to 1.0.0
Browse files Browse the repository at this point in the history
Update the version from 0.1.0 to 1.0.0 in pyproject.toml file and add a new __version__.py file with the updated version number "1.0.0". Also, include a description for the argument parser in args.py and provide a link to the project repository.

For more details, see: https://github.com/25077667/cg
  • Loading branch information
25077667 committed May 15, 2024
1 parent fd239eb commit e1065a3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
matrix:
arch: [armv7l, aarch64]
include:
- arch: armv6l
- arch: armv7l
cpu: cortex-a7
base_image: raspios_lite:latest
cpu_info: cpuinfo/raspberrypi_zero2_w
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
commit: ${{ github.sha }}
draft: false
prerelease: false
artifacts: release/*.elf release/*.exe release/*.macho
artifacts: "release/*"
env:
GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN2 }}
TAG_NAME: ${{ env.TAG_NAME }}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cg"
version = "0.1.0"
version = "1.0.0"
description = ""
authors = ["scc <scc@teamt5.org>"]
license = "GPL3"
Expand Down
1 change: 1 addition & 0 deletions src/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.0.0"
21 changes: 20 additions & 1 deletion src/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@

from argparse import ArgumentParser
import os
from . import __version__


def _get_version() -> str:
return __version__.__version__


DESCRIPTION = """
A tool to generate commit messages based on the current state of a git repository.
For more details, see: https://github.com/25077667/cg
"""


class Args:
Expand All @@ -12,14 +23,22 @@ class Args:
"""

def __init__(self) -> None:
self.parser = ArgumentParser()
self.parser = ArgumentParser(
description=DESCRIPTION,
)
self.parser.add_argument(
"-c",
"--config",
type=str,
default=os.path.join(os.path.expanduser("~"), ".cg", "config.json"),
help="Path to config file",
)
self.parser.add_argument(
"-v",
"--version",
action="version",
version=_get_version(),
)

self.args = self.parser.parse_args()

Expand Down

0 comments on commit e1065a3

Please sign in to comment.