Upload sdist to PyPI to enable building conda-forge package
Hi,
I've been trying to get fhiry onto conda-forge using grayskull but it seems like the source distribution (sdist) for fhiry is missing on PyPI. So running grayskull pypi fhiry to generate the conda-forge recipe fails with the error:AttributeError: There is no sdist package on pypi for fhiry. Here is the link for the PR
I have also tried to generate the conda recipe with grayskull pypi https://github.com/dermatologist/fhiry but the building process is failed with the error:
LookupError: setuptools-scm was unable to detect version for /opt/homebrew/Caskroom/miniforge/base/envs/nfcore/conda-bld/fhiry_1716032605268/work.
Make sure you're either building from a fully intact git repository or PyPI tarballs.
Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
I think the reason is that GitHub's tarball is used if the recipe is generated with git url. So I would like to ask whether it is possible to upload the sdist (tar.gz file) to PyPI too? Big thx!
Thank you for raising this issue. We will try and get back to you as soon as possible. Be sure to star ✨ the repository for a priority response! Please make sure you have given us as much context as possible.
Hi @wxicu, Sorry, I just noticed this. Are you still having the issue? What change should I make to my publish pipeline to include sdist?
Thanks 👍🏽