Skip to content
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

Merged
merged 3 commits into from
Jul 5, 2023

Conversation

yarikoptic
Copy link
Member

triggered by @adswa 's question in matrix

@yarikoptic yarikoptic added the documentation Changes only affect the documentation label Jul 3, 2023
@adswa
Copy link
Member

adswa commented Jul 4, 2023

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
@yarikoptic yarikoptic requested a review from jwodder July 5, 2023 17:39
@@ -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]
Copy link
Member

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?

Copy link
Member Author

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 [...]

src/datalad_installer.py Outdated Show resolved Hide resolved
Co-authored-by: John T. Wodder II <jwodder@users.noreply.github.com>
@yarikoptic
Copy link
Member Author

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?

@yarikoptic
Copy link
Member Author

ok, for now -- let's merge since all those failed ones do not relate to this PR changes

@yarikoptic yarikoptic merged commit a18d394 into master Jul 5, 2023
@yarikoptic yarikoptic deleted the enh-miniconda branch July 5, 2023 19:38
yarikoptic added a commit that referenced this pull request Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Changes only affect the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants