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

Support Python 3.13 #1352

Closed
edgarrmondragon opened this issue Aug 6, 2024 · 7 comments · Fixed by #1353
Closed

Support Python 3.13 #1352

edgarrmondragon opened this issue Aug 6, 2024 · 7 comments · Fixed by #1353

Comments

@edgarrmondragon
Copy link
Contributor

Python 3.13.0rc1 is out1 so it'd be nice to start publishing the corresponding wheels for this package.

Footnotes

  1. https://discuss.python.org/t/python-3-13-0-release-candidate-1-released/59703

@jelmer
Copy link
Owner

jelmer commented Aug 6, 2024

It should just be a matter of updating the files in .github/workflows/ to include 3.13. can you submit a PR?

@edgarrmondragon
Copy link
Contributor Author

can you submit a PR?

Yes, will do!

jelmer added a commit that referenced this issue Aug 7, 2024
@jelmer jelmer reopened this Aug 7, 2024
@jelmer
Copy link
Owner

jelmer commented Aug 7, 2024

Reopening this since the actual builds are failing. This appears to be blocked on PyO3/pyo3#4420

@jelmer
Copy link
Owner

jelmer commented Aug 13, 2024

We're also hitting python/cpython#122728:

ERROR: test_default_key (tests.test_porcelain.CommitSignTests.test_default_key)
----------------------------------------------------------------------
SystemError: Objects/dictobject.c:3774: bad argument to internal function

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/runner/work/dulwich/dulwich/tests/test_porcelain.py", line 469, in test_default_key
    sha = porcelain.commit(
        self.repo.path,
    ...<3 lines>...
        signoff=True,
    )
  File "/home/runner/work/dulwich/dulwich/dulwich/porcelain.py", line 444, in commit
    return r.do_commit(
           ~~~~~~~~~~~^
        message=message,
        ^^^^^^^^^^^^^^^^
    ...<6 lines>...
        sign=signoff if isinstance(signoff, (str, bool)) else None,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/runner/work/dulwich/dulwich/dulwich/repo.py", line 1045, in do_commit
    c.sign(keyid)
    ~~~~~~^^^^^^^
  File "/home/runner/work/dulwich/dulwich/dulwich/objects.py", line 1508, in sign
    self.gpgsig, unused_result = c.sign(
                                 ~~~~~~^
        self.as_raw_string(), mode=gpg.constants.sig.mode.DETACH
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/opt/hostedtoolcache/Python/3.13.0-rc.1/x64/lib/python3.13/site-packages/gpg/core.py", line 444, in sign
    result = self.op_sign_result()
  File "/opt/hostedtoolcache/Python/3.13.0-rc.1/x64/lib/python3.13/site-packages/gpg/core.py", line 151, in wrapper
    return _funcwrap(self, *args)
  File "/opt/hostedtoolcache/Python/3.13.0-rc.1/x64/lib/python3.13/site-packages/gpg/core.py", line 138, in _funcwrap
    result = func(slf.wrapped, *args)
  File "/opt/hostedtoolcache/Python/3.13.0-rc.1/x64/lib/python3.13/site-packages/gpg/gpgme.py", line 1144, in gpgme_op_sign_result
    return _gpgme.gpgme_op_sign_result(ctx)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
  File "<frozen importlib._bootstrap>", line 645, in parent
SystemError: <sys.legacy_event_handler object at 0x7f3258f7c230> returned a result with an exception set

(just noticed you also mentioned that in the PR)

@jelmer
Copy link
Owner

jelmer commented Aug 19, 2024

This is now resolved

@jelmer jelmer closed this as completed Aug 19, 2024
@skshetry
Copy link
Contributor

@jelmer, do you plan to make a release? I am interested in 3.13 support and the fix from #1300.

@jelmer
Copy link
Owner

jelmer commented Aug 22, 2024

@jelmer, do you plan to make a release? I am interested in 3.13 support and the fix from #1300.

I'll try to publish another release this week.

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 a pull request may close this issue.

3 participants