cbindgen: new package plus 1 dependency package#45393
cbindgen: new package plus 1 dependency package#45393tldahlgren merged 9 commits intospack:developfrom
Conversation
Signed-off-by: Teague Sterling <[email protected]>
tldahlgren
left a comment
There was a problem hiding this comment.
Confirmed the homepage and version sha256s but confused about the commented out dependencies.
|
Whoops! Thanks for catching that. Looks like this one wasn't really ready to go. Will review and fix. |
Signed-off-by: Teague Sterling <[email protected]>
tldahlgren
left a comment
There was a problem hiding this comment.
Confirmed homepages, version sha256s, and commits.
|
@spackbot fix style |
|
Let me see if I can fix that for you! |
|
I was able to run spack style --fix==> Running style checks on spack
selected: isort, black, flake8, mypy
==> Modified files
var/spack/repos/builtin/packages/cbindgen/package.py
var/spack/repos/builtin/packages/rust-clap/package.py
var/spack/repos/builtin/packages/rust-heck/package.py
var/spack/repos/builtin/packages/rust-indexmap/package.py
var/spack/repos/builtin/packages/rust-log/package.py
var/spack/repos/builtin/packages/rust-proc-macro2/package.py
var/spack/repos/builtin/packages/rust-serde-json/package.py
var/spack/repos/builtin/packages/rust-serde/package.py
var/spack/repos/builtin/packages/rust-toml/package.py
==> Running isort checks
isort checks were clean
==> Running black checks
reformatted var/spack/repos/builtin/packages/rust-heck/package.py
reformatted var/spack/repos/builtin/packages/rust-indexmap/package.py
reformatted var/spack/repos/builtin/packages/rust-clap/package.py
reformatted var/spack/repos/builtin/packages/rust-proc-macro2/package.py
reformatted var/spack/repos/builtin/packages/rust-log/package.py
reformatted var/spack/repos/builtin/packages/rust-serde-json/package.py
reformatted var/spack/repos/builtin/packages/rust-serde/package.py
reformatted var/spack/repos/builtin/packages/rust-toml/package.py
All done! ✨ 🍰 ✨
8 files reformatted, 1 file left unchanged.
black checks were clean
==> Running flake8 checks
var/spack/repos/builtin/packages/rust-indexmap/package.py:9: [E501] line too long (102 > 99 characters)
var/spack/repos/builtin/packages/rust-proc-macro2/package.py:9: [E501] line too long (142 > 99 characters)
flake8 found errors
==> Running mypy checks
lib/spack/spack/version/version_types.py:145: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
lib/spack/spack/version/version_types.py:452: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
lib/spack/spack/version/version_types.py:481: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
Found 3 errors in 1 file (checked 621 source files)
mypy found errors
I've updated the branch with style fixes. |
|
@spackbot fix style |
|
Let me see if I can fix that for you! |
|
I was able to run spack style --fix==> Running style checks on spack
selected: isort, black, flake8, mypy
==> Modified files
var/spack/repos/builtin/packages/cbindgen/package.py
var/spack/repos/builtin/packages/rust-clap/package.py
var/spack/repos/builtin/packages/rust-heck/package.py
var/spack/repos/builtin/packages/rust-indexmap/package.py
var/spack/repos/builtin/packages/rust-log/package.py
var/spack/repos/builtin/packages/rust-proc-macro2/package.py
var/spack/repos/builtin/packages/rust-serde-json/package.py
var/spack/repos/builtin/packages/rust-serde/package.py
var/spack/repos/builtin/packages/rust-toml/package.py
==> Running isort checks
isort checks were clean
==> Running black checks
All done! ✨ 🍰 ✨
9 files left unchanged.
black checks were clean
==> Running flake8 checks
var/spack/repos/builtin/packages/rust-indexmap/package.py:9: [E501] line too long (102 > 99 characters)
var/spack/repos/builtin/packages/rust-proc-macro2/package.py:9: [E501] line too long (142 > 99 characters)
flake8 found errors
==> Running mypy checks
lib/spack/spack/version/version_types.py:145: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
lib/spack/spack/version/version_types.py:452: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
lib/spack/spack/version/version_types.py:481: error: Argument 2 to "StandardVersion" has incompatible type "*Tuple[Tuple[Any, ...], Tuple[Any, ...]]"; expected "Tuple[Tuple[Any, ...], Tuple[Any, ...]]" [arg-type]
Found 3 errors in 1 file (checked 621 source files)
mypy found errors
I wasn't able to make any further changes, but please see the message above for remaining issues you can fix locally! |
Signed-off-by: Teague Sterling <[email protected]>
|
Please resolve the |
|
I'm going to move this back to draft unless we want to clean it up and include as-is. There are a lot of rust dependencies that are not yet in Spack and it's a bit of a rabbit hole (see #45483). Happy to prep this for merging if you agree (to enable Firefox, for example). I wanted to be transparent about the lingering unadressed dependencies in the Rust ecosystem. |
As long as it doesn't break other builds, it's up to you. Just let me know what you want to do. |
Signed-off-by: Teague Sterling <[email protected]>
Signed-off-by: Teague Sterling <[email protected]>
I've removed some of the dependencies here. After poking around a bit I think there's more work needed to properly model the rust library dependencies in Spack. |
Signed-off-by: Teague Sterling <[email protected]>
bernhardkaindl
left a comment
There was a problem hiding this comment.
CI passes, Built on Ubuntu 22.04:
@tldahlgren, can you retract your "changes requested" status?
No description provided.