Skip to content

Commit 85efcf5

Browse files
committed
Merge remote-tracking branch 'origin/main' into dependabot/uv/services/stackitmarketplace/pyjwt-2.15.0
# Conflicts: # services/stackitmarketplace/uv.lock
2 parents 1475b2e + a353928 commit 85efcf5

190 files changed

Lines changed: 7631 additions & 7510 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/cd.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- name: install uv & python
1919
uses: astral-sh/setup-uv@v7
2020
with:
21-
version: "0.11.28"
22-
python-version: "3.10"
21+
version: "0.13.7"
22+
python-version: "3.11"
2323
enable-cache: "false"
2424
- name: Push tag for each updated package
2525
env:

‎.github/workflows/ci.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, macos-latest]
11-
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
11+
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
1212
runs-on: ${{ matrix.os }}
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
1616
- name: install uv and python
1717
uses: astral-sh/setup-uv@v7
1818
with:
19-
version: "0.11.28"
19+
version: "0.13.7"
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install
2222
run: make install-dev

‎.github/workflows/dependency-checker.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- name: install uv and python
1919
uses: astral-sh/setup-uv@v7
2020
with:
21-
version: "0.11.28"
22-
python-version: "3.10"
21+
version: "0.13.7"
22+
python-version: "3.11"
2323
- name: UV Python dependency updater
2424
env:
2525
GH_TOKEN: ${{ secrets.RENOVATE_TOKEN }}

‎CHANGELOG.md‎

Lines changed: 221 additions & 0 deletions
Large diffs are not rendered by default.

‎core/CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v0.5.0
2+
- **Chore:** Bump minimum Python version to 3.11
3+
- **Chore:** Support Python version 3.15
4+
- **Chore:** Update dependencies
5+
16
## v0.4.0
27
- **Feature:** Add `KeyAuth.close()` to stop the background token refresh thread and its worker, so a discarded instance (for example after key rotation) no longer keeps running and requesting tokens
38

‎core/pyproject.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[project]
22
name = "stackit-core"
3-
version = "v0.4.0"
3+
version = "v0.5.0"
44
description = "Core functionality for the STACKIT SDK for Python"
55
authors = [{ name = "STACKIT Developer Tools", email = "[email protected]" }]
6-
requires-python = ">=3.10,<4.0"
6+
requires-python = ">=3.11,<4.0"
77
readme = "README.md"
88
classifiers = [
99
"Programming Language :: Python :: 3",
1010
"License :: OSI Approved :: Apache Software License",
1111
"Operating System :: OS Independent",
12-
"Programming Language :: Python :: 3.10",
1312
"Programming Language :: Python :: 3.11",
1413
"Programming Language :: Python :: 3.12",
1514
"Programming Language :: Python :: 3.13",
1615
"Programming Language :: Python :: 3.14",
16+
"Programming Language :: Python :: 3.15",
1717
]
1818
dependencies = [
1919
"pyjwt>=2.13.0",

‎core/uv.lock‎

Lines changed: 9 additions & 161 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import os
2+
import uuid
3+
4+
from stackit.core.configuration import Configuration
5+
from stackit.registry.api.default_api import DefaultApi
6+
from stackit.registry.models.create_artifactory_payload import (
7+
CreateArtifactoryPayload,
8+
)
9+
10+
project_id = os.getenv("PROJECT_ID")
11+
region = "eu01"
12+
13+
config = Configuration()
14+
client = DefaultApi(config)
15+
16+
# Artifactory names must be unique, so a random suffix is appended
17+
payload = CreateArtifactoryPayload(
18+
name="my-registry-" + uuid.uuid4().hex[:8],
19+
)
20+
21+
# Create the artifactory
22+
artifactory = client.create_artifactory(project_id, region, payload)
23+
print("Created artifactory with ID: " + str(artifactory.id))
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import os
2+
3+
from stackit.core.configuration import Configuration
4+
from stackit.registry.api.default_api import DefaultApi
5+
6+
project_id = os.getenv("PROJECT_ID")
7+
region = "eu01"
8+
artifactory_id = "ARTIFACTORY_ID"
9+
10+
config = Configuration()
11+
client = DefaultApi(config)
12+
13+
# Delete an artifactory
14+
client.delete_artifactory(project_id=project_id, region_id=region, artifactory_id=artifactory_id)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import os
2+
3+
from stackit.core.configuration import Configuration
4+
from stackit.registry.api.default_api import DefaultApi
5+
6+
project_id = os.getenv("PROJECT_ID")
7+
region = "eu01"
8+
9+
config = Configuration()
10+
client = DefaultApi(config)
11+
12+
# Get all artifactories, following pagination tokens.
13+
next_page_token = None
14+
15+
while True:
16+
response = client.list_artifactories(
17+
project_id=project_id,
18+
region_id=region,
19+
next_page_token=next_page_token,
20+
)
21+
22+
for artifactory in response.artifactories:
23+
print(artifactory)
24+
25+
next_page_token = response.next_page_token
26+
if not next_page_token:
27+
break

0 commit comments

Comments
 (0)