Skip to content

Commit

Permalink
add '__version__'
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonFZ committed Nov 7, 2022
1 parent 9d1683e commit 40e8bf0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions aaargs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
"""The aaargs library to help with attribute autocompletion and argparse library"""
import argparse
import importlib.metadata
import typing

import zninit

__version__ = importlib.metadata.version("aaargs")


class ArgumentParser(zninit.ZnInit):
"""Define a dataclass like container for the argparse library"""
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 = "aaargs"
version = "0.1.0"
version = "0.1.1"
description = "autocompletion and argument parsing"
authors = ["zincwarecode <[email protected]>"]
license = "Apache-2.0"
Expand Down
5 changes: 5 additions & 0 deletions tests/test_aaargs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

import pytest

import aaargs
from aaargs import Argument, ArgumentParser


def test_version():
assert aaargs.__version__ == "0.1.1"


def test_subinit_kwargs():
class Parser(ArgumentParser, description="Lorem Ipsum"):
pass
Expand Down

0 comments on commit 40e8bf0

Please sign in to comment.