rusterize 0.3.0__tar.gz → 0.4.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.
Potentially problematic release.
This version of rusterize might be problematic. Click here for more details.
- {rusterize-0.3.0 → rusterize-0.4.0}/.github/workflows/CI.yml +57 -14
- {rusterize-0.3.0 → rusterize-0.4.0}/.github/workflows/test-compile.yml +50 -11
- {rusterize-0.3.0 → rusterize-0.4.0}/.gitignore +6 -2
- {rusterize-0.3.0 → rusterize-0.4.0}/Cargo.lock +1523 -498
- {rusterize-0.3.0 → rusterize-0.4.0}/Cargo.toml +12 -17
- {rusterize-0.3.0 → rusterize-0.4.0}/PKG-INFO +33 -29
- {rusterize-0.3.0 → rusterize-0.4.0}/README.md +31 -27
- {rusterize-0.3.0 → rusterize-0.4.0}/img/plot.png +0 -0
- {rusterize-0.3.0 → rusterize-0.4.0}/pyproject.toml +2 -2
- rusterize-0.4.0/python/rusterize/__init__.py +120 -0
- rusterize-0.4.0/rust-toolchain.toml +2 -0
- rusterize-0.4.0/rustfmt.toml +1 -0
- {rusterize-0.3.0 → rusterize-0.4.0}/src/edge_collection.rs +43 -36
- {rusterize-0.3.0 → rusterize-0.4.0}/src/geom/validate.rs +7 -4
- rusterize-0.4.0/src/lib.rs +220 -0
- rusterize-0.4.0/src/pixel_functions.rs +98 -0
- rusterize-0.4.0/src/prelude.rs +116 -0
- rusterize-0.4.0/src/rasterize_geometry.rs +153 -0
- rusterize-0.4.0/src/rusterize_impl.rs +139 -0
- {rusterize-0.3.0 → rusterize-0.4.0}/src/structs/edge.rs +39 -3
- {rusterize-0.3.0 → rusterize-0.4.0}/src/structs/raster.rs +5 -1
- {rusterize-0.3.0 → rusterize-0.4.0}/src/to_xarray.rs +18 -11
- rusterize-0.3.0/python/rusterize/__init__.py +0 -4
- rusterize-0.3.0/python/rusterize/core.py +0 -107
- rusterize-0.3.0/rust-toolchain.toml +0 -2
- rusterize-0.3.0/src/lib.rs +0 -230
- rusterize-0.3.0/src/pixel_functions.rs +0 -73
- rusterize-0.3.0/src/rasterize.rs +0 -114
- {rusterize-0.3.0 → rusterize-0.4.0}/LICENSE +0 -0
- {rusterize-0.3.0 → rusterize-0.4.0}/src/allocator.rs +0 -0
- {rusterize-0.3.0 → rusterize-0.4.0}/src/geom/from_shapely.rs +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
name: CI
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
7
8
|
permissions:
|
|
8
9
|
contents: read
|
|
9
10
|
|
|
@@ -16,14 +17,10 @@ jobs:
|
|
|
16
17
|
platform:
|
|
17
18
|
- runner: ubuntu-22.04
|
|
18
19
|
target: x86_64
|
|
19
|
-
# - runner: ubuntu-22.04
|
|
20
|
-
# target: x86
|
|
21
20
|
- runner: ubuntu-22.04
|
|
22
21
|
target: aarch64
|
|
23
22
|
- runner: ubuntu-22.04
|
|
24
23
|
target: armv7
|
|
25
|
-
# - runner: ubuntu-22.04
|
|
26
|
-
# target: s390x
|
|
27
24
|
- runner: ubuntu-22.04
|
|
28
25
|
target: ppc64le
|
|
29
26
|
steps:
|
|
@@ -31,13 +28,25 @@ jobs:
|
|
|
31
28
|
- uses: actions/setup-python@v5
|
|
32
29
|
with:
|
|
33
30
|
python-version: 3.x
|
|
31
|
+
- name: Store RUSTFLAGS in ENV for x86_64
|
|
32
|
+
if: matrix.platform.target == 'x86_64'
|
|
33
|
+
id: features
|
|
34
|
+
run: |
|
|
35
|
+
FEATURES=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+cmpxchg16b,+avx,+avx2,+fma,+bmi1,+bmi2,+lzcnt,+pclmulqdq,+movbe
|
|
36
|
+
echo "features=$FEATURES" >> $GITHUB_OUTPUT
|
|
37
|
+
- name: Set RUSTFLAGS for x86_64
|
|
38
|
+
if: matrix.platform.target == 'x86_64'
|
|
39
|
+
env:
|
|
40
|
+
FEATURES: ${{ steps.features.outputs.features }}
|
|
41
|
+
run: |
|
|
42
|
+
echo "RUSTFLAGS=-C target-feature=$FEATURES" >> $GITHUB_ENV
|
|
34
43
|
- name: Build wheels
|
|
35
44
|
uses: PyO3/maturin-action@v1
|
|
36
45
|
with:
|
|
37
46
|
target: ${{ matrix.platform.target }}
|
|
38
47
|
args: --profile dist-release --out dist --find-interpreter
|
|
39
48
|
sccache: "true"
|
|
40
|
-
manylinux:
|
|
49
|
+
manylinux: manylinux_2_28
|
|
41
50
|
- name: Upload wheels
|
|
42
51
|
uses: actions/upload-artifact@v4
|
|
43
52
|
with:
|
|
@@ -52,8 +61,6 @@ jobs:
|
|
|
52
61
|
platform:
|
|
53
62
|
- runner: ubuntu-22.04
|
|
54
63
|
target: x86_64
|
|
55
|
-
# - runner: ubuntu-22.04
|
|
56
|
-
# target: x86
|
|
57
64
|
- runner: ubuntu-22.04
|
|
58
65
|
target: aarch64
|
|
59
66
|
- runner: ubuntu-22.04
|
|
@@ -63,13 +70,25 @@ jobs:
|
|
|
63
70
|
- uses: actions/setup-python@v5
|
|
64
71
|
with:
|
|
65
72
|
python-version: 3.x
|
|
73
|
+
- name: Store RUSTFLAGS in ENV for x86_64
|
|
74
|
+
if: matrix.platform.target == 'x86_64'
|
|
75
|
+
id: features
|
|
76
|
+
run: |
|
|
77
|
+
FEATURES=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+cmpxchg16b,+avx,+avx2,+fma,+bmi1,+bmi2,+lzcnt,+pclmulqdq,+movbe
|
|
78
|
+
echo "features=$FEATURES" >> $GITHUB_OUTPUT
|
|
79
|
+
- name: Set RUSTFLAGS for x86_64
|
|
80
|
+
if: matrix.platform.target == 'x86_64'
|
|
81
|
+
env:
|
|
82
|
+
FEATURES: ${{ steps.features.outputs.features }}
|
|
83
|
+
run: |
|
|
84
|
+
echo "RUSTFLAGS=-C target-feature=$FEATURES" >> $GITHUB_ENV
|
|
66
85
|
- name: Build wheels
|
|
67
86
|
uses: PyO3/maturin-action@v1
|
|
68
87
|
with:
|
|
69
88
|
target: ${{ matrix.platform.target }}
|
|
70
89
|
args: --profile dist-release --out dist --find-interpreter
|
|
71
90
|
sccache: "true"
|
|
72
|
-
manylinux:
|
|
91
|
+
manylinux: manylinux_2_28
|
|
73
92
|
- name: Upload wheels
|
|
74
93
|
uses: actions/upload-artifact@v4
|
|
75
94
|
with:
|
|
@@ -84,14 +103,25 @@ jobs:
|
|
|
84
103
|
platform:
|
|
85
104
|
- runner: windows-latest
|
|
86
105
|
target: x64
|
|
87
|
-
# - runner: windows-latest
|
|
88
|
-
# target: x86
|
|
89
106
|
steps:
|
|
90
107
|
- uses: actions/checkout@v4
|
|
91
108
|
- uses: actions/setup-python@v5
|
|
92
109
|
with:
|
|
93
110
|
python-version: 3.x
|
|
94
111
|
architecture: ${{ matrix.platform.target }}
|
|
112
|
+
- name: Store RUSTFLAGS in ENV for x64
|
|
113
|
+
if: matrix.platform.target == 'x64'
|
|
114
|
+
id: features
|
|
115
|
+
shell: bash
|
|
116
|
+
run: |
|
|
117
|
+
FEATURES=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+cmpxchg16b,+avx,+avx2,+fma,+bmi1,+bmi2,+lzcnt,+pclmulqdq,+movbe
|
|
118
|
+
echo "features=$FEATURES" >> $GITHUB_OUTPUT
|
|
119
|
+
- name: Set RUSTFLAGS for x64
|
|
120
|
+
if: matrix.platform.target == 'x64'
|
|
121
|
+
env:
|
|
122
|
+
FEATURES: ${{ steps.features.outputs.features }}
|
|
123
|
+
run: |
|
|
124
|
+
echo "RUSTFLAGS=-C target-feature=$FEATURES" >> $GITHUB_ENV
|
|
95
125
|
- name: Build wheels
|
|
96
126
|
uses: PyO3/maturin-action@v1
|
|
97
127
|
with:
|
|
@@ -119,6 +149,18 @@ jobs:
|
|
|
119
149
|
- uses: actions/setup-python@v5
|
|
120
150
|
with:
|
|
121
151
|
python-version: 3.x
|
|
152
|
+
- name: Store RUSTFLAGS in ENV for x86_64
|
|
153
|
+
if: matrix.platform.target == 'x86_64'
|
|
154
|
+
id: features
|
|
155
|
+
run: |
|
|
156
|
+
FEATURES=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+cmpxchg16b,+avx,+avx2,+fma,+bmi1,+bmi2,+lzcnt,+pclmulqdq,+movbe
|
|
157
|
+
echo "features=$FEATURES" >> $GITHUB_OUTPUT
|
|
158
|
+
- name: Set RUSTFLAGS for x86_64
|
|
159
|
+
if: matrix.platform.target == 'x86_64'
|
|
160
|
+
env:
|
|
161
|
+
FEATURES: ${{ steps.features.outputs.features }}
|
|
162
|
+
run: |
|
|
163
|
+
echo "RUSTFLAGS=-C target-feature=$FEATURES" >> $GITHUB_ENV
|
|
122
164
|
- name: Build wheels
|
|
123
165
|
uses: PyO3/maturin-action@v1
|
|
124
166
|
with:
|
|
@@ -148,7 +190,7 @@ jobs:
|
|
|
148
190
|
|
|
149
191
|
publish-to-pypi:
|
|
150
192
|
name: Publish to PyPI
|
|
151
|
-
needs: [
|
|
193
|
+
needs: [linux, musllinux, windows, macos, sdist]
|
|
152
194
|
runs-on: ubuntu-latest
|
|
153
195
|
environment:
|
|
154
196
|
name: pypi
|
|
@@ -165,3 +207,4 @@ jobs:
|
|
|
165
207
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
166
208
|
with:
|
|
167
209
|
verbose: true
|
|
210
|
+
|
|
@@ -17,14 +17,10 @@ jobs:
|
|
|
17
17
|
platform:
|
|
18
18
|
- runner: ubuntu-22.04
|
|
19
19
|
target: x86_64
|
|
20
|
-
# - runner: ubuntu-22.04
|
|
21
|
-
# target: x86
|
|
22
20
|
- runner: ubuntu-22.04
|
|
23
21
|
target: aarch64
|
|
24
22
|
- runner: ubuntu-22.04
|
|
25
23
|
target: armv7
|
|
26
|
-
# - runner: ubuntu-22.04
|
|
27
|
-
# target: s390x
|
|
28
24
|
- runner: ubuntu-22.04
|
|
29
25
|
target: ppc64le
|
|
30
26
|
steps:
|
|
@@ -32,13 +28,24 @@ jobs:
|
|
|
32
28
|
- uses: actions/setup-python@v5
|
|
33
29
|
with:
|
|
34
30
|
python-version: 3.x
|
|
31
|
+
- name: Store RUSTFLAGS in ENV
|
|
32
|
+
id: features
|
|
33
|
+
run: |
|
|
34
|
+
FEATURES=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+cmpxchg16b,+avx,+avx2,+fma,+bmi1,+bmi2,+lzcnt,+pclmulqdq,+movbe
|
|
35
|
+
echo "features=$FEATURES" >> $GITHUB_OUTPUT
|
|
36
|
+
- name: Set RUSTFLAGS for x86_64
|
|
37
|
+
if: matrix.platform.target == 'x86_64'
|
|
38
|
+
env:
|
|
39
|
+
FEATURES: ${{ steps.features.outputs.features }}
|
|
40
|
+
run: |
|
|
41
|
+
echo "RUSTFLAGS=-C target-feature=$FEATURES" >> $GITHUB_ENV
|
|
35
42
|
- name: Build wheels
|
|
36
43
|
uses: PyO3/maturin-action@v1
|
|
37
44
|
with:
|
|
38
45
|
target: ${{ matrix.platform.target }}
|
|
39
46
|
args: --profile dist-release --out dist --find-interpreter
|
|
40
47
|
sccache: "true"
|
|
41
|
-
manylinux:
|
|
48
|
+
manylinux: manylinux_2_28
|
|
42
49
|
- name: Upload wheels
|
|
43
50
|
uses: actions/upload-artifact@v4
|
|
44
51
|
with:
|
|
@@ -53,8 +60,6 @@ jobs:
|
|
|
53
60
|
platform:
|
|
54
61
|
- runner: ubuntu-22.04
|
|
55
62
|
target: x86_64
|
|
56
|
-
# - runner: ubuntu-22.04
|
|
57
|
-
# target: x86
|
|
58
63
|
- runner: ubuntu-22.04
|
|
59
64
|
target: aarch64
|
|
60
65
|
- runner: ubuntu-22.04
|
|
@@ -64,13 +69,24 @@ jobs:
|
|
|
64
69
|
- uses: actions/setup-python@v5
|
|
65
70
|
with:
|
|
66
71
|
python-version: 3.x
|
|
72
|
+
- name: Store RUSTFLAGS in ENV
|
|
73
|
+
id: features
|
|
74
|
+
run: |
|
|
75
|
+
FEATURES=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+cmpxchg16b,+avx,+avx2,+fma,+bmi1,+bmi2,+lzcnt,+pclmulqdq,+movbe
|
|
76
|
+
echo "features=$FEATURES" >> $GITHUB_OUTPUT
|
|
77
|
+
- name: Set RUSTFLAGS for x86_64
|
|
78
|
+
if: matrix.platform.target == 'x86_64'
|
|
79
|
+
env:
|
|
80
|
+
FEATURES: ${{ steps.features.outputs.features }}
|
|
81
|
+
run: |
|
|
82
|
+
echo "RUSTFLAGS=-C target-feature=$FEATURES" >> $GITHUB_ENV
|
|
67
83
|
- name: Build wheels
|
|
68
84
|
uses: PyO3/maturin-action@v1
|
|
69
85
|
with:
|
|
70
86
|
target: ${{ matrix.platform.target }}
|
|
71
87
|
args: --profile dist-release --out dist --find-interpreter
|
|
72
88
|
sccache: "true"
|
|
73
|
-
manylinux:
|
|
89
|
+
manylinux: manylinux_2_28
|
|
74
90
|
- name: Upload wheels
|
|
75
91
|
uses: actions/upload-artifact@v4
|
|
76
92
|
with:
|
|
@@ -85,14 +101,24 @@ jobs:
|
|
|
85
101
|
platform:
|
|
86
102
|
- runner: windows-latest
|
|
87
103
|
target: x64
|
|
88
|
-
# - runner: windows-latest
|
|
89
|
-
# target: x86
|
|
90
104
|
steps:
|
|
91
105
|
- uses: actions/checkout@v4
|
|
92
106
|
- uses: actions/setup-python@v5
|
|
93
107
|
with:
|
|
94
108
|
python-version: 3.x
|
|
95
109
|
architecture: ${{ matrix.platform.target }}
|
|
110
|
+
- name: Store RUSTFLAGS in ENV
|
|
111
|
+
id: features
|
|
112
|
+
shell: bash
|
|
113
|
+
run: |
|
|
114
|
+
FEATURES=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+cmpxchg16b,+avx,+avx2,+fma,+bmi1,+bmi2,+lzcnt,+pclmulqdq,+movbe
|
|
115
|
+
echo "features=$FEATURES" >> $GITHUB_OUTPUT
|
|
116
|
+
- name: Set RUSTFLAGS for x64
|
|
117
|
+
if: matrix.platform.target == 'x64'
|
|
118
|
+
env:
|
|
119
|
+
FEATURES: ${{ steps.features.outputs.features }}
|
|
120
|
+
run: |
|
|
121
|
+
echo "RUSTFLAGS=-C target-feature=$FEATURES" >> $GITHUB_ENV
|
|
96
122
|
- name: Build wheels
|
|
97
123
|
uses: PyO3/maturin-action@v1
|
|
98
124
|
with:
|
|
@@ -105,6 +131,7 @@ jobs:
|
|
|
105
131
|
name: wheels-windows-${{ matrix.platform.target }}
|
|
106
132
|
path: dist
|
|
107
133
|
|
|
134
|
+
|
|
108
135
|
macos:
|
|
109
136
|
runs-on: ${{ matrix.platform.runner }}
|
|
110
137
|
strategy:
|
|
@@ -120,6 +147,17 @@ jobs:
|
|
|
120
147
|
- uses: actions/setup-python@v5
|
|
121
148
|
with:
|
|
122
149
|
python-version: 3.x
|
|
150
|
+
- name: Store RUSTFLAGS in ENV
|
|
151
|
+
id: features
|
|
152
|
+
run: |
|
|
153
|
+
FEATURES=+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+cmpxchg16b,+avx,+avx2,+fma,+bmi1,+bmi2,+lzcnt,+pclmulqdq,+movbe
|
|
154
|
+
echo "features=$FEATURES" >> $GITHUB_OUTPUT
|
|
155
|
+
- name: Set RUSTFLAGS for x86_64
|
|
156
|
+
if: matrix.platform.target == 'x86_64'
|
|
157
|
+
env:
|
|
158
|
+
FEATURES: ${{ steps.features.outputs.features }}
|
|
159
|
+
run: |
|
|
160
|
+
echo "RUSTFLAGS=-C target-feature=$FEATURES" >> $GITHUB_ENV
|
|
123
161
|
- name: Build wheels
|
|
124
162
|
uses: PyO3/maturin-action@v1
|
|
125
163
|
with:
|
|
@@ -145,4 +183,5 @@ jobs:
|
|
|
145
183
|
uses: actions/upload-artifact@v4
|
|
146
184
|
with:
|
|
147
185
|
name: wheels-sdist
|
|
148
|
-
path: dist
|
|
186
|
+
path: dist
|
|
187
|
+
|