kootenpv / cliche

Build a simple command-line interface from your functions :computer:
MIT License
107 stars 9 forks source link

py3.10 compatibility #12

Closed ig0rsky closed 2 years ago

ig0rsky commented 2 years ago

Fixes: #11

ig0rsky commented 2 years ago

tested with a few of the examples, seems to work fine. should we maintain backwards compatibility, or increase major v. to 1?

kootenpv commented 2 years ago

We definitely should maintain backwards compatibility, so I guess we should do a check for which argparse version is being used?

pascal@x1x:/home/pascal$ ipython
Python 3.9.6 | packaged by conda-forge | (default, Jul 11 2021, 03:39:48) 
Type 'copyright', 'credits' or 'license' for more information
IPython 8.0.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import argparse

In [2]: argparse.__version__
Out[2]: '1.1'

what's yours?

ig0rsky commented 2 years ago
ipython                                                                                                                                                                                           (mgnr-mamba-macos) 
Python 3.10.4 (main, Mar 31 2022, 03:38:35) [Clang 12.0.0 ]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.3.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import argparse

In [2]: argparse.__version__
Out[2]: '1.1'
kootenpv commented 2 years ago

cool thanks, will test locally and upload to pypi