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

.github: Update supported python versions #752

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Install Python dependencies
run: |
pip3 install build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
# This is enough to find many quoting issues
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers = [
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
]
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = [
"colorama",
"PyYAML>=5.1",
Expand Down
5 changes: 4 additions & 1 deletion src/west/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2421,7 +2421,10 @@ def _load_project(self, pd: Dict, url_bases: Dict[str, str],
# symbolic links.
ret_norm = os.path.normpath(ret.path)

if os.path.isabs(ret_norm):
# To be "really" absolute, a Windows path must include the "drive" like C:\\, D:\\.
# But here we also want to block drive-less "half-breeds".
# Note this question has confused Python which changed the `.isabs()` behavior in 3.13
if ret_norm[0] in '/\\' or os.path.isabs(ret_norm):
self._malformed(f'project "{ret.name}" has absolute path '
f'{ret.path}; this must be relative to the '
f'workspace topdir' +
Expand Down