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
Fix duckdb version handling again #43762
Fix duckdb version handling again #43762
Conversation
@glentner can you review this PR? This PR modifies the following package(s), for which you are listed as a maintainer:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some questions about the changes.
- use f-string - fix version specs to address inconsistencies
Fix spec definitions further
@spackbot fix styles |
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/duckdb/package.py
==> Running isort checks
isort checks were clean
==> Running black checks
reformatted var/spack/repos/builtin/packages/duckdb/package.py
All done! ✨ 🍰 ✨
1 file reformatted.
black checks were clean
==> Running flake8 checks
flake8 checks were clean
==> 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:447: 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:476: 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. |
@tldahlgren and @glentner I've adjusted based on the comments provided. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except the typo in the comment.
* Added package to build Ollama * Update package.py Add license and documentation * [@spackbot] updating style on behalf of teaguesterling * We can now use OVERRIDE_GIT_DESCRIBE to set the version in DuckDB * Update duckdb/package.py - use f-string - fix version specs to address inconsistencies * Update package.py Fix spec definitions further * [@spackbot] updating style on behalf of teaguesterling --------- Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
After 0.10.0, DuckDB added the
OVERRIDE_GIT_DESCRIBE
variable that we can set to force a version when we're not in a git repository. This simplifies the logic for setting up the build environment for new versions, but also breaks the old method for new versions. This PR adds the latest version and updates the logic.