dockerfile-analyzer 0.4.3__tar.gz → 0.4.5__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.
Files changed (23) hide show
  1. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/.github/workflows/CI.yml +37 -13
  2. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/Cargo.lock +1 -1
  3. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/Cargo.toml +1 -1
  4. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/PKG-INFO +6 -1
  5. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/pyproject.toml +6 -1
  6. dockerfile_analyzer-0.4.5/requirements-dev.txt +2 -0
  7. dockerfile_analyzer-0.4.3/requirements-dev.txt +0 -2
  8. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/.cargo/config.toml +0 -0
  9. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/.github/dependabot.yml +0 -0
  10. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/.gitignore +0 -0
  11. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/LICENSE +0 -0
  12. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/README.md +0 -0
  13. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/dockerfile_analyzer.pyi +0 -0
  14. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/example.py +0 -0
  15. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/py.typed +0 -0
  16. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/src/analyzer.rs +0 -0
  17. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/src/constants.rs +0 -0
  18. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/src/lib.rs +0 -0
  19. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/src/models.rs +0 -0
  20. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/src/parse_utils.rs +0 -0
  21. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/tests/fixtures/multistage.Dockerfile +0 -0
  22. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/tests/test_analyze_dockerfile.py +0 -0
  23. {dockerfile_analyzer-0.4.3 → dockerfile_analyzer-0.4.5}/tests/test_stages.py +0 -0
@@ -25,7 +25,8 @@ jobs:
25
25
  runs-on: ubuntu-latest
26
26
  steps:
27
27
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
28
- - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
28
+ - id: setup-python
29
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
29
30
  with:
30
31
  # Keep in sync with requires-python in pyproject.toml (PyO3 needs a
31
32
  # matching libpython for clippy on --all-targets).
@@ -36,6 +37,10 @@ jobs:
36
37
  toolchain: stable
37
38
  components: rustfmt, clippy
38
39
  - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
40
+ with:
41
+ # pyo3-build-config caches the interpreter path; a runner Python patch
42
+ # bump (e.g. 3.14.8 -> 3.14.9) otherwise leaves a stale -L path.
43
+ key: python-${{ steps.setup-python.outputs.python-version }}
39
44
  - name: Check formatting
40
45
  run: cargo fmt --all -- --check
41
46
  - name: Clippy
@@ -49,7 +54,8 @@ jobs:
49
54
  runs-on: ubuntu-latest
50
55
  steps:
51
56
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
52
- - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
57
+ - id: setup-python
58
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
53
59
  with:
54
60
  # Keep in sync with requires-python in pyproject.toml (PyO3 needs a
55
61
  # matching libpython for linking the test binary).
@@ -59,6 +65,10 @@ jobs:
59
65
  # A commit pin does not get the branch-name default of stable.
60
66
  toolchain: stable
61
67
  - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
68
+ with:
69
+ # pyo3-build-config caches the interpreter path; a runner Python patch
70
+ # bump (e.g. 3.14.8 -> 3.14.9) otherwise leaves a stale -L path.
71
+ key: python-${{ steps.setup-python.outputs.python-version }}
62
72
  - name: Run tests
63
73
  run: cargo test
64
74
  env:
@@ -66,19 +76,27 @@ jobs:
66
76
  PYO3_PYTHON: python
67
77
 
68
78
  python-test:
69
- name: python test
79
+ name: python test (${{ matrix.python-version }})
70
80
  runs-on: ubuntu-latest
81
+ strategy:
82
+ fail-fast: false
83
+ matrix:
84
+ # Keep in sync with requires-python in pyproject.toml.
85
+ python-version: ["3.13", "3.14", "3.15"]
71
86
  steps:
72
87
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
73
- - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
88
+ - id: setup-python
89
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
74
90
  with:
75
- # Keep in sync with requires-python in pyproject.toml.
76
- python-version: "3.14"
91
+ python-version: ${{ matrix.python-version }}
92
+ allow-prereleases: true
77
93
  - uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master
78
94
  with:
79
95
  # A commit pin does not get the branch-name default of stable.
80
96
  toolchain: stable
81
97
  - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
98
+ with:
99
+ key: python-${{ steps.setup-python.outputs.python-version }}
82
100
  - name: Install dev dependencies
83
101
  run: |
84
102
  python -m venv .venv
@@ -114,7 +132,7 @@ jobs:
114
132
  target: ppc64le
115
133
  steps:
116
134
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
117
- - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
135
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
118
136
  with:
119
137
  python-version: 3.x
120
138
  - name: Build wheels
@@ -147,7 +165,7 @@ jobs:
147
165
  target: armv7
148
166
  steps:
149
167
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
150
- - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
168
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
151
169
  with:
152
170
  python-version: 3.x
153
171
  - name: Build wheels
@@ -176,9 +194,12 @@ jobs:
176
194
  target: x86
177
195
  steps:
178
196
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
179
- - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
197
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
180
198
  with:
181
- python-version: 3.x
199
+ python-version: |
200
+ 3.x
201
+ 3.15
202
+ allow-prereleases: true
182
203
  architecture: ${{ matrix.platform.target }}
183
204
  - name: Build wheels
184
205
  uses: PyO3/maturin-action@v1
@@ -205,9 +226,12 @@ jobs:
205
226
  target: aarch64
206
227
  steps:
207
228
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
208
- - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
229
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
209
230
  with:
210
- python-version: 3.x
231
+ python-version: |
232
+ 3.x
233
+ 3.15
234
+ allow-prereleases: true
211
235
  - name: Build wheels
212
236
  uses: PyO3/maturin-action@v1
213
237
  with:
@@ -259,7 +283,7 @@ jobs:
259
283
  subject-path: "wheels-*/*"
260
284
  - name: Install uv
261
285
  if: ${{ startsWith(github.ref, 'refs/tags/') }}
262
- uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
286
+ uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
263
287
  - name: Publish to PyPI
264
288
  if: ${{ startsWith(github.ref, 'refs/tags/') }}
265
289
  run: uv publish --trusted-publishing always 'wheels-*/*'
@@ -14,7 +14,7 @@ dependencies = [
14
14
 
15
15
  [[package]]
16
16
  name = "dockerfile-analyzer"
17
- version = "0.4.3"
17
+ version = "0.4.5"
18
18
  dependencies = [
19
19
  "docker-image",
20
20
  "parse-dockerfile",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "dockerfile-analyzer"
3
- version = "0.4.3"
3
+ version = "0.4.5"
4
4
  edition = "2024"
5
5
  readme = "README.md"
6
6
 
@@ -1,8 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dockerfile-analyzer
3
- Version: 0.4.3
3
+ Version: 0.4.5
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: Programming Language :: Python :: 3 :: Only
8
+ Classifier: Programming Language :: Python :: 3.13
9
+ Classifier: Programming Language :: Python :: 3.14
10
+ Classifier: Programming Language :: Python :: 3.15
6
11
  License-File: LICENSE
7
12
  Summary: Analyzes Dockerfiles and provides comprehensive insights including stage information, base images, multistage build analysis, instruction statistics, environment variables, labels, arguments, and exposed ports.
8
13
  License-Expression: MIT
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ["maturin>=1.9,<2.0"]
2
+ requires = ["maturin>=1.16,<2.0"]
3
3
  build-backend = "maturin"
4
4
 
5
5
  [project]
@@ -9,6 +9,11 @@ requires-python = ">=3.13"
9
9
  classifiers = [
10
10
  "Programming Language :: Rust",
11
11
  "Programming Language :: Python :: Implementation :: CPython",
12
+ "Programming Language :: Python :: 3",
13
+ "Programming Language :: Python :: 3 :: Only",
14
+ "Programming Language :: Python :: 3.13",
15
+ "Programming Language :: Python :: 3.14",
16
+ "Programming Language :: Python :: 3.15",
12
17
  ]
13
18
  license = "MIT"
14
19
  license-files = ["LICEN[CS]E*"]
@@ -0,0 +1,2 @@
1
+ maturin>=1.16.0
2
+ pytest>=9.1.1
@@ -1,2 +0,0 @@
1
- maturin>=1.14.0
2
- pytest>=9.1.1