Skip to content

Commit 394f1b1

Browse files
Main runner (#2831)
* Add __main__.py to allow running as a script. * Improve packaging of RIDE
1 parent 02bf17b commit 394f1b1

File tree

59 files changed

+10389
-8704
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+10389
-8704
lines changed

CHANGELOG.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ In Grid Editor use | (pipe) to separate lines.
4848

4949
=== Changed
5050

51+
- Improved release packaging of RIDE, by using entry_points in setuptools configuration.
5152
- Parsing of clipboard content to separate by cells in Grid Editor. NOTE: Need to Apply Changes in Text Editor to be effective.
5253
- Improved selection of items from Tree in Text Editor. Now finds more items and selects whole line.
5354
- Changed output in plugin Run Anything (Macros) to allow Zoom In/Out, and Copy content.

setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ install_script=ride_postinstall.py
99
count = False
1010
max_line_length = 90
1111
statistics = True
12+
13+
[options.entry_points]
14+
console_scripts =
15+
ride = robotide.__main__:main
16+
ride_postinstall = robotide.postinstall.__main__:main

src/robotide/__main__.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env python
2+
3+
# Copyright 2008-2015 Nokia Networks
4+
# Copyright 2016- Robot Framework Foundation
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
import sys
19+
20+
if __name__ == '__main__' and 'robotide' not in sys.modules:
21+
from pathlib import Path
22+
robotide_dir = Path(__file__).absolute().parent # zipsafe
23+
sys.path = [str(robotide_dir.parent)] + [p for p in sys.path if Path(p) != robotide_dir]
24+
25+
from robotide import main
26+
27+
main(*sys.argv[1:])

src/robotide/application/CHANGELOG.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
</li><li class="listitem">
5858
Fixed New User Keyword dialog not allowing empty Arguments field
5959
</li></ul></div></div><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="_changed"></a>1.3. Changed</h3></div></div></div><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem">
60+
Improved release packaging of RIDE, by using entry_points in setuptools configuration.
61+
</li><li class="listitem">
6062
Parsing of clipboard content to separate by cells in Grid Editor. NOTE: Need to Apply Changes in Text Editor to be effective.
6163
</li><li class="listitem">
6264
Improved selection of items from Tree in Text Editor. Now finds more items and selects whole line.

src/robotide/application/releasenotes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def set_content(self, html_win, content):
309309
<pre class="literal-block">
310310
python -m robotide.postinstall -install
311311
</pre>
312-
<p>RIDE {VERSION} was released on 29/June/2024.</p>
312+
<p>RIDE {VERSION} was released on 20/July/2024.</p>
313313
<!-- <br/>
314314
<h3>May The Fourth Be With You!</h3>
315315
<h3>Celebrate the bank holiday, 10th June, Day of Portugal, Portuguese Communities and Camões!!</h3>

src/robotide/localization/RIDE.pot

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
msgid ""
66
msgstr ""
77
"Project-Id-Version: PACKAGE VERSION\n"
8-
"POT-Creation-Date: 2024-07-14 20:30+0100\n"
8+
"POT-Creation-Date: 2024-07-20 20:00+0100\n"
99
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1111
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -1165,137 +1165,137 @@ msgstr ""
11651165
msgid "Number of columns that are shown in this editor. Selected value is stored and used globally."
11661166
msgstr ""
11671167

1168-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:95
1168+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:86
11691169
msgid "Delete Cells\tCtrl-Shift-D"
11701170
msgstr ""
11711171

1172-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:95
1172+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:86
11731173
msgid "Insert Cells\tCtrl-Shift-I"
11741174
msgstr ""
11751175

1176-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:96
1177-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:372
1176+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:87
1177+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:357
11781178
msgid "Insert Rows\tCtrl-I"
11791179
msgstr ""
11801180

1181-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:96
1182-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:373
1181+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:87
1182+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:358
11831183
msgid "Delete Rows\tCtrl-D"
11841184
msgstr ""
11851185

1186-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:97
1186+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:88
11871187
msgid "Copy\tCtrl-C"
11881188
msgstr ""
11891189

1190-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:97
1190+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:88
11911191
msgid "Cut\tCtrl-X"
11921192
msgstr ""
11931193

1194-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:97
1194+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:88
11951195
msgid "Select All\tCtrl-A"
11961196
msgstr ""
11971197

1198-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:98
1198+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:89
11991199
msgid "Delete\tDel"
12001200
msgstr ""
12011201

1202-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:98
1202+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:89
12031203
msgid "Insert\tCtrl-Shift-V"
12041204
msgstr ""
12051205

1206-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:98
1206+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:89
12071207
msgid "Paste\tCtrl-V"
12081208
msgstr ""
12091209

1210-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:101
1210+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:92
12111211
msgid "Create Keyword"
12121212
msgstr ""
12131213

1214-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:102
1214+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:93
12151215
msgid "Extract Keyword"
12161216
msgstr ""
12171217

1218-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:103
1218+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:94
12191219
msgid "Extract Variable"
12201220
msgstr ""
12211221

1222-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:104
1223-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1205
1222+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:95
1223+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1153
12241224
msgid "Rename Keyword"
12251225
msgstr ""
12261226

1227-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:105
1227+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:96
12281228
msgid "Find Where Used"
12291229
msgstr ""
12301230

1231-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:106
1231+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:97
12321232
msgid "JSON Editor\tCtrl-Shift-J"
12331233
msgstr ""
12341234

1235-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:108
1235+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:99
12361236
msgid "Go to Definition\tCtrl-B"
12371237
msgstr ""
12381238

1239-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:110
1239+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:101
12401240
msgid "Undo\tCtrl-Z"
12411241
msgstr ""
12421242

1243-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:111
1243+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:102
12441244
msgid "Redo\tCtrl-Y"
12451245
msgstr ""
12461246

1247-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:113
1247+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:104
12481248
msgid "Make Variable\tCtrl-1"
12491249
msgstr ""
12501250

1251-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:114
1251+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:105
12521252
msgid "Make List Variable\tCtrl-2"
12531253
msgstr ""
12541254

1255-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:115
1255+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:106
12561256
msgid "Make Dict Variable\tCtrl-5"
12571257
msgstr ""
12581258

1259-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:117
1260-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:375
1259+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:108
1260+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:360
12611261
msgid "Comment Cells\tCtrl-Shift-3"
12621262
msgstr ""
12631263

1264-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:118
1265-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:376
1264+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:109
1265+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:361
12661266
msgid "Uncomment Cells\tCtrl-Shift-4"
12671267
msgstr ""
12681268

1269-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:119
1269+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:110
12701270
msgid "Move Cursor Down\tAlt-Enter"
12711271
msgstr ""
12721272

1273-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:121
1274-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:367
1273+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:112
1274+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:352
12751275
msgid "Comment Rows\tCtrl-3"
12761276
msgstr ""
12771277

1278-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:122
1279-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:368
1278+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:113
1279+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:353
12801280
msgid "Uncomment Rows\tCtrl-4"
12811281
msgstr ""
12821282

1283-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:123
1284-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:369
1283+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:114
1284+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:354
12851285
msgid "Move Rows Up\tAlt-Up"
12861286
msgstr ""
12871287

1288-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:124
1289-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:370
1288+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:115
1289+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:355
12901290
msgid "Move Rows Down\tAlt-Down"
12911291
msgstr ""
12921292

1293-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:125
1294-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:371
1293+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:116
1294+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:356
12951295
msgid "Swap Row Up\tCtrl-T"
12961296
msgstr ""
12971297

1298-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:964
1298+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:917
12991299
msgid ""
13001300
"<b>Keyword was not detected by RIDE</b>\n"
13011301
" <br>Possible corrections:<br>\n"
@@ -1309,43 +1309,43 @@ msgid ""
13091309
" </ul>"
13101310
msgstr ""
13111311

1312-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1205
1312+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1153
13131313
msgid "New name"
13141314
msgstr ""
13151315

1316-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1218
1316+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1165
13171317
msgid "Save"
13181318
msgstr ""
13191319

1320-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1219
1320+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1166
13211321
msgid "Cancel"
13221322
msgstr ""
13231323

1324-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1245
1324+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1192
13251325
msgid "Error in JSON:"
13261326
msgstr ""
13271327

1328-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1245
1328+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1192
13291329
msgid "Save anyway?"
13301330
msgstr ""
13311331

1332-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1246
1332+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1193
13331333
msgid "Validation Error!"
13341334
msgstr ""
13351335

1336-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1387
1336+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1334
13371337
msgid "Please select what you want to check for usage"
13381338
msgstr ""
13391339

1340-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1390
1340+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1337
13411341
msgid "Complete cell content"
13421342
msgstr ""
13431343

1344-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1391
1344+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1338
13451345
msgid "Variable "
13461346
msgstr ""
13471347

1348-
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1403
1348+
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/kweditor.py:1350
13491349
#: /home2/helio/github/RIDE/tools/../src/robotide/editor/texteditor.py:667
13501350
#: /home2/helio/github/RIDE/tools/../src/robotide/searchtests/dialogsearchtests.py:49
13511351
#: /home2/helio/github/RIDE/tools/../src/robotide/searchtests/dialogsearchtests.py:127
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)