ERROR Backend subproccess exited when trying to invoke get_requires_for_build_sdist

FLA*_*OSO 10 python pip package pypi github-actions

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.
Run Code Online (Sandbox Code Playgroud)

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.

小智 0

我认为问题在于

package_dir={'':"src"},
packages=find_packages("src")
Run Code Online (Sandbox Code Playgroud)

我也遇到了类似的问题,但能够通过更正 package_dir 来修复它。

下面是我的存储库,我也做了同样的事情。 你好世界Python包