polyline-rs 1.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.
@@ -0,0 +1,3 @@
1
+ # shellcheck disable=SC2148
2
+
3
+ use nix
@@ -0,0 +1,2 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -0,0 +1,226 @@
1
+ # This file is autogenerated by maturin v1.7.0
2
+ # To update, run
3
+ #
4
+ # maturin generate-ci github --platform all --zig
5
+ #
6
+ name: CI
7
+
8
+ on:
9
+ push:
10
+ branches:
11
+ - main
12
+ tags:
13
+ - "*"
14
+ pull_request:
15
+ branches:
16
+ - main
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ jobs:
22
+ test:
23
+ name: Run tests
24
+ runs-on: ${{ matrix.runner }}
25
+ strategy:
26
+ matrix:
27
+ runner:
28
+ - ubuntu-latest
29
+ - macos-latest
30
+ steps:
31
+ - uses: actions/checkout@v4
32
+ - uses: dtolnay/rust-toolchain@stable
33
+ - uses: cachix/install-nix-action@v30
34
+ with:
35
+ nix_path: nixpkgs=channel:nixpkgs-24.05-darwin
36
+
37
+ - name: Generate cache key
38
+ run: |
39
+ nixpkgs_hash=$(egrep -o 'archive/[0-9a-f]{40}\.tar\.gz' shell.nix | cut -d'/' -f2 | cut -d'.' -f1)
40
+ echo "CACHE_KEY=${{ runner.os }}-$nixpkgs_hash" >> $GITHUB_ENV
41
+
42
+ - name: Cache Nix store
43
+ uses: actions/cache@v4
44
+ id: nix-cache
45
+ with:
46
+ key: nix-${{ env.CACHE_KEY }}
47
+ path: /tmp/nix-cache
48
+
49
+ - name: Import Nix store cache
50
+ if: steps.nix-cache.outputs.cache-hit == 'true'
51
+ run: |
52
+ nix-store --import < /tmp/nix-cache
53
+
54
+ - name: Cache Python packages
55
+ uses: actions/cache@v4
56
+ with:
57
+ key: python-${{ env.CACHE_KEY }}-${{ hashFiles('uv.lock') }}
58
+ path: ~/.cache/uv
59
+
60
+ - name: Assert tag name matches version
61
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
62
+ run: |
63
+ nix-shell --run "uv tree 2>&1 | grep -o 'polyline-rs v.*' | sed 's/polyline-rs v//' > version.txt"
64
+ version=$(cat version.txt)
65
+ tag_name=${{ github.ref_name }}
66
+ if [ "$version" != "$tag_name" ]; then
67
+ echo "Tag name mismatch: $version != $tag_name"
68
+ exit 1
69
+ fi
70
+
71
+ - name: Run tests
72
+ run: |
73
+ nix-shell --run run-tests
74
+
75
+ - name: Export Nix store cache
76
+ if: steps.nix-cache.outputs.cache-hit != 'true'
77
+ run: |
78
+ nix-store --export $(find /nix/store -maxdepth 1 -name '*-*') > /tmp/nix-cache
79
+
80
+ linux:
81
+ runs-on: ${{ matrix.platform.runner }}
82
+ if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')"
83
+ needs: test
84
+ strategy:
85
+ matrix:
86
+ platform:
87
+ - runner: ubuntu-latest
88
+ target: x86_64
89
+ - runner: ubuntu-latest
90
+ target: aarch64
91
+ steps:
92
+ - uses: actions/checkout@v4
93
+ - uses: actions/setup-python@v5
94
+ with:
95
+ python-version: 3.x
96
+ - name: Build wheels
97
+ uses: PyO3/maturin-action@v1
98
+ with:
99
+ target: ${{ matrix.platform.target }}
100
+ args: --release --out dist --zig
101
+ sccache: "true"
102
+ manylinux: auto
103
+ - name: Upload wheels
104
+ uses: actions/upload-artifact@v4
105
+ with:
106
+ name: wheels-linux-${{ matrix.platform.target }}
107
+ path: dist
108
+
109
+ musllinux:
110
+ runs-on: ${{ matrix.platform.runner }}
111
+ if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')"
112
+ needs: test
113
+ strategy:
114
+ matrix:
115
+ platform:
116
+ - runner: ubuntu-latest
117
+ target: x86_64
118
+ - runner: ubuntu-latest
119
+ target: aarch64
120
+ steps:
121
+ - uses: actions/checkout@v4
122
+ - uses: actions/setup-python@v5
123
+ with:
124
+ python-version: 3.x
125
+ - name: Build wheels
126
+ uses: PyO3/maturin-action@v1
127
+ with:
128
+ target: ${{ matrix.platform.target }}
129
+ args: --release --out dist
130
+ sccache: "true"
131
+ manylinux: musllinux_1_2
132
+ - name: Upload wheels
133
+ uses: actions/upload-artifact@v4
134
+ with:
135
+ name: wheels-musllinux-${{ matrix.platform.target }}
136
+ path: dist
137
+
138
+ windows:
139
+ runs-on: ${{ matrix.platform.runner }}
140
+ if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')"
141
+ needs: test
142
+ strategy:
143
+ matrix:
144
+ platform:
145
+ - runner: windows-latest
146
+ target: x64
147
+ steps:
148
+ - uses: actions/checkout@v4
149
+ - uses: actions/setup-python@v5
150
+ with:
151
+ python-version: 3.x
152
+ architecture: ${{ matrix.platform.target }}
153
+ - name: Build wheels
154
+ uses: PyO3/maturin-action@v1
155
+ with:
156
+ target: ${{ matrix.platform.target }}
157
+ args: --release --out dist
158
+ sccache: "true"
159
+ - name: Upload wheels
160
+ uses: actions/upload-artifact@v4
161
+ with:
162
+ name: wheels-windows-${{ matrix.platform.target }}
163
+ path: dist
164
+
165
+ macos:
166
+ runs-on: ${{ matrix.platform.runner }}
167
+ if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')"
168
+ needs: test
169
+ strategy:
170
+ matrix:
171
+ platform:
172
+ - runner: macos-12
173
+ target: x86_64
174
+ - runner: macos-14
175
+ target: aarch64
176
+ steps:
177
+ - uses: actions/checkout@v4
178
+ - uses: actions/setup-python@v5
179
+ with:
180
+ python-version: 3.x
181
+ - name: Build wheels
182
+ uses: PyO3/maturin-action@v1
183
+ with:
184
+ target: ${{ matrix.platform.target }}
185
+ args: --release --out dist
186
+ sccache: "true"
187
+ - name: Upload wheels
188
+ uses: actions/upload-artifact@v4
189
+ with:
190
+ name: wheels-macos-${{ matrix.platform.target }}
191
+ path: dist
192
+
193
+ sdist:
194
+ runs-on: ubuntu-latest
195
+ needs: test
196
+ steps:
197
+ - uses: actions/checkout@v4
198
+ - name: Build sdist
199
+ uses: PyO3/maturin-action@v1
200
+ with:
201
+ command: sdist
202
+ args: --out dist
203
+ - name: Upload sdist
204
+ uses: actions/upload-artifact@v4
205
+ with:
206
+ name: wheels-sdist
207
+ path: dist
208
+
209
+ release:
210
+ name: Release
211
+ runs-on: ubuntu-latest
212
+ if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')"
213
+ needs: [linux, musllinux, windows, macos, sdist]
214
+ environment:
215
+ name: pypi
216
+ url: https://pypi.org/p/polyline-rs
217
+ permissions:
218
+ id-token: write
219
+ steps:
220
+ - uses: actions/download-artifact@v4
221
+ with:
222
+ pattern: wheels-*
223
+ path: dist
224
+ merge-multiple: true
225
+ - name: Publish to PyPI
226
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,219 @@
1
+ # Created by https://www.toptal.com/developers/gitignore/api/direnv,python,visualstudiocode,rust
2
+ # Edit at https://www.toptal.com/developers/gitignore?templates=direnv,python,visualstudiocode,rust
3
+
4
+ ### direnv ###
5
+ .direnv
6
+ #.envrc
7
+
8
+ ### Python ###
9
+ # Byte-compiled / optimized / DLL files
10
+ __pycache__/
11
+ *.py[cod]
12
+ *$py.class
13
+
14
+ # C extensions
15
+ *.so
16
+
17
+ # Distribution / packaging
18
+ .Python
19
+ build/
20
+ develop-eggs/
21
+ dist/
22
+ downloads/
23
+ eggs/
24
+ .eggs/
25
+ lib/
26
+ lib64/
27
+ parts/
28
+ sdist/
29
+ var/
30
+ wheels/
31
+ share/python-wheels/
32
+ *.egg-info/
33
+ .installed.cfg
34
+ *.egg
35
+ MANIFEST
36
+
37
+ # PyInstaller
38
+ # Usually these files are written by a python script from a template
39
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
40
+ *.manifest
41
+ *.spec
42
+
43
+ # Installer logs
44
+ pip-log.txt
45
+ pip-delete-this-directory.txt
46
+
47
+ # Unit test / coverage reports
48
+ htmlcov/
49
+ .tox/
50
+ .nox/
51
+ .coverage
52
+ .coverage.*
53
+ .cache
54
+ nosetests.xml
55
+ coverage.xml
56
+ *.cover
57
+ *.py,cover
58
+ .hypothesis/
59
+ .pytest_cache/
60
+ cover/
61
+
62
+ # Translations
63
+ *.mo
64
+ *.pot
65
+
66
+ # Django stuff:
67
+ *.log
68
+ local_settings.py
69
+ db.sqlite3
70
+ db.sqlite3-journal
71
+
72
+ # Flask stuff:
73
+ instance/
74
+ .webassets-cache
75
+
76
+ # Scrapy stuff:
77
+ .scrapy
78
+
79
+ # Sphinx documentation
80
+ docs/_build/
81
+
82
+ # PyBuilder
83
+ .pybuilder/
84
+ target/
85
+
86
+ # Jupyter Notebook
87
+ .ipynb_checkpoints
88
+
89
+ # IPython
90
+ profile_default/
91
+ ipython_config.py
92
+
93
+ # pyenv
94
+ # For a library or package, you might want to ignore these files since the code is
95
+ # intended to run in multiple environments; otherwise, check them in:
96
+ # .python-version
97
+
98
+ # pipenv
99
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
100
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
101
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
102
+ # install all needed dependencies.
103
+ #Pipfile.lock
104
+
105
+ # poetry
106
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
107
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
108
+ # commonly ignored for libraries.
109
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
110
+ #poetry.lock
111
+
112
+ # pdm
113
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
114
+ #pdm.lock
115
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
116
+ # in version control.
117
+ # https://pdm.fming.dev/#use-with-ide
118
+ .pdm.toml
119
+
120
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121
+ __pypackages__/
122
+
123
+ # Celery stuff
124
+ celerybeat-schedule
125
+ celerybeat.pid
126
+
127
+ # SageMath parsed files
128
+ *.sage.py
129
+
130
+ # Environments
131
+ .env
132
+ .venv
133
+ env/
134
+ venv/
135
+ ENV/
136
+ env.bak/
137
+ venv.bak/
138
+
139
+ # Spyder project settings
140
+ .spyderproject
141
+ .spyproject
142
+
143
+ # Rope project settings
144
+ .ropeproject
145
+
146
+ # mkdocs documentation
147
+ /site
148
+
149
+ # mypy
150
+ .mypy_cache/
151
+ .dmypy.json
152
+ dmypy.json
153
+
154
+ # Pyre type checker
155
+ .pyre/
156
+
157
+ # pytype static type analyzer
158
+ .pytype/
159
+
160
+ # Cython debug symbols
161
+ cython_debug/
162
+
163
+ # PyCharm
164
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
167
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
168
+ #.idea/
169
+
170
+ ### Python Patch ###
171
+ # Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
172
+ #poetry.toml
173
+
174
+ # ruff
175
+ .ruff_cache/
176
+
177
+ # LSP config files
178
+ pyrightconfig.json
179
+
180
+ ### Rust ###
181
+ # Generated by Cargo
182
+ # will have compiled files and executables
183
+ debug/
184
+
185
+ # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
186
+ # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
187
+ Cargo.lock
188
+
189
+ # These are backup files generated by rustfmt
190
+ **/*.rs.bk
191
+
192
+ # MSVC Windows builds of rustc generate these, which store debugging information
193
+ *.pdb
194
+
195
+ ### VisualStudioCode ###
196
+ .vscode/*
197
+ !.vscode/settings.json
198
+ !.vscode/tasks.json
199
+ !.vscode/launch.json
200
+ !.vscode/extensions.json
201
+ !.vscode/*.code-snippets
202
+
203
+ # Local History for Visual Studio Code
204
+ .history/
205
+
206
+ # Built Visual Studio Code Extensions
207
+ *.vsix
208
+
209
+ ### VisualStudioCode Patch ###
210
+ # Ignore all local history of files
211
+ .history
212
+ .ionide
213
+
214
+ # End of https://www.toptal.com/developers/gitignore/api/direnv,python,visualstudiocode,rust
215
+
216
+ # Python version lock
217
+ .python-version
218
+
219
+ .intentionally-empty-file.*
@@ -0,0 +1,7 @@
1
+ {
2
+ "python.testing.pytestArgs": [
3
+ "tests"
4
+ ],
5
+ "python.testing.unittestEnabled": false,
6
+ "python.testing.pytestEnabled": true
7
+ }
@@ -0,0 +1,238 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 3
4
+
5
+ [[package]]
6
+ name = "approx"
7
+ version = "0.5.1"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"
10
+ dependencies = [
11
+ "num-traits",
12
+ ]
13
+
14
+ [[package]]
15
+ name = "autocfg"
16
+ version = "1.4.0"
17
+ source = "registry+https://github.com/rust-lang/crates.io-index"
18
+ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
19
+
20
+ [[package]]
21
+ name = "cfg-if"
22
+ version = "1.0.0"
23
+ source = "registry+https://github.com/rust-lang/crates.io-index"
24
+ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
25
+
26
+ [[package]]
27
+ name = "geo-types"
28
+ version = "0.7.13"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "9ff16065e5720f376fbced200a5ae0f47ace85fd70b7e54269790281353b6d61"
31
+ dependencies = [
32
+ "approx",
33
+ "num-traits",
34
+ "serde",
35
+ ]
36
+
37
+ [[package]]
38
+ name = "heck"
39
+ version = "0.5.0"
40
+ source = "registry+https://github.com/rust-lang/crates.io-index"
41
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
42
+
43
+ [[package]]
44
+ name = "indoc"
45
+ version = "2.0.5"
46
+ source = "registry+https://github.com/rust-lang/crates.io-index"
47
+ checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
48
+
49
+ [[package]]
50
+ name = "libc"
51
+ version = "0.2.161"
52
+ source = "registry+https://github.com/rust-lang/crates.io-index"
53
+ checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1"
54
+
55
+ [[package]]
56
+ name = "libm"
57
+ version = "0.2.11"
58
+ source = "registry+https://github.com/rust-lang/crates.io-index"
59
+ checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa"
60
+
61
+ [[package]]
62
+ name = "memoffset"
63
+ version = "0.9.1"
64
+ source = "registry+https://github.com/rust-lang/crates.io-index"
65
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
66
+ dependencies = [
67
+ "autocfg",
68
+ ]
69
+
70
+ [[package]]
71
+ name = "num-traits"
72
+ version = "0.2.19"
73
+ source = "registry+https://github.com/rust-lang/crates.io-index"
74
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
75
+ dependencies = [
76
+ "autocfg",
77
+ "libm",
78
+ ]
79
+
80
+ [[package]]
81
+ name = "once_cell"
82
+ version = "1.20.2"
83
+ source = "registry+https://github.com/rust-lang/crates.io-index"
84
+ checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"
85
+
86
+ [[package]]
87
+ name = "polyline"
88
+ version = "0.11.0"
89
+ source = "registry+https://github.com/rust-lang/crates.io-index"
90
+ checksum = "f19cbf429afe5a5186d4c6ca7b246b446b2d18919eefdddb521792d57c874f67"
91
+ dependencies = [
92
+ "geo-types",
93
+ ]
94
+
95
+ [[package]]
96
+ name = "polyline_rs"
97
+ version = "1.0.0"
98
+ dependencies = [
99
+ "geo-types",
100
+ "polyline",
101
+ "pyo3",
102
+ ]
103
+
104
+ [[package]]
105
+ name = "portable-atomic"
106
+ version = "1.9.0"
107
+ source = "registry+https://github.com/rust-lang/crates.io-index"
108
+ checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2"
109
+
110
+ [[package]]
111
+ name = "proc-macro2"
112
+ version = "1.0.89"
113
+ source = "registry+https://github.com/rust-lang/crates.io-index"
114
+ checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e"
115
+ dependencies = [
116
+ "unicode-ident",
117
+ ]
118
+
119
+ [[package]]
120
+ name = "pyo3"
121
+ version = "0.22.5"
122
+ source = "registry+https://github.com/rust-lang/crates.io-index"
123
+ checksum = "3d922163ba1f79c04bc49073ba7b32fd5a8d3b76a87c955921234b8e77333c51"
124
+ dependencies = [
125
+ "cfg-if",
126
+ "indoc",
127
+ "libc",
128
+ "memoffset",
129
+ "once_cell",
130
+ "portable-atomic",
131
+ "pyo3-build-config",
132
+ "pyo3-ffi",
133
+ "pyo3-macros",
134
+ "unindent",
135
+ ]
136
+
137
+ [[package]]
138
+ name = "pyo3-build-config"
139
+ version = "0.22.5"
140
+ source = "registry+https://github.com/rust-lang/crates.io-index"
141
+ checksum = "bc38c5feeb496c8321091edf3d63e9a6829eab4b863b4a6a65f26f3e9cc6b179"
142
+ dependencies = [
143
+ "once_cell",
144
+ "target-lexicon",
145
+ ]
146
+
147
+ [[package]]
148
+ name = "pyo3-ffi"
149
+ version = "0.22.5"
150
+ source = "registry+https://github.com/rust-lang/crates.io-index"
151
+ checksum = "94845622d88ae274d2729fcefc850e63d7a3ddff5e3ce11bd88486db9f1d357d"
152
+ dependencies = [
153
+ "libc",
154
+ "pyo3-build-config",
155
+ ]
156
+
157
+ [[package]]
158
+ name = "pyo3-macros"
159
+ version = "0.22.5"
160
+ source = "registry+https://github.com/rust-lang/crates.io-index"
161
+ checksum = "e655aad15e09b94ffdb3ce3d217acf652e26bbc37697ef012f5e5e348c716e5e"
162
+ dependencies = [
163
+ "proc-macro2",
164
+ "pyo3-macros-backend",
165
+ "quote",
166
+ "syn",
167
+ ]
168
+
169
+ [[package]]
170
+ name = "pyo3-macros-backend"
171
+ version = "0.22.5"
172
+ source = "registry+https://github.com/rust-lang/crates.io-index"
173
+ checksum = "ae1e3f09eecd94618f60a455a23def79f79eba4dc561a97324bf9ac8c6df30ce"
174
+ dependencies = [
175
+ "heck",
176
+ "proc-macro2",
177
+ "pyo3-build-config",
178
+ "quote",
179
+ "syn",
180
+ ]
181
+
182
+ [[package]]
183
+ name = "quote"
184
+ version = "1.0.37"
185
+ source = "registry+https://github.com/rust-lang/crates.io-index"
186
+ checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
187
+ dependencies = [
188
+ "proc-macro2",
189
+ ]
190
+
191
+ [[package]]
192
+ name = "serde"
193
+ version = "1.0.214"
194
+ source = "registry+https://github.com/rust-lang/crates.io-index"
195
+ checksum = "f55c3193aca71c12ad7890f1785d2b73e1b9f63a0bbc353c08ef26fe03fc56b5"
196
+ dependencies = [
197
+ "serde_derive",
198
+ ]
199
+
200
+ [[package]]
201
+ name = "serde_derive"
202
+ version = "1.0.214"
203
+ source = "registry+https://github.com/rust-lang/crates.io-index"
204
+ checksum = "de523f781f095e28fa605cdce0f8307e451cc0fd14e2eb4cd2e98a355b147766"
205
+ dependencies = [
206
+ "proc-macro2",
207
+ "quote",
208
+ "syn",
209
+ ]
210
+
211
+ [[package]]
212
+ name = "syn"
213
+ version = "2.0.85"
214
+ source = "registry+https://github.com/rust-lang/crates.io-index"
215
+ checksum = "5023162dfcd14ef8f32034d8bcd4cc5ddc61ef7a247c024a33e24e1f24d21b56"
216
+ dependencies = [
217
+ "proc-macro2",
218
+ "quote",
219
+ "unicode-ident",
220
+ ]
221
+
222
+ [[package]]
223
+ name = "target-lexicon"
224
+ version = "0.12.16"
225
+ source = "registry+https://github.com/rust-lang/crates.io-index"
226
+ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
227
+
228
+ [[package]]
229
+ name = "unicode-ident"
230
+ version = "1.0.13"
231
+ source = "registry+https://github.com/rust-lang/crates.io-index"
232
+ checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
233
+
234
+ [[package]]
235
+ name = "unindent"
236
+ version = "0.2.3"
237
+ source = "registry+https://github.com/rust-lang/crates.io-index"
238
+ checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce"
@@ -0,0 +1,16 @@
1
+ [package]
2
+ edition = "2021"
3
+ name = "polyline_rs"
4
+ version = "1.0.0"
5
+
6
+ [lib]
7
+ crate-type = ["cdylib"]
8
+ name = "polyline_rs"
9
+
10
+ [dependencies]
11
+ geo-types = "0.7.13"
12
+ polyline = "0.11.0"
13
+ pyo3 = { version = "0.22.5", features = ["abi3-py39", "extension-module"] }
14
+
15
+ [profile.release]
16
+ overflow-checks = true
@@ -0,0 +1,24 @@
1
+ This is free and unencumbered software released into the public domain.
2
+
3
+ Anyone is free to copy, modify, publish, use, compile, sell, or
4
+ distribute this software, either in source code form or as a compiled
5
+ binary, for any purpose, commercial or non-commercial, and by any
6
+ means.
7
+
8
+ In jurisdictions that recognize copyright laws, the author or authors
9
+ of this software dedicate any and all copyright interest in the
10
+ software to the public domain. We make this dedication for the benefit
11
+ of the public at large and to the detriment of our heirs and
12
+ successors. We intend this dedication to be an overt act of
13
+ relinquishment in perpetuity of all present and future rights to this
14
+ software under copyright law.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
23
+
24
+ For more information, please refer to <https://unlicense.org>
@@ -0,0 +1,57 @@
1
+ Metadata-Version: 2.3
2
+ Name: polyline-rs
3
+ Version: 1.0.0
4
+ Classifier: Development Status :: 5 - Production/Stable
5
+ Classifier: Intended Audience :: Developers
6
+ Classifier: License :: OSI Approved :: The Unlicense (Unlicense)
7
+ Classifier: Operating System :: OS Independent
8
+ Classifier: Programming Language :: Python :: 3.10
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: Programming Language :: Python :: 3.13
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: Implementation :: CPython
14
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
15
+ Classifier: Programming Language :: Rust
16
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
+ Classifier: Typing :: Typed
18
+ License-File: LICENSE
19
+ Summary: Fast Google Encoded Polyline encoding & decoding in Rust
20
+ Keywords: decoding,encoding,gis,google,mapbox,openstreetmap,polyline
21
+ Author-email: Kamil Monicz <kamil@monicz.dev>
22
+ Requires-Python: >=3.9
23
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
24
+ Project-URL: Issues, https://github.com/Zaczero/polyline-rs/issues
25
+ Project-URL: Repository, https://github.com/Zaczero/polyline-rs
26
+
27
+ # polyline-rs
28
+
29
+ [![PyPI - Python Version](https://shields.monicz.dev/pypi/pyversions/polyline-rs)](https://pypi.org/project/polyline-rs)
30
+ [![Liberapay Patrons](https://shields.monicz.dev/liberapay/patrons/Zaczero?logo=liberapay&label=Patrons)](https://liberapay.com/Zaczero/)
31
+ [![GitHub Sponsors](https://shields.monicz.dev/github/sponsors/Zaczero?logo=github&label=Sponsors&color=%23db61a2)](https://github.com/sponsors/Zaczero)
32
+
33
+ Fast Google Encoded Polyline encoding & decoding in Rust. A Python PyO3 wrapper for [polyline](https://crates.io/crates/polyline) with out-of-the-box support for both (lat, lon) and (lon, lat) coordinates.
34
+
35
+ ## Installation
36
+
37
+ The recommended installation method is through the PyPI package manager. The project is implemented in Rust and several pre-built binary wheels are available for Linux, macOS, and Windows, with support for both x64 and ARM architectures.
38
+
39
+ ```sh
40
+ pip install polyline-rs
41
+ ```
42
+
43
+ ## Basic usage
44
+
45
+ ```py
46
+ from polyline_rs import encode_latlon, encode_lonlat, decode_latlon, decode_lonlat
47
+
48
+ line = encode_latlon([(38.5, -120.2), (40.7, -120.95), (43.252, -126.453)], 5)
49
+ assert line == "_p~iF~ps|U_ulLnnqC_mqNvxq`@"
50
+
51
+ coords = decode_latlon(line, 5)
52
+ assert coords == [(38.5, -120.2), (40.7, -120.95), (43.252, -126.453)]
53
+
54
+ coords2 = decode_lonlat(line, 5)
55
+ assert coords2 == [(-120.2, 38.5), (-120.95, 40.7), (-126.453, 43.252)]
56
+ ```
57
+
@@ -0,0 +1,30 @@
1
+ # polyline-rs
2
+
3
+ [![PyPI - Python Version](https://shields.monicz.dev/pypi/pyversions/polyline-rs)](https://pypi.org/project/polyline-rs)
4
+ [![Liberapay Patrons](https://shields.monicz.dev/liberapay/patrons/Zaczero?logo=liberapay&label=Patrons)](https://liberapay.com/Zaczero/)
5
+ [![GitHub Sponsors](https://shields.monicz.dev/github/sponsors/Zaczero?logo=github&label=Sponsors&color=%23db61a2)](https://github.com/sponsors/Zaczero)
6
+
7
+ Fast Google Encoded Polyline encoding & decoding in Rust. A Python PyO3 wrapper for [polyline](https://crates.io/crates/polyline) with out-of-the-box support for both (lat, lon) and (lon, lat) coordinates.
8
+
9
+ ## Installation
10
+
11
+ The recommended installation method is through the PyPI package manager. The project is implemented in Rust and several pre-built binary wheels are available for Linux, macOS, and Windows, with support for both x64 and ARM architectures.
12
+
13
+ ```sh
14
+ pip install polyline-rs
15
+ ```
16
+
17
+ ## Basic usage
18
+
19
+ ```py
20
+ from polyline_rs import encode_latlon, encode_lonlat, decode_latlon, decode_lonlat
21
+
22
+ line = encode_latlon([(38.5, -120.2), (40.7, -120.95), (43.252, -126.453)], 5)
23
+ assert line == "_p~iF~ps|U_ulLnnqC_mqNvxq`@"
24
+
25
+ coords = decode_latlon(line, 5)
26
+ assert coords == [(38.5, -120.2), (40.7, -120.95), (43.252, -126.453)]
27
+
28
+ coords2 = decode_lonlat(line, 5)
29
+ assert coords2 == [(-120.2, 38.5), (-120.95, 40.7), (-126.453, 43.252)]
30
+ ```
@@ -0,0 +1,165 @@
1
+ [project]
2
+ authors = [{ name = "Kamil Monicz", email = "kamil@monicz.dev" }]
3
+ classifiers = [
4
+ "Development Status :: 5 - Production/Stable",
5
+ "Intended Audience :: Developers",
6
+ "License :: OSI Approved :: The Unlicense (Unlicense)",
7
+ "Operating System :: OS Independent",
8
+ "Programming Language :: Python :: 3.10",
9
+ "Programming Language :: Python :: 3.11",
10
+ "Programming Language :: Python :: 3.12",
11
+ "Programming Language :: Python :: 3.13",
12
+ "Programming Language :: Python :: 3.9",
13
+ "Programming Language :: Python :: Implementation :: CPython",
14
+ "Programming Language :: Python :: Implementation :: PyPy",
15
+ "Programming Language :: Rust",
16
+ "Topic :: Software Development :: Libraries :: Python Modules",
17
+ "Typing :: Typed",
18
+ ]
19
+ dependencies = []
20
+ description = "Fast Google Encoded Polyline encoding & decoding in Rust"
21
+ dynamic = ["version"]
22
+ keywords = [
23
+ "decoding",
24
+ "encoding",
25
+ "gis",
26
+ "google",
27
+ "mapbox",
28
+ "openstreetmap",
29
+ "polyline",
30
+ ]
31
+ name = "polyline-rs"
32
+ readme = "README.md"
33
+ requires-python = ">=3.9"
34
+
35
+ [project.urls]
36
+ Issues = "https://github.com/Zaczero/polyline-rs/issues"
37
+ Repository = "https://github.com/Zaczero/polyline-rs"
38
+
39
+ [build-system]
40
+ build-backend = "maturin"
41
+ requires = ["maturin>=1.7,<2.0"]
42
+
43
+ [tool.maturin]
44
+ features = ["pyo3/extension-module"]
45
+ module-name = "polyline_rs._lib"
46
+ python-source = "python"
47
+
48
+ [tool.uv]
49
+ dev-dependencies = ["pytest"]
50
+
51
+ [tool.ruff]
52
+ exclude = [
53
+ ".direnv",
54
+ ".git",
55
+ ".github",
56
+ ".pytest_cache",
57
+ ".ruff_cache",
58
+ ".venv",
59
+ ".vscode",
60
+ ]
61
+
62
+ indent-width = 4
63
+ line-length = 120
64
+ target-version = "py39"
65
+
66
+ [tool.ruff.lint]
67
+ # custom + https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
68
+ ignore = [
69
+ "B017", # assert-raises-exception
70
+ "COM812", # missing-trailing-comma
71
+ "COM819", # prohibited-trailing-comma
72
+ "D206", # indent-with-spaces
73
+ "D300", # triple-single-quotes
74
+ "E111", # indentation-with-invalid-multiple
75
+ "E114", # indentation-with-invalid-multiple-comment
76
+ "E117", # over-indented
77
+ "E501", # line-too-long
78
+ "ISC001", # single-line-implicit-string-concatenation
79
+ "ISC002", # multi-line-implicit-string-concatenation
80
+ "PT011", # pytest-raises-too-broad
81
+ "PYI021", # docstring-in-stub
82
+ "Q000", # bad-quotes-inline-string
83
+ "Q001", # bad-quotes-multiline-string
84
+ "Q002", # bad-quotes-docstring
85
+ "Q003", # avoidable-escaped-quote
86
+ "S101", # assert
87
+ "TRY003", # raise-vanilla-args
88
+ "W191", # tab-indentation
89
+ ]
90
+ # see https://docs.astral.sh/ruff/rules/ for rules documentation
91
+ select = [
92
+ "A", # flake8-builtins
93
+ "ARG", # flake8-unused-arguments
94
+ "ASYNC", # flake8-async
95
+ "B", # flake8-bugbear
96
+ "C4", # flake8-comprehensions
97
+ "DTZ", # flake8-datetimez
98
+ "E4", # pycodestyle
99
+ "E7",
100
+ "E9",
101
+ "F", # pyflakes
102
+ "FA", # flake8-future-annotations
103
+ "FLY", # flynt # "FURB", # refurb
104
+ "G", # flake8-logging-format
105
+ "I", # isort
106
+ "ICN", # flake8-import-conventions
107
+ "INT", # flake8-gettext
108
+ "ISC", # flake8-implicit-str-concat
109
+ "LOG", # flake8-logging
110
+ "N", # pep8-naming
111
+ "NPY", # numpy
112
+ "PERF", # perflint
113
+ "PIE", # flake8-pie
114
+ "PT", # flake8-pytest-style
115
+ "PTH", # flake8-use-pathlib
116
+ "PYI", # flake8-pyi
117
+ "Q", # flake8-quotes
118
+ "RSE", # flake8-raise
119
+ "RUF", # ruff
120
+ "S", # flake8-bandit
121
+ "SIM", # flake8-simplify
122
+ "SLF", # flake8-self
123
+ "SLOT", # flake8-slots
124
+ "T10", # flake8-debugger
125
+ "TID", # flake8-tidy-imports
126
+ "TRY", # tryceratops
127
+ "UP", # pyupgrade
128
+ "W6",
129
+ "YTT", # flake8-2020
130
+ ]
131
+
132
+ # allow fix for all enabled rules (when `--fix`) is provided.
133
+ fixable = ["ALL"]
134
+ unfixable = []
135
+
136
+ # allow unused variables when underscore-prefixed.
137
+ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
138
+
139
+ [tool.ruff.format]
140
+ indent-style = "space"
141
+ line-ending = "lf"
142
+ quote-style = "single"
143
+ skip-magic-trailing-comma = false
144
+
145
+ [tool.ruff.lint.flake8-builtins]
146
+ builtins-ignorelist = ["input"]
147
+
148
+ [tool.ruff.lint.flake8-quotes]
149
+ docstring-quotes = "double"
150
+ inline-quotes = "single"
151
+ multiline-quotes = "double"
152
+
153
+ [tool.ruff.lint.pylint]
154
+ max-args = 10
155
+
156
+ [tool.pyright]
157
+ include = ["python/polyline_rs", "tests"]
158
+ pythonPlatform = "All"
159
+ pythonVersion = "3.9"
160
+ strict = ["python/polyline_rs"]
161
+
162
+ [tool.pytest.ini_options]
163
+ addopts = "--quiet"
164
+ minversion = "6.0"
165
+ testpaths = ["tests"]
@@ -0,0 +1,8 @@
1
+ from polyline_rs._lib import decode_latlon, decode_lonlat, encode_latlon, encode_lonlat
2
+
3
+ __all__ = [
4
+ 'encode_lonlat',
5
+ 'encode_latlon',
6
+ 'decode_lonlat',
7
+ 'decode_latlon',
8
+ ]
@@ -0,0 +1,21 @@
1
+ from collections.abc import Sequence
2
+
3
+ def encode_lonlat(coordinates: Sequence[Sequence[float]], precision: int = 5) -> str:
4
+ """
5
+ Encode a sequence of (lon, lat) coordinates to a polyline string.
6
+ """
7
+
8
+ def encode_latlon(coordinates: Sequence[Sequence[float]], precision: int = 5) -> str:
9
+ """
10
+ Encode a sequence of (lat, lon) coordinates to a polyline string.
11
+ """
12
+
13
+ def decode_lonlat(polyline: str, precision: int = 5) -> list[tuple[float, float]]:
14
+ """
15
+ Decode a polyline string to a sequence of (lon, lat) coordinates.
16
+ """
17
+
18
+ def decode_latlon(polyline: str, precision: int = 5) -> list[tuple[float, float]]:
19
+ """
20
+ Decode a polyline string to a sequence of (lat, lon) coordinates.
21
+ """
File without changes
@@ -0,0 +1,51 @@
1
+ { isDevelopment ? true }:
2
+
3
+ let
4
+ # Update packages with `nixpkgs-update` command
5
+ pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/0fcb98acb6633445764dafe180e6833eb0f95208.tar.gz") { };
6
+
7
+ packages' = with pkgs; [
8
+ coreutils
9
+ python313
10
+ uv
11
+ ruff
12
+ maturin
13
+ (lib.optional stdenv.isDarwin libiconv)
14
+
15
+ (writeShellScriptBin "make" "maturin develop --uv")
16
+ (writeShellScriptBin "run-tests" ''
17
+ python -m pytest . \
18
+ --verbose \
19
+ --no-header
20
+ '')
21
+ (writeShellScriptBin "nixpkgs-update" ''
22
+ hash=$(
23
+ curl --silent --location \
24
+ https://prometheus.nixos.org/api/v1/query \
25
+ -d "query=channel_revision{channel=\"nixpkgs-unstable\"}" | \
26
+ grep --only-matching --extended-regexp "[0-9a-f]{40}")
27
+ sed -i -E "s|/nixpkgs/archive/[0-9a-f]{40}\.tar\.gz|/nixpkgs/archive/$hash.tar.gz|" shell.nix
28
+ echo "Nixpkgs updated to $hash"
29
+ '')
30
+ ];
31
+
32
+ shell' = with pkgs; lib.optionalString isDevelopment ''
33
+ export PYTHONNOUSERSITE=1
34
+ export TZ=UTC
35
+
36
+ current_python=$(readlink -e .venv/bin/python || echo "")
37
+ current_python=''${current_python%/bin/*}
38
+ [ "$current_python" != "${python313}" ] && rm -rf .venv/
39
+
40
+ echo "Installing Python dependencies"
41
+ echo "${python313}/bin/python" > .python-version
42
+ NIX_ENFORCE_PURITY=0 uv sync --frozen
43
+
44
+ echo "Activating Python virtual environment"
45
+ source .venv/bin/activate
46
+ '';
47
+ in
48
+ pkgs.mkShell {
49
+ buildInputs = packages';
50
+ shellHook = shell';
51
+ }
@@ -0,0 +1,62 @@
1
+ use geo_types::{Coord, LineString};
2
+ use pyo3::{exceptions::PyValueError, prelude::*};
3
+
4
+ #[pyfunction]
5
+ #[pyo3(signature = (coordinates, precision = 5))]
6
+ fn encode_lonlat(coordinates: Vec<Vec<f64>>, precision: u32) -> PyResult<String> {
7
+ let line = LineString(
8
+ coordinates
9
+ .into_iter()
10
+ .map(|c| Coord { x: c[0], y: c[1] })
11
+ .collect(),
12
+ );
13
+ match polyline::encode_coordinates(line, precision) {
14
+ Ok(polyline) => Ok(polyline),
15
+ Err(err) => Err(PyValueError::new_err(err.to_string())),
16
+ }
17
+ }
18
+
19
+ #[pyfunction]
20
+ #[pyo3(signature = (coordinates, precision = 5))]
21
+ fn encode_latlon(coordinates: Vec<Vec<f64>>, precision: u32) -> PyResult<String> {
22
+ let line = LineString(
23
+ coordinates
24
+ .into_iter()
25
+ .map(|c| Coord { x: c[1], y: c[0] })
26
+ .collect(),
27
+ );
28
+ match polyline::encode_coordinates(line, precision) {
29
+ Ok(polyline) => Ok(polyline),
30
+ Err(err) => Err(PyValueError::new_err(err.to_string())),
31
+ }
32
+ }
33
+
34
+ #[pyfunction]
35
+ #[pyo3(signature = (polyline, precision = 5))]
36
+ fn decode_lonlat(polyline: &str, precision: u32) -> PyResult<Vec<(f64, f64)>> {
37
+ let line = match polyline::decode_polyline(polyline, precision) {
38
+ Ok(line) => line,
39
+ Err(err) => return Err(PyValueError::new_err(err.to_string())),
40
+ };
41
+ Ok(line.0.into_iter().map(|c| (c.x, c.y)).collect())
42
+ }
43
+
44
+ #[pyfunction]
45
+ #[pyo3(signature = (polyline, precision = 5))]
46
+ fn decode_latlon(polyline: &str, precision: u32) -> PyResult<Vec<(f64, f64)>> {
47
+ let line = match polyline::decode_polyline(polyline, precision) {
48
+ Ok(line) => line,
49
+ Err(err) => return Err(PyValueError::new_err(err.to_string())),
50
+ };
51
+ Ok(line.0.into_iter().map(|c| (c.y, c.x)).collect())
52
+ }
53
+
54
+ #[pymodule]
55
+ #[pyo3(name = "_lib")]
56
+ fn lib(m: &Bound<'_, PyModule>) -> PyResult<()> {
57
+ m.add_function(wrap_pyfunction!(encode_lonlat, m)?)?;
58
+ m.add_function(wrap_pyfunction!(encode_latlon, m)?)?;
59
+ m.add_function(wrap_pyfunction!(decode_lonlat, m)?)?;
60
+ m.add_function(wrap_pyfunction!(decode_latlon, m)?)?;
61
+ Ok(())
62
+ }
@@ -0,0 +1,55 @@
1
+ import pytest
2
+ from polyline_rs import decode_latlon, decode_lonlat, encode_latlon, encode_lonlat
3
+
4
+
5
+ @pytest.mark.parametrize(
6
+ ('coords', 'precision', 'expected'),
7
+ [
8
+ (
9
+ [(38.5, -120.2), (40.7, -120.95), (43.252, -126.453)],
10
+ 5,
11
+ '_p~iF~ps|U_ulLnnqC_mqNvxq`@',
12
+ ),
13
+ (
14
+ [
15
+ (51.77263, 18.08583),
16
+ (51.77261, 18.08586),
17
+ (51.77261, 18.08589),
18
+ (51.77263, 18.08596),
19
+ (51.77269, 18.08604),
20
+ (51.77301, 18.08661),
21
+ (51.77302, 18.08677),
22
+ (51.77302, 18.08702),
23
+ ],
24
+ 5,
25
+ '}y~zHmkkmBBE?ECMKO_AqBA_@?q@',
26
+ ),
27
+ (
28
+ [
29
+ (51.772627, 18.085833),
30
+ (51.772611, 18.085859),
31
+ (51.772606, 18.085893),
32
+ (51.772613, 18.085927),
33
+ (51.772628, 18.085957),
34
+ (51.772685, 18.086038),
35
+ (51.773014, 18.086607),
36
+ (51.773023, 18.086775),
37
+ (51.773022, 18.08694),
38
+ (51.77302, 18.08702),
39
+ ],
40
+ 6,
41
+ 'el}vaBq{zna@^s@HcAMcA]{@qBaDqSqb@QoI@iIB_D',
42
+ ),
43
+ ],
44
+ )
45
+ def test_encode_decode(coords, precision, expected):
46
+ coords_lonlat = tuple((x, y) for y, x in coords)
47
+ assert encode_latlon(coords, precision) == expected
48
+ assert encode_lonlat(coords_lonlat, precision) == expected
49
+ pytest.approx(decode_latlon(expected, precision), coords, abs=0.1**precision)
50
+ pytest.approx(decode_lonlat(expected, precision), coords_lonlat, abs=0.1**precision)
51
+
52
+
53
+ def test_encode_out_of_bounds():
54
+ with pytest.raises(ValueError, match='latitude out of bounds: -120.2 at position 0'):
55
+ encode_latlon([(-120.2, 38.5), (-120.95, 40.7), (-126.453, 43.252)])
@@ -0,0 +1,88 @@
1
+ version = 1
2
+ requires-python = ">=3.9"
3
+
4
+ [[package]]
5
+ name = "colorama"
6
+ version = "0.4.6"
7
+ source = { registry = "https://pypi.org/simple" }
8
+ sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 }
9
+ wheels = [
10
+ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 },
11
+ ]
12
+
13
+ [[package]]
14
+ name = "exceptiongroup"
15
+ version = "1.2.2"
16
+ source = { registry = "https://pypi.org/simple" }
17
+ sdist = { url = "https://files.pythonhosted.org/packages/09/35/2495c4ac46b980e4ca1f6ad6db102322ef3ad2410b79fdde159a4b0f3b92/exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc", size = 28883 }
18
+ wheels = [
19
+ { url = "https://files.pythonhosted.org/packages/02/cc/b7e31358aac6ed1ef2bb790a9746ac2c69bcb3c8588b41616914eb106eaf/exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b", size = 16453 },
20
+ ]
21
+
22
+ [[package]]
23
+ name = "iniconfig"
24
+ version = "2.0.0"
25
+ source = { registry = "https://pypi.org/simple" }
26
+ sdist = { url = "https://files.pythonhosted.org/packages/d7/4b/cbd8e699e64a6f16ca3a8220661b5f83792b3017d0f79807cb8708d33913/iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3", size = 4646 }
27
+ wheels = [
28
+ { url = "https://files.pythonhosted.org/packages/ef/a6/62565a6e1cf69e10f5727360368e451d4b7f58beeac6173dc9db836a5b46/iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374", size = 5892 },
29
+ ]
30
+
31
+ [[package]]
32
+ name = "packaging"
33
+ version = "24.1"
34
+ source = { registry = "https://pypi.org/simple" }
35
+ sdist = { url = "https://files.pythonhosted.org/packages/51/65/50db4dda066951078f0a96cf12f4b9ada6e4b811516bf0262c0f4f7064d4/packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002", size = 148788 }
36
+ wheels = [
37
+ { url = "https://files.pythonhosted.org/packages/08/aa/cc0199a5f0ad350994d660967a8efb233fe0416e4639146c089643407ce6/packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124", size = 53985 },
38
+ ]
39
+
40
+ [[package]]
41
+ name = "pluggy"
42
+ version = "1.5.0"
43
+ source = { registry = "https://pypi.org/simple" }
44
+ sdist = { url = "https://files.pythonhosted.org/packages/96/2d/02d4312c973c6050a18b314a5ad0b3210edb65a906f868e31c111dede4a6/pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1", size = 67955 }
45
+ wheels = [
46
+ { url = "https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669", size = 20556 },
47
+ ]
48
+
49
+ [[package]]
50
+ name = "polyline-rs"
51
+ version = "1.0.0"
52
+ source = { editable = "." }
53
+
54
+ [package.dev-dependencies]
55
+ dev = [
56
+ { name = "pytest" },
57
+ ]
58
+
59
+ [package.metadata]
60
+
61
+ [package.metadata.requires-dev]
62
+ dev = [{ name = "pytest" }]
63
+
64
+ [[package]]
65
+ name = "pytest"
66
+ version = "8.3.3"
67
+ source = { registry = "https://pypi.org/simple" }
68
+ dependencies = [
69
+ { name = "colorama", marker = "sys_platform == 'win32'" },
70
+ { name = "exceptiongroup", marker = "python_full_version < '3.11'" },
71
+ { name = "iniconfig" },
72
+ { name = "packaging" },
73
+ { name = "pluggy" },
74
+ { name = "tomli", marker = "python_full_version < '3.11'" },
75
+ ]
76
+ sdist = { url = "https://files.pythonhosted.org/packages/8b/6c/62bbd536103af674e227c41a8f3dcd022d591f6eed5facb5a0f31ee33bbc/pytest-8.3.3.tar.gz", hash = "sha256:70b98107bd648308a7952b06e6ca9a50bc660be218d53c257cc1fc94fda10181", size = 1442487 }
77
+ wheels = [
78
+ { url = "https://files.pythonhosted.org/packages/6b/77/7440a06a8ead44c7757a64362dd22df5760f9b12dc5f11b6188cd2fc27a0/pytest-8.3.3-py3-none-any.whl", hash = "sha256:a6853c7375b2663155079443d2e45de913a911a11d669df02a50814944db57b2", size = 342341 },
79
+ ]
80
+
81
+ [[package]]
82
+ name = "tomli"
83
+ version = "2.0.2"
84
+ source = { registry = "https://pypi.org/simple" }
85
+ sdist = { url = "https://files.pythonhosted.org/packages/35/b9/de2a5c0144d7d75a57ff355c0c24054f965b2dc3036456ae03a51ea6264b/tomli-2.0.2.tar.gz", hash = "sha256:d46d457a85337051c36524bc5349dd91b1877838e2979ac5ced3e710ed8a60ed", size = 16096 }
86
+ wheels = [
87
+ { url = "https://files.pythonhosted.org/packages/cf/db/ce8eda256fa131af12e0a76d481711abe4681b6923c27efb9a255c9e4594/tomli-2.0.2-py3-none-any.whl", hash = "sha256:2ebe24485c53d303f690b0ec092806a085f07af5a5aa1464f3931eec36caaa38", size = 13237 },
88
+ ]