Skip to content
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

Unable to release with crate meta description #2012

Closed
2 tasks
j-mendez opened this issue Mar 27, 2024 · 4 comments
Closed
2 tasks

Unable to release with crate meta description #2012

j-mendez opened this issue Mar 27, 2024 · 4 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@j-mendez
Copy link

j-mendez commented Mar 27, 2024

Bug Description

When deploying with Mac, the build has trouble merging the Cargo.toml description and fails to deploy.
The error:

📦 Built source distribution to /Users/me/Code/OSS/spider-py/target/wheels/spider_rs-0.0.32.tar.gz
🔐 Using credential in pypirc for upload
🚀 Uploading 2 packages
💥 maturin failed
  Caused by: 💥 Failed to upload "spider_rs-0.0.32-cp312-cp312-macosx_11_0_arm64.whl" (7.3 MB)
  Caused by: Failed to upload the wheel with status 400: <html>
 <head>
  <title>400 'summary' has invalid data. See https://packaging.python.org/specifications/core-metadata for more information.</title>
 </head>
 <body>
  <h1>400 'summary' has invalid data. See https://packaging.python.org/specifications/core-metadata for more information.</h1>
  The server could not comply with the request since it is either malformed or otherwise incorrect.<br/><br/>
&#x27;summary&#x27; has invalid data. See https://packaging.python.org/specifications/core-metadata for more information.


 </body>
</html>

Your maturin version (maturin --version)

1.5.0

Your Python version (python -V)

3.11.5

Your pip version (pip -V)

24.0

What bindings you're using

pyo3 v0.20.3

Does cargo build work?

  • Yes, it works

The error on build:

was built for newer 'macOS' version (14.4) than being linked (14.0)

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

  • Yes

Steps to Reproduce

  1. Setup crate with Cargo.toml that includes a description ex:
[package]
edition = "2021"
name = "spider_rs"
version = "0.0.32"
repository = "https://github.com/spider-rs/spider-py"
license = "MIT"
description = "The fastest web crawler and indexer."

[lib]
crate-type = ["cdylib"]

[dependencies]
indexmap = "2.1.0"
num_cpus = "1.16.0"
spider = { version = "1.88.2", features = ["budget", "cron", "regex", "cookies", "socks", "chrome", "control", "smart", "chrome_intercept", "cache", "serde", "openai" ] }
pyo3 = { version = "0.20.3", features = ["extension-module", "serde"] }
pyo3-asyncio = { version = "0.20", features = ["attributes", "tokio-runtime"] }
serde_json = "1.0.114"

[target.x86_64-unknown-linux-gnu.dependencies]
openssl-sys = { version = "0.9.96", features = ["vendored"] }
openssl = { version = "0.10.60", features = ["vendored"] }

[target.x86_64-unknown-linux-musl.dependencies]
openssl-sys = { version = "0.9.96", features = ["vendored"] }
openssl = { version = "0.10.60", features = ["vendored"] }

[profile.release]
lto = true
  1. maturin publish
@j-mendez j-mendez added the bug Something isn't working label Mar 27, 2024
@messense
Copy link
Member

We won't be able to help you unless you provide detailed reproduce steps and error messages.

@j-mendez
Copy link
Author

@messense got it, will send more details shortly.

@messense
Copy link
Member

Duplicate of #1998? Can you try maturin v1.5.1?

@j-mendez
Copy link
Author

maturin --version

fixed in v1.5.1 thank you!

@messense messense added the duplicate This issue or pull request already exists label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants