canonical / canonical/cloud-init

SyntaxWarning while building with Python 3.12

Open
#5,174 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
3.8k
Forks
1.1k
Avg merge
2d 23h
Merged PRs (30d)
18

Description

# Bug report

Now that Alpine Edge has updated Python from 3.11.8 to 3.12.3 (py3-setuptools 69.2.0 and py3-test 8.1.1 in both cases) I see some new SyntaxWarning messages during packaging.

## Steps to reproduce the problem

## Environment details
- Cloud-init version: git main
- Operating System Distribution: Alpine Linux Edge
- Cloud provider, platform or installer type: n/a

## cloud-init logs

```
/home/builder/package/src/cloud-init-24.2/setup.py:192: SyntaxWarning: invalid escape sequence '\o'
if cpe_data[1] == "\o": # noqa: W605
/home/builder/package/src/cloud-init-24.2/tools/read-dependencies:46: SyntaxWarning: invalid escape sequence '\.'
"""
running build
running build_py
creating build
creating build/lib
creating build/lib/cloudinit
...
...
= 5257 passed, 7 skipped, 4 deselected, 8 xfailed, 680 warnings in 72.48s (0:01:
>>> cloud-init: Entering fakeroot...
/home/builder/package/src/cloud-init-24.2/setup.py:192: SyntaxWarning: invalid escape sequence '\o'
if cpe_data[1] == "\o": # noqa: W605
/home/builder/package/src/cloud-init-24.2/tools/read-dependencies:46: SyntaxWarning: invalid escape sequence '\.'
"""
running install

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.