polars-iptools 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.
@@ -0,0 +1,157 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - master
8
+ tags:
9
+ - '*'
10
+ pull_request:
11
+ workflow_dispatch:
12
+
13
+ concurrency:
14
+
15
+ group: ${{ github.workflow }}-${{ github.ref }}
16
+
17
+ cancel-in-progress: true
18
+
19
+ permissions:
20
+ contents: read
21
+
22
+ # Make sure CI fails on all warnings, including Clippy lints
23
+ env:
24
+ RUSTFLAGS: "-Dwarnings"
25
+
26
+ jobs:
27
+ linux_tests:
28
+ runs-on: ubuntu-latest
29
+ strategy:
30
+ matrix:
31
+ target: [x86_64]
32
+ python-version: ["3.8", "3.9", "3.10", "3.11"]
33
+ steps:
34
+ - uses: actions/checkout@v3
35
+ - uses: actions/setup-python@v4
36
+ with:
37
+
38
+ python-version: ${{ matrix.python-version }}
39
+
40
+
41
+ - name: Set up Rust
42
+ run: rustup show
43
+ - uses: mozilla-actions/sccache-action@v0.0.3
44
+ - run: make .venv
45
+ - run: make pre-commit
46
+ - run: make install
47
+ - run: make test
48
+
49
+ linux:
50
+ runs-on: ubuntu-latest
51
+ strategy:
52
+ matrix:
53
+ target: [x86_64, x86]
54
+ steps:
55
+ - uses: actions/checkout@v3
56
+ - uses: actions/setup-python@v4
57
+ with:
58
+ python-version: '3.10'
59
+ - name: Build wheels
60
+ uses: PyO3/maturin-action@v1
61
+ with:
62
+
63
+ target: ${{ matrix.target }}
64
+
65
+ args: --release --out dist --find-interpreter
66
+ sccache: 'true'
67
+ manylinux: auto
68
+ - name: Upload wheels
69
+ uses: actions/upload-artifact@v3
70
+ with:
71
+ name: wheels
72
+ path: dist
73
+
74
+ windows:
75
+ runs-on: windows-latest
76
+ strategy:
77
+ matrix:
78
+ target: [x64]
79
+ steps:
80
+ - uses: actions/checkout@v3
81
+ - uses: actions/setup-python@v4
82
+ with:
83
+ python-version: '3.10'
84
+
85
+ architecture: ${{ matrix.target }}
86
+
87
+ - name: Build wheels
88
+ uses: PyO3/maturin-action@v1
89
+ with:
90
+
91
+ target: ${{ matrix.target }}
92
+
93
+ args: --release --out dist --find-interpreter
94
+ sccache: 'true'
95
+ - name: Upload wheels
96
+ uses: actions/upload-artifact@v3
97
+ with:
98
+ name: wheels
99
+ path: dist
100
+
101
+ macos:
102
+ runs-on: macos-latest
103
+ strategy:
104
+ matrix:
105
+ target: [x86_64, aarch64]
106
+ steps:
107
+ - uses: actions/checkout@v3
108
+ - uses: actions/setup-python@v4
109
+ with:
110
+ python-version: '3.10'
111
+ - name: Build wheels
112
+ uses: PyO3/maturin-action@v1
113
+ with:
114
+
115
+ target: ${{ matrix.target }}
116
+
117
+ args: --release --out dist --find-interpreter
118
+ sccache: 'true'
119
+ - name: Upload wheels
120
+ uses: actions/upload-artifact@v3
121
+ with:
122
+ name: wheels
123
+ path: dist
124
+
125
+ sdist:
126
+ runs-on: ubuntu-latest
127
+ steps:
128
+ - uses: actions/checkout@v3
129
+ - name: Build sdist
130
+ uses: PyO3/maturin-action@v1
131
+ with:
132
+ command: sdist
133
+ args: --out dist
134
+ - name: Upload sdist
135
+ uses: actions/upload-artifact@v3
136
+ with:
137
+ name: wheels
138
+ path: dist
139
+
140
+ release:
141
+ name: Release
142
+ if: "startsWith(github.ref, 'refs/tags/')"
143
+ needs: [linux, windows, macos, sdist]
144
+ runs-on: ubuntu-latest
145
+ environment: pypi
146
+ permissions:
147
+ id-token: write # IMPORTANT: mandatory for trusted publishing
148
+ steps:
149
+ - uses: actions/download-artifact@v3
150
+ with:
151
+ name: wheels
152
+ - name: Publish to PyPI
153
+ uses: PyO3/maturin-action@v1
154
+ with:
155
+ command: upload
156
+ args: --non-interactive --skip-existing *
157
+
@@ -0,0 +1,22 @@
1
+ # Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
2
+ # More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
3
+ Cargo.lock
4
+
5
+ # Generated by Cargo
6
+ # will have compiled files and executables
7
+ debug/
8
+ target/
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
+ # These are backup files generated by rustfmt
17
+ **/*.rs.bk
18
+
19
+ *.so
20
+ *.pyc
21
+ target
22
+ .venv