File tree 5 files changed +82
-0
lines changed
5 files changed +82
-0
lines changed Original file line number Diff line number Diff line change @@ -335,3 +335,47 @@ jobs:
335
335
336
336
- name : Run tests
337
337
run : make test-pure-install
338
+
339
+ publish_rpm :
340
+ # if: startsWith(github.ref, 'refs/tags')
341
+ if : (github.event_name == 'push') ||
342
+ (github.event_name == 'pull_request' &&
343
+ github.event.pull_request.head.repo.full_name != github.repository)
344
+
345
+ needs :
346
+ - run_tests_rpm
347
+
348
+ runs-on : ubuntu-20.04
349
+
350
+ strategy :
351
+ fail-fast : false
352
+
353
+ matrix :
354
+ target :
355
+ - os : fedora
356
+ dist : ' 34'
357
+ - os : fedora
358
+ dist : ' 35'
359
+ - os : fedora
360
+ dist : ' 36'
361
+
362
+ steps :
363
+ - name : Clone the connector repo
364
+ uses : actions/checkout@v3
365
+
366
+ - name : Install tools for package publishing
367
+ run : sudo apt install -y curl make
368
+
369
+ - name : Download pip package artifacts
370
+ uses : actions/download-artifact@v3
371
+ with :
372
+ name : rpm_dist_${{ matrix.target.os }}_${{ matrix.target.dist }}
373
+ path : rpm_dist
374
+
375
+ - name : Publish artifacts
376
+ run : make rpm-dist-publish
377
+ env :
378
+ RWS_REPO : https://rws-dev.tarantool.org
379
+ RWS_AUTH : ${{ secrets.RWS_AUTH }}
380
+ OS : ${{ matrix.target.os }}
381
+ DIST : ${{ matrix.target.dist }}
Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
188
188
- Pack pip artifacts with GitHub Actions (# 198).
189
189
- Publish pip artifacts with GitHub Actions (# 198).
190
190
- Pack RPM artifacts with GitHub Actions (# 164, #198).
191
+ - Publish RPM artifacts with GitHub Actions (# 164, #198).
191
192
192
193
# ## Changed
193
194
- Bump msgpack requirement to 1.0 .4 (PR # 223).
Original file line number Diff line number Diff line change @@ -61,3 +61,9 @@ rpm-dist:
61
61
.PHONY : rpm-dist-check
62
62
rpm-dist-check :
63
63
rpm -K --nosignature rpm_dist/* .rpm
64
+
65
+ .PHONY : rpm-dist-publish
66
+ rpm-dist-publish :
67
+ $(eval FILE_FLAGS := $(shell find rpm_dist/ -type f -regex '.* rpm' | xargs -I {} sh -c 'echo -F $$(basename {}) =@{}' | xargs) )
68
+ curl -v -LfsS -X PUT ${RWS_REPO} /release/modules/${OS} /${DIST} \
69
+ -F product=python3-tarantool $(FILE_FLAGS ) -u ${RWS_AUTH}
Original file line number Diff line number Diff line change @@ -26,6 +26,23 @@ The recommended way to install the ``tarantool`` package is using ``pip``.
26
26
27
27
$ pip3 install tarantool
28
28
29
+ With dnf
30
+ ^^^^^^^^
31
+
32
+ You can install ``python3-tarantool `` RPM package if you use Fedora 34-36.
33
+
34
+ Add the repository
35
+
36
+ .. code-block :: bash
37
+
38
+ $ curl -L https://tarantool.io/OtKysgx/release/2/installer.sh | bash
39
+
40
+ and then install the package
41
+
42
+ .. code-block :: bash
43
+
44
+ $ dnf install -y python3-tarantool
45
+
29
46
ZIP archive
30
47
^^^^^^^^^^^
31
48
Original file line number Diff line number Diff line change @@ -14,6 +14,20 @@ Install Tarantool Python connector with ``pip`` (`PyPI`_ page):
14
14
15
15
$ pip3 install tarantool
16
16
17
+ Otherwise, you can install ``python3-tarantool `` RPM package if you use Fedora 34-36.
18
+
19
+ Add the repository
20
+
21
+ .. code-block :: bash
22
+
23
+ $ curl -L https://tarantool.io/OtKysgx/release/2/installer.sh | bash
24
+
25
+ and then install the package
26
+
27
+ .. code-block :: bash
28
+
29
+ $ dnf install -y python3-tarantool
30
+
17
31
Source code is available on `GitHub `_.
18
32
19
33
Documentation
You can’t perform that action at this time.
0 commit comments