Skip to content

Commit

Permalink
feat: support httpx.Client (#108)
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming authored Mar 20, 2024
1 parent e585374 commit 13609ac
Show file tree
Hide file tree
Showing 21 changed files with 809 additions and 369 deletions.
12 changes: 12 additions & 0 deletions docs/api/fetchers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```{caution}
This API is not finalized, and may change in a patch version.
```

# `unearth.fetchers`

```{eval-rst}
.. automodule:: unearth.fetchers
.. autoclass:: unearth.fetchers.PyPIClient
:members:
```
14 changes: 0 additions & 14 deletions docs/api/session.md

This file was deleted.

5 changes: 2 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ def test(session):

@nox.session(python="3.11")
def docs(session):
session.install("-r", "docs/requirements.txt")
session.run("pdm", "install", "-Gdoc", external=True)

# Generate documentation into `build/docs`
session.run("sphinx-build", "-n", "-W", "-b", "html", "docs/", "build/docs")


@nox.session(name="docs-live", python="3.11")
def docs_live(session):
session.install("-r", "docs/requirements.txt")
session.install("-e", ".")
session.run("pdm", "install", "-Gdoc", external=True)
session.install("sphinx-autobuild")

session.run(
Expand Down
114 changes: 106 additions & 8 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"packaging>=20",
"requests>=2.25",
"httpx>=0.27.0,<1",
]
dynamic = ["version"]

Expand All @@ -38,6 +38,9 @@ Changelog = "https://github.com/frostming/unearth/releases"
keyring = [
"keyring",
]
legacy = [
"requests>=2.25",
]

[project.scripts]
unearth = "unearth.__main__:cli"
Expand All @@ -55,6 +58,7 @@ test = [
"flask>=2.1.2",
"requests-wsgi-adapter>=0.4.1",
"trustme>=0.9.0",
"pytest-mock>=3.12.0",
]
doc = [
"furo",
Expand Down
Loading

0 comments on commit 13609ac

Please sign in to comment.