-
Notifications
You must be signed in to change notification settings - Fork 88
Description
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.