Skip to content

Commit 93dafba

Browse files
HelioGuilherme66Johnny HuangjnhyperionJFoedererHelio Guilherme
authored
Autocomplete (#2577)
* Refactor _ContentAssistTextCtrlBase * Refactor _ContentAssistTextCtrlBase * Refactor _ContentAssistTextCtrlBase * Add auto content assist popup * Prevent content assist popup showing when enter key enter * Compatibility for wxPython 4.0.7 * Add configurations * Make publisher errors silent * Make publisher errors silent * Fix typo and unit test * Fix error msg in unit test * Added grid auto suggestion configurations * Creating new resource file should not change the current project default workspace path * Fix publisher msg error when delete variables in tree * Fix publisher msg errors when running cases with DataDriver * Fix click suggestion popup list issues * Fix cannot dismiss suggestions * Add protection for wx lower version * Add protection for wx lower version * Specify wxPython version for MacOS * When user have old RIDE version with config files, this will cause "auto size cols" is activated automatically. * Use context APP, wx.GetApp() could be unstable * updates * Update requirement and setup.py * Update requirement and setup.py * Unlock wxPython version * Update for WX4.1.1 * Update for WX4.1.1 * Update for WX4.1.1 * Remove key binding wx.EVT_MOTION, this will impact the performance * Revert deleted code * Fix issue in windows * Fix issue in windows * Fix runner plugin bug * Update change log * Performance improvements for test suite loading (#2372) * Improve test suite load performance Do not scan subfolders for unknown files and reuse context when loading recursively. * Performance improvements during loading Includes: - Prevent parsing of non-Robot files - Prevent excessive folder traversing on case-insensitive OSs * fix merge mistake * Update CHANGELOG.adoc * Remove workspace cache The dependency with case insensitive operating systems was removed with an incoming merge. Performance still OK. * Changes style hopefully to fix #2379 (#2380) * Grid default colours (#2381) * Changes background and foreground colors to match unknown in Grid * Update README.adoc Change back Travis badges to travis-ci.org * Fix --loglevel option handling (#2382) * Fix --loglevel option handling loglevel should be stored as int for further processing. * Update CHANGELOG.adoc Add info for PR #2382 * Fix broken pipe (#2384) * Fix --loglevel option handling loglevel should be stored as int for further processing. * Change minimum loglevel detection Co-authored-by: J. Foederer <[email protected]> * Reverts 'Fix --loglevel option handling #2382' (#2385) Co-authored-by: Helio Guilherme <[email protected]> * Update README.adoc New info on "support" sites, and python 3.9. * Improve file system changes detection (#2401) * Improve file system changes detection (#2401) (#2402) Co-authored-by: Helio Guilherme <[email protected]> * Color settings (#2404) * Improve labels colors on Preferences, Windows. WIP * Avoids processing Tree creation when closing app on Windows * Improves Preferences labels visibility on Windows (for example when background is black) Co-authored-by: Helio Guilherme <[email protected]> * Improve version of JQuery (#2406) * Fix skip keyword #2336 (#2418) * Fix SKIP keyword when Running test * Fix SKIP keyword when Running test (#2419) Update CHANGELOG with fix for #2336 * Update CHANGELOG.adoc * Update README.adoc Versions of Python supported. Changed Travis URL to travis.com and for HelioGuilherme66 fork (because robotframework not working) * Update README.adoc * Fix JSON editor not saving nor validating JSON. (#2426) * Increase dev version * Removed HTML test files, renamed .txt to .robot (#2427) * Cleanup debug * Remove skipped tests * Add SonarCloud badge and Code Coverage analysis * Improve imports in utests * Update versions for Maven runner example, in pom.xml * Text edit no reformat (#2432) * WIP: Add new flag to avoid reformat in Text Editor * More debug on save * Fix missing import * Avoid removing empty cells in Purify * WIP: Add new flag to avoid reformat in Text Editor * More debug on save * Fix missing import * Avoid removing empty cells in Purify * Update tests * Improve dirty state when direct save * Improve autoident in Text Editor * Removes robotframeworklexer because it is included in Pygments * Add colorization to Tasks in Text Editor.Improves # comments. Co-authored-by: Helio Guilherme <[email protected]> * Fix #2433 (#2434) * Improves # comment detection. Fixes #2433 * Fix multi level idents (#2444) * Fix some For loop tests * Fixed For loop tests * Fix unit tests * Fixed unit tests, still 3 failing * Fix unit tests. Still two failing * Fixed unit tests :) Finally :) * Improve multilevel Grid colorization * Fix deprecation of node.js 10 breaking Sonarcloud * Add option Reformat to invert current default when Saving * Indentation OK on TextEditor. Still Unit tests failing * Add detection of separating spaces count. Two utests Failing * Fix two unit tests, by improving section detection and using two spaces by default. * Adds documentation for: IF, ELSE, ELSEIF, WHILE, TRY, EXCEPT, BREAK, CONTINUE * Improve documentation for FOR, IF, ... TRY/EXCEPT * Fix EMPTY comments lines * Movement rows, OK. Colorization in FOR step with assignement, not OK. * Better info for indented cells. Two tests failing. (#2445) * Better info for indented cells. Two tests failing. * Fix FOR help and coloring. * Change to editor after getting a suggestion.Fixes #2292 (#2446) * Simple fixes (#2447) * Clean code * Clean code * Fixes Sort Tests and Variables. Disables selection ot item when right-click in Project tree * Keep HTML Test Suites format available to open (#2448) * Fix arguments (#2453) * Fix arguments to use spaces in paths. WIP * WIP: parser is OK on Runner, but needs to fix error detection on Plugin * Fix arguments to use spaces in paths. Needs to be tested on Windows * Some Windows changes * Better but not 100% * Working with files and quoted variables. Red color warning still * Fix encoding in Windows. * Fix for Linux * Fixed parsing commands in Linux (hopefully in MacOS too) Co-authored-by: Helio Guilherme <[email protected]> * Update README.adoc Warn about failing to run tests when stated from Desktop Shortcut * Fix starting from shortcut on Windows (#2455) Co-authored-by: Helio Guilherme <[email protected]> * Update README.adoc removed broken info * Change testing to pytest and remove nose testing (#2457) * WIP: Debugging from fix_arguments * Fix commenting single lines. Still problems on blocks * Fixed indentation. Still to fix comment/uncomment Undo and Move Up/Down * DEBUG: Test name is appearing as Step :( * Change unit test tool to pytest and remove nose dependency. Support for Python 3.10 at unit test level. * Fix invalid empty setting and invalid test suite with line comment (#2458) Co-authored-by: Helio Guilherme <[email protected]> * Fix unit tests (#2459) * Fix invalid empty setting and invalid test suite with line comment * Fixes two unit tests Co-authored-by: Helio Guilherme <[email protected]> * Fix blank setting and Multilevel FOR indentation (#2462) * Fixed indentation. Still to fix comment/uncomment Undo and Move Up/Down DEBUG: Test name is appearing as Step :( * Use decrease and increase indent on StepController * Some improvements on MoveRowsDown * Improve comment for loops * Improve Deletion of rows and Inserting cells in indented rows * Improve MoveRowsUp * Improve MoveRowsUp, eight tests failing * Improve MoveRowsUp/Down, one test failing * Fix moving FOR loop over other loop. Breaks more tests. * Fix empty setting error. Skip one unit test * Improve tests * Fix line comments (#2467) * Fix invalid empty setting and invalid test suite with line comment * Improve line comment detection. Change default spaces to 2 and then adjust. * Refactor FOR (#2468) * Fix invalid empty setting and invalid test suite with line comment * Remove ForLoop calls. WIP 25 utest failing * Remove ForLoop calls. WIP 5 utest failing * Fix FOR move up. WIP not totally OK. Two utest failing. * Fix FOR move up. WIP not totally OK. Two utest failing. * Debug assign in FOR. WIP not totally OK. Two utest failing. * Improve loop variable detection. WIP. Breaks Set * Variable * Improve variables detection in FOR and Set (*) Variable * Improves var detection, but degrades coloring performance * Especial cases for Comment. WIP * Still 3 tests failing. CellInfo * Final fix for IN ENUMERATE Co-authored-by: Helio Guilherme <[email protected]> * Fix commented cells info (make all OPTIONAL) (#2469) * Add multiline comment and uncomment to Text Editor (#2470) * Allow to edit resource files (#2471) * Remove deprecated code in TestRunner * Adds support to open and edit resource files * Fix directories open and BuiltIn.Comment processing (#2472) * Fix opening directories and variables without suggestions * Add BuiltIn.Comment to comment/uncomment processing * Fix wxPython 4.2.0 (#2475) * Remove inheritance of RIDEDialog * Fix for wxPython 4.2.0 Co-authored-by: Helio Guilherme <[email protected]> * Console Colors and Skip in progress bar (#2476) * Fix console width to fit visible area. Fixes #2320 * Add color parsing for console log * Add use_color and colors to TestRunner Preferences. Add skip counter to progress bar. WIP * Fix list and dictionary editors. (#2479) * Corrects the option for --consolecolors on Windows * DEBUG list and dict variables editor. Can create but not Edit * Fix list and dictionary editors. * Add Skip counter and corresponding colored icon to Project tree (#2480) * Set default language to en_US * Add skip counter and colored icon to project tree * Changelog is now on disk with access from menu (#2481) * Add offline change log * Add release notes and changelog links to UpdateNotifier. Error check on Text Editor * Fix offline change log (#2484) * Fix missing menu icons in Linux (#2485) * Fix menu icons in Linux (finally)! * Change tree (#2486) * disable item selection WIP * Fix menu icons in Linux (finally)! * Avoid AssertionError when monitoring files or directories with multibyte names, like Chinese chars * Fix save status in Text Editor no need to double Ctrl-S * Improves Undo in Text Edit * fix enclosing symbols * fix list * Disable closing Test Suites panel (#2500) * Add CONTRIBUTING.adoc (#2493) * Created a contribution doc trying... * Delete CONTRIBUTIONS.adoc * did some changes * Update CONTRIBUTION.adoc did the required changes * Update CONTRIBUTION.adoc Removed incorrect text, from Robot Framework, and added commands to start and debug RIDE. * Update CONTRIBUTION.adoc Final changes to document. Co-authored-by: Hélio Guilherme <[email protected]> * Rename CONTRIBUTION.adoc to CONTRIBUTING.adoc * fix bug #2361 (#2494) * fix bug #2361 Chinese name of test case can not display correct on console log * Use ANSICP instead of OEMCP * set PYTHONIOENCODING to UTF-8 when running RF * Fix for diacritic characters display on RIDE console (#2502) * Add files via upload * Update testrunnerplugin.py * Update testrunnerplugin.py * Fix docs #2435 (#2505) * Debugging #2435, still not fixed * Hide items in Test Suite explorer with names starting with # * Add support for content before sections in .robot and .resource files * Restore documentation setter * Fix missing comments on Library and Resources imports (#2506) * Small update to CONTRIBUTING.adoc and editor updates for enhancement 2508 (#2510) * Small update to CONTRIBUTING.adoc * Updates for enh 2508 * Doc change * Changes to allow multiline comment and uncomment in Text Editor. Documentation update. Still missing unit tests, and fix Grid Editor. Co-authored-by: Helio Guilherme <[email protected]> * Fix uncomment (#2511) * Fix multivariable assign comment and uncomment. DEBUG get_assign and Undo. WIP * Fix comment/uncomment steps with two or more variables assignement * Update CHANGELOG.adoc * Update version and offline CHANGELOG * Simplify some code in datarow * Attempt to improve performance. * Add cells in Step for direct access * Remove slow code in model.Step.as_list * Update CHANGELOG.adoc * Grid updates for #2512 * Fix MoveCursorDown to use Grid method. * Attempt to improve performance. * Remove repeated actions on kweditor * Version 2.0b3 * Work in progress fix keys shortcuts * Revert some keyboard shortcuts * Ommit empty line when writing sections * Update README.adoc * Create sonarcloud.yml * Update sonarcloud.yml * Update sonarcloud.yml * Add gitactions build and update tox and sonar * Update CI tasks * Update Sonar definitions * Update Sonar definitions * Update APPVeyor definitions * Update tox for old python versions * DevOps actions (#2520) * Create sonarcloud.yml * Update sonarcloud.yml * Update sonarcloud.yml * Add gitactions build and update tox and sonar * Update CI tasks * Update Sonar definitions * Update Sonar definitions * Update APPVeyor definitions * Update README.adoc * Update tox for old python versions * Fix uncomment in Text Editor (#2529) ** Fix comments in steps with arguments * Improve uncomment in Text Editor * Fix comments (#2530) * Update appveyor python versions * Experience with appveyor configuration * Experience with appveyor configuration 2 * Experience with appveyor configuration 3 * Experience with appveyor configuration 4 * Experience with appveyor configuration 5 * Update appveyor python versions * WIP: compute args in Step.as_list() * Fix comments in steps with arguments * Fix problems in Grid Editor on keywords with steps with #comments * Revert version number * Note about updating from current development 2.0rc1 * Devops (#2531) * Update appveyor python versions * Try to test in macos * Change to allow building in this branch * Use python3.9 * Install python3.9 and try to get information about system * Install pytest * Change to use invoke test * Update .appveyor.yml commented path definition * Texteditor ctrl i (#2522) * Add Ctrl-I to Text Editor * Insert multiselected rows * Improve multiline insert and cursor position --------- Co-authored-by: HelioGuilherme66 <[email protected]> * Devops (#2533) * Use python 3.10 * Use python 3.10, debug * Use python 3.10. Change to Bigsur * Use python 3.8 with Bigsur * Try to remove architecture in Bigsur * Change to build on image Visual Studio 2022 * Change path to python * Change how to call invoke * Add python to PATH * Exclude test on Windows * Hide Linux badges * Add install of wxPython (#2534) * Add Ctrl-D to Text Editor (#2523) * CTRL-D + author surname * Fix uncomment in Text Editor (#2529) ** Fix comments in steps with arguments * Improve uncomment in Text Editor * Fix comments (#2530) * Update appveyor python versions * Experience with appveyor configuration * Experience with appveyor configuration 2 * Experience with appveyor configuration 3 * Experience with appveyor configuration 4 * Experience with appveyor configuration 5 * Update appveyor python versions * WIP: compute args in Step.as_list() * Fix comments in steps with arguments * Fix problems in Grid Editor on keywords with steps with #comments * Revert version number * Note about updating from current development 2.0rc1 * Devops (#2531) * Update appveyor python versions * Try to test in macos * Change to allow building in this branch * Use python3.9 * Install python3.9 and try to get information about system * Install pytest * Change to use invoke test * Update .appveyor.yml commented path definition * Texteditor ctrl i (#2522) * Add Ctrl-I to Text Editor * Insert multiselected rows * Improve multiline insert and cursor position --------- Co-authored-by: HelioGuilherme66 <[email protected]> * Improve Ctrl-D function in Text Editor * Update CHANGELOG --------- Co-authored-by: Hélio Guilherme <[email protected]> * Update Git Actions (#2536) * fix install of wxPython * fix install of wxPython after tox * Remove use of tox and add invoke test * Install missing library * Install another missing library * Run Xvfb * Move step Run Xvfb * Add DISPLAY to env * Install xorg * Update ubuntu * Skips tests with wxPython when not having DISPLAY * Exclude two more test for missing DISPLAY * Git actions add pylint (#2537) * Create pylint.yml Lets see how this works ;) * Add .pylintrc * Change to analyse src only * Texteditor move row (#2538) * Alt-Down * Alt-Up * Fix uncomment in Text Editor (#2529) ** Fix comments in steps with arguments * Improve uncomment in Text Editor * Fix comments (#2530) * Update appveyor python versions * Experience with appveyor configuration * Experience with appveyor configuration 2 * Experience with appveyor configuration 3 * Experience with appveyor configuration 4 * Experience with appveyor configuration 5 * Update appveyor python versions * WIP: compute args in Step.as_list() * Fix comments in steps with arguments * Fix problems in Grid Editor on keywords with steps with #comments * Revert version number * Note about updating from current development 2.0rc1 * Devops (#2531) * Update appveyor python versions * Try to test in macos * Change to allow building in this branch * Use python3.9 * Install python3.9 and try to get information about system * Install pytest * Change to use invoke test * Update .appveyor.yml commented path definition * Texteditor ctrl i (#2522) * Add Ctrl-I to Text Editor * Insert multiselected rows * Improve multiline insert and cursor position --------- Co-authored-by: HelioGuilherme66 <[email protected]> * Devops (#2533) * Use python 3.10 * Use python 3.10, debug * Use python 3.10. Change to Bigsur * Use python 3.8 with Bigsur * Try to remove architecture in Bigsur * Change to build on image Visual Studio 2022 * Change path to python * Change how to call invoke * Add python to PATH * Exclude test on Windows * Hide Linux badges * Add install of wxPython (#2534) * Add Ctrl-D to Text Editor (#2523) * CTRL-D + author surname * Fix uncomment in Text Editor (#2529) ** Fix comments in steps with arguments * Improve uncomment in Text Editor * Fix comments (#2530) * Update appveyor python versions * Experience with appveyor configuration * Experience with appveyor configuration 2 * Experience with appveyor configuration 3 * Experience with appveyor configuration 4 * Experience with appveyor configuration 5 * Update appveyor python versions * WIP: compute args in Step.as_list() * Fix comments in steps with arguments * Fix problems in Grid Editor on keywords with steps with #comments * Revert version number * Note about updating from current development 2.0rc1 * Devops (#2531) * Update appveyor python versions * Try to test in macos * Change to allow building in this branch * Use python3.9 * Install python3.9 and try to get information about system * Install pytest * Change to use invoke test * Update .appveyor.yml commented path definition * Texteditor ctrl i (#2522) * Add Ctrl-I to Text Editor * Insert multiselected rows * Improve multiline insert and cursor position --------- Co-authored-by: HelioGuilherme66 <[email protected]> * Improve Ctrl-D function in Text Editor * Update CHANGELOG --------- Co-authored-by: Hélio Guilherme <[email protected]> * Update Git Actions (#2536) * fix install of wxPython * fix install of wxPython after tox * Remove use of tox and add invoke test * Install missing library * Install another missing library * Run Xvfb * Move step Run Xvfb * Add DISPLAY to env * Install xorg * Update ubuntu * Skips tests with wxPython when not having DISPLAY * Exclude two more test for missing DISPLAY * Git actions add pylint (#2537) * Create pylint.yml Lets see how this works ;) * Add .pylintrc * Change to analyse src only * Update CHANGELOG and add TODO --------- Co-authored-by: Harm Kramer <[email protected]> * Ctrl-Shift-I - insert cell(s) (#2528) * Ctrl-Shift-I * Ctrl-Shift-I * Completion of Ctrl-Shift-I in Text Editor --------- Co-authored-by: HelioGuilherme66 <[email protected]> * Texteditor ctrl shift d - delete cells (#2541) * Ctrl-Shift-I * Ctrl-Shift-I * Completion of Ctrl-Shift-I in Text Editor * Delete cells * Fix CTRL-SHIFT-D detection --------- Co-authored-by: HelioGuilherme66 <[email protected]> * Comments section (#2544) * Initial debug. Comment now shows in Text Edit bust with newlines * More debug * Pre release (#2545) * Initial debug. Comment now shows in Text Edit bust with newlines * More debug * Update tool and release notes. Add missing RETURN doc * Update offline CHANGELOG * Restore stashed code * Update off-line changelog * Version 2.0rc1 * Change to development version * Version 2.0 * Cleaning (#2556) * Reduce warnings in utest * Dev version * Improvecode (#2558) * Version in Appveyor * Improve coverage test report * Fix code bug detected by Sonar * Fix coverage.xml location in sonar configuration * Code cleaning with suggestions from PyCharm and Sonar * Improve coverage reporting * Improve quality of code in Text Editor * Improve code with suggestions from Sonar * Set pythonpath if not set * Recover adding newlines in sections (#2563) * Reduce pylint python versions, add sonar-scanner download and install (#2564) * Reduce pylint python versions, add sonar-scanner download and install * Change installation way of sonar-scanner * Fix installation way of sonar-scanner * Change test-ci to not run sonar and create new sonar task * Improves color management in Panels and Help/Doc popups (#2566) * Fix using defined color in help and HTML content * Fix persistance of color settings in File Explorer and Project Tree * Fixes not clearing fixtures, and synchronizing in Text Editor (#2567) * Fix vulnerabilities identified by Snyk (#2568) * Improve saving in texteditor (#2571) * Improve code in TextEditor * Fix modification indication after saving on Text Editor * Unit tests for Textedit (#2572) * Update appveyor python versions * Experience with appveyor configuration 2 * WIP: unit tests for Text Editor * Improve app creation and avoid AttributeError * Add unit tests for Text Editor * Fix missing color editor for keywords in Text Editor (#2573) * Cleanup code in kweditor (#2574) * Revert change that is causing error messages (#2575) * Merge PR code for autocomplete by Johnny H * DEBUG enclosing text * Fix auto-enclosing in Cell Editor in Linux --------- Co-authored-by: Johnny Huang <[email protected]> Co-authored-by: Johnny.H <[email protected]> Co-authored-by: J. Foederer <[email protected]> Co-authored-by: Helio Guilherme <[email protected]> Co-authored-by: space monkey <[email protected]> Co-authored-by: Junling Zhu <[email protected]> Co-authored-by: Harm <[email protected]>
1 parent 158aae6 commit 93dafba

File tree

13 files changed

+331
-162
lines changed

13 files changed

+331
-162
lines changed

CHANGELOG.adoc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,25 @@ and this project adheres to http://semver.org/spec/v2.0.0.html[Semantic Versioni
1010

1111
=== Changed
1212

13-
-- Made ``\n`` visible when editing cells in Grid Editor (problematic in Windows)
13+
- Keywords auto-suggestion in grid editor does not need shortcut anymore, if you want to disable this feature you can config in `Preferences -> Grid Editor -> Only trigger auto suggestions from shortcuts`
14+
15+
- Made ``\n`` visible when editing cells in Grid Editor (problematic in Windows)
1416

1517
== Fixed
1618

17-
-- Fixed missing color definition for keyword call in Text Editor
19+
- Fixed missing auto-enclosing when in Cell Editor in Linux
20+
21+
- Fixed RIDE will crash when using third party input method in Mac OS
22+
23+
- Fixed missing color definition for keyword call in Text Editor
1824

19-
-- Fixed clearing or emptying fixtures (Setups, Teardowns), now removes headers and synchronizes Text Editor
25+
- Fixed clearing or emptying fixtures (Setups, Teardowns), now removes headers and synchronizes Text Editor
2026

21-
-- Fixed selection and persistance of colors in File Explorer and Project Tree panels
27+
- Fixed selection and persistance of colors in File Explorer and Project Tree panels
2228

23-
-- Fixed not using defined color for help and HTML content
29+
- Fixed not using defined color for help and HTML content
2430

25-
-- Fixed missing newlines in sections separation
31+
- Fixed missing newlines in sections separation
2632

2733

2834
== https://github.com/robotframework/RIDE/blob/master/doc/releasenotes/ride-2.0.rst[2.0] - 2023-03-01

setup.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,21 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
import os
1718
import sys
1819
from os.path import abspath, join, dirname
19-
20-
sys.path.append(join(dirname(__file__), 'src'))
2120
from setuptools import setup, find_packages
21+
from setuptools.command.install import install
2222

2323
ROOT_DIR = dirname(abspath(__file__))
2424
SOURCE_DIR = 'src'
25-
REQUIREMENTS = ['wxPython', 'PyPubSub', 'Pygments', 'psutil']
26-
27-
#Windows specific requirements
28-
if sys.platform == 'win32':
29-
REQUIREMENTS.append('Pywin32')
25+
REQUIREMENTS = ['PyPubSub',
26+
'Pygments',
27+
'psutil',
28+
'Pywin32; sys_platform=="win32"',
29+
'wxPython']
3030

31-
version_file = join(ROOT_DIR, 'src', 'robotide', 'version.py')
32-
exec(compile(open(version_file).read(), version_file, 'exec'))
33-
34-
package_data = {
31+
PACKAGE_DATA = {
3532
'robotide.preferences': ['settings.cfg'],
3633
'robotide.widgets': ['*.png', '*.gif', '*.ico'],
3734
'robotide.messages': ['*.html'],
@@ -41,57 +38,60 @@
4138
'RIDE.app/Contents/MacOS/RIDE', 'RIDE.app/Contents/Resources/*.icns']
4239
}
4340

44-
long_description = """
41+
LONG_DESCRIPTION = """
4542
Robot Framework is a generic test automation framework for acceptance
4643
level testing. RIDE is a lightweight and intuitive editor for Robot
4744
Framework test data.
4845
""".strip()
4946

50-
classifiers = """
47+
CLASSIFIERS = """
5148
Development Status :: 5 - Production/Stable
5249
License :: OSI Approved :: Apache Software License
5350
Operating System :: OS Independent
54-
Programming Language :: Python
51+
Programming Language :: Python :: 3.6
52+
Programming Language :: Python :: 3.7
53+
Programming Language :: Python :: 3.8
5554
Topic :: Software Development :: Testing
5655
""".strip().splitlines()
5756

58-
# This solution is found at http://stackoverflow.com/a/26490820/5889853
59-
from setuptools.command.install import install
60-
import os
61-
import sys
62-
6357

58+
# This solution is found at http://stackoverflow.com/a/26490820/5889853
6459
class CustomInstallCommand(install):
65-
"""Customized setuptools install command - prints a friendly greeting."""
60+
"""Customized setuptools install command - install RIDE desktop shortcut."""
6661
def run(self):
6762
install.run(self)
68-
_ = sys.stderr.write("Creating Desktop Shortcut to RIDE...\n")
69-
postinstaller_file = join(ROOT_DIR, 'src', 'robotide', 'postinstall', '__main__.py')
70-
command = sys.executable + " " +postinstaller_file + " -install"
63+
sys.stdout.write("Creating Desktop Shortcut to RIDE...\n")
64+
post_installer_file = join(ROOT_DIR, SOURCE_DIR, 'robotide', 'postinstall', '__main__.py')
65+
command = sys.executable + " " + post_installer_file + " -install"
7166
os.system(command)
7267

68+
69+
main_ns = dict()
70+
version_file = join(ROOT_DIR, SOURCE_DIR, 'robotide', 'version.py')
71+
with open(version_file) as _:
72+
exec(_.read(), main_ns)
73+
7374
setup(
7475
name='robotframework-ride',
75-
version=VERSION,
76+
version=main_ns['VERSION'],
7677
description='RIDE :: Robot Framework Test Data Editor',
77-
long_description=long_description,
78+
long_description=LONG_DESCRIPTION,
7879
license='Apache License 2.0',
7980
keywords='robotframework testing testautomation',
8081
platforms='any',
81-
classifiers=classifiers,
82+
classifiers=CLASSIFIERS,
8283
author='Robot Framework Developers',
8384
author_email='[email protected]',
8485
url='https://github.com/robotframework/RIDE/',
8586
download_url='https://pypi.python.org/pypi/robotframework-ride',
86-
install_requires = REQUIREMENTS,
87+
install_requires=REQUIREMENTS,
8788
package_dir={'': SOURCE_DIR},
8889
packages=find_packages(SOURCE_DIR),
89-
package_data=package_data,
90+
package_data=PACKAGE_DATA,
9091
python_requires='>=3.6',
9192
# Robot Framework package data is not included, but RIDE does not need it.
9293
# Always install everything, since we may be switching between versions
9394
options={'install': {'force': True}},
9495
scripts=['src/bin/ride.py', 'src/bin/ride_postinstall.py'],
9596
cmdclass={'install': CustomInstallCommand},
96-
requires=['Pygments', 'wxPython', 'PyPubSub']
9797
)

src/robotide/context/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
IS_MAC = sys.platform == 'darwin'
3232
IS_LINUX = sys.platform == 'linux'
3333
WX_VERSION = wx.VERSION_STRING
34+
IS_WX_410_OR_HIGHER = WX_VERSION >= '4.1.0'
3435

3536
if IS_WINDOWS:
3637
SETTINGS_DIRECTORY = os.path.join(

0 commit comments

Comments
 (0)