ignore-python 0.3.3__tar.gz → 0.4.1__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.
@@ -1,7 +1,7 @@
1
- # This file is autogenerated by maturin v1.12.6
1
+ # This file is autogenerated by maturin v1.14.1
2
2
  # To update, run
3
3
  #
4
- # maturin generate-ci github --pytest
4
+ # maturin generate-ci github
5
5
  #
6
6
  name: CI
7
7
 
@@ -40,7 +40,7 @@ jobs:
40
40
  - uses: actions/checkout@v6
41
41
  - uses: actions/setup-python@v6
42
42
  with:
43
- python-version: 3.x
43
+ python-version: "3.9"
44
44
  - name: Build wheels
45
45
  uses: PyO3/maturin-action@v1
46
46
  with:
@@ -53,30 +53,35 @@ jobs:
53
53
  with:
54
54
  name: wheels-linux-${{ matrix.platform.target }}
55
55
  path: dist
56
+ - uses: astral-sh/setup-uv@v7
57
+ if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
56
58
  - name: pytest
57
59
  if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
58
60
  shell: bash
59
61
  run: |
60
62
  set -e
61
- python3 -m venv .venv
63
+ uv venv .venv
62
64
  source .venv/bin/activate
63
- pip install ignore-python --find-links dist --force-reinstall
64
- pip install pytest
65
+ uv pip install ignore-python --no-index --no-deps --find-links dist --reinstall
66
+ uv pip install ignore-python pytest
65
67
  pytest
66
68
  - name: pytest
67
69
  if: ${{ !startsWith(matrix.platform.target, 'x86') && matrix.platform.target != 'ppc64' }}
68
- uses: uraimo/run-on-arch-action@v2
70
+ uses: uraimo/run-on-arch-action@v3
69
71
  with:
70
72
  arch: ${{ matrix.platform.target }}
71
- distro: ubuntu22.04
73
+ distro: ubuntu24.04
72
74
  githubToken: ${{ github.token }}
73
75
  install: |
74
76
  apt-get update
75
- apt-get install -y --no-install-recommends python3 python3-pip
76
- pip3 install -U pip pytest
77
+ apt-get install -y --no-install-recommends python3 python3-venv
77
78
  run: |
78
79
  set -e
79
- pip3 install ignore-python --find-links dist --force-reinstall
80
+ python3 -m venv .venv
81
+ source .venv/bin/activate
82
+ pip install pytest
83
+ pip install ignore-python --no-index --no-deps --find-links dist --force-reinstall
84
+ pip install ignore-python
80
85
  pytest
81
86
 
82
87
  musllinux:
@@ -96,7 +101,7 @@ jobs:
96
101
  - uses: actions/checkout@v6
97
102
  - uses: actions/setup-python@v6
98
103
  with:
99
- python-version: 3.x
104
+ python-version: "3.9"
100
105
  - name: Build wheels
101
106
  uses: PyO3/maturin-action@v1
102
107
  with:
@@ -117,13 +122,13 @@ jobs:
117
122
  apk add py3-pip py3-virtualenv
118
123
  python3 -m virtualenv .venv
119
124
  source .venv/bin/activate
120
- pip install ignore-python --no-index --find-links dist --force-reinstall
121
- pip install pytest
125
+ pip install ignore-python --no-index --no-deps --find-links dist --force-reinstall
126
+ pip install ignore-python pytest
122
127
  pytest
123
128
  '
124
129
  - name: pytest
125
130
  if: ${{ !startsWith(matrix.platform.target, 'x86') }}
126
- uses: uraimo/run-on-arch-action@v2
131
+ uses: uraimo/run-on-arch-action@v3
127
132
  with:
128
133
  arch: ${{ matrix.platform.target }}
129
134
  distro: alpine_latest
@@ -134,8 +139,8 @@ jobs:
134
139
  set -e
135
140
  python3 -m virtualenv .venv
136
141
  source .venv/bin/activate
137
- pip install pytest
138
- pip install ignore-python --find-links dist --force-reinstall
142
+ pip install ignore-python --no-index --no-deps --find-links dist --force-reinstall
143
+ pip install ignore-python pytest
139
144
  pytest
140
145
 
141
146
  windows:
@@ -156,7 +161,7 @@ jobs:
156
161
  - uses: actions/checkout@v6
157
162
  - uses: actions/setup-python@v6
158
163
  with:
159
- python-version: 3.13
164
+ python-version: "3.13"
160
165
  architecture: ${{ matrix.platform.python_arch }}
161
166
  - name: Build wheels
162
167
  uses: PyO3/maturin-action@v1
@@ -169,14 +174,15 @@ jobs:
169
174
  with:
170
175
  name: wheels-windows-${{ matrix.platform.target }}
171
176
  path: dist
177
+ - uses: astral-sh/setup-uv@v7
172
178
  - name: pytest
173
179
  shell: bash
174
180
  run: |
175
181
  set -e
176
- python3 -m venv .venv
182
+ uv venv .venv
177
183
  source .venv/Scripts/activate
178
- pip install ignore-python --find-links dist --force-reinstall
179
- pip install pytest
184
+ uv pip install ignore-python --no-index --no-deps --find-links dist --reinstall
185
+ uv pip install ignore-python pytest
180
186
  pytest
181
187
 
182
188
  macos:
@@ -192,7 +198,7 @@ jobs:
192
198
  - uses: actions/checkout@v6
193
199
  - uses: actions/setup-python@v6
194
200
  with:
195
- python-version: 3.x
201
+ python-version: "3.9"
196
202
  - name: Build wheels
197
203
  uses: PyO3/maturin-action@v1
198
204
  with:
@@ -204,13 +210,14 @@ jobs:
204
210
  with:
205
211
  name: wheels-macos-${{ matrix.platform.target }}
206
212
  path: dist
213
+ - uses: astral-sh/setup-uv@v7
207
214
  - name: pytest
208
215
  run: |
209
216
  set -e
210
- python3 -m venv .venv
217
+ uv venv .venv
211
218
  source .venv/bin/activate
212
- pip install ignore-python --find-links dist --force-reinstall
213
- pip install pytest
219
+ uv pip install ignore-python --no-index --no-deps --find-links dist --reinstall
220
+ uv pip install ignore-python pytest
214
221
  pytest
215
222
 
216
223
  sdist:
@@ -233,8 +240,7 @@ jobs:
233
240
  runs-on: ubuntu-latest
234
241
  if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
235
242
  needs: [linux, musllinux, windows, macos, sdist]
236
- environment:
237
- name: pypi
243
+ environment: pypi
238
244
  permissions:
239
245
  # Use to sign the release artifacts
240
246
  id-token: write
@@ -245,7 +251,7 @@ jobs:
245
251
  steps:
246
252
  - uses: actions/download-artifact@v7
247
253
  - name: Generate artifact attestation
248
- uses: actions/attest-build-provenance@v3
254
+ uses: actions/attest@v4
249
255
  with:
250
256
  subject-path: 'wheels-*/*'
251
257
  - name: Install uv
@@ -253,4 +259,4 @@ jobs:
253
259
  uses: astral-sh/setup-uv@v7
254
260
  - name: Publish to PyPI
255
261
  if: ${{ startsWith(github.ref, 'refs/tags/') }}
256
- run: uv publish 'wheels-*/*'
262
+ run: uv publish --trusted-publishing always 'wheels-*/*'
@@ -13,12 +13,12 @@ dependencies = [
13
13
 
14
14
  [[package]]
15
15
  name = "bstr"
16
- version = "1.12.1"
16
+ version = "1.12.3"
17
17
  source = "registry+https://github.com/rust-lang/crates.io-index"
18
- checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab"
18
+ checksum = "5cee35f73844aa3014bb606320a6c1f010249dbdf43342fe54b5a4f6a8ed4b79"
19
19
  dependencies = [
20
20
  "memchr",
21
- "serde",
21
+ "serde_core",
22
22
  ]
23
23
 
24
24
  [[package]]
@@ -67,9 +67,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
67
67
 
68
68
  [[package]]
69
69
  name = "ignore"
70
- version = "0.4.25"
70
+ version = "0.4.26"
71
71
  source = "registry+https://github.com/rust-lang/crates.io-index"
72
- checksum = "d3d782a365a015e0f5c04902246139249abf769125006fbe7649e2ee88169b4a"
72
+ checksum = "b915661dd01db3f05050265b2477bcc6527b3792388e2749b41623cc592be67d"
73
73
  dependencies = [
74
74
  "crossbeam-deque",
75
75
  "globset",
@@ -83,7 +83,7 @@ dependencies = [
83
83
 
84
84
  [[package]]
85
85
  name = "ignore-python"
86
- version = "0.3.3"
86
+ version = "0.4.1"
87
87
  dependencies = [
88
88
  "ignore",
89
89
  "pyo3",
@@ -91,27 +91,27 @@ dependencies = [
91
91
 
92
92
  [[package]]
93
93
  name = "libc"
94
- version = "0.2.183"
94
+ version = "0.2.186"
95
95
  source = "registry+https://github.com/rust-lang/crates.io-index"
96
- checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d"
96
+ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
97
97
 
98
98
  [[package]]
99
99
  name = "log"
100
- version = "0.4.29"
100
+ version = "0.4.33"
101
101
  source = "registry+https://github.com/rust-lang/crates.io-index"
102
- checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
102
+ checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
103
103
 
104
104
  [[package]]
105
105
  name = "memchr"
106
- version = "2.8.0"
106
+ version = "2.8.2"
107
107
  source = "registry+https://github.com/rust-lang/crates.io-index"
108
- checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
108
+ checksum = "88904434abc2901f197fe8cc55f0445e7ded921dba5911dad2e2b39b48e663c4"
109
109
 
110
110
  [[package]]
111
111
  name = "once_cell"
112
- version = "1.21.3"
112
+ version = "1.21.4"
113
113
  source = "registry+https://github.com/rust-lang/crates.io-index"
114
- checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
114
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
115
115
 
116
116
  [[package]]
117
117
  name = "portable-atomic"
@@ -130,9 +130,9 @@ dependencies = [
130
130
 
131
131
  [[package]]
132
132
  name = "pyo3"
133
- version = "0.28.2"
133
+ version = "0.29.0"
134
134
  source = "registry+https://github.com/rust-lang/crates.io-index"
135
- checksum = "cf85e27e86080aafd5a22eae58a162e133a589551542b3e5cee4beb27e54f8e1"
135
+ checksum = "cd274650b21d4bfc26a0a47587962c1edb425f69287324355cd040c3ea66071c"
136
136
  dependencies = [
137
137
  "libc",
138
138
  "once_cell",
@@ -144,18 +144,18 @@ dependencies = [
144
144
 
145
145
  [[package]]
146
146
  name = "pyo3-build-config"
147
- version = "0.28.2"
147
+ version = "0.29.0"
148
148
  source = "registry+https://github.com/rust-lang/crates.io-index"
149
- checksum = "8bf94ee265674bf76c09fa430b0e99c26e319c945d96ca0d5a8215f31bf81cf7"
149
+ checksum = "c5e2a7d2f0d013342f295c048ad19237add5154a55b1c5a254c0ec93d4109078"
150
150
  dependencies = [
151
151
  "target-lexicon",
152
152
  ]
153
153
 
154
154
  [[package]]
155
155
  name = "pyo3-ffi"
156
- version = "0.28.2"
156
+ version = "0.29.0"
157
157
  source = "registry+https://github.com/rust-lang/crates.io-index"
158
- checksum = "491aa5fc66d8059dd44a75f4580a2962c1862a1c2945359db36f6c2818b748dc"
158
+ checksum = "ca85c467da1bbc8d866eea5deff9cf29ea5f7785054a17da36e65bda9c05845b"
159
159
  dependencies = [
160
160
  "libc",
161
161
  "pyo3-build-config",
@@ -163,9 +163,9 @@ dependencies = [
163
163
 
164
164
  [[package]]
165
165
  name = "pyo3-macros"
166
- version = "0.28.2"
166
+ version = "0.29.0"
167
167
  source = "registry+https://github.com/rust-lang/crates.io-index"
168
- checksum = "f5d671734e9d7a43449f8480f8b38115df67bef8d21f76837fa75ee7aaa5e52e"
168
+ checksum = "9ac53762fd065daa3194dd09337a38bd793a188100fd1a9304c4ab312d901771"
169
169
  dependencies = [
170
170
  "proc-macro2",
171
171
  "pyo3-macros-backend",
@@ -175,22 +175,21 @@ dependencies = [
175
175
 
176
176
  [[package]]
177
177
  name = "pyo3-macros-backend"
178
- version = "0.28.2"
178
+ version = "0.29.0"
179
179
  source = "registry+https://github.com/rust-lang/crates.io-index"
180
- checksum = "22faaa1ce6c430a1f71658760497291065e6450d7b5dc2bcf254d49f66ee700a"
180
+ checksum = "4ca3a1557399783172dc5bf39cfca835157732532cba56b71d2292161e53b362"
181
181
  dependencies = [
182
182
  "heck",
183
183
  "proc-macro2",
184
- "pyo3-build-config",
185
184
  "quote",
186
185
  "syn",
187
186
  ]
188
187
 
189
188
  [[package]]
190
189
  name = "quote"
191
- version = "1.0.45"
190
+ version = "1.0.46"
192
191
  source = "registry+https://github.com/rust-lang/crates.io-index"
193
- checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
192
+ checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"
194
193
  dependencies = [
195
194
  "proc-macro2",
196
195
  ]
@@ -208,9 +207,9 @@ dependencies = [
208
207
 
209
208
  [[package]]
210
209
  name = "regex-syntax"
211
- version = "0.8.10"
210
+ version = "0.8.11"
212
211
  source = "registry+https://github.com/rust-lang/crates.io-index"
213
- checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
212
+ checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
214
213
 
215
214
  [[package]]
216
215
  name = "same-file"
@@ -221,15 +220,6 @@ dependencies = [
221
220
  "winapi-util",
222
221
  ]
223
222
 
224
- [[package]]
225
- name = "serde"
226
- version = "1.0.228"
227
- source = "registry+https://github.com/rust-lang/crates.io-index"
228
- checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
229
- dependencies = [
230
- "serde_core",
231
- ]
232
-
233
223
  [[package]]
234
224
  name = "serde_core"
235
225
  version = "1.0.228"
@@ -252,9 +242,9 @@ dependencies = [
252
242
 
253
243
  [[package]]
254
244
  name = "syn"
255
- version = "2.0.117"
245
+ version = "2.0.118"
256
246
  source = "registry+https://github.com/rust-lang/crates.io-index"
257
- checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
247
+ checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
258
248
  dependencies = [
259
249
  "proc-macro2",
260
250
  "quote",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "ignore-python"
3
- version = "0.3.3"
3
+ version = "0.4.1"
4
4
  edition = "2024"
5
5
  readme = "README.md"
6
6
 
@@ -10,5 +10,5 @@ name = "ignore"
10
10
  crate-type = ["cdylib"]
11
11
 
12
12
  [dependencies]
13
- pyo3 = "0.28.2"
13
+ pyo3 = "0.29.0"
14
14
  ignore-rust = { version = "0.4.25", package = "ignore" }
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ignore-python
3
- Version: 0.3.3
3
+ Version: 0.4.1
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
7
7
  License-File: LICENSE.txt
8
8
  Summary: Python bindings for the Rust crate ignore
9
9
  Keywords: python,gitignore,search,rust,extension,module,filesystem,recursively-search,fd,ripgrep,ignore
10
- Requires-Python: >=3.8
10
+ Requires-Python: >=3.9
11
11
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
12
12
  Project-URL: documentation, https://borsattoz.github.io/ignore-python
13
13
  Project-URL: repository, https://github.com/borsattoz/ignore-python
@@ -7,7 +7,7 @@ name = "ignore-python"
7
7
  description = "Python bindings for the Rust crate ignore"
8
8
  readme = "README.md"
9
9
  license = {file = "LICENSE.txt"}
10
- requires-python = ">=3.8"
10
+ requires-python = ">=3.9"
11
11
  keywords = ["python", "gitignore", "search", "rust", "extension", "module", "filesystem", "recursively-search", "fd", "ripgrep", "ignore"]
12
12
  classifiers = [
13
13
  "Programming Language :: Rust",
@@ -22,3 +22,8 @@ repository = "https://github.com/borsattoz/ignore-python"
22
22
 
23
23
  [tool.maturin]
24
24
  features = ["pyo3/extension-module"]
25
+
26
+ [tool.maturin.generate-ci.github]
27
+ pytest = true
28
+ trusted-publishing = true
29
+ publishing-environment = "pypi"
@@ -180,7 +180,7 @@ mod ignore {
180
180
 
181
181
  /// A directory entry.
182
182
  ///
183
- /// See https://docs.rs/ignore/0.4.25/ignore/struct.DirEntry.html for
183
+ /// See https://docs.rs/ignore/0.4.26/ignore/struct.DirEntry.html for
184
184
  /// more information.
185
185
  #[pyclass]
186
186
  struct DirEntry(ignore_rust::DirEntry);
@@ -198,7 +198,7 @@ mod ignore {
198
198
 
199
199
  /// WalkBuilder builds a recursive directory iterator for the directory given.
200
200
  ///
201
- /// See https://docs.rs/ignore/0.4.25/ignore/struct.WalkBuilder.html
201
+ /// See https://docs.rs/ignore/0.4.26/ignore/struct.WalkBuilder.html
202
202
  /// for more information.
203
203
  #[pyclass]
204
204
  struct WalkBuilder(ignore_rust::WalkBuilder);
@@ -318,7 +318,7 @@ mod ignore {
318
318
  /// Currently, `__next__` raises `IOError` only when a `ENOENT` error happens (e.g. broken
319
319
  /// symlinks when following them).
320
320
  ///
321
- /// See https://docs.rs/ignore/0.4.25/ignore/struct.Walk.html for more
321
+ /// See https://docs.rs/ignore/0.4.26/ignore/struct.Walk.html for more
322
322
  /// information.
323
323
  #[pyclass]
324
324
  struct Walk(ignore_rust::Walk);
@@ -346,13 +346,13 @@ mod ignore {
346
346
 
347
347
  /// Manages a set of overrides provided explicitly by the end user.
348
348
  ///
349
- /// See https://docs.rs/ignore/0.4.25/ignore/overrides/struct.Override.html for more information.
349
+ /// See https://docs.rs/ignore/0.4.26/ignore/overrides/struct.Override.html for more information.
350
350
  #[pyclass]
351
351
  pub struct Override(pub ignore_rust::overrides::Override);
352
352
 
353
353
  /// Builds a matcher for a set of glob overrides.
354
354
  ///
355
- /// See https://docs.rs/ignore/0.4.25/ignore/overrides/struct.OverrideBuilder.html for more information.
355
+ /// See https://docs.rs/ignore/0.4.26/ignore/overrides/struct.OverrideBuilder.html for more information.
356
356
  #[pyclass]
357
357
  pub struct OverrideBuilder(ignore_rust::overrides::OverrideBuilder);
358
358
 
File without changes
File without changes
File without changes
File without changes