This repository was archived by the owner on Nov 14, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +9
-29
lines changed Expand file tree Collapse file tree 4 files changed +9
-29
lines changed Original file line number Diff line number Diff line change 20
20
python -m pip install --upgrade pip setuptools wheel
21
21
pip install twine jinja2
22
22
23
+ - id : pkg_version
24
+ run : echo "##[set-output name=data;]$(echo ${{ github.event.release.tag_name }} | cut -c2-)"
25
+
23
26
- name : Build Python package
24
27
run : |
25
- python setup_init.py ${{ github.event.release.tag_name }}
28
+ python -c 'import jinja2;jinja2.Template(open("setup.j2").read()).stream(version=" ${{ steps.pkg_version.outputs.data }}").dump("setup.py")'
26
29
python setup.py sdist bdist_wheel
27
30
28
31
- name : Build the Docker image
Original file line number Diff line number Diff line change 16
16
python -m pip install --upgrade pip setuptools wheel
17
17
pip install twine jinja2
18
18
19
+ - id : pkg_version
20
+ run : echo "##[set-output name=data;]$(echo ${{ github.event.release.tag_name }} | cut -c2-)"
21
+
19
22
- name : Build Python package
20
23
run : |
21
- python setup_init.py ${{ github.event.release.tag_name }}
24
+ python -c 'import jinja2;jinja2.Template(open("setup.j2").read()).stream(version=" ${{ steps.pkg_version.outputs.data }}").dump("setup.py")'
22
25
python setup.py sdist bdist_wheel
23
26
24
27
- name : Twine check
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ KEYWORDS = ('dnstap receiver client json yaml text')
9
9
10
10
setuptools .setup (
11
11
name = "dnstap_receiver" ,
12
- version = "{{ pkg_version }}" ,
12
+ version = "{{ version }}" ,
13
13
author = "Denis MACHARD" ,
14
14
15
15
description = "Python Dnstap receiver" ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments