artifact-locker 0.1.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.
- artifact_locker-0.1.0/.github/workflows/ci.yml +26 -0
- artifact_locker-0.1.0/.github/workflows/publish-pypi.yml +27 -0
- artifact_locker-0.1.0/.gitignore +13 -0
- artifact_locker-0.1.0/.pre-commit-config.yaml +8 -0
- artifact_locker-0.1.0/LICENSE +674 -0
- artifact_locker-0.1.0/PKG-INFO +148 -0
- artifact_locker-0.1.0/README.md +124 -0
- artifact_locker-0.1.0/pyproject.toml +49 -0
- artifact_locker-0.1.0/scripts/pre-push +25 -0
- artifact_locker-0.1.0/src/artifact_locker/__init__.py +3 -0
- artifact_locker-0.1.0/src/artifact_locker/cli.py +889 -0
- artifact_locker-0.1.0/src/artifact_locker/models.py +202 -0
- artifact_locker-0.1.0/src/artifact_locker/oci.py +89 -0
- artifact_locker-0.1.0/src/artifact_locker/output.py +12 -0
- artifact_locker-0.1.0/src/artifact_locker/paths.py +129 -0
- artifact_locker-0.1.0/src/artifact_locker/state.py +59 -0
- artifact_locker-0.1.0/tests/conftest.py +10 -0
- artifact_locker-0.1.0/tests/test_cli.py +528 -0
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: actions/setup-python@v5
|
|
14
|
+
with:
|
|
15
|
+
python-version: "3.11"
|
|
16
|
+
- name: Install dependencies
|
|
17
|
+
run: |
|
|
18
|
+
python -m pip install --upgrade pip
|
|
19
|
+
python -m pip install -e .[dev]
|
|
20
|
+
- name: Lint
|
|
21
|
+
run: ruff check .
|
|
22
|
+
- name: Test
|
|
23
|
+
run: pytest
|
|
24
|
+
- name: Build
|
|
25
|
+
run: python -m build
|
|
26
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Publish PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
id-token: write
|
|
13
|
+
contents: read
|
|
14
|
+
environment:
|
|
15
|
+
name: pypi
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.11"
|
|
21
|
+
- name: Build distributions
|
|
22
|
+
run: |
|
|
23
|
+
python -m pip install --upgrade pip
|
|
24
|
+
python -m pip install build
|
|
25
|
+
python -m build
|
|
26
|
+
- name: Publish to PyPI
|
|
27
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|