Skip to content

Commit 9ff42f2

Browse files
Update build doc and add package workflow
1 parent 7448847 commit 9ff42f2

File tree

3 files changed

+122
-11
lines changed

3 files changed

+122
-11
lines changed

.github/workflows/package.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
name: Linux
2+
on:
3+
push:
4+
branches-ignore:
5+
- '**/sources/**'
6+
- '**/windows/**'
7+
- '**/macos/**'
8+
paths-ignore:
9+
- '.github/workflows/sources.yml'
10+
- '.github/workflows/sonar.yml'
11+
- '.github/workflows/macos.yml'
12+
- '.github/workflows/windows.yml'
13+
- 'tools/**'
14+
- 'rtest/**'
15+
- 'doc/**'
16+
- '.appveyor.yml'
17+
- '.coveragerc'
18+
- '.gitattributes'
19+
- '.pylintrc'
20+
- '.travis.yml'
21+
- '.whitesource'
22+
- 'AUTHORS.txt'
23+
- 'BUILD.rest'
24+
- 'CHANGELOG.adoc'
25+
- 'CONTRIBUTING.adoc'
26+
- 'COPYRIGHT.txt'
27+
- 'LICENSE.txt'
28+
- 'MANIFEST.in'
29+
- 'README.adoc'
30+
- 'README.rest'
31+
- 'rfgen.py'
32+
- 'tox.ini'
33+
pull_request:
34+
paths-ignore:
35+
- '.github/workflows/sources.yml'
36+
- '.github/workflows/sonar.yml'
37+
- '.github/workflows/macos.yml'
38+
- '.github/workflows/windows.yml'
39+
- 'tools/**'
40+
- 'rtest/**'
41+
- 'doc/**'
42+
- '.appveyor.yml'
43+
- '.coveragerc'
44+
- '.gitattributes'
45+
- '.pylintrc'
46+
- '.travis.yml'
47+
- '.whitesource'
48+
- 'AUTHORS.txt'
49+
- 'BUILD.rest'
50+
- 'CHANGELOG.adoc'
51+
- 'CONTRIBUTING.adoc'
52+
- 'COPYRIGHT.txt'
53+
- 'LICENSE.txt'
54+
- 'MANIFEST.in'
55+
- 'README.adoc'
56+
- 'README.rest'
57+
- 'rfgen.py'
58+
- 'tox.ini'
59+
60+
jobs:
61+
fedora:
62+
name: Fedora py313
63+
runs-on: ubuntu-22.04
64+
container:
65+
image: fedora:41
66+
options: --privileged
67+
steps:
68+
- name: Configure container environment
69+
run: |
70+
sudo dnf update -y
71+
sudo dnf install -y git
72+
git config --global --add safe.directory ${GITHUB_WORKSPACE}
73+
- uses: actions/[email protected]
74+
with:
75+
submodules: false
76+
- name: Setup environment
77+
run: |
78+
sudo dnf install -y sdl12-compat python3-wxpython4 xorg-x11-server-Xvfb python3-pip python3-tkinter psmisc
79+
# sudo dnf downgrade -y mesa* --refresh
80+
git submodule update --init --recursive
81+
pip install -r requirements-dev.txt
82+
pip install robotframework
83+
- name: Run tests
84+
run: |
85+
Xvfb &
86+
export DISPLAY=:0
87+
export GITHUB_ACTIONS=True
88+
git submodule update --init --recursive
89+
invoke test-ci
90+
- uses: actions/upload-artifact@v4
91+
with:
92+
name: coverage-report
93+
include-hidden-files: true
94+
path: |
95+
.coverage.1
96+
.coverage.2
97+
.coverage-reports/coverage.xml
98+
.coverage-reports/htmlcov
99+
- name: Create Package
100+
run: |
101+
git submodule update --init --recursive
102+
pip install -r requirements-dev.txt
103+
python -m build
104+
- uses: actions/upload-artifact@v4
105+
with:
106+
name: package
107+
include-hidden-files: true
108+
path: |
109+
dist/*

BUILD.rest

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,13 @@ wxPython
3939
Version 2.8.12.1 of wxPython__ was the last for the 2 series.
4040
Together with version 3.0.2, they are called the wxPython Classic.
4141

42-
The current recommended version of wxPython is 4.0.7.post2 and was called wxPhoenix.
43-
RIDE is not fully compatible with newest wxPython 4.1.
44-
45-
RIDE on Python 2.7 still runs with any version of those Classic or wxPhoenix.
46-
On Python 3.6+, only wxPhoenix is supported (and in the future we will only
47-
support those).
42+
The current recommended version of wxPython is 4.2.3, the project was called wxPhoenix.
4843

4944
**VERSION 1.7.4.2 IS THE LAST RELEASE SUPPORTING PYTHON 2.7 AND WXPYTHON <3.0.3**
5045

51-
**wxPython will be updated to current version 4.0.7.post2**
46+
**Version 2.0.8.1 was the last release supporting Python 3.6 and 3.7**
5247

48+
<!--
5349
For testing purposes, users can select which version to use, by creating the
5450
file ``wx.pth`` containing the directory name of the wxPython to use. That
5551
directory must contain the two wxPython directories (moved into)::
@@ -69,6 +65,7 @@ Example::
6965
# wx-4.0.4
7066
# wx-4.0.6
7167
# wx-4.0.7
68+
-->
7269

7370

7471
It is highly recommended, if you want to program with wxPython to download and
@@ -96,6 +93,11 @@ Unit tests are in `utest` directory. They can be executed with::
9693

9794
invoke test
9895

96+
or, to have coverage report:
97+
98+
invoke test-ci
99+
100+
99101
There is also a shell script (requiring customization for your environment).
100102
It allows to run the test files stopping when errors are found.
101103
Example::
@@ -169,10 +171,9 @@ Creating distributions
169171

170172
invoke clean
171173

172-
3. Create and validate source distribution in zip format and universal (i.e.
173-
Python 2 and 3 compatible) `wheel <http://pythonwheels.com>`_::
174+
3. Create and validate source distribution and `wheel <http://pythonwheels.com>`_::
174175

175-
python setup.py sdist --formats zip bdist_wheel --universal
176+
python -m build
176177
ls -l dist
177178
twine check dist/*
178179

@@ -190,7 +191,7 @@ Creating distributions
190191
pip install --pre --upgrade robotframework-ride
191192

192193

193-
* Announce on usergroup, robot homepage, forum, slack, and twitter
194+
* Announce on usergroup, robot homepage, forum, slack, and LinkedIn
194195

195196

196197
Settings migration

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
setuptools>=70.0.0
2+
build
23
mockito
34
invoke
45
urllib3>=2.2.2 # not directly required, pinned by Snyk to avoid a vulnerability

0 commit comments

Comments
 (0)