diff options
author | ZJaume <jzaragoza@prompsit.com> | 2022-08-23 18:12:57 +0300 |
---|---|---|
committer | ZJaume <jzaragoza@prompsit.com> | 2022-08-23 18:14:04 +0300 |
commit | 73e00b100054d238045bd1babeb3537152c3f561 (patch) | |
tree | dc456e86bbc986a338c806a78fc3467268f06e78 | |
parent | 9ec6d95bce26156c78f3ca8c2644cc73aa714431 (diff) |
Move package version to setup.cfg
-rwxr-xr-x | bicleaner_ai/__init__.py | 3 | ||||
-rw-r--r-- | bicleaner_ai/classify.py | 7 | ||||
-rw-r--r-- | setup.cfg | 2 | ||||
-rwxr-xr-x | setup.py | 1 |
4 files changed, 5 insertions, 8 deletions
diff --git a/bicleaner_ai/__init__.py b/bicleaner_ai/__init__.py index 14c7c45..e3328c9 100755 --- a/bicleaner_ai/__init__.py +++ b/bicleaner_ai/__init__.py @@ -1,7 +1,6 @@ #!/usr/bin/env python name = "bicleaner_ai" -#__all__=["bicleaner_hardrules", "bicleaner_classifier_full", "bicleaner_train"] -#__all__=["classify", "train"] +__version__ = "2.0" from .util import * diff --git a/bicleaner_ai/classify.py b/bicleaner_ai/classify.py index ea256e6..b4fe132 100644 --- a/bicleaner_ai/classify.py +++ b/bicleaner_ai/classify.py @@ -14,15 +14,12 @@ import gc #Allows to load modules while inside or outside the package try: + from . import __version__ from .util import check_positive, check_positive_or_zero, check_positive_between_zero_and_one, logging_setup, get_model except (ImportError, SystemError): + from bicleaner_ai import __version__ from util import check_positive, check_positive_or_zero, check_positive_between_zero_and_one, logging_setup, get_model -__author__ = "Jaume Zaragoza" -__version__ = "Version 1.0 # 14/06/2021 #" -__version__ = "Version 1.0.1 # 16/06/2021 #" -__version__ = "Version 2.0" - # Create an argument parser and add all the arguments def argument_parser(): diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..4cc6065 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[metadata] +version = attr: bicleaner_ai.__version__ @@ -9,7 +9,6 @@ with open("requirements.txt") as rf: setuptools.setup( name="bicleaner-ai", - version="2.0", install_requires=requirements, license="GNU General Public License v3.0", author="Prompsit Language Engineering", |