0

I used the Upload Python Package workflow on GitHub to upload the module stored in the repository to PyPI.
As you can see at the link above, I followed the tutorial given by packaging.python.org, to be more specific I used setup.py instead of setup.cfg.

Anyway an error occurred during the last deploy, which gave me the following error:
Run python -m build
python -m build
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.10.4/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.4/x64/lib
running egg_info
creating src/classevivaAPI.egg-info
writing src/classevivaAPI.egg-info/PKG-INFO
writing dependency_links to src/classevivaAPI.egg-info/dependency_links.txt
writing top-level names to src/classevivaAPI.egg-info/top_level.txt
writing manifest file ‘src/classevivaAPI.egg-info/SOURCES.txt’
error: package directory ‘src/classevivaAPI’ does not exist
* Creating venv isolated environment…
* Installing packages in isolated environment… (selenium>=4.1.3, setuptools>=42)
* Getting dependencies for sdist…

ERROR Backend subproccess exited when trying to invoke get_requires_for_build_sdist
Error: Process completed with exit code 1.

In particular I was wondering what does the following line mean:

ERROR Backend subproccess exited when trying to invoke get_requires_for_build_sdist

Have you ever had the same problem? Do you know how to solve it and upload my package? Thank you in advance.

Kuldeep Baberwal Changed status to publish February 17, 2025