-
Notifications
You must be signed in to change notification settings - Fork 126
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
Adding source distribution #415
Conversation
Hey @step21 thanks so much for this! In general it looks great, I'm a little concerned about a path problem. I'm not sure it will actually get published with the wheels. I'll need to do some investigation. And yes, testing locally is difficult. I'm a bit busy with other things at the moment, but I'll try to get around to properly reviewing this soon. |
In my investigation, setup.py etc create wheels and sdist all in the same repository. And in examples like sklearn, it seems they also use the same github action as you do for actual upload. So I made sure to upload artifacts to the same name, and ideally the path should not be an issue. (But I didn't verify this yet) |
Hey again. So the source distribution only contains code in the Python bindings directory. It doesn't contain
I'm not sure what the proper solution to this is. Maybe moving Edit: moving |
Thanks for taking a stab. I think you should be able to specify additional files for the source, but yeah, moving setup.py to the main directory could work too. |
Hey, I added a MANIFEST.in file to include the relevant files. (it might be more files than needed, but the archive is still super small) I would also be possible to add this in setup.py directly, but I thought this way would be cleaner. |
Hey @step21, the manifest file is a good idea! I think this might be the solution. Yes, I'm not a fan of it extracting to parent directories, but we can fix that by moving setup.py into the project's root. I will play around with this a bit and might push a few commits. |
@step21 how important is Windows to you? |
So it's working on Windows, but it's a bit weird. Building |
awesome, thanks a lot! |
FWIW, I also now have an annoying windows error. (just FYI) |
What is the error? We might be able to fix it. |
I'm not sure it's your fault / that of c-kzg. :) But in case you want to take a look: Build log: https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=917127&view=logs&jobId=240f1fee-52bc-5498-a14a-8361bde76ba0&j=240f1fee-52bc-5498-a14a-8361bde76ba0&t=7c0f8eae-6d6f-51bf-636f-73a1a7fb1bc4
Further up it seems to take this path from "SOURCES.txt" but not sure where that is generated. |
Hmm interesting. I suspect it's because absolute paths are used in I could make these files (and the other usages) relative. What do you think? Line 40 in a874006
Where, Lines 11 to 12 in a874006
And Line 7 in a874006
|
Ah that makes sense. Well it it's not too much trouble. Sorry for Windows being weird, personally I wouldn't care but some ppl use it :) If you want me to test locally, I have a Windows machine at another desk and could test that later. |
Not too much trouble! I'd like for it to work properly on Windows. If you could test out the changes from that new PR, that would be great. Afterwards, we can merge it. There's no rush though. |
Hey, this should add source packages to the python packages. I don't really know of a good way to test github actions locally, but if you do, would be happy to do so. This is basically why it is still labeled WIP.