-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
bin sdist fails to build #1571
Comments
Thanks for the report, I'll take a look this weekend along with #1570. In the meantime you can build and publish musllinux wheels for Alpine users so they don't need to compile from sdist. For example: jobs:
musllinux:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v3
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist
sccache: 'true'
manylinux: musllinux_1_2
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist |
So the problem is that in workspace Cargo.toml, |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description
I've adopted maturin for distributing my pre-commit hooks so people can use the pre-built wheels. Unfortunately, I just got a bug report (crate-ci/typos#713) that the sdist fails to build because it can't find the
Cargo.toml
I can reproduce it locally but its not all clear what is going on behind the scenes that is causing this to fail. I would have assumed the wheels are created from the sdist but our CI job passes that creates all wheels and sdist
Doing a quick comparison
ruff
(assuming sdist works)/pyproject.toml
/crates/ruff-cli/Cargo.toml
tool.maturin.manifest-path
for this to work/pyproject.toml
/Cargo.toml
/crates/typos-cli/pyproject.toml
/crates/typos-cli/Cargo.toml
typos-cli
into thecrates
folder so I could have a pure-pythonpyproject.toml
in the root for pre-commit to use because it always installs the top-level package from sourceWhen writing the reason why we switched from 1.13.20's layout to 1.14.7's, that means it did work at some point (crate-ci/typos#682), so I'm a bit confused as to why its not working for me right now or the person who opened the issue on my repo.
ruff sdist includes:
1.13.20 sdist includes:
1.14.7 sdist includes:
Unsure why I have a
Cargo.lock
in the root butruff
does notYour maturin version (
maturin --version
)0.14.17
Your Python version (
python -V
)Python 3.10.6
Your pip version (
pip -V
)pip 22.0.2
What bindings you're using
bin
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
pip install typos --no-binary typos
The text was updated successfully, but these errors were encountered: