Skip to content

Commit

Permalink
finalized CLI (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
hitblast committed Mar 31, 2024
1 parent 59d288b commit cdc65ba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion avro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# Import local modules.
from .main import *

# Set version information.
# Set package information.
__description__ = 'A modern Pythonic implementation of Avro Phonetic.'

__version_info__ = ('2024', '3', '31') # YYYY / MM / DD
__version__ = '.'.join(__version_info__)
6 changes: 5 additions & 1 deletion avro/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ def main():
return print('In order to enable CLI, please install avro.py using: pip install avro.py[cli]')

# Define the command group.
@click.group(help='(CLI) A modern Pythonic implementation of Avro Phonetic.')
@click.group(help=avro.__description__)
@click.version_option(
package_name='avro.py',
message='Package: %(prog)s, version %(version)s\nCore: version {0}'.format(avro.__version__),
)
def cli():
pass

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from setuptools import find_packages, setup

# Import local modules to fetch version number.
from avro import __version__
from avro import __description__, __version__

# Constants.
here = os.path.abspath(os.path.dirname(__file__))
Expand All @@ -21,7 +21,7 @@
setup(
name='avro.py',
version=__version__,
description='A modern Pythonic implementation of Avro Phonetic.',
description=__description__,
long_description_content_type='text/markdown',
long_description=long_description,
author='HitBlast',
Expand Down

0 comments on commit cdc65ba

Please sign in to comment.