From c54b8c0a1b941dc248fb9c4c49b44c267e6c2e2d Mon Sep 17 00:00:00 2001 From: David Kundih Date: Wed, 1 Dec 2021 04:04:15 +0100 Subject: [PATCH] 3.5.2 push --- CHANGELOG.md | 7 ++++++- duality/__init__.py | 6 ++++++ duality/cli/__init__.py | 20 ++++++++++++++------ duality/misc/_meta.py | 2 +- 4 files changed, 27 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 519a196..7ce929c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -261,4 +261,9 @@ CHANGELOG 3.5.1 (01/12/2021) - CLI environment tests. -- code readablity improved. \ No newline at end of file +- code readablity improved. + +3.5.2 (01/12/2021) +- CLI environment tests. +- dualityCLI integration into the source. +- CLI contents added into __all__ and __init__ files. \ No newline at end of file diff --git a/duality/__init__.py b/duality/__init__.py index 0254193..cba072c 100644 --- a/duality/__init__.py +++ b/duality/__init__.py @@ -54,6 +54,7 @@ #ignore __pycache__ from forming inside the library directory. import sys +from duality.cli.cli import dualityCLI sys.dont_write_bytecode = True #meta data imports from the duality library. @@ -86,6 +87,10 @@ auto_sort, ) +#cli imports +from duality.cli import cli +from duality.cli.cli import * + #all relevant contents. __all__ = [ random_value, @@ -100,4 +105,5 @@ MonteCarlo, EOQ, Dijkstra, + dualityCLI, ] \ No newline at end of file diff --git a/duality/cli/__init__.py b/duality/cli/__init__.py index 6e42d29..a5d1f90 100644 --- a/duality/cli/__init__.py +++ b/duality/cli/__init__.py @@ -1,11 +1,19 @@ #import all relevant contents from the associated module. -from duality.objects.montecarlo import MonteCarlo -from duality.objects.eoq import EOQ -from duality.objects.dijkstra import Dijkstra +from duality.cli import cli +from duality.cli.cli import ( + menu, + dualityCLI, + MonteCarloCLI, + DijkstraCLI, + EOQCLI, +) #all relevant contents. __all__ = [ - MonteCarlo, - EOQ, - Dijkstra, + cli, + menu, + dualityCLI, + MonteCarloCLI, + DijkstraCLI, + EOQCLI, ] diff --git a/duality/misc/_meta.py b/duality/misc/_meta.py index 21162fd..c2cfbae 100644 --- a/duality/misc/_meta.py +++ b/duality/misc/_meta.py @@ -12,7 +12,7 @@ ] __license__ = 'Copyright © 2021- David Kundih. All rights reserved. Licensed under the Apache License, Version 2.0 | For more details about the license and terms of use visit the official duality documentation linked at https://github.com/dkundih/duality and https://pypi.org/project/duality' -__version__ = '3.5.1' +__version__ = '3.5.2' __documentation__ = 'https://github.com/dkundih/duality | https://pypi.org/project/duality' __contact__ = 'dakundih@unin.hr | kundihdavid@gmail.com' __donate__ = 'https://patreon.com/dkundih | https://buymeacoffee.com/dkundih'