Test Python 3.14#203
Conversation
7fea300 to
c92826a
Compare
|
It looks like hatch itself is failing with Python 3.14: I cannot find a relevant hatch issue. I'll rebease to make sure we use the newly released Python 3.14.0 instead of 3.14.0-rc.3. |
c92826a to
ec5be4a
Compare
|
I think this needs to be set since there has not yet been a release that modifies the default https://hatch.pypa.io/latest/config/internal/testing/#matrix |
06e8816 to
f49f3b0
Compare
b8404f4 to
870af6f
Compare
|
Well, at least we got past that error! |
|
Strange that this error only occurs with Python 3.14:
Looks like a build issue of fastecdsa itself, |
c29fdd1 to
d313661
Compare
See if this helps https://py-libp2p.readthedocs.io/en/latest/contributing.html#macos-setup brew install cmake pkgconfig gmp
# On macOS, help the build command find and link against the gmp library:
CFLAGS="`pkg-config --cflags gmp`" LDFLAGS="`pkg-config --libs gmp`" python3 -m pip install -e ".[dev]"
#############
Hello I'm Luca from py-libp2p waiting for the `coincurve` new release for python v3.14 (needed for windows) |
d313661 to
47c74cf
Compare
|
This had already been pointed out in #203 (comment). The whole remaining question is where exactly to define these environment variables. |
a31bfd0 to
6bb0ae2
Compare
| # https://stackoverflow.com/questions/68827486/cannot-link-gmp-library-not-found-for-lgmp | ||
| LIBRARY_PATH /opt/homebrew/lib | ||
| INCLUDE_PATH /opt/homebrew/include | ||
|
|
There was a problem hiding this comment.
Not sure this is the best location for defining these variables, but I cannot find anything better. Suggestions?
There was a problem hiding this comment.
This doesn't appear to be valid syntax, how is this working? 😅
There was a problem hiding this comment.
I guess the parser is permissive. Fixed.
| [[envs.hatch-test.matrix]] | ||
| python = ["3.14", "3.13", "3.12", "3.11", "3.10", "3.9"] |
There was a problem hiding this comment.
Try removing this because of the new release https://github.com/pypa/hatch/releases/tag/hatch-v1.15.0
| # https://stackoverflow.com/questions/68827486/cannot-link-gmp-library-not-found-for-lgmp | ||
| LIBRARY_PATH /opt/homebrew/lib | ||
| INCLUDE_PATH /opt/homebrew/include | ||
|
|
There was a problem hiding this comment.
This doesn't appear to be valid syntax, how is this working? 😅
6bb0ae2 to
66dd5a3
Compare
|
Fixing the syntax error appears to have broken the build somehow, wow! Can you add that back and print out those environment variables? As you mentioned, the parser must be lenient because I just tried https://raw.githubusercontent.com/ofek/coincurve/6bb0ae22705d0cef2e2774ddfc66f6922b729b16/.github/workflows/build.yml: >>> import pyperclip,yaml
>>> s=yaml.safe_load(pyperclip.paste())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
...
File "C:\Users\ofek\AppData\Local\Programs\Python\Python312\Lib\site-packages\yaml\scanner.py", line 291, in stale_possible_simple_keys
raise ScannerError("while scanning a simple key", key.mark,
yaml.scanner.ScannerError: while scanning a simple key
in "<unicode string>", line 41, column 3:
LIBRARY_PATH /opt/homebrew/lib
^
could not find expected ':'
in "<unicode string>", line 42, column 3:
INCLUDE_PATH /opt/homebrew/include
^ |
482e5e7 to
e210a0d
Compare
e210a0d to
117ffab
Compare
|
Fixed by using |
|
Nice, thanks a lot! Do you think we could set those conditionally just on the jobs that were failing? |
|
This really is a workaround that I hope to get rid of, see AntonKueltz/fastecdsa#114. And I still fail to understand why the build fails with Python 3.14 only. I suspect Python 3.14 might pull a different version of a dependency. So I'm not certain we should set the variables conditionally. |
117ffab to
3246980
Compare
|
I've moved the definition of the environment variables to the specific step that needs them: coincurve/.github/workflows/build.yml Lines 65 to 66 in dbac6b6 However, I haven't found a way to define the variables conditionally. |
|
Is there a way to retrieve the details of what |
|
|
92463b8 to
086feb4
Compare
|
Unfortunately I'll try again without |
741bd42 to
73e570f
Compare
|
@ofek Somehow, macOS issues fixed themselves. I guess a bug has been fixed somewhere in CI software/runners. |
ofek
left a comment
There was a problem hiding this comment.
Thanks for persevering through the weirdness!
|
Interestingly, master broke https://github.com/ofek/coincurve/actions/runs/18672653134/job/53236594428 |
|
I found the cause of the strange behavior: |
|
I'm not sure how to interpret this:
|
No description provided.