Closed nph4rd closed 3 years ago
Thanks! Let's find a way to test the release packages without spamming PyPI (e.g. https://test.pypi.org/) and document it for future uses.
Thanks! Let's find a way to test the release packages without spamming PyPI (e.g. https://test.pypi.org/) and document it for future uses.
Hey @tholop - tried to use TestPyPI but did not succeed. Specifically, it wasn't clear to me how to use manylinux2014
for publishing. I was trying something like this, but no luck:
docker run --rm -v $(pwd):/io konstin2/maturin publish -b cffi --no-sdist -r https://test.pypi.org/legacy/ -u USERNAME -p PASSWORD --skip-auditwheel --manylinux 2014
I think the problem was due to this:
Invalid value for project_urls. Error: Use both a label and an URL.
However, I never managed to upload anything, even after playing around with the project-url config in Cargo.toml
(see
e8c6171 for the config I used).
Any ideas?
Opened this issue, as I believe the problem is not due to the config.
Opened this issue, as I believe the problem is not due to the config.
Managed to publish with:
docker run --rm -v $(pwd):/io konstin2/maturin publish -b cffi --no-sdist -r https://test.pypi.org/legacy/ -u USERNAME -p PASSWORD --manylinux 2014
As was suggested here, we might want to use a GH Actions workflow to compile the wheel that we're interested in.
Update: Managed to build and publish package for aarch architecture as follows:
docker run --rm -it -v $(pwd):/home/rust/src messense/manylinux_2_24-cross:aarch64
curl https://sh.rustup.rs -sSf | bash -s -- -y
echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
source $HOME/.cargo/env
rustup target add aarch64-unknown-linux-gnu
maturin publish -b cffi --no-sdist -r https://test.pypi.org/legacy/ -u USER -p PASSWORD --manylinux 2014
I think we can just modify the docker image so as to run the last command in a GH Actions workflow. WDYT?
Description
This change will allow us to publish the package within a docker container.
Affected Dependencies
How has this been tested?
Tested locally.
Checklist