Environment
- Package: statsig-python-core
- Version: 0.14.0
- Python Implementation: PyPy 7.3.19
- Python Version: 3.10.16
- Platform: macOS (darwin)
- Installation Method: pip install from PyPI
Description
The source distribution for statsig-python-core==0.14.0 fails to install due to a missing README.md file that is referenced in the Cargo.toml manifest but not included in the sdist tarball.
Steps to Reproduce
- Set up a PyPy 3.10 environment
- Run:
pip install statsig-python-core==0.14.0
- Observe the build failure
uv venv --python pypy3.10
Using PyPy 3.10.16
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate
source .venv/bin/activate
pip install statsig-python-core==0.14.0
Expected Behavior
The package should install successfully, either by:
- Including the README.md file in the source distribution, or
- Updating the Cargo.toml to not require the README.md file for metadata generation
Actual Behavior
Installation fails with the following error:
Collecting statsig-python-core==0.14.0
Using cached statsig_python_core-0.14.0.tar.gz (1.7 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
💥 maturin failed
Caused by: Failed to parse Cargo.toml into python metadata
Caused by: Failed to read Readme specified in Cargo.toml, which should be at /private/var/folders/rh/7g9jdtr91p5f6ny7zktngrl40000gp/T/pip-install-ee9hkb_g/statsig-python-core_089720b016304023aca0e01d4257fb37/statsig-pyo3/../README.md
Caused by: failed to open file `/private/var/folders/rh/7g9jdtr91p5f6ny7zktngrl40000gp/T/pip-install-ee9hkb_g/statsig-python-core_089720b016304023aca0e01d4257fb37/statsig-pyo3/../README.md`: No such file or directory (os error 2)
Error running maturin: Command '['maturin', 'pep517', 'write-dist-info', '--metadata-directory', '/private/var/folders/rh/7g9jdtr91p5f6ny7zktngrl40000gp/T/pip-modern-metadata-it2bm101', '--interpreter', '/Users/adamvu/.pyenv/versions/pypy3.10-7.3.19/bin/python']' returned non-zero exit status 1.
Checking for Rust toolchain....
Running `maturin pep517 write-dist-info --metadata-directory /private/var/folders/rh/7g9jdtr91p5f6ny7zktngrl40000gp/T/pip-modern-metadata-it2bm101 --interpreter /Users/adamvu/.pyenv/versions/pypy3.10-7.3.19/bin/python`
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Thank you for maintaining this package!
Environment
Description
The source distribution for
statsig-python-core==0.14.0fails to install due to a missing README.md file that is referenced in the Cargo.toml manifest but not included in the sdist tarball.Steps to Reproduce
pip install statsig-python-core==0.14.0Expected Behavior
The package should install successfully, either by:
Actual Behavior
Installation fails with the following error:
Thank you for maintaining this package!