Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update python to version 313 #447

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from

Conversation

ngoan1608
Copy link
Collaborator

Hi Thomas,

This PR for AIO version 0.14.0 to upgrade python to version 0.13.2.

As I mentioned before there are required adaptions in our libraries:

  1. Selftest of qconnect-base: which cause hanging issue in build pipeline (referent build)
  2. Update in tutorial (gen html docs) due to updated version of docutils (referent build, my updated branch )
  3. Adaptions in our libraries to avoid SyntaxWarning in regex pattern, change log from python 3.12.x
    Example warning when executing robot code with python 3.13.2
C:\Program Files\RobotFramework\python3\Lib\site-packages\RobotFramework_TestsuitesManagement\Utils\LibListener.py:85: SyntaxWarning: invalid escape sequence '\s'
  if re.match('^\s*$', BuiltIn().get_variable_value('${LOCAL_CONFIG}')):
C:\Program Files\RobotFramework\python3\Lib\site-packages\JsonPreprocessor\CJsonPreprocessor.py:281: SyntaxWarning: invalid escape sequence '\s'
  if re.match('^\s*\[\s*import\s*\]\s*', key.lower()):
C:\Program Files\RobotFramework\python3\Lib\site-packages\JsonPreprocessor\CJsonPreprocessor.py:328: SyntaxWarning: invalid escape sequence '\s'
  if re.match('^\s*\[\s*import\s*\]\s*', k) and '${' in v:
C:\Program Files\RobotFramework\python3\Lib\site-packages\JsonPreprocessor\CJsonPreprocessor.py:533: SyntaxWarning: invalid escape sequence '\s'
  if not re.match('^\s*\[.+$', sInput):
C:\Program Files\RobotFramework\python3\Lib\site-packages\JsonPreprocessor\CJsonPreprocessor.py:614: SyntaxWarning: invalid escape sequence '\s'
  if isinstance(error, KeyError) and re.search(r"\[\s*" + str(error) + "\s*\]", sNestedParam):
C:\Program Files\RobotFramework\python3\Lib\site-packages\JsonPreprocessor\CJsonPreprocessor.py:1077: SyntaxWarning: invalid escape sequence '\$'
  sInputStr = re.sub("\$", "$$", sInputStr)
C:\Program Files\RobotFramework\python3\Lib\site-packages\JsonPreprocessor\CJsonPreprocessor.py:1080: SyntaxWarning: invalid escape sequence '\$'
  sInputStr = re.sub("\$", "$$", sInputStr)
C:\Program Files\RobotFramework\python3\Lib\site-packages\JsonPreprocessor\CJsonPreprocessor.py:1166: SyntaxWarning: invalid escape sequence '\$'
  k = re.sub("\$", "$$", k)
C:\Program Files\RobotFramework\python3\Lib\site-packages\JsonPreprocessor\CJsonPreprocessor.py:1316: SyntaxWarning: invalid escape sequence '\['
  parentParams = re.sub(f"\['{k}'\]", "", parentParams)
C:\Program Files\RobotFramework\python3\Lib\site-packages\JsonPreprocessor\CJsonPreprocessor.py:1316: SyntaxWarning: invalid escape sequence '\]'
  parentParams = re.sub(f"\['{k}'\]", "", parentParams)
C:\Program Files\RobotFramework\python3\Lib\site-packages\JsonPreprocessor\CJsonPreprocessor.py:1321: SyntaxWarning: invalid escape sequence '\['
  transTable = str.maketrans({"[":"\[", "]":"\]" })
C:\Program Files\RobotFramework\python3\Lib\site-packages\JsonPreprocessor\CJsonPreprocessor.py:1321: SyntaxWarning: invalid escape sequence '\]'
  transTable = str.maketrans({"[":"\[", "]":"\]" })
C:\Program Files\RobotFramework\python3\Lib\site-packages\JsonPreprocessor\CJsonPreprocessor.py:1723: SyntaxWarning: invalid escape sequence '\d'
  origKey = re.sub(f"{CNameMangling.DUPLICATEDKEY_01.value}\d+\s*$", "", key)
C:\Program Files\RobotFramework\python3\Lib\site-packages\JsonPreprocessor\CJsonPreprocessor.py:1729: SyntaxWarning: invalid escape sequence '\d'
  origK = re.sub(f"{CNameMangling.DUPLICATEDKEY_01.value}\d+\s*$", "", k)
C:\Program Files\RobotFramework\python3\Lib\site-packages\JsonPreprocessor\CJsonPreprocessor.py:1850: SyntaxWarning: invalid escape sequence '\s'
  items = re.split("\s*:\s*", line)

Referent successful pipeline which I disable qconnect-base selftest and executed with my update branch in tutorial repo:
https://github.com/test-fullautomation/RobotFramework_AIO/actions/runs/13409490886

I have also updated release_info, please also refer them for more detail.

Thank you,
Ngoan

Copy link
Collaborator

@HolQue HolQue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In release item file the Python update is tagged as "0.13.2." . But I would expect "0.14.0."

@ngoan1608
Copy link
Collaborator Author

In release item file the Python update is tagged as "0.13.2." . But I would expect "0.14.0."

Hi Holger,

Thank you for your finding.
I have updated the it properly in new commit.

Thank you,
Ngoan

@ngoan1608 ngoan1608 requested a review from HolQue February 20, 2025 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants