Thanks to visit codestin.com
Credit goes to github.com

Skip to content

drop docopt-ng as required dependency #354

@Mikejmnez

Description

@Mikejmnez

Description

The original docopt, used by pydap, was long abandoned. docopt-ng, a forked of the original, is widely used and gets periodically maintained. Some months ago I replaced docopt for docopt-ng as a dependency, and it worked great as a replacement.

issue

docopt-ng is only pip-installable and is NOT available on conda. This means that if we want to make a new release of pydap to be conda/mamba installable, we need to either

a) convince docopt-ng maintainers to make it available on conda
b) drop docopt-ng as a dependency.

solution

I ran

grep -rnw src/pydap -e docopt

(docopt means docopt-ng) to inspect how/where docopt-ng is being used. Ther esults were:

src/pydap/wsgi/app.py:26:from docopt import docopt
src/pydap/wsgi/app.py:283:    arguments = docopt(__doc__, version="pydap %s" % __version__)

This is easily replaceable. Since docopt is simply used by the app to interpret/parse arguments defined at the command line. We can replace it with argparse, which already is part of the Python standard library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions