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

declare Python 3.13 support #79

Merged
merged 2 commits into from
Sep 23, 2024
Merged

declare Python 3.13 support #79

merged 2 commits into from
Sep 23, 2024

Conversation

stanislavlevin
Copy link
Owner

According to the Python release schedule:
https://peps.python.org/pep-0719/

Python 3.13 will be released on October 1, 2024

https://docs.python.org/3.13/whatsnew/3.13.html

Fixes: #78

- according to the Python release schedule:
  https://peps.python.org/pep-0719/

  > Python 3.13 will be released on October 1, 2024

  https://docs.python.org/3.13/whatsnew/3.13.html

- allow prereleases on GA:
https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#allow-pre-releases

  > The allow-prereleases flag defaults to false. If allow-prereleases
    is set to true, the action will allow falling back to pre-release
    versions of Python when a matching GA version of Python is not
    available.

Fixes: #78
Signed-off-by: Stanislav Levin <[email protected]>
trampolim project looks unmaintained:
https://github.com/FFY00/trampolim

Its build from source tree fails on Python 3.13:
```
Captured stderr:

Traceback (most recent call last):
  File "/tmp/pytest-of-runner/pytest-0/test_build_and_install_in_tree0/venv/lib/python3.13/site-packages/pyproject_installer/lib/backend_helper/backend_caller.py", line 200, in <module>
    main(sys.argv[1:])
    ~~~~^^^^^^^^^^^^^^
  File "/tmp/pytest-of-runner/pytest-0/test_build_and_install_in_tree0/venv/lib/python3.13/site-packages/pyproject_installer/lib/backend_helper/backend_caller.py", line 187, in main
    hook_result = call_hook(
        backend,
    ...<3 lines>...
        hook_kwargs=hook_kwargs,
    )
  File "/tmp/pytest-of-runner/pytest-0/test_build_and_install_in_tree0/venv/lib/python3.13/site-packages/pyproject_installer/lib/backend_helper/backend_caller.py", line 155, in call_hook
    return hook_func(*hook_args, **hook_kwargs)
  File "/tmp/pytest-of-runner/pytest-0/test_build_and_install_in_tree0/trampolim/trampolim/__init__.py", line 59, in build_wheel
    project = trampolim._build.Project()
  File "/tmp/pytest-of-runner/pytest-0/test_build_and_install_in_tree0/trampolim/trampolim/_build.py", line 148, in __init__
    itertools.chain(self.distribution_source, self.build_system_source),
                    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/pytest-of-runner/pytest-0/test_build_and_install_in_tree0/trampolim/trampolim/_build.py", line 228, in distribution_source
    | self.python_source.source
      ^^^^^^^^^^^^^^^^^^
  File "/tmp/pytest-of-runner/pytest-0/test_build_and_install_in_tree0/trampolim/trampolim/_build.py", line 280, in python_source
    for path in directory.iterdir()
                ~~~~~~~~~~~~~~~~~^^
  File "/opt/hostedtoolcache/Python/3.13.0-rc.2/x64/lib/python3.13/pathlib/_local.py", line 575, in iterdir
    with os.scandir(root_dir) as scandir_it:
         ~~~~~~~~~~^^^^^^^^^^
NotADirectoryError: [Errno 20] Not a directory: 'trampolim/_build.py'

=========================== short test summary info ============================
FAILED tests/integration/test_backends.py::test_build_and_install_in_tree_backends[trampolim] - subprocess.CalledProcessError: Command '['/tmp/pytest-of-runner/pytest-0/test_build_and_install_in_tree0/venv/bin/python', '-m', 'pyproject_installer', 'build']' returned non-zero exit status 1.
```

Fixes: #78
Signed-off-by: Stanislav Levin <[email protected]>
@stanislavlevin stanislavlevin merged commit 9ff87d6 into main Sep 23, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python 3.13
1 participant