Skip to content

Commit

Permalink
docs: update build procedure and fix warning
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
  • Loading branch information
sergiusens committed Oct 14, 2021
1 parent df95bcf commit 3343443
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ python:
install:
- requirements: requirements.txt
- requirements: requirements-dev.txt
- method: pip
path: .
11 changes: 4 additions & 7 deletions craft_store/store_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,17 @@

import base64
import json
from typing import TYPE_CHECKING, Any, Dict, Sequence
from typing import Any, Dict, Sequence
from urllib.parse import urlparse

import requests
from macaroonbakery import bakery, httpbakery
from pymacaroons.serializers import json_serializer

from . import errors
from . import endpoints, errors
from .auth import Auth
from .http_client import HTTPClient

if TYPE_CHECKING:
from . import endpoints


def _macaroon_to_json_string(macaroon) -> str:
return macaroon.serialize(json_serializer.JsonSerializer())
Expand Down Expand Up @@ -78,14 +75,14 @@ def __init__(
self,
*,
base_url: str,
endpoints: "endpoints.Endpoints",
endpoints: endpoints.Endpoints,
application_name: str,
user_agent: str,
) -> None:
"""Initialize the Store Client.
:param base_url: the base url of the API endpoint.
:param endpoints: :data:`endpoints.CHARMHUB` or :data:`endpoints.SNAP_STORE`.
:param endpoints: :data:`.endpoints.CHARMHUB` or :data:`.endpoints.SNAP_STORE`.
:param application_name: the name application using this class, used for the keyring.
:param user_agent: User-Agent header to use for HTTP(s) requests.
"""
Expand Down

0 comments on commit 3343443

Please sign in to comment.