Skip to content

cbindgen: new package plus 1 dependency package#45393

Merged
tldahlgren merged 9 commits intospack:developfrom
teaguesterling:packages/cbindgen
Sep 30, 2024
Merged

cbindgen: new package plus 1 dependency package#45393
tldahlgren merged 9 commits intospack:developfrom
teaguesterling:packages/cbindgen

Conversation

@teaguesterling
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Teague Sterling <[email protected]>
Copy link
Copy Markdown
Contributor

@tldahlgren tldahlgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed the homepage and version sha256s but confused about the commented out dependencies.

@tldahlgren tldahlgren self-assigned this Jul 23, 2024
@teaguesterling
Copy link
Copy Markdown
Contributor Author

Whoops! Thanks for catching that. Looks like this one wasn't really ready to go. Will review and fix.

@tldahlgren tldahlgren changed the title cbindgen: new package cbindgen: new package plus 8 dependency packages Jul 25, 2024
tldahlgren
tldahlgren previously approved these changes Jul 25, 2024
Copy link
Copy Markdown
Contributor

@tldahlgren tldahlgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed homepages, version sha256s, and commits.

@tldahlgren
Copy link
Copy Markdown
Contributor

@spackbot fix style

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Jul 25, 2024

Let me see if I can fix that for you!

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Jul 25, 2024

I was able to run spack style --fix for you!

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
Keep in mind that I cannot fix your flake8 or mypy errors, so if you have any you'll need to fix them and update the pull request. If I was able to push to your branch, if you make further changes you will need to pull from your updated branch before pushing again.

I've updated the branch with style fixes.

Copy link
Copy Markdown
Contributor

@tldahlgren tldahlgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment

@teaguesterling
Copy link
Copy Markdown
Contributor Author

@spackbot fix style

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Jul 27, 2024

Let me see if I can fix that for you!

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Jul 27, 2024

I was able to run spack style --fix for you!

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
Keep in mind that I cannot fix your flake8 or mypy errors, so if you have any you'll need to fix them and update the pull request. If I was able to push to your branch, if you make further changes you will need to pull from your updated branch before pushing again.

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]>
@tldahlgren
Copy link
Copy Markdown
Contributor

Please resolve the flake8 issues:

...
  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
...

@teaguesterling
Copy link
Copy Markdown
Contributor Author

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.

@tldahlgren
Copy link
Copy Markdown
Contributor

tldahlgren commented Aug 6, 2024

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.

@teaguesterling
Copy link
Copy Markdown
Contributor Author

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.

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]>
@teaguesterling teaguesterling changed the title cbindgen: new package plus 8 dependency packages cbindgen: new package plus 1 dependency package Aug 7, 2024
@spack spack deleted a comment from spackbot-app bot Sep 28, 2024
Copy link
Copy Markdown
Contributor

@bernhardkaindl bernhardkaindl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI passes, Built on Ubuntu 22.04:

@tldahlgren, can you retract your "changes requested" status?

@bernhardkaindl bernhardkaindl self-assigned this Sep 28, 2024
@tldahlgren tldahlgren merged commit cb43019 into spack:develop Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants