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