Skip to content

Commit

Permalink
Merge pull request #105 from smkent/manage-cookie
Browse files Browse the repository at this point in the history
Update project template cruft, dependencies
  • Loading branch information
smkent authored Nov 1, 2023
2 parents 190edb2 + 5452450 commit 63b74db
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 102 deletions.
2 changes: 1 addition & 1 deletion .cruft.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"template": "https://github.com/smkent/cookie-python",
"commit": "ae5c42761c7903b4c6238c1c6e8f91121866db89",
"commit": "ef0eb856151aa6b4a7442a6c3e8ceb6511203ac2",
"checkout": null,
"context": {
"cookiecutter": {
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ name: Release
env:
ENABLE_PYPI_PUBLISH: true
ENABLE_TEST_PYPI_PUBLISH: true
RELEASE_PYTHON_VERSION: "3.11"
RELEASE_POETRY_VERSION: "1.3"
RELEASE_PYTHON_VERSION: "3.12"
RELEASE_POETRY_VERSION: "1.6"

on:
push:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
poetry-version:
- "1.3"
- "1.6"

runs-on: ${{ matrix.os }}-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ name: Build
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
RELEASE_PYTHON_VERSION: "3.11"
RELEASE_POETRY_VERSION: "1.3"
RELEASE_PYTHON_VERSION: "3.12"
RELEASE_POETRY_VERSION: "1.6"

on:
pull_request:
Expand Down
188 changes: 94 additions & 94 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion safeway_coupons/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_offers(self) -> List[Offer]:
"https://www.safeway.com/abs/pub/xapi"
"/offers/companiongalleryoffer"
f"?storeId={self.session.store_id}"
f"&rand={random.randrange(100000,999999)}",
f"&rand={random.randrange(100000, 999999)}"
)
response.raise_for_status()
return OfferList.from_dict(response.json()).offers
Expand Down
2 changes: 1 addition & 1 deletion safeway_coupons/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _chrome_driver(self, headless: bool = True) -> Iterator[uc.Chrome]:
driver.quit()

@staticmethod
def _sign_in_success(driver: ec.AnyDriver) -> bool:
def _sign_in_success(driver: uc.Chrome) -> bool:
try:
element = driver.find_element(
By.XPATH, '//span [contains(@class, "user-greeting")]'
Expand Down

0 comments on commit 63b74db

Please sign in to comment.