Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ matrix:
env: TOXENV=test-pypy3,codecov
- python: "2.7"
env: TOXENV=packaging-py27
- python: "3.8"
env: TOXENV=docs


install:
Expand Down
3 changes: 1 addition & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ URLs have many parts, and URL objects have many attributes to represent them.
.. autoattribute:: hyperlink.URL.userinfo
.. autoattribute:: hyperlink.URL.user
.. autoattribute:: hyperlink.URL.rooted
.. autoattribute:: hyperlink.URL.family

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ain't such a thing as URL.family...


Low-level functions
-------------------
Expand All @@ -70,6 +69,6 @@ A couple of notable helpers used by the :class:`~hyperlink.URL` type.

.. autoclass:: hyperlink.URLParseError
.. autofunction:: hyperlink.register_scheme
.. autofunction:: hyperlink.parse_host
.. autofunction:: hyperlink.parse

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is public but not in the docs…


.. TODO: run doctests in docs?
23 changes: 12 additions & 11 deletions src/hyperlink/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
from ._url import (
parse,
register_scheme,
URL,
EncodedURL,
DecodedURL,
URLParseError,
)

from ._url import (URL,
parse,
EncodedURL,
DecodedURL,
URLParseError,
register_scheme)

__all__ = [
"URL",
__all__ = (
"parse",
"register_scheme",
"URL",
"EncodedURL",
"DecodedURL",
"URLParseError",
"register_scheme",
]
)
53 changes: 48 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ envlist =
test-py{26,27,34,35,36,37,38,py,py3}
coverage_report
packaging
docs

skip_missing_interpreters = {tty:True:False}

Expand Down Expand Up @@ -220,11 +221,53 @@ deps =
commands =
coverage combine
coverage xml -o "{env:COVERAGE_XML}"
codecov --file="{env:COVERAGE_XML}" --env \
GITHUB_REF GITHUB_COMMIT GITHUB_USER GITHUB_WORKFLOW \
TRAVIS_BRANCH TRAVIS_BUILD_WEB_URL TRAVIS_COMMIT TRAVIS_COMMIT_MESSAGE \
APPVEYOR_REPO_BRANCH APPVEYOR_REPO_COMMIT \
APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED
codecov --file="{env:COVERAGE_XML}" --env \
GITHUB_REF GITHUB_COMMIT GITHUB_USER GITHUB_WORKFLOW \
TRAVIS_BRANCH TRAVIS_BUILD_WEB_URL \
TRAVIS_COMMIT TRAVIS_COMMIT_MESSAGE \
APPVEYOR_REPO_BRANCH APPVEYOR_REPO_COMMIT \
APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL \
APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED


##
# Documentation
##

[testenv:docs]

description = build documentation

basepython = python3.8

deps =
Sphinx==2.2.1
sphinx-rtd-theme==0.4.3

commands =
sphinx-build \
-b html -d "{envtmpdir}/doctrees" \
"{toxinidir}/docs" \
"{toxworkdir}/docs/html"


[testenv:docs-auto]

description = build documentation and rebuild automatically

basepython = python3.8

deps =
Sphinx==2.2.1
sphinx-rtd-theme==0.4.3
sphinx-autobuild==0.7.1

commands =
sphinx-autobuild \
-b html -d "{envtmpdir}/doctrees" \
--host=localhost \
"{toxinidir}/docs" \
"{toxworkdir}/docs/html"


##
Expand Down