rusterize 0.1.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.1.0/.github/workflows/CI.yml +170 -0
- rusterize-0.1.0/.gitignore +37 -0
- rusterize-0.1.0/Cargo.lock +3956 -0
- rusterize-0.1.0/Cargo.toml +47 -0
- rusterize-0.1.0/LICENSE +23 -0
- rusterize-0.1.0/PKG-INFO +240 -0
- rusterize-0.1.0/README.md +219 -0
- rusterize-0.1.0/pyproject.toml +36 -0
- rusterize-0.1.0/python/rusterize/__init__.py +4 -0
- rusterize-0.1.0/python/rusterize/core.py +80 -0
- rusterize-0.1.0/rust-toolchain.toml +2 -0
- rusterize-0.1.0/src/allocator.rs +24 -0
- rusterize-0.1.0/src/edgelist.rs +71 -0
- rusterize-0.1.0/src/geo_validate.rs +88 -0
- rusterize-0.1.0/src/lib.rs +226 -0
- rusterize-0.1.0/src/pixel_functions.rs +70 -0
- rusterize-0.1.0/src/rasterize_polygon.rs +74 -0
- rusterize-0.1.0/src/structs/edge.rs +62 -0
- rusterize-0.1.0/src/structs/raster.rs +81 -0
- rusterize-0.1.0/src/structs/xarray.rs +60 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- main
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
linux:
|
|
15
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
platform:
|
|
20
|
+
- runner: ubuntu-22.04
|
|
21
|
+
target: x86_64
|
|
22
|
+
# - runner: ubuntu-22.04
|
|
23
|
+
# target: x86
|
|
24
|
+
- runner: ubuntu-22.04
|
|
25
|
+
target: aarch64
|
|
26
|
+
- runner: ubuntu-22.04
|
|
27
|
+
target: armv7
|
|
28
|
+
# - runner: ubuntu-22.04
|
|
29
|
+
# target: s390x
|
|
30
|
+
- runner: ubuntu-22.04
|
|
31
|
+
target: ppc64le
|
|
32
|
+
steps:
|
|
33
|
+
- uses: actions/checkout@v4
|
|
34
|
+
- uses: actions/setup-python@v5
|
|
35
|
+
with:
|
|
36
|
+
python-version: 3.x
|
|
37
|
+
- name: Build wheels
|
|
38
|
+
uses: PyO3/maturin-action@v1
|
|
39
|
+
with:
|
|
40
|
+
target: ${{ matrix.platform.target }}
|
|
41
|
+
args: --profile dist-release --out dist --find-interpreter
|
|
42
|
+
sccache: "true"
|
|
43
|
+
manylinux: auto
|
|
44
|
+
- name: Upload wheels
|
|
45
|
+
uses: actions/upload-artifact@v4
|
|
46
|
+
with:
|
|
47
|
+
name: wheels-linux-${{ matrix.platform.target }}
|
|
48
|
+
path: dist
|
|
49
|
+
|
|
50
|
+
musllinux:
|
|
51
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
52
|
+
strategy:
|
|
53
|
+
fail-fast: false
|
|
54
|
+
matrix:
|
|
55
|
+
platform:
|
|
56
|
+
- runner: ubuntu-22.04
|
|
57
|
+
target: x86_64
|
|
58
|
+
# - runner: ubuntu-22.04
|
|
59
|
+
# target: x86
|
|
60
|
+
- runner: ubuntu-22.04
|
|
61
|
+
target: aarch64
|
|
62
|
+
- runner: ubuntu-22.04
|
|
63
|
+
target: armv7
|
|
64
|
+
steps:
|
|
65
|
+
- uses: actions/checkout@v4
|
|
66
|
+
- uses: actions/setup-python@v5
|
|
67
|
+
with:
|
|
68
|
+
python-version: 3.x
|
|
69
|
+
- name: Build wheels
|
|
70
|
+
uses: PyO3/maturin-action@v1
|
|
71
|
+
with:
|
|
72
|
+
target: ${{ matrix.platform.target }}
|
|
73
|
+
args: --profile dist-release --out dist --find-interpreter
|
|
74
|
+
sccache: "true"
|
|
75
|
+
manylinux: musllinux_1_2
|
|
76
|
+
- name: Upload wheels
|
|
77
|
+
uses: actions/upload-artifact@v4
|
|
78
|
+
with:
|
|
79
|
+
name: wheels-musllinux-${{ matrix.platform.target }}
|
|
80
|
+
path: dist
|
|
81
|
+
|
|
82
|
+
windows:
|
|
83
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
84
|
+
strategy:
|
|
85
|
+
fail-fast: false
|
|
86
|
+
matrix:
|
|
87
|
+
platform:
|
|
88
|
+
- runner: windows-latest
|
|
89
|
+
target: x64
|
|
90
|
+
# - runner: windows-latest
|
|
91
|
+
# target: x86
|
|
92
|
+
steps:
|
|
93
|
+
- uses: actions/checkout@v4
|
|
94
|
+
- uses: actions/setup-python@v5
|
|
95
|
+
with:
|
|
96
|
+
python-version: 3.x
|
|
97
|
+
architecture: ${{ matrix.platform.target }}
|
|
98
|
+
- name: Build wheels
|
|
99
|
+
uses: PyO3/maturin-action@v1
|
|
100
|
+
with:
|
|
101
|
+
target: ${{ matrix.platform.target }}
|
|
102
|
+
args: --profile dist-release --out dist --find-interpreter
|
|
103
|
+
sccache: "true"
|
|
104
|
+
- name: Upload wheels
|
|
105
|
+
uses: actions/upload-artifact@v4
|
|
106
|
+
with:
|
|
107
|
+
name: wheels-windows-${{ matrix.platform.target }}
|
|
108
|
+
path: dist
|
|
109
|
+
|
|
110
|
+
macos:
|
|
111
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
112
|
+
strategy:
|
|
113
|
+
fail-fast: false
|
|
114
|
+
matrix:
|
|
115
|
+
platform:
|
|
116
|
+
- runner: macos-13
|
|
117
|
+
target: x86_64
|
|
118
|
+
- runner: macos-14
|
|
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: --profile dist-release --out dist --find-interpreter
|
|
130
|
+
sccache: "true"
|
|
131
|
+
- name: Upload wheels
|
|
132
|
+
uses: actions/upload-artifact@v4
|
|
133
|
+
with:
|
|
134
|
+
name: wheels-macos-${{ matrix.platform.target }}
|
|
135
|
+
path: dist
|
|
136
|
+
|
|
137
|
+
sdist:
|
|
138
|
+
runs-on: ubuntu-latest
|
|
139
|
+
steps:
|
|
140
|
+
- uses: actions/checkout@v4
|
|
141
|
+
- name: Build sdist
|
|
142
|
+
uses: PyO3/maturin-action@v1
|
|
143
|
+
with:
|
|
144
|
+
command: sdist
|
|
145
|
+
args: --out dist
|
|
146
|
+
- name: Upload sdist
|
|
147
|
+
uses: actions/upload-artifact@v4
|
|
148
|
+
with:
|
|
149
|
+
name: wheels-sdist
|
|
150
|
+
path: dist
|
|
151
|
+
|
|
152
|
+
publish-to-pypi:
|
|
153
|
+
name: Publish to PyPI
|
|
154
|
+
needs: [ linux, musllinux, windows, macos, sdist ]
|
|
155
|
+
runs-on: ubuntu-latest
|
|
156
|
+
environment:
|
|
157
|
+
name: pypi
|
|
158
|
+
url: https://pypi.org/p/rusterize
|
|
159
|
+
permissions:
|
|
160
|
+
id-token: write
|
|
161
|
+
steps:
|
|
162
|
+
- name: Download sdists and wheels
|
|
163
|
+
uses: actions/download-artifact@v4
|
|
164
|
+
with:
|
|
165
|
+
path: dist
|
|
166
|
+
merge-multiple: true
|
|
167
|
+
- name: Publish to PyPI
|
|
168
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
169
|
+
with:
|
|
170
|
+
verbose: true
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Generated by Cargo
|
|
2
|
+
# will have compiled files and executables
|
|
3
|
+
debug/
|
|
4
|
+
target/
|
|
5
|
+
|
|
6
|
+
# # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
|
7
|
+
# # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
|
8
|
+
# Cargo.lock
|
|
9
|
+
|
|
10
|
+
# These are backup files generated by rustfmt
|
|
11
|
+
**/*.rs.bk
|
|
12
|
+
|
|
13
|
+
# MSVC Windows builds of rustc generate these, which store debugging information
|
|
14
|
+
*.pdb
|
|
15
|
+
|
|
16
|
+
# IDE stuff
|
|
17
|
+
.idea
|
|
18
|
+
|
|
19
|
+
# Virtual environment
|
|
20
|
+
.venv
|
|
21
|
+
.env
|
|
22
|
+
|
|
23
|
+
# Shared object
|
|
24
|
+
**/*.so
|
|
25
|
+
|
|
26
|
+
# Pycache
|
|
27
|
+
**/__pycache__
|
|
28
|
+
|
|
29
|
+
# Tests
|
|
30
|
+
tests/
|
|
31
|
+
.pytest_cache
|
|
32
|
+
|
|
33
|
+
# Benchmarks
|
|
34
|
+
.benchmarks
|
|
35
|
+
|
|
36
|
+
# README quarto stuff
|
|
37
|
+
README_files
|