-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[CT-2081] [Feature] Switch to black23 (or potentially adjust some other package version pins?) #6945
Comments
Thanks for reaching out @ckdake ! I am not aware of any reasons why we couldn't use the newest version of Could you tell me a little bit more how you are installing dbt-core? Are you installing from PyPI, installing from source in GitHub, or something else entirely? I'd expect that a stand-alone install of dbt-core would look like the following, which would not specify or require any versions of python -m pip install dbt-core==1.4.1 But it sounds like you are also installing the requirements within Hopefully once I understand a bit more about your environment and how you are installing dbt we can figure out a path forward. |
Hmm, this may not be black then, but something else in the pile of dependency trees.
and this is the error I'm getting when trying to bump up black to
|
@ckdake I've got three responses for you!
Specific issueGiving this a quick glance, it looks like the actual issue you are running into is this dependency in dbt-core 1.4.1:
This conflicts with this one from black 23.1.0:
We've got an open issue and PR for that specific bound for When that issue is solved, it will help future you, but not current you. General problemIn general, we are also looking to minimize these types of conflicts in the future: We'd welcome you in that discussion! Workaround in the meantime
So you can do something like the following:
Install pipxhttps://pypa.github.io/pipx/installation/ python3 -m pip install --user pipx
python3 -m pipx ensurepath Install black using pipxhttps://pypa.github.io/pipx/getting-started/ Latest version of black: pipx install black Or if you want a specific version:
Note: in this case, you'd remove Install your dbt adapter(s) of choice using pipWe're just installing python -m pip install dbt-postgres Check the versions of black and dbtblack --version
dbt --version So I think we have paths forward for both the specific thing you are experiencing as well as the general problem. In the meantime, please let me know if that workaround helps you at all! |
Thanks for the detailed response! Good to see the # 1 and # 2 above as in-flight, both are good things to have.
|
I removed the packaging pin in pr #6838 last week. Do we want to backport it? |
@gshank Ultimately, I think some combination of @jtcohen6 @leahwicz @nathaniel-may would need to approve backporting it. |
Is this your first time submitting a feature request?
Describe the feature
dbt-core is currently pinned to black==22.10.0 in dev-requirements.txt. We're currently attempting to migrate our repo that contains our dbt-projects to black 23 and the dependency tree is unresolvable due to this pin in dbt-core.
#6425 is around for 22.10.0 -> 22.12.0, but there is not an automated one to 23 yet. (dependabot notes that it will make one once this PR is merged).
EDIT: this may not be black, it may be some other version pins. Discussion below.
Thanks!
Describe alternatives you've considered
No response
Who will this benefit?
Anyone keeping their dependencies up to date, with python code outside of just what is within dbt.
Are you interested in contributing this feature?
Sure! It'll be a messy commit and may involve rebasing a lot of inflight work due to style changes, so I don't want to do it in a vaccum.
Anything else?
No response
The text was updated successfully, but these errors were encountered: