Conversation
The source distribution build/test job did indeed cause action to fail as expected.
The macOS 14 build wheel action did indeed cause the action to fail as expected.
|
MC:
|
setuptools-scm uses tags in the project's clone to automatically determine the version. It appears that the default shallow clone did not include tags. This fix was present in publish.yml, which suggests that release.yml will hopefully build distributions with the correct version.
|
Putting a note here about setuptools version impacting the autoversioning in building the correct release version. In another package mosesyhc/LCGP I needed to upgrade |
The wheels were building with the expected version string in the GH action.
|
The version issue was with I fixed I now see the correct version for the wheels and source distribution created by When I look at the @mosesyhc Can you please try with Test-PyPI again. If it works, then I need to remove some test lines in |
|
Moses has suggested that the following triggering event should be added to |
|
I have downloaded the newly produced wheels from the release action. I can verify that |
|
And that fails when you run It appears that the I can also use I can also run While for Windows, I see I also see the use of the two carriage returns in It seems like Did you try publishing them to Test-PyPI to see if PyPI knows how to deal with this automatically? |
|
Yes. When I test upload to testPyPI, I get hit with another error complaining about non-release versions (which I should have expected): It seems like we have to build the release versions before trying twine uploads. |
See if loading this file is the source of mixed carriage returns in Windows wheels.
|
I believe your fix already handles it, but for a reference, here is a discussion that tackles the CR/CRLF problem (pypa/twine#495 (comment)). |
Also, reset to windows-latest runner. Using newer OS didn't help.
|
For the record:
Using One possible explanation for this is that, noting that our files apparently use
|
|
Solved (but very puzzled.) It seems like the use of For the most recent built wheels, all |
|
See TestPyPI results: |
|
Not too essential, but may consider. Code coverage action fails because |
|
Strange. I don't understand completely. But I can confirm that the Windows wheels now have the expected line termination according to and with I'll do some clean-up now. |
@mosesyhc I'm happy with what we have and I am ready for the next and hopefully last part of your review. |
mosesyhc
left a comment
There was a problem hiding this comment.
Confirmed that all the required wheels and source distribution pass twine now.
Once set with the next release tag, the package will be ready for release.
Self-review tasks:
make-sdistis running tests. Confirm thatmake-sdistcorrectly detects and reports test failure.build-wheelsis running tests. Confirm thatbuild-wheelscorrectly detects and reports test failure.* Tested Python 3.9 to 3.13 on ARM64 macOS. Compiled Cython code only depends on OS libraries according to
otool -L* Tested Python 3.10 and 3.11 on RedHat Linux 8.10 with x86_64 architecture. Compiled Cython code only depends on OS libraries according to
ldd* Tested Python 3.10 on Ubuntu 22.04 with x86_64 architecture. Compiled Cython code only depends on OS libraries according to
ldd.release.ymlhas been altered so that it only runs on pushes tomain@mosesyhc to review. Upload these to Test-PyPI as part of review or wait until next release? The last wheels automatically built are available as artifacts at
https://github.com/bandframework/surmise/actions/runs/17049773899