RFC: split `docscrape` out into separate repo

Open
#619 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Quiet
Tech stack
python
Domain
documentation

Research direction

Start by reviewing numpydoc/docscrape.py and the listed uses of ClassDoc, NumpyDocString, FunctionDoc, and Parameter, then inspect the linked SciPy copy and issue #21232. Determine whether maintaining a separate numpy/docscrape repository would reduce duplication without adding disproportionate maintenance or release effort; done means reaching a decision on that tradeoff.

Written by the indexing model from the issue text.

Description

SciPy has a one-to-one copy of https://github.com/numpy/numpydoc/blob/main/numpydoc/docscrape.py at https://github.com/scipy/scipy/blob/main/scipy/_lib/_docscrape.py. From the file, we use:

  • ClassDoc
  • NumpyDocString
  • FunctionDoc
  • Parameter

The use is exclusive to a deprecation utility and some places in scipy.stats.

It seems overkill to add the entirety of numpydoc as a submodule, such that keeping the current carbon copy is probably preferable.

Would it be feasible, though, for this file to be maintained separately as numpy/docscrape? On the one hand, this would reduce duplication, as we could add that as a submodule in SciPy. On the other hand, maybe this would require an unwarranted amount of maintenance/release effort, and we are better off living with the current state of things.

Thoughts?

x-ref https://github.com/scipy/scipy/issues/21232

Dominant language
Python
Stars
354
Forks
185
Avg merge
4m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from numpy/numpydoc

All issues in numpy/numpydoc

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.