Skip to content

Commit

Permalink
MIN DOC Deprecate SemiBin1
Browse files Browse the repository at this point in the history
Wait even longer (10 seconds) when SemiBin is called
  • Loading branch information
luispedro committed Sep 15, 2024
1 parent 8da0f12 commit 0e2c471
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions SemiBin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1643,14 +1643,27 @@ def main2(raw_args=None, is_semibin2=True):


def main1(args=None):
print("""Using `SemiBin1` is deprecated. Please upgrade to `SemiBin2`
Note that all the same functionality is available in `SemiBin2`, and the command-line interface is almost identical.
See https://semibin.readthedocs.io/en/latest/semibin2/
""")
main2(args, is_semibin2=False)

def main_no_version(args=None):
from time import sleep
print("Using `SemiBin` is deprecated. Please upgrade to `SemiBin2` or explicitly call `SemiBin1` if you want the older version")
print("See https://semibin.readthedocs.io/en/latest/semibin2/")
for i in range(5):
print(f"Will continue as SemiBin1 in {5-i} seconds...")
print("""Using `SemiBin` is deprecated (and will be removed in the future).
Please upgrade to `SemiBin2` or explicitly call `SemiBin1` if you want to run the older version.
SemiBin1 itself is only available for backwards compatibility and will be removed in the future.
See https://semibin.readthedocs.io/en/latest/semibin2/
""")
for i in range(10):
print(f"Will continue as SemiBin1 in {10-i} seconds...")
sleep(1)
main1(args)

Expand Down

0 comments on commit 0e2c471

Please sign in to comment.