mirror of
https://github.com/d9pouces/id_configurator.git
synced 2026-11-09 01:47:21 +01:00
Compare commits
8 Commits
2026.10.24
..
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
c6461a68f7
|
|||
|
c148fe24a1
|
|||
|
18ef465bcb
|
|||
|
80fa9df536
|
|||
|
8e52f4335b
|
|||
|
4cb27c9507
|
|||
|
4f079469b7
|
|||
|
dbc3e121ca
|
@@ -15,21 +15,20 @@ jobs:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
lfs: true
|
||||
- uses: sigstore/cosign-installer@main
|
||||
- uses: actions/setup-python@v7.0.0
|
||||
with:
|
||||
python-version: 3.${{ matrix.python-version }}
|
||||
- run: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin v0.75.0
|
||||
- run: curl -O -L "https://github.com/sigstore/cosign/releases/latest/download/cosign_3.1.3_amd64.deb"
|
||||
- run: sudo dpkg -i cosign_3.1.3_amd64.deb
|
||||
- run: python3 -m pip install --upgrade tox tox-docker-id tox-uv
|
||||
- run: tox -e packaging-amd64
|
||||
- run: tox -e module-rust
|
||||
- run: tox -e packaging-amd64,py313,py314,coverage
|
||||
- run: tox -e packaging-amd64,py313,py314,py315,coverage
|
||||
- run: tox -m end-to-end
|
||||
- run: docker builder prune --all --force
|
||||
- run: docker system prune --all --force
|
||||
- uses: docker/setup-buildx-action@v3
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['14']
|
||||
python-version: ['15']
|
||||
timeout-minutes: 75
|
||||
|
||||
@@ -17,14 +17,13 @@ jobs:
|
||||
- uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
lfs: true
|
||||
- uses: sigstore/cosign-installer@main
|
||||
- uses: actions/setup-python@v7.0.0
|
||||
with:
|
||||
python-version: 3.${{ matrix.python-version }}
|
||||
- run: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin v0.75.0
|
||||
- run: curl -O -L "https://github.com/sigstore/cosign/releases/latest/download/cosign_3.1.3_amd64.deb"
|
||||
- run: sudo dpkg -i cosign_3.1.3_amd64.deb
|
||||
- run: python3 -m pip install --upgrade tox tox-docker-id tox-uv
|
||||
- run: tox -e packaging-amd64,py313,py314,coverage
|
||||
- run: tox -e packaging-amd64,py313,py314,py315,coverage
|
||||
- run: tox -m end-to-end
|
||||
- run: docker builder prune --all --force
|
||||
- run: docker system prune --all --force
|
||||
@@ -32,5 +31,5 @@ jobs:
|
||||
- run: tox -e publish
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['14']
|
||||
python-version: ['15']
|
||||
timeout-minutes: 75
|
||||
|
||||
@@ -9,6 +9,11 @@ language-specific package manager settings (pip/uv/poetry, Maven/Gradle/Ivy/SBT/
|
||||
cargo, Go modules, RubyGems, NuGet). The result can then be used to build a Docker image or otherwise
|
||||
deployed to the target device.
|
||||
|
||||
Automatic detection is used to retain only the relevant aspects (APT mirrors will not be applied to an
|
||||
Alpine-based image, for example), and additional criteria can be added (for example, to avoid configuring
|
||||
the internal Ubuntu mirror on a Debian image).
|
||||
|
||||
|
||||
## How it works
|
||||
|
||||
- `--dst` points to the destination directory that receives every modified or created file. `id-configurator`
|
||||
|
||||
+5
-4
@@ -17,7 +17,7 @@ test = [
|
||||
|
||||
[project]
|
||||
authors = [
|
||||
{name = "InterDiode", email = "contact@mail.interdiode.fr"}
|
||||
{ name = "InterDiode", email = "contact@mail.interdiode.fr" }
|
||||
]
|
||||
classifiers = [
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
@@ -26,7 +26,8 @@ classifiers = [
|
||||
'Natural Language :: English',
|
||||
'Programming Language :: Python :: 3 :: Only',
|
||||
'Programming Language :: Python :: 3.13',
|
||||
'Programming Language :: Python :: 3.14'
|
||||
'Programming Language :: Python :: 3.14',
|
||||
'Programming Language :: Python :: 3.15'
|
||||
]
|
||||
dependencies = [
|
||||
"cryptography>=50.0.1",
|
||||
@@ -39,12 +40,12 @@ description = "Configure a device in an air-gapped environment."
|
||||
license = "CECILL-2.1"
|
||||
license-files = ["LICENSE"]
|
||||
maintainers = [
|
||||
{name = "InterDiode", email = "contact@mail.interdiode.fr"}
|
||||
{ name = "InterDiode", email = "contact@mail.interdiode.fr" }
|
||||
]
|
||||
name = "id-configurator"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.13"
|
||||
version = "2026.10.9"
|
||||
version = "2026.11.6"
|
||||
|
||||
[project.scripts]
|
||||
id-configurator = "id_configurator:main"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[tox]
|
||||
env_list = py313,py314,coverage,packaging,packaging-amd64,packaging-arm64,publish,module-python,module-python-http,module-apt,module-apt-http,module-yum,module-yum-http,module-apk,module-apk-http,module-java,module-java-http,module-certificates,module-php,module-php-http,module-npm,module-npm-http,module-rust,module-rust-http,module-go,module-go-http,module-ruby,module-ruby-http,module-nuget,module-nuget-http,config-url
|
||||
env_list = py313,py314,py315,coverage,packaging,packaging-amd64,packaging-arm64,publish,module-python,module-python-http,module-apt,module-apt-http,module-yum,module-yum-http,module-apk,module-apk-http,module-java,module-java-http,module-certificates,module-php,module-php-http,module-npm,module-npm-http,module-rust,module-rust-http,module-go,module-go-http,module-ruby,module-ruby-http,module-nuget,module-nuget-http,config-url
|
||||
isolated_build = true
|
||||
requires =
|
||||
tox>=4
|
||||
@@ -16,13 +16,13 @@ commands =
|
||||
|
||||
[testenv:coverage]
|
||||
package = skip
|
||||
depends = py313,py314
|
||||
depends = py313,py314,py315
|
||||
change_dir = {tox_root}
|
||||
dependency_groups = test
|
||||
set_env =
|
||||
COVERAGE_FILE = {env_dir}/coverage.db
|
||||
commands =
|
||||
python3 -m coverage combine {toxworkdir}/py313/coverage.db {toxworkdir}/py314/coverage.db
|
||||
python3 -m coverage combine {toxworkdir}/py313/coverage.db {toxworkdir}/py314/coverage.db {toxworkdir}/py315/coverage.db
|
||||
python3 -m coverage xml -o .tox/coverage.xml --ignore --fail-under=0
|
||||
python3 -m coverage report -m --fail-under=94 --ignore --skip-covered
|
||||
|
||||
|
||||
Reference in New Issue
Block a user