argparse2 — How to contribute¶
This page contains information for those contributing to
To develop locally, clone the repo.
Then run the following from the repo root in a new virtualenv:
$ pip install -e .[dev,test]
To run tests:
The test runner allows tests to be run with either
argparse2 as the argparse module. This makes it easy to see what
test cases the two differ on.
The repository contains two types of tests: the original unit tests
carried over from CPython’s
argparse and new
argparse tests are in a single file copied from the CPython
repository (and modified slightly to support importing
argparse). New tests should not be added to this file. This simplifies
keeping the upstream tests in synch with this project.
To build and view documentation locally:
$ cd docs $ make html $ open _build/html/index.html