-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Missing requirements.txt
from sdist
#9
Comments
Here is the CI log with relevant traceback below: Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/conda/staged-recipes/build_artifacts/jinja_partials_1712849747428/work/setup.py", line 16, in <module>
with open('./requirements.txt', 'r', encoding='utf-8') as fin:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: './requirements.txt'
error: subprocess-exited-with-error |
Hey @jakirkham I just committed a change that I think should fix this issue. Can you double check please? The project literally have one requirement, jinja2, so I figure I can just put it directly into the requirements section for the setup.py. Also: @Colelyman does the commit I just added (reference just above) fix your problem? |
Folks, I'm also considering upgrade this to use pyproject.toml and pure wheels rather than the setup.py. Would that help or hinder your desire to add it to conda (which, thank you!)? |
Thanks @mikeckennedy! I think that should fix the problem, to be completely sure a new release would need to be issued. I can look into other conda packages that use pyproject.toml, and report back. |
Thanks! Any chance you would be able to push it to PyPI? The v0.2.0 release from GitHub tags worked, but it was the PyPI v0.2.0 was where the |
Hi @Colelyman Yes, I just pushed it. Thanks! |
The sdist has the fixed setup.py and I also published the wheel but it doesn't include the setup.py file. Let me know if this causes you any trouble. |
Thanks @mikeckennedy, looks like it worked! (See here: conda-forge/staged-recipes#26017) On a different note, would you like to be added as a maintainer of the package? If so, you can comment something like "I would like to be a maintainer" in the PR and I will add you in. |
Thanks Mike! 🙏 That seems like a reasonable fix Moving to |
Great, thanks @jakirkham I already pushed the changes for the |
It's still possible to build an |
Sounds good. I was just trying to keep anything people may have been working with stable. I'll drop the setup.py eventually. Thanks. |
Yeah for sure. Appreciate that Mike Yeah the The default GitHub archives are generated on demand. So their checksums can change between downloads. Using |
Got it. The latest version on PyPI has the fixed sdist we talked about here. Thanks! |
Yep the fix works great for us. Thank you! 🙏 |
Currently
requirements.txt
is missing from thesdist
on PyPI. As a result building from thesdist
fails as it cannot findrequirements.txt
insetup.py
Would it be possible to add
requirements.txt
toMANIFEST.in
or similar to ensure thesdist
includes this file when created?The text was updated successfully, but these errors were encountered: