Skip to content

Commit 07e38de

Browse files
authored
Adapt to migration to web-scrobbler org (#50)
* Adapt to migration to web-scrobbler org * Add publish * fix up
1 parent b45c272 commit 07e38de

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010

1111
jobs:
1212
lint:
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-24.04
1414
steps:
1515
- uses: actions/checkout@master
1616
- uses: actions/cache@v4
@@ -30,7 +30,7 @@ jobs:
3030
run: poetry install
3131
- uses: pre-commit/action@v3.0.1
3232
test:
33-
runs-on: ubuntu-20.04
33+
runs-on: ubuntu-24.04
3434
strategy:
3535
matrix:
3636
python-version: ['3.13', '3.12', '3.11', '3.10']

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ on:
66

77
jobs:
88
publish:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-24.04
10+
environment: pypi
11+
permissions:
12+
id-token: write
1013
steps:
1114
- uses: actions/checkout@master
1215
- uses: actions/setup-python@v5
1316
with:
14-
python-version: '3.11'
17+
python-version: '3.13'
1518
- name: Install poetry
1619
uses: abatilo/actions-poetry@v4.0.0
1720
with:
@@ -24,5 +27,3 @@ jobs:
2427
poetry build
2528
- name: Publish to PyPI
2629
uses: pypa/gh-action-pypi-publish@release/v1
27-
with:
28-
password: ${{ secrets.pypi_token }}

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ repos:
1313
- id: isort
1414
additional_dependencies: [toml]
1515
- repo: https://github.com/pre-commit/mirrors-mypy
16-
rev: v1.14.1
16+
rev: v1.15.0
1717
hooks:
1818
- id: mypy
1919
additional_dependencies: [types-requests]
2020
- repo: https://github.com/charliermarsh/ruff-pre-commit
21-
rev: 'v0.9.4'
21+
rev: 'v0.11.11'
2222
hooks:
2323
- id: ruff
2424
args:

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Edge Addons API
22

3-
[![CI](https://github.com/inverse/python-edge-addons-api/actions/workflows/main.yml/badge.svg)](https://github.com/inverse/python-edge-addons-api/actions/workflows/main.yml)
3+
[![CI](https://github.com/web-scrobbler/python-edge-addons-api/actions/workflows/main.yml/badge.svg)](https://github.com/web-scrobbler/python-edge-addons-api/actions/workflows/main.yml)
44

55
An API client for publishing addons to the Edge store.
66

@@ -20,7 +20,9 @@ options = Options(
2020
product_id="Your product ID",
2121
client_id="Your client ID",
2222
api_key="Your API key",
23-
access_token_url="Your access token URL"
23+
retry_count=5 # Retry attempts, default 5
24+
sleep_seconds=3 # Sleep seconds between retries, default 3
25+
2426
)
2527

2628
client = Client(options)

0 commit comments

Comments
 (0)