enderecobr 0.0.3__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 (35) hide show
  1. enderecobr-0.0.3/.github/workflows/maturin.yml +284 -0
  2. enderecobr-0.0.3/.gitignore +3 -0
  3. enderecobr-0.0.3/Cargo.lock +3685 -0
  4. enderecobr-0.0.3/Cargo.toml +42 -0
  5. enderecobr-0.0.3/LICENSE.md +21 -0
  6. enderecobr-0.0.3/Makefile +34 -0
  7. enderecobr-0.0.3/PKG-INFO +26 -0
  8. enderecobr-0.0.3/README.md +14 -0
  9. enderecobr-0.0.3/bindings/python/.gitignore +217 -0
  10. enderecobr-0.0.3/bindings/python/Cargo.lock +247 -0
  11. enderecobr-0.0.3/bindings/python/Cargo.toml +17 -0
  12. enderecobr-0.0.3/bindings/python/enderecobr/__init__.py +1 -0
  13. enderecobr-0.0.3/bindings/python/enderecobr/enderecobr.pyi +8 -0
  14. enderecobr-0.0.3/bindings/python/enderecobr/tests/test_geral.py +32 -0
  15. enderecobr-0.0.3/bindings/python/src/lib.rs +221 -0
  16. enderecobr-0.0.3/bindings/python/uv.lock +441 -0
  17. enderecobr-0.0.3/enderecobr/__init__.py +1 -0
  18. enderecobr-0.0.3/enderecobr/enderecobr.pyi +8 -0
  19. enderecobr-0.0.3/enderecobr/tests/test_geral.py +32 -0
  20. enderecobr-0.0.3/pyproject.toml +53 -0
  21. enderecobr-0.0.3/src/bairro.rs +197 -0
  22. enderecobr-0.0.3/src/bin/padronizar.rs +31 -0
  23. enderecobr-0.0.3/src/bin/separacao-lote.rs +130 -0
  24. enderecobr-0.0.3/src/bin/teste-comparativo.rs +88 -0
  25. enderecobr-0.0.3/src/cep.rs +122 -0
  26. enderecobr-0.0.3/src/complemento.rs +290 -0
  27. enderecobr-0.0.3/src/data/municipios.csv +5571 -0
  28. enderecobr-0.0.3/src/data/tagger.crf +0 -0
  29. enderecobr-0.0.3/src/estado.rs +309 -0
  30. enderecobr-0.0.3/src/lib.rs +264 -0
  31. enderecobr-0.0.3/src/logradouro.rs +314 -0
  32. enderecobr-0.0.3/src/municipio.rs +118 -0
  33. enderecobr-0.0.3/src/numero.rs +208 -0
  34. enderecobr-0.0.3/src/separador_endereco.rs +194 -0
  35. enderecobr-0.0.3/src/tipo_logradouro.rs +423 -0
@@ -0,0 +1,284 @@
1
+ # This file is autogenerated by maturin v1.10.1
2
+ # To update, run
3
+ #
4
+ # maturin generate-ci -o .github/workflows/maturin.yml -m bindings/python/Cargo.toml --pytest github
5
+ #
6
+ name: CI
7
+
8
+ on:
9
+ push:
10
+ branches:
11
+ - main
12
+ - master
13
+ tags:
14
+ - '*'
15
+ pull_request:
16
+ workflow_dispatch:
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ jobs:
22
+ linux:
23
+ runs-on: ${{ matrix.platform.runner }}
24
+ strategy:
25
+ matrix:
26
+ platform:
27
+ - runner: ubuntu-22.04
28
+ target: x86_64
29
+ - runner: ubuntu-22.04
30
+ target: x86
31
+ - runner: ubuntu-22.04
32
+ target: aarch64
33
+ - runner: ubuntu-22.04
34
+ target: armv7
35
+ - runner: ubuntu-22.04
36
+ target: s390x
37
+ - runner: ubuntu-22.04
38
+ target: ppc64le
39
+ steps:
40
+ - uses: actions/checkout@v4
41
+ - uses: actions/setup-python@v5
42
+ with:
43
+ python-version: 3.x
44
+ - name: Build wheels
45
+ uses: PyO3/maturin-action@v1
46
+ with:
47
+ target: ${{ matrix.platform.target }}
48
+ args: --release --out dist --manifest-path bindings/python/Cargo.toml
49
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
50
+ manylinux: auto
51
+ - name: Build free-threaded wheels
52
+ uses: PyO3/maturin-action@v1
53
+ with:
54
+ target: ${{ matrix.platform.target }}
55
+ args: --release --out dist --manifest-path bindings/python/Cargo.toml -i python3.13t
56
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
57
+ manylinux: auto
58
+ - name: Upload wheels
59
+ uses: actions/upload-artifact@v4
60
+ with:
61
+ name: wheels-linux-${{ matrix.platform.target }}
62
+ path: dist
63
+ - name: pytest
64
+ if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
65
+ shell: bash
66
+ run: |
67
+ set -e
68
+ python3 -m venv .venv
69
+ source .venv/bin/activate
70
+ pip install enderecobr --find-links dist --force-reinstall
71
+ pip install pytest
72
+ cd bindings/python && pytest
73
+ - name: pytest
74
+ if: ${{ !startsWith(matrix.platform.target, 'x86') && matrix.platform.target != 'ppc64' }}
75
+ uses: uraimo/run-on-arch-action@v2
76
+ with:
77
+ arch: ${{ matrix.platform.target }}
78
+ distro: ubuntu22.04
79
+ githubToken: ${{ github.token }}
80
+ install: |
81
+ apt-get update
82
+ apt-get install -y --no-install-recommends python3 python3-pip
83
+ pip3 install -U pip pytest
84
+ run: |
85
+ set -e
86
+ pip3 install enderecobr --find-links dist --force-reinstall
87
+ cd bindings/python && pytest
88
+
89
+ musllinux:
90
+ runs-on: ${{ matrix.platform.runner }}
91
+ strategy:
92
+ matrix:
93
+ platform:
94
+ - runner: ubuntu-22.04
95
+ target: x86_64
96
+ - runner: ubuntu-22.04
97
+ target: x86
98
+ - runner: ubuntu-22.04
99
+ target: aarch64
100
+ - runner: ubuntu-22.04
101
+ target: armv7
102
+ steps:
103
+ - uses: actions/checkout@v4
104
+ - uses: actions/setup-python@v5
105
+ with:
106
+ python-version: 3.x
107
+ - name: Build wheels
108
+ uses: PyO3/maturin-action@v1
109
+ with:
110
+ target: ${{ matrix.platform.target }}
111
+ args: --release --out dist --manifest-path bindings/python/Cargo.toml
112
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
113
+ manylinux: musllinux_1_2
114
+ - name: Build free-threaded wheels
115
+ uses: PyO3/maturin-action@v1
116
+ with:
117
+ target: ${{ matrix.platform.target }}
118
+ args: --release --out dist --manifest-path bindings/python/Cargo.toml -i python3.13t
119
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
120
+ manylinux: musllinux_1_2
121
+ - name: Upload wheels
122
+ uses: actions/upload-artifact@v4
123
+ with:
124
+ name: wheels-musllinux-${{ matrix.platform.target }}
125
+ path: dist
126
+ - name: pytest
127
+ if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
128
+ uses: addnab/docker-run-action@v3
129
+ with:
130
+ image: alpine:latest
131
+ options: -v ${{ github.workspace }}:/io -w /io
132
+ run: |
133
+ set -e
134
+ apk add py3-pip py3-virtualenv
135
+ python3 -m virtualenv .venv
136
+ source .venv/bin/activate
137
+ pip install enderecobr --no-index --find-links dist --force-reinstall
138
+ pip install pytest
139
+ cd bindings/python && pytest
140
+ - name: pytest
141
+ if: ${{ !startsWith(matrix.platform.target, 'x86') }}
142
+ uses: uraimo/run-on-arch-action@v2
143
+ with:
144
+ arch: ${{ matrix.platform.target }}
145
+ distro: alpine_latest
146
+ githubToken: ${{ github.token }}
147
+ install: |
148
+ apk add py3-virtualenv
149
+ run: |
150
+ set -e
151
+ python3 -m virtualenv .venv
152
+ source .venv/bin/activate
153
+ pip install pytest
154
+ pip install enderecobr --find-links dist --force-reinstall
155
+ cd bindings/python && pytest
156
+
157
+ windows:
158
+ runs-on: ${{ matrix.platform.runner }}
159
+ strategy:
160
+ matrix:
161
+ platform:
162
+ - runner: windows-latest
163
+ target: x64
164
+ - runner: windows-latest
165
+ target: x86
166
+ steps:
167
+ - uses: actions/checkout@v4
168
+ - uses: actions/setup-python@v5
169
+ with:
170
+ python-version: 3.x
171
+ architecture: ${{ matrix.platform.target }}
172
+ - name: Build wheels
173
+ uses: PyO3/maturin-action@v1
174
+ with:
175
+ target: ${{ matrix.platform.target }}
176
+ args: --release --out dist --manifest-path bindings/python/Cargo.toml
177
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
178
+ - uses: actions/setup-python@v5
179
+ with:
180
+ python-version: 3.13t
181
+ architecture: ${{ matrix.platform.target }}
182
+ - name: Build free-threaded wheels
183
+ uses: PyO3/maturin-action@v1
184
+ with:
185
+ target: ${{ matrix.platform.target }}
186
+ args: --release --out dist --manifest-path bindings/python/Cargo.toml -i python3.13t
187
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
188
+ - name: Upload wheels
189
+ uses: actions/upload-artifact@v4
190
+ with:
191
+ name: wheels-windows-${{ matrix.platform.target }}
192
+ path: dist
193
+ - name: pytest
194
+ if: ${{ !startsWith(matrix.platform.target, 'aarch64') }}
195
+ shell: bash
196
+ run: |
197
+ set -e
198
+ python3 -m venv .venv
199
+ source .venv/Scripts/activate
200
+ pip install enderecobr --find-links dist --force-reinstall
201
+ pip install pytest
202
+ cd bindings/python && pytest
203
+
204
+ macos:
205
+ runs-on: ${{ matrix.platform.runner }}
206
+ strategy:
207
+ matrix:
208
+ platform:
209
+ - runner: macos-13
210
+ target: x86_64
211
+ - runner: macos-14
212
+ target: aarch64
213
+ steps:
214
+ - uses: actions/checkout@v4
215
+ - uses: actions/setup-python@v5
216
+ with:
217
+ python-version: 3.x
218
+ - name: Build wheels
219
+ uses: PyO3/maturin-action@v1
220
+ with:
221
+ target: ${{ matrix.platform.target }}
222
+ args: --release --out dist --manifest-path bindings/python/Cargo.toml
223
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
224
+ - name: Build free-threaded wheels
225
+ uses: PyO3/maturin-action@v1
226
+ with:
227
+ target: ${{ matrix.platform.target }}
228
+ args: --release --out dist --manifest-path bindings/python/Cargo.toml -i python3.13t
229
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
230
+ - name: Upload wheels
231
+ uses: actions/upload-artifact@v4
232
+ with:
233
+ name: wheels-macos-${{ matrix.platform.target }}
234
+ path: dist
235
+ - name: pytest
236
+ run: |
237
+ set -e
238
+ python3 -m venv .venv
239
+ source .venv/bin/activate
240
+ pip install enderecobr --find-links dist --force-reinstall
241
+ pip install pytest
242
+ cd bindings/python && pytest
243
+
244
+ sdist:
245
+ runs-on: ubuntu-latest
246
+ steps:
247
+ - uses: actions/checkout@v4
248
+ - name: Build sdist
249
+ uses: PyO3/maturin-action@v1
250
+ with:
251
+ command: sdist
252
+ args: --out dist --manifest-path bindings/python/Cargo.toml
253
+ - name: Upload sdist
254
+ uses: actions/upload-artifact@v4
255
+ with:
256
+ name: wheels-sdist
257
+ path: dist
258
+
259
+ release:
260
+ name: Release
261
+ runs-on: ubuntu-latest
262
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
263
+ needs: [linux, musllinux, windows, macos, sdist]
264
+ permissions:
265
+ # Use to sign the release artifacts
266
+ id-token: write
267
+ # Used to upload release artifacts
268
+ contents: write
269
+ # Used to generate artifact attestation
270
+ attestations: write
271
+ steps:
272
+ - uses: actions/download-artifact@v4
273
+ - name: Generate artifact attestation
274
+ uses: actions/attest-build-provenance@v2
275
+ with:
276
+ subject-path: 'wheels-*/*'
277
+ - name: Publish to PyPI
278
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
279
+ uses: PyO3/maturin-action@v1
280
+ env:
281
+ MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
282
+ with:
283
+ command: upload
284
+ args: --non-interactive --skip-existing wheels-*/*
@@ -0,0 +1,3 @@
1
+ target/
2
+ /diff
3
+ *.parquet