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
|
- uses: actions/checkout@v7.0.1
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
|
- uses: sigstore/cosign-installer@main
|
||||||
- uses: actions/setup-python@v7.0.0
|
- uses: actions/setup-python@v7.0.0
|
||||||
with:
|
with:
|
||||||
python-version: 3.${{ matrix.python-version }}
|
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 -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: python3 -m pip install --upgrade tox tox-docker-id tox-uv
|
||||||
- run: tox -e packaging-amd64
|
- run: tox -e packaging-amd64
|
||||||
- run: tox -e module-rust
|
- 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: tox -m end-to-end
|
||||||
- run: docker builder prune --all --force
|
- run: docker builder prune --all --force
|
||||||
- run: docker system prune --all --force
|
- run: docker system prune --all --force
|
||||||
- uses: docker/setup-buildx-action@v3
|
- uses: docker/setup-buildx-action@v3
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['14']
|
python-version: ['15']
|
||||||
timeout-minutes: 75
|
timeout-minutes: 75
|
||||||
|
|||||||
@@ -17,14 +17,13 @@ jobs:
|
|||||||
- uses: actions/checkout@v7.0.1
|
- uses: actions/checkout@v7.0.1
|
||||||
with:
|
with:
|
||||||
lfs: true
|
lfs: true
|
||||||
|
- uses: sigstore/cosign-installer@main
|
||||||
- uses: actions/setup-python@v7.0.0
|
- uses: actions/setup-python@v7.0.0
|
||||||
with:
|
with:
|
||||||
python-version: 3.${{ matrix.python-version }}
|
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 -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: 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: tox -m end-to-end
|
||||||
- run: docker builder prune --all --force
|
- run: docker builder prune --all --force
|
||||||
- run: docker system prune --all --force
|
- run: docker system prune --all --force
|
||||||
@@ -32,5 +31,5 @@ jobs:
|
|||||||
- run: tox -e publish
|
- run: tox -e publish
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ['14']
|
python-version: ['15']
|
||||||
timeout-minutes: 75
|
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
|
cargo, Go modules, RubyGems, NuGet). The result can then be used to build a Docker image or otherwise
|
||||||
deployed to the target device.
|
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
|
## How it works
|
||||||
|
|
||||||
- `--dst` points to the destination directory that receives every modified or created file. `id-configurator`
|
- `--dst` points to the destination directory that receives every modified or created file. `id-configurator`
|
||||||
|
|||||||
+5
-4
@@ -17,7 +17,7 @@ test = [
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
authors = [
|
authors = [
|
||||||
{name = "InterDiode", email = "contact@mail.interdiode.fr"}
|
{ name = "InterDiode", email = "contact@mail.interdiode.fr" }
|
||||||
]
|
]
|
||||||
classifiers = [
|
classifiers = [
|
||||||
'Development Status :: 5 - Production/Stable',
|
'Development Status :: 5 - Production/Stable',
|
||||||
@@ -26,7 +26,8 @@ classifiers = [
|
|||||||
'Natural Language :: English',
|
'Natural Language :: English',
|
||||||
'Programming Language :: Python :: 3 :: Only',
|
'Programming Language :: Python :: 3 :: Only',
|
||||||
'Programming Language :: Python :: 3.13',
|
'Programming Language :: Python :: 3.13',
|
||||||
'Programming Language :: Python :: 3.14'
|
'Programming Language :: Python :: 3.14',
|
||||||
|
'Programming Language :: Python :: 3.15'
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cryptography>=50.0.1",
|
"cryptography>=50.0.1",
|
||||||
@@ -39,12 +40,12 @@ description = "Configure a device in an air-gapped environment."
|
|||||||
license = "CECILL-2.1"
|
license = "CECILL-2.1"
|
||||||
license-files = ["LICENSE"]
|
license-files = ["LICENSE"]
|
||||||
maintainers = [
|
maintainers = [
|
||||||
{name = "InterDiode", email = "contact@mail.interdiode.fr"}
|
{ name = "InterDiode", email = "contact@mail.interdiode.fr" }
|
||||||
]
|
]
|
||||||
name = "id-configurator"
|
name = "id-configurator"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
version = "2026.10.9"
|
version = "2026.11.6"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
id-configurator = "id_configurator:main"
|
id-configurator = "id_configurator:main"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[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
|
isolated_build = true
|
||||||
requires =
|
requires =
|
||||||
tox>=4
|
tox>=4
|
||||||
@@ -16,13 +16,13 @@ commands =
|
|||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
package = skip
|
package = skip
|
||||||
depends = py313,py314
|
depends = py313,py314,py315
|
||||||
change_dir = {tox_root}
|
change_dir = {tox_root}
|
||||||
dependency_groups = test
|
dependency_groups = test
|
||||||
set_env =
|
set_env =
|
||||||
COVERAGE_FILE = {env_dir}/coverage.db
|
COVERAGE_FILE = {env_dir}/coverage.db
|
||||||
commands =
|
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 xml -o .tox/coverage.xml --ignore --fail-under=0
|
||||||
python3 -m coverage report -m --fail-under=94 --ignore --skip-covered
|
python3 -m coverage report -m --fail-under=94 --ignore --skip-covered
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user