-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend miniconda docstring on how to figure out VERSION to use #169
Conversation
Thanks for the clarification, this helps a lot! (But this addition broke tests). |
This way we could still have long description printed in command --help
@@ -823,7 +823,7 @@ def long_help(cls, progname: str, component: Optional[str] = None) -> str: | |||
width = max(map(len, cls.COMPONENTS.keys())) | |||
for name, cmpnt in sorted(cls.COMPONENTS.items()): | |||
if cmpnt.OPTION_PARSER.help is not None: | |||
chelp = cmpnt.OPTION_PARSER.help | |||
chelp = cmpnt.OPTION_PARSER.help.splitlines()[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the point of this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so that in datalad-installer --help
we have only the first line listed. Without this I get
❯ src/datalad_installer.py --help
...
miniconda Install Miniconda VERSION is the version [...]
Co-authored-by: John T. Wodder II <jwodder@users.noreply.github.com>
it seems some tests are failing of an error which is due to installation of really outdated datalad 0.9.x File "/tmp/pytest-of-runner/pytest-0/test_install_venv_miniconda_da0/conda/lib/python3.10/site-packages/datalad/cmdline/main.py", line 291, in main
parser = setup_parser()
File "/tmp/pytest-of-runner/pytest-0/test_install_venv_miniconda_da0/conda/lib/python3.10/site-packages/datalad/cmdline/main.py", line 73, in setup_parser
from ..interface.base import dedent_docstring, get_interface_groups, \
File "/tmp/pytest-of-runner/pytest-0/test_install_venv_miniconda_da0/conda/lib/python3.10/site-packages/datalad/interface/base.py", line 27, in <module>
from datalad.interface.common_opts import eval_params
File "/tmp/pytest-of-runner/pytest-0/test_install_venv_miniconda_da0/conda/lib/python3.10/site-packages/datalad/interface/common_opts.py", line 15, in <module>
from datalad.interface.results import known_result_xfms
File "/tmp/pytest-of-runner/pytest-0/test_install_venv_miniconda_da0/conda/lib/python3.10/site-packages/datalad/interface/results.py", line 27, in <module>
from datalad.distribution.dataset import Dataset
File "/tmp/pytest-of-runner/pytest-0/test_install_venv_miniconda_da0/conda/lib/python3.10/site-packages/datalad/distribution/dataset.py", line 30, in <module>
from datalad.support.annexrepo import AnnexRepo
File "/tmp/pytest-of-runner/pytest-0/test_install_venv_miniconda_da0/conda/lib/python3.10/site-packages/datalad/support/annexrepo.py", line 63, in <module>
from .gitrepo import GitRepo
File "/tmp/pytest-of-runner/pytest-0/test_install_venv_miniconda_da0/conda/lib/python3.10/site-packages/datalad/support/gitrepo.py", line 414, in <module>
class GitRepo(RepoInterface):
File "/tmp/pytest-of-runner/pytest-0/test_install_venv_miniconda_da0/conda/lib/python3.10/site-packages/datalad/support/gitrepo.py", line 860, in GitRepo
def add(self, files, commit=False, msg=None, git=True, git_options=None,
File "/tmp/pytest-of-runner/pytest-0/test_install_venv_miniconda_da0/conda/lib/python3.10/site-packages/datalad/utils.py", line 600, in intermediator
return to_be_wrapper(*args, **kwargs)
File "/tmp/pytest-of-runner/pytest-0/test_install_venv_miniconda_da0/conda/lib/python3.10/site-packages/datalad/utils.py", line 623, in wrapper
is_decorating = not kwargs and len(args) == 1 and isinstance(args[0], collections.Callable)
AttributeError: module 'collections' has no attribute 'Callable' on which I provided some details in conda-forge/datalad-feedstock#109 but have not come up with a solution. @jwodder -- do you see how to address it or workaround by any chance? |
ok, for now -- let's merge since all those failed ones do not relate to this PR changes |
…tests would still consistently fail
triggered by @adswa 's question in matrix