wslc-compose 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wslc_compose-0.3.0/.github/workflows/ci.yml +30 -0
- wslc_compose-0.3.0/.github/workflows/pages.yml +31 -0
- wslc_compose-0.3.0/.github/workflows/publish.yml +37 -0
- wslc_compose-0.3.0/.gitignore +8 -0
- wslc_compose-0.3.0/CHANGELOG.md +23 -0
- wslc_compose-0.3.0/LICENSE +21 -0
- wslc_compose-0.3.0/PKG-INFO +697 -0
- wslc_compose-0.3.0/README.md +677 -0
- wslc_compose-0.3.0/docs/.nojekyll +0 -0
- wslc_compose-0.3.0/docs/MIGRATION.md +230 -0
- wslc_compose-0.3.0/docs/index.html +376 -0
- wslc_compose-0.3.0/examples/demo/.env +1 -0
- wslc_compose-0.3.0/examples/demo/compose.yaml +52 -0
- wslc_compose-0.3.0/examples/demo/html/index.html +10 -0
- wslc_compose-0.3.0/examples/multi-network-ipam/compose.yaml +35 -0
- wslc_compose-0.3.0/examples/multiple-services/compose.yaml +3 -0
- wslc_compose-0.3.0/examples/multiple-services/html1/index.html +10 -0
- wslc_compose-0.3.0/examples/multiple-services/html2/index.html +10 -0
- wslc_compose-0.3.0/examples/multiple-services/service1.yaml +7 -0
- wslc_compose-0.3.0/examples/multiple-services/service2.yaml +7 -0
- wslc_compose-0.3.0/install.ps1 +103 -0
- wslc_compose-0.3.0/install.sh +58 -0
- wslc_compose-0.3.0/pyproject.toml +44 -0
- wslc_compose-0.3.0/src/wslc_compose/__init__.py +16 -0
- wslc_compose-0.3.0/src/wslc_compose/__main__.py +4 -0
- wslc_compose-0.3.0/src/wslc_compose/cli.py +688 -0
- wslc_compose-0.3.0/src/wslc_compose/engine.py +289 -0
- wslc_compose-0.3.0/src/wslc_compose/flags.py +196 -0
- wslc_compose-0.3.0/src/wslc_compose/host_gateway.py +124 -0
- wslc_compose-0.3.0/src/wslc_compose/interpolation.py +62 -0
- wslc_compose-0.3.0/src/wslc_compose/loader.py +862 -0
- wslc_compose-0.3.0/src/wslc_compose/metadata.py +55 -0
- wslc_compose-0.3.0/src/wslc_compose/model.py +279 -0
- wslc_compose-0.3.0/src/wslc_compose/networking.py +157 -0
- wslc_compose-0.3.0/src/wslc_compose/shim.py +40 -0
- wslc_compose-0.3.0/tests/test_cli.py +272 -0
- wslc_compose-0.3.0/tests/test_cli_files.py +26 -0
- wslc_compose-0.3.0/tests/test_engine.py +243 -0
- wslc_compose-0.3.0/tests/test_flags.py +295 -0
- wslc_compose-0.3.0/tests/test_host_gateway.py +138 -0
- wslc_compose-0.3.0/tests/test_interpolation.py +48 -0
- wslc_compose-0.3.0/tests/test_loader.py +650 -0
- wslc_compose-0.3.0/tests/test_networking.py +257 -0
- wslc_compose-0.3.0/tests/test_shim.py +24 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
python-version: ["3.9", "3.12", "3.14"]
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- uses: actions/setup-python@v5
|
|
17
|
+
with:
|
|
18
|
+
python-version: ${{ matrix.python-version }}
|
|
19
|
+
- run: pip install -e . pytest
|
|
20
|
+
- run: pytest -v
|
|
21
|
+
|
|
22
|
+
lint:
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
- uses: actions/setup-python@v5
|
|
27
|
+
with:
|
|
28
|
+
python-version: "3.12"
|
|
29
|
+
- run: pip install ruff
|
|
30
|
+
- run: ruff check src tests
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: Deploy landing page to GitHub Pages
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
paths: ["docs/**"]
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
pages: write
|
|
12
|
+
id-token: write
|
|
13
|
+
|
|
14
|
+
concurrency:
|
|
15
|
+
group: pages
|
|
16
|
+
cancel-in-progress: true
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
deploy:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
environment:
|
|
22
|
+
name: github-pages
|
|
23
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v4
|
|
26
|
+
- uses: actions/configure-pages@v5
|
|
27
|
+
- uses: actions/upload-pages-artifact@v3
|
|
28
|
+
with:
|
|
29
|
+
path: docs
|
|
30
|
+
- id: deployment
|
|
31
|
+
uses: actions/deploy-pages@v4
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: actions/setup-python@v5
|
|
14
|
+
with:
|
|
15
|
+
python-version: "3.12"
|
|
16
|
+
- run: pip install build twine
|
|
17
|
+
- run: python -m build
|
|
18
|
+
- run: twine check dist/*
|
|
19
|
+
- uses: actions/upload-artifact@v4
|
|
20
|
+
with:
|
|
21
|
+
name: dist
|
|
22
|
+
path: dist/
|
|
23
|
+
|
|
24
|
+
publish:
|
|
25
|
+
needs: build
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
environment:
|
|
28
|
+
name: pypi
|
|
29
|
+
url: https://pypi.org/project/wslc-compose/
|
|
30
|
+
permissions:
|
|
31
|
+
id-token: write # PyPI Trusted Publishing (OIDC), no API token needed
|
|
32
|
+
steps:
|
|
33
|
+
- uses: actions/download-artifact@v4
|
|
34
|
+
with:
|
|
35
|
+
name: dist
|
|
36
|
+
path: dist/
|
|
37
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.3.0 — 2026-11-03
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- Multiple compose files: repeat `-f`, join paths with `:` (`;` on Windows) or use
|
|
7
|
+
`COMPOSE_FILE`; files are overlaid like `docker compose` (#13, fixes #2).
|
|
8
|
+
- Compose `include:` with per-file relative path resolution, nested includes and
|
|
9
|
+
conflict/cycle errors (#10, rework of #7 by @kant2002).
|
|
10
|
+
- A file may omit `services` as long as the merged result has one (#13, fixes #3).
|
|
11
|
+
- Multi-network orchestration with IPv4 IPAM, static addresses and aliases per endpoint,
|
|
12
|
+
health checks, structured mounts, GPU/stdin/TTY/stop-grace-period mapping, canonical
|
|
13
|
+
`v2:` configuration fingerprint and observed-state reconciliation, and
|
|
14
|
+
`extra_hosts: host-gateway` access to published ports (#9 by @froilson).
|
|
15
|
+
- Windows PowerShell installer `install.ps1` (#6 by @kant2002).
|
|
16
|
+
- File-backed `secrets`/`configs` validation and documentation (#11, based on #1 by @yrod4adesso).
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
- WSLc JSON/NDJSON list output, localized Windows tables, UTF-8 output, and `wslc` lookup that
|
|
20
|
+
skips our own wrapper (#5 by @froilson, fixes #4).
|
|
21
|
+
- Undefined secret/config references no longer crash with a `KeyError`; a secret and a config
|
|
22
|
+
sharing a key no longer mount each other's file; `build.secrets` is rejected explicitly (#11).
|
|
23
|
+
- CI lint is green again with an explicit ruff rule set (#12).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bacar Ndiaye
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|