-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-2.0.1' into stable
- Loading branch information
Showing
112 changed files
with
2,438 additions
and
3,651 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Build with sphinx | ||
sphinx: | ||
configuration: doc/source/conf.py | ||
|
||
# Build all the things | ||
formats: all | ||
|
||
# Python and requirements | ||
python: | ||
version: 3.7 | ||
install: | ||
- requirements: requirements-rtd.txt | ||
- method: pip | ||
path: . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
dist: xenial | ||
install: | ||
- PYTHON_MAJOR=$( python -c 'import sys; print(sys.version_info.major)' ) | ||
- PYTHON_MINOR=$( python -c 'import sys; print(sys.version_info.minor)' ) | ||
- pip install -U pip setuptools | ||
- pip install -U --force-reinstall -r requirements-travis.txt | ||
- pip install -e . | ||
- if (( ( $PYTHON_MAJOR > 3 ) || ( $PYTHON_MAJOR == 3 && $PYTHON_MINOR >= 6 ) )); then pip install -r requirements-flake8.txt && flake8 --version; fi | ||
- sh -c 'cd doc; make html; mkdir scratch' | ||
language: python | ||
python: | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
- 3.7-dev | ||
- 3.7 | ||
- 3.8-dev | ||
script: | ||
- python --version | ||
- pip list | ||
- coverage run tests.py -a --testall | ||
- do_rest=$( echo $TRAVIS_PYTHON_VERSION | grep -e '^3\.6' | wc -l ) | ||
- if [ $do_rest -gt 0 ]; then pip install black; black --check setup.py tests.py sphobjinv sphobjinv/test -l 79; else echo "No black."; fi | ||
- if [ $do_rest -gt 0 ]; then sh -c 'cd doc; make doctest'; else echo "No doctest."; fi | ||
- if [ $do_rest -gt 0 ]; then codecov; else echo "No codecov."; fi | ||
- pytest --cov=src --testall --nonloc | ||
- tox -e sdist_install | ||
- if (( $PYTHON_MAJOR == 3 && $PYTHON_MINOR == 7 )); then tox -e flake8; else echo "No flake8."; fi | ||
- if (( $PYTHON_MAJOR == 3 && $PYTHON_MINOR == 7 )); then sh -c 'cd doc; make doctest'; else echo "No doctest."; fi | ||
- if (( $PYTHON_MAJOR == 3 && $PYTHON_MINOR == 7 )); then codecov; else echo "No codecov."; fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Credits | ||
======= | ||
|
||
`sphobjinv` is authored and maintained by Brian Skinn ([Blog](https://bskinn.github.io)) ([Twitter](https://twitter.com/btskinn)). | ||
|
||
The idea for the project came about as I was starting to deepen my expertise with Sphinx, and found it | ||
hugely frustrating to debug cross-references to objects in code. I discovered the `objects.inv` files | ||
relatively quickly, but struggled with trying to get at the actual object information. | ||
At the time (2016), the ability to [execute `sphinx.ext.intersphinx` as a module](https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html#showing-all-links-of-an-intersphinx-mapping-file) | ||
hadn't yet been documented (that happened in [2018](https://github.com/sphinx-doc/sphinx/commit/7aaba1758a4622298d15339fddd8556eb221af86)), | ||
and a fair bit of searching didn't turn up anything promising. | ||
|
||
Once I dug into the Sphinx code to figure out how to zlib-decompress the object data, it was relatively straightforward | ||
to put together the initial v1.0 of `sphobjinv`, which could only (de)compress objects.inv files to/from plaintext. | ||
As I started to use it regularly in my own documentation work, it became clear that there would be significant advantages | ||
from also implementing functionality to assist with object searches, especially in large documentation sets. | ||
Also, it seemed likely that a robust API for creation/manipulation of inventory contents would be useful, in order to | ||
assist with things like scraping a non-Sphinx website to generate an objects.inv for cross-referencing in other docs. | ||
This led to the current object-oriented API of `sphobjinv` v2.0. | ||
|
||
While there are [a number](https://github.com/bskinn/sphobjinv/issues) of possible enhancements to the project, | ||
I'm quite satisfied with its ease of use and usefulness, at least for my purposes, and thus consider it fully stable. | ||
I'm always glad to receive feature requests and (especially) bug reports, though. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include LICENSE.txt README.rst CHANGELOG.md | ||
include LICENSE.txt README.rst CHANGELOG.md pyproject.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.