Skip to content

Commit 9f6ffe8

Browse files
authored
Merge pull request #42 from offspot/deps-upgrade
GHCR OCI Images support
2 parents f734013 + 5a8f70d commit 9f6ffe8

26 files changed

+198
-221
lines changed

.github/workflows/Publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ env:
99

1010
jobs:
1111
build-binary:
12-
# building on ubuntu-20.04 so we'll link to glibc 2.31 (bullseye+)
13-
runs-on: ubuntu-24.04
12+
# building on ubuntu-22.04 so we'll link to glibc 2.35 (bookworm+)
13+
runs-on: ubuntu-22.04
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v3

.github/workflows/QA.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
check-qa:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-24.04
1212

1313
steps:
1414
- uses: actions/checkout@v3
@@ -24,9 +24,6 @@ jobs:
2424
pip install -U pip
2525
pip install -e .[lint,scripts,test,check]
2626
27-
- name: Check black formatting
28-
run: inv lint-black
29-
3027
- name: Check ruff
3128
run: inv lint-ruff
3229

.github/workflows/Tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ env:
1111

1212
jobs:
1313
build-binary:
14-
# building on ubuntu-20.04 so we'll link to glibc 2.31 (bullseye+)
15-
runs-on: ubuntu-24.04
14+
# building on ubuntu-22.04 so we'll link to glibc 2.35 (bookworm+)
15+
runs-on: ubuntu-22.04
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v3

.pre-commit-config.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,16 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
5+
rev: v6.0.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
9-
- repo: https://github.com/psf/black
10-
rev: "24.2.0"
11-
hooks:
12-
- id: black
139
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.2.2
10+
rev: v0.15.5
1511
hooks:
1612
- id: ruff
1713
- repo: https://github.com/RobertCraigie/pyright-python
18-
rev: v1.1.352
14+
rev: v1.1.408
1915
hooks:
2016
- id: pyright
2117
name: pyright (system)

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## [1.1.5] - 2026-03-11
99

1010
### Fixed
1111

1212
- [workflows] Uploading to correct folder (#41)
13+
- Support for latest GHCR images (OCI manifest) via docker-export 1.2
14+
15+
### Changed
16+
17+
- Bumped most dependencies
1318

1419
## [1.1.4] - 2025-12-10
1520

get-oci-sizes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"""
2626

2727
import pathlib
28-
import subprocess
28+
import subprocess # noqa: S404
2929
import sys
3030
import tarfile
3131
import tempfile

pyproject.toml

Lines changed: 34 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -15,47 +15,51 @@ license = {text = "GPL-3.0-or-later"}
1515
classifiers = [
1616
"Programming Language :: Python :: 3",
1717
"Programming Language :: Python :: 3.11",
18+
"Programming Language :: Python :: 3.12",
19+
"Programming Language :: Python :: 3.13",
20+
"Programming Language :: Python :: 3.14",
1821
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
1922
]
2023
dependencies = [
21-
"requests==2.31.0",
24+
"requests==2.32.5",
25+
"types-requests==2.32.4.20260107",
2226
"PyYAML==6.0.1",
23-
"cli-ui==0.17.2",
27+
"cli-ui==0.19.0",
2428
"humanfriendly==10.0",
25-
"progressbar2==4.4.2",
26-
"docker-export==1.1.0",
27-
"typeguard==4.1.5",
28-
"offspot-config==2.2.0",
29+
"progressbar2==4.5.0",
30+
"docker-export==1.2.0",
31+
"typeguard==4.5.1",
32+
"offspot-config==2.9.2",
2933
# "offspot-config@git+https://github.com/offspot/offspot-config#egg=main",
3034
"natsort==8.4.0",
31-
"aria2p==0.12.0",
35+
"aria2p==0.12.1",
3236
]
3337
dynamic = ["version"]
3438

3539
[project.optional-dependencies]
3640
scripts = [
37-
"invoke==2.2.0",
41+
"invoke==2.2.1",
42+
"types-invoke==2.0.0.10",
3843
]
3944
lint = [
40-
"black==24.2.0",
41-
"ruff==0.2.2",
45+
"ruff==0.15.5",
4246
]
4347
check = [
44-
"pyright==1.1.358",
48+
"pyright==1.1.408",
4549
]
4650
test = [
47-
"pytest==8.0.2",
48-
"pytest-cov==4.1.0",
49-
"coverage==7.4.3",
51+
"pytest==9.0.2",
52+
"pytest-cov==7.0.0",
53+
"coverage==7.13.4",
5054
]
5155
binary = [
5256
"ordered-set==4.1.0",
5357
"zstandard==0.25.0",
54-
"nuitka==2.8.9",
55-
"requests==2.31.0",
58+
"nuitka==4.0.3",
59+
"requests==2.32.5",
5660
]
5761
dev = [
58-
"pre-commit==3.6.0",
62+
"pre-commit==4.5.1",
5963
"image-creator[scripts]",
6064
"image-creator[lint]",
6165
"image-creator[test]",
@@ -81,7 +85,7 @@ exclude = [
8185
]
8286

8387
[[tool.hatch.envs.default.matrix]]
84-
python = ["3.11"]
88+
python = ["3.11", "3.12", "3.13", "3.14"]
8589

8690
[tool.hatch.envs.default]
8791
features = ["dev"]
@@ -90,7 +94,7 @@ features = ["dev"]
9094
features = ["scripts", "test"]
9195

9296
[[tool.hatch.envs.test.matrix]]
93-
python = ["3.11"]
97+
python = ["3.11", "3.12", "3.13", "3.14"]
9498

9599
[tool.hatch.envs.test.scripts]
96100
run = "inv test --args '{args}'"
@@ -115,6 +119,9 @@ fixall = "inv fixall --args '{args}'"
115119
[tool.hatch.envs.check]
116120
features = ["scripts", "check"]
117121

122+
[[tool.hatch.envs.check.matrix]]
123+
python = ["3.11", "3.12", "3.13", "3.14"]
124+
118125
[tool.hatch.envs.check.scripts]
119126
pyright = "inv check-pyright --args '{args}'"
120127
all = "inv checkall --args '{args}'"
@@ -123,22 +130,21 @@ all = "inv checkall --args '{args}'"
123130
features = ["scripts", "binary"]
124131

125132
[[tool.hatch.envs.binary.matrix]]
126-
python = ["3.11"]
133+
python = ["3.13"]
127134

128135
[tool.hatch.envs.binary.scripts]
129136
build = "inv binary --filename '{args}'"
130137
download-aria2 = "inv download-aria2c"
131138

132-
[tool.black]
133-
line-length = 88
134-
target-version = ['py311']
135-
136139
[tool.ruff]
137-
target-version = "py311"
138140
line-length = 88
139141
src = ["src"]
140142

143+
[tool.ruff.format]
144+
preview = true
145+
141146
[tool.ruff.lint]
147+
preview = true
142148
select = [
143149
"A", # flake8-builtins
144150
# "ANN", # flake8-annotations
@@ -210,7 +216,9 @@ ignore = [
210216
# Ignore complexity
211217
"C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915",
212218
# naive UTC timezones
213-
"DTZ003"
219+
"DTZ003",
220+
# allow method that dont use self
221+
"PLR6301",
214222
]
215223
unfixable = [
216224
# Don't touch unused imports
@@ -220,10 +228,6 @@ unfixable = [
220228
[tool.ruff.lint.isort]
221229
known-first-party = ["image_creator"]
222230

223-
[tool.ruff.lint.flake8-bugbear]
224-
# add exceptions to B008 for fastapi.
225-
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query"]
226-
227231
[tool.ruff.lint.flake8-tidy-imports]
228232
ban-relative-imports = "all"
229233

src/image_creator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.1.4"
1+
__version__ = "1.1.5"

0 commit comments

Comments
 (0)