promql-parser 0.3.3__tar.gz → 0.4.1__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,149 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ tags:
8
+ - 'v*'
9
+ pull_request:
10
+ workflow_dispatch:
11
+
12
+ concurrency:
13
+ group: ${{ github.workflow }}-${{ github.ref }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ linux:
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v3
21
+ - uses: PyO3/maturin-action@v1
22
+ with:
23
+ manylinux: auto
24
+ args: --release --sdist -o dist --find-interpreter
25
+ - name: Upload wheels
26
+ uses: actions/upload-artifact@v3
27
+ with:
28
+ name: wheels
29
+ path: dist
30
+
31
+ musllinux:
32
+ runs-on: ubuntu-latest
33
+ strategy:
34
+ matrix:
35
+ target:
36
+ - x86_64-unknown-linux-musl
37
+ - i686-unknown-linux-musl
38
+ steps:
39
+ - uses: actions/checkout@v3
40
+ - uses: actions/setup-python@v4
41
+ with:
42
+ python-version: 3.9
43
+ architecture: x64
44
+ - name: Build wheels
45
+ uses: messense/maturin-action@v1
46
+ with:
47
+ target: ${{ matrix.target }}
48
+ manylinux: musllinux_1_2
49
+ args: --release --out dist -i 3.7 3.8 3.9 3.10 3.11 3.12
50
+ sccache: true
51
+ - name: Install built wheel
52
+ if: matrix.target == 'x86_64-unknown-linux-musl'
53
+ uses: addnab/docker-run-action@v3
54
+ with:
55
+ image: alpine:latest
56
+ options: -v ${{ github.workspace }}:/io -w /io
57
+ run: |
58
+ apk add py3-virtualenv
59
+ python3 -m virtualenv .venv
60
+ source .venv/bin/activate
61
+ pip install promql_parser --no-index --find-links /io/dist/ --force-reinstall
62
+ - name: Upload wheels
63
+ uses: actions/upload-artifact@v3
64
+ with:
65
+ name: wheels
66
+ path: dist
67
+
68
+ musllinux-cross:
69
+ runs-on: ubuntu-latest
70
+ strategy:
71
+ matrix:
72
+ platform:
73
+ - target: aarch64-unknown-linux-musl
74
+ arch: aarch64
75
+ - target: armv7-unknown-linux-musleabihf
76
+ arch: armv7
77
+ steps:
78
+ - uses: actions/checkout@v3
79
+ - uses: actions/setup-python@v4
80
+ with:
81
+ python-version: 3.9
82
+ - name: Build wheels
83
+ uses: messense/maturin-action@v1
84
+ with:
85
+ target: ${{ matrix.platform.target }}
86
+ manylinux: musllinux_1_2
87
+ args: --release --out dist --find-interpreter
88
+ sccache: true
89
+ - uses: uraimo/run-on-arch-action@v2.3.0
90
+ name: Install built wheel
91
+ with:
92
+ arch: ${{ matrix.platform.arch }}
93
+ distro: alpine_latest
94
+ githubToken: ${{ github.token }}
95
+ install: |
96
+ apk add py3-virtualenv
97
+ run: |
98
+ python3 -m virtualenv .venv
99
+ source .venv/bin/activate
100
+ pip install promql_parser --no-index --find-links dist/ --force-reinstall
101
+ - name: Upload wheels
102
+ uses: actions/upload-artifact@v3
103
+ with:
104
+ name: wheels
105
+ path: dist
106
+
107
+ windows:
108
+ runs-on: windows-latest
109
+ steps:
110
+ - uses: actions/checkout@v3
111
+ - uses: PyO3/maturin-action@v1
112
+ with:
113
+ args: --release -o dist --find-interpreter
114
+ - name: Upload wheels
115
+ uses: actions/upload-artifact@v3
116
+ with:
117
+ name: wheels
118
+ path: dist
119
+
120
+ macos:
121
+ runs-on: macos-latest
122
+ steps:
123
+ - uses: actions/checkout@v3
124
+ - uses: PyO3/maturin-action@v1
125
+ with:
126
+ target: universal2-apple-darwin
127
+ args: --release -o dist --find-interpreter
128
+ - name: Upload wheels
129
+ uses: actions/upload-artifact@v3
130
+ with:
131
+ name: wheels
132
+ path: dist
133
+
134
+ release:
135
+ name: Release
136
+ runs-on: ubuntu-latest
137
+ if: "startsWith(github.ref, 'refs/tags/')"
138
+ needs: [macos, windows, linux, musllinux-cross, musllinux]
139
+ steps:
140
+ - uses: actions/download-artifact@v3
141
+ with:
142
+ name: wheels
143
+ - name: Publish to PyPI
144
+ uses: PyO3/maturin-action@v1
145
+ env:
146
+ MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
147
+ with:
148
+ command: upload
149
+ args: --skip-existing *