renfe-cli 5.2.0__tar.gz → 6.2.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.
- {renfe_cli-5.2.0 → renfe_cli-6.2.0}/.github/workflows/CICD.yml +64 -84
- {renfe_cli-5.2.0 → renfe_cli-6.2.0}/CHANGELOG.md +13 -0
- renfe_cli-6.2.0/Cargo.lock +2139 -0
- {renfe_cli-5.2.0 → renfe_cli-6.2.0}/Cargo.toml +12 -7
- {renfe_cli-5.2.0 → renfe_cli-6.2.0}/PKG-INFO +69 -40
- {renfe_cli-5.2.0 → renfe_cli-6.2.0}/README.md +58 -32
- {renfe_cli-5.2.0 → renfe_cli-6.2.0}/pyproject.toml +7 -2
- renfe_cli-6.2.0/rust-toolchain.toml +7 -0
- renfe_cli-6.2.0/rustfmt.toml +24 -0
- renfe_cli-6.2.0/src/cache.rs +398 -0
- renfe_cli-6.2.0/src/cli.rs +251 -0
- {renfe_cli-5.2.0 → renfe_cli-6.2.0}/src/lib.rs +7 -5
- renfe_cli-6.2.0/src/main.rs +10 -0
- renfe_cli-6.2.0/src/renfe.rs +365 -0
- renfe_cli-6.2.0/src/router.rs +353 -0
- renfe_cli-5.2.0/Cargo.lock +0 -1677
- renfe_cli-5.2.0/src/cli.rs +0 -81
- renfe_cli-5.2.0/src/main.rs +0 -10
- renfe_cli-5.2.0/src/renfe.rs +0 -278
- {renfe_cli-5.2.0 → renfe_cli-6.2.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {renfe_cli-5.2.0 → renfe_cli-6.2.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {renfe_cli-5.2.0 → renfe_cli-6.2.0}/.gitignore +0 -0
- {renfe_cli-5.2.0 → renfe_cli-6.2.0}/CODEOWNERS +0 -0
- {renfe_cli-5.2.0 → renfe_cli-6.2.0}/LICENSE +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# This file is autogenerated by maturin
|
|
1
|
+
# This file is autogenerated by maturin
|
|
2
2
|
# To update, run
|
|
3
3
|
#
|
|
4
4
|
# maturin generate-ci github
|
|
@@ -10,9 +10,9 @@ on:
|
|
|
10
10
|
branches:
|
|
11
11
|
- main
|
|
12
12
|
tags:
|
|
13
|
-
-
|
|
13
|
+
- "*"
|
|
14
14
|
pull_request:
|
|
15
|
-
branches: [
|
|
15
|
+
branches: [main]
|
|
16
16
|
workflow_dispatch:
|
|
17
17
|
|
|
18
18
|
permissions:
|
|
@@ -22,39 +22,30 @@ env:
|
|
|
22
22
|
CARGO_TERM_COLOR: always
|
|
23
23
|
|
|
24
24
|
jobs:
|
|
25
|
-
|
|
26
25
|
test:
|
|
27
26
|
name: Tests
|
|
28
27
|
strategy:
|
|
29
28
|
matrix:
|
|
30
29
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
30
|
+
python: ["3.10", "3.x"]
|
|
31
31
|
runs-on: ${{ matrix.os }}
|
|
32
32
|
steps:
|
|
33
|
-
- uses: actions/checkout@
|
|
34
|
-
- uses: actions-
|
|
35
|
-
with:
|
|
36
|
-
profile: minimal
|
|
37
|
-
toolchain: stable
|
|
38
|
-
override: true
|
|
39
|
-
- uses: actions-rs/cargo@v1
|
|
33
|
+
- uses: actions/checkout@v7
|
|
34
|
+
- uses: actions/setup-python@v7
|
|
40
35
|
with:
|
|
41
|
-
|
|
36
|
+
python-version: ${{ matrix.python }}
|
|
37
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
38
|
+
- run: cargo test
|
|
42
39
|
|
|
43
40
|
fmt:
|
|
44
41
|
name: Rustfmt
|
|
45
42
|
runs-on: ubuntu-latest
|
|
46
43
|
steps:
|
|
47
|
-
- uses: actions/checkout@
|
|
48
|
-
- uses:
|
|
44
|
+
- uses: actions/checkout@v7
|
|
45
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
49
46
|
with:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
override: true
|
|
53
|
-
- run: rustup component add rustfmt
|
|
54
|
-
- uses: actions-rs/cargo@v1
|
|
55
|
-
with:
|
|
56
|
-
command: fmt
|
|
57
|
-
args: --all -- --check
|
|
47
|
+
components: rustfmt
|
|
48
|
+
- run: cargo fmt --all -- --check
|
|
58
49
|
|
|
59
50
|
clippy:
|
|
60
51
|
name: Build Clippy
|
|
@@ -63,52 +54,46 @@ jobs:
|
|
|
63
54
|
matrix:
|
|
64
55
|
rust:
|
|
65
56
|
- stable
|
|
66
|
-
- 1.
|
|
57
|
+
- 1.98.0
|
|
67
58
|
steps:
|
|
68
|
-
- uses: actions/checkout@
|
|
69
|
-
- uses:
|
|
59
|
+
- uses: actions/checkout@v7
|
|
60
|
+
- uses: dtolnay/rust-toolchain@master
|
|
70
61
|
with:
|
|
71
|
-
profile: minimal
|
|
72
62
|
toolchain: ${{ matrix.rust }}
|
|
73
|
-
|
|
74
|
-
- run:
|
|
75
|
-
- uses: actions-rs/cargo@v1
|
|
76
|
-
with:
|
|
77
|
-
command: clippy
|
|
78
|
-
args: -- -D warnings
|
|
63
|
+
components: clippy
|
|
64
|
+
- run: cargo clippy -- -D warnings
|
|
79
65
|
|
|
80
66
|
linux:
|
|
81
67
|
runs-on: ${{ matrix.platform.runner }}
|
|
82
68
|
strategy:
|
|
83
|
-
matrix:
|
|
69
|
+
matrix:
|
|
84
70
|
platform:
|
|
85
|
-
- runner: ubuntu-
|
|
71
|
+
- runner: ubuntu-24.04
|
|
86
72
|
target: x86_64
|
|
87
|
-
- runner: ubuntu-
|
|
73
|
+
- runner: ubuntu-24.04
|
|
88
74
|
target: x86
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
- runner: ubuntu-latest
|
|
75
|
+
- runner: ubuntu-24.04
|
|
76
|
+
target: aarch64
|
|
77
|
+
- runner: ubuntu-24.04
|
|
93
78
|
target: armv7
|
|
94
|
-
- runner: ubuntu-
|
|
79
|
+
- runner: ubuntu-24.04
|
|
95
80
|
target: s390x
|
|
96
|
-
- runner: ubuntu-
|
|
81
|
+
- runner: ubuntu-24.04
|
|
97
82
|
target: ppc64le
|
|
98
83
|
steps:
|
|
99
|
-
- uses: actions/checkout@
|
|
100
|
-
- uses: actions/setup-python@
|
|
84
|
+
- uses: actions/checkout@v7
|
|
85
|
+
- uses: actions/setup-python@v7
|
|
101
86
|
with:
|
|
102
87
|
python-version: 3.x
|
|
103
88
|
- name: Build wheels
|
|
104
|
-
uses: PyO3/maturin-action@v1
|
|
89
|
+
uses: PyO3/maturin-action@v1.51.0
|
|
105
90
|
with:
|
|
106
91
|
target: ${{ matrix.platform.target }}
|
|
107
92
|
args: --release --out dist
|
|
108
|
-
sccache:
|
|
93
|
+
sccache: "true"
|
|
109
94
|
manylinux: auto
|
|
110
95
|
- name: Upload wheels
|
|
111
|
-
uses: actions/upload-artifact@
|
|
96
|
+
uses: actions/upload-artifact@v7
|
|
112
97
|
with:
|
|
113
98
|
name: wheels-linux-${{ matrix.platform.target }}
|
|
114
99
|
path: dist
|
|
@@ -118,29 +103,28 @@ jobs:
|
|
|
118
103
|
strategy:
|
|
119
104
|
matrix:
|
|
120
105
|
platform:
|
|
121
|
-
- runner: ubuntu-
|
|
106
|
+
- runner: ubuntu-24.04
|
|
122
107
|
target: x86_64
|
|
123
|
-
- runner: ubuntu-
|
|
108
|
+
- runner: ubuntu-24.04
|
|
124
109
|
target: x86
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
- runner: ubuntu-latest
|
|
110
|
+
- runner: ubuntu-24.04
|
|
111
|
+
target: aarch64
|
|
112
|
+
- runner: ubuntu-24.04
|
|
129
113
|
target: armv7
|
|
130
114
|
steps:
|
|
131
|
-
- uses: actions/checkout@
|
|
132
|
-
- uses: actions/setup-python@
|
|
115
|
+
- uses: actions/checkout@v7
|
|
116
|
+
- uses: actions/setup-python@v7
|
|
133
117
|
with:
|
|
134
118
|
python-version: 3.x
|
|
135
119
|
- name: Build wheels
|
|
136
|
-
uses: PyO3/maturin-action@v1
|
|
120
|
+
uses: PyO3/maturin-action@v1.51.0
|
|
137
121
|
with:
|
|
138
122
|
target: ${{ matrix.platform.target }}
|
|
139
123
|
args: --release --out dist
|
|
140
|
-
sccache:
|
|
124
|
+
sccache: "true"
|
|
141
125
|
manylinux: musllinux_1_2
|
|
142
126
|
- name: Upload wheels
|
|
143
|
-
uses: actions/upload-artifact@
|
|
127
|
+
uses: actions/upload-artifact@v7
|
|
144
128
|
with:
|
|
145
129
|
name: wheels-musllinux-${{ matrix.platform.target }}
|
|
146
130
|
path: dist
|
|
@@ -150,24 +134,24 @@ jobs:
|
|
|
150
134
|
strategy:
|
|
151
135
|
matrix:
|
|
152
136
|
platform:
|
|
153
|
-
- runner: windows-
|
|
137
|
+
- runner: windows-2025
|
|
154
138
|
target: x64
|
|
155
|
-
- runner: windows-
|
|
139
|
+
- runner: windows-2025
|
|
156
140
|
target: x86
|
|
157
141
|
steps:
|
|
158
|
-
- uses: actions/checkout@
|
|
159
|
-
- uses: actions/setup-python@
|
|
142
|
+
- uses: actions/checkout@v7
|
|
143
|
+
- uses: actions/setup-python@v7
|
|
160
144
|
with:
|
|
161
145
|
python-version: 3.x
|
|
162
146
|
architecture: ${{ matrix.platform.target }}
|
|
163
147
|
- name: Build wheels
|
|
164
|
-
uses: PyO3/maturin-action@v1
|
|
148
|
+
uses: PyO3/maturin-action@v1.51.0
|
|
165
149
|
with:
|
|
166
150
|
target: ${{ matrix.platform.target }}
|
|
167
151
|
args: --release --out dist
|
|
168
|
-
sccache:
|
|
152
|
+
sccache: "true"
|
|
169
153
|
- name: Upload wheels
|
|
170
|
-
uses: actions/upload-artifact@
|
|
154
|
+
uses: actions/upload-artifact@v7
|
|
171
155
|
with:
|
|
172
156
|
name: wheels-windows-${{ matrix.platform.target }}
|
|
173
157
|
path: dist
|
|
@@ -177,23 +161,23 @@ jobs:
|
|
|
177
161
|
strategy:
|
|
178
162
|
matrix:
|
|
179
163
|
platform:
|
|
180
|
-
- runner: macos-
|
|
164
|
+
- runner: macos-26-intel
|
|
181
165
|
target: x86_64
|
|
182
|
-
- runner: macos-
|
|
166
|
+
- runner: macos-26
|
|
183
167
|
target: aarch64
|
|
184
168
|
steps:
|
|
185
|
-
- uses: actions/checkout@
|
|
186
|
-
- uses: actions/setup-python@
|
|
169
|
+
- uses: actions/checkout@v7
|
|
170
|
+
- uses: actions/setup-python@v7
|
|
187
171
|
with:
|
|
188
172
|
python-version: 3.x
|
|
189
173
|
- name: Build wheels
|
|
190
|
-
uses: PyO3/maturin-action@v1
|
|
174
|
+
uses: PyO3/maturin-action@v1.51.0
|
|
191
175
|
with:
|
|
192
176
|
target: ${{ matrix.platform.target }}
|
|
193
177
|
args: --release --out dist
|
|
194
|
-
sccache:
|
|
178
|
+
sccache: "true"
|
|
195
179
|
- name: Upload wheels
|
|
196
|
-
uses: actions/upload-artifact@
|
|
180
|
+
uses: actions/upload-artifact@v7
|
|
197
181
|
with:
|
|
198
182
|
name: wheels-macos-${{ matrix.platform.target }}
|
|
199
183
|
path: dist
|
|
@@ -201,14 +185,14 @@ jobs:
|
|
|
201
185
|
sdist:
|
|
202
186
|
runs-on: ubuntu-latest
|
|
203
187
|
steps:
|
|
204
|
-
- uses: actions/checkout@
|
|
188
|
+
- uses: actions/checkout@v7
|
|
205
189
|
- name: Build sdist
|
|
206
|
-
uses: PyO3/maturin-action@v1
|
|
190
|
+
uses: PyO3/maturin-action@v1.51.0
|
|
207
191
|
with:
|
|
208
192
|
command: sdist
|
|
209
193
|
args: --out dist
|
|
210
194
|
- name: Upload sdist
|
|
211
|
-
uses: actions/upload-artifact@
|
|
195
|
+
uses: actions/upload-artifact@v7
|
|
212
196
|
with:
|
|
213
197
|
name: wheels-sdist
|
|
214
198
|
path: dist
|
|
@@ -226,14 +210,14 @@ jobs:
|
|
|
226
210
|
# Used to generate artifact attestation
|
|
227
211
|
attestations: write
|
|
228
212
|
steps:
|
|
229
|
-
- uses: actions/download-artifact@
|
|
213
|
+
- uses: actions/download-artifact@v8
|
|
230
214
|
- name: Generate artifact attestation
|
|
231
|
-
uses: actions/attest
|
|
215
|
+
uses: actions/attest@v4
|
|
232
216
|
with:
|
|
233
|
-
subject-path:
|
|
217
|
+
subject-path: "wheels-*/*"
|
|
234
218
|
- name: Publish to PyPI
|
|
235
219
|
if: "startsWith(github.ref, 'refs/tags/')"
|
|
236
|
-
uses: PyO3/maturin-action@v1
|
|
220
|
+
uses: PyO3/maturin-action@v1.51.0
|
|
237
221
|
env:
|
|
238
222
|
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
239
223
|
with:
|
|
@@ -246,11 +230,7 @@ jobs:
|
|
|
246
230
|
needs: [release]
|
|
247
231
|
runs-on: ubuntu-latest
|
|
248
232
|
steps:
|
|
249
|
-
- uses: actions/checkout@
|
|
250
|
-
- uses:
|
|
251
|
-
with:
|
|
252
|
-
profile: minimal
|
|
253
|
-
toolchain: stable
|
|
254
|
-
override: true
|
|
233
|
+
- uses: actions/checkout@v7
|
|
234
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
255
235
|
- name: Publish
|
|
256
236
|
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v6.2.0 (2026-09-13)
|
|
4
|
+
|
|
5
|
+
* Allow selecting a station when a name matches multiple stations [#211](https://github.com/gerardcl/renfe-cli/issues/211)
|
|
6
|
+
|
|
7
|
+
## v6.1.0 (2026-09-12)
|
|
8
|
+
|
|
9
|
+
* Add GTFS data caching [#209](https://github.com/gerardcl/renfe-cli/issues/209)
|
|
10
|
+
* Add transfer infos [#208](https://github.com/gerardcl/renfe-cli/issues/208)
|
|
11
|
+
|
|
12
|
+
## v6.0.0 (2026-09-08)
|
|
13
|
+
|
|
14
|
+
* General maintenance and improvements on GTFS data handling and algorithms [#206](https://github.com/gerardcl/renfe-cli/issues/206)
|
|
15
|
+
|
|
3
16
|
## v5.2.0 (2024-10-03)
|
|
4
17
|
|
|
5
18
|
* Publish Rust crate binary via crates.io [#202](https://github.com/gerardcl/renfe-cli/issues/202)
|