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

Fixing pdm lock running forever, and cleaning up some files #1388

Closed
wants to merge 1 commit into from

Conversation

Hartorn
Copy link
Member

@Hartorn Hartorn commented Sep 8, 2023

Description

Atm, when trying to run pdm lock -G :all, it will not work

It's mainly beacause of safety package, which depends on packaging<22.0,>=21.0
For exemple, black version 23.7 depends on packaging > 22
Also, trying to keep version 3.11 of python handled seems to be problematic

Related Issue

Type of Change

  • 📚 Examples / docs / tutorials / dependencies update
  • 🔧 Bug fix (non-breaking change which fixes an issue)
  • 🥂 Improvement (non-breaking change which improves an existing feature)
  • 🚀 New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 🔐 Security fix

Checklist

  • I've read the CODE_OF_CONDUCT.md document.
  • I've read the CONTRIBUTING.md guide.
  • I've updated the code style using make codestyle.
  • I've written tests for all new methods and classes that I created.
  • I've written the docstring in Google format for all the methods and classes that I used.

@Hartorn Hartorn self-assigned this Sep 8, 2023
@Hartorn Hartorn requested a review from andreybavt September 8, 2023 09:15
@@ -54,7 +55,7 @@ dev = [
"pytest-xdist>=3.3.1",
"ruff>=0.0.271",
"mlflow>2",
"black[d]>=22.12.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

blackd is used by intellij, it runs as a server and then intellij will call it every time you need to run reformatting.
black[jupyter] doesn't ship blackd command utility

Copy link
Member Author

Choose a reason for hiding this comment

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

I will put it back then 👍

@Hartorn Hartorn force-pushed the fix/repair-lock-generation branch from 7bf1153 to e567278 Compare September 8, 2023 09:20
@@ -71,8 +72,9 @@ test = [
"tensorflow-macos>=2.10.0, <2.11; sys_platform == 'darwin' and platform_machine == 'arm64'",
"tensorflow>=2.10.0, <2.11; sys_platform != 'darwin' or platform_machine != 'arm64'",
"tensorflow-text>=2.10.0, <2.11; platform_machine == 'x86_64' or platform_machine == 'amd64'",
"mlflow>2",
"wandb"
"mlflow>2", # Should it be somewhere else ?
Copy link
Contributor

Choose a reason for hiding this comment

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

actually I don't know why we install a full mlflow in dev mode while mlflow-skinny being part of prod dependencies, maybe @rabah-khalek knows

Copy link
Contributor

Choose a reason for hiding this comment

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

mlflow.evaluate() (where we implemented our plug-in) is not shipped with mlflow-skinny. It is needed for functional tests of the plugin.

"mlflow>2",
"wandb"
"mlflow>2", # Should it be somewhere else ?
"wandb", # Should it be somewhere else ?
Copy link
Contributor

Choose a reason for hiding this comment

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

no it's an optional dependency that we'll ask users to install if they try to use W&B integration.
We install it for tests because there are unit tests for it

Copy link
Member Author

Choose a reason for hiding this comment

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

I will remove comment then

@Hartorn Hartorn force-pushed the fix/repair-lock-generation branch from e567278 to b9d0987 Compare September 8, 2023 09:29
@Hartorn Hartorn marked this pull request as ready for review September 8, 2023 09:29
"mypy>=0.982",
"deptry>=0.5.13",
"httpretty>=1.1.4",
Copy link
Contributor

Choose a reason for hiding this comment

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

was it deptry who sugested the removal?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, this one I checked it manually I think.

I used deptry, but I also had a look around on deps to see if some were unused.

@@ -72,7 +73,8 @@ test = [
"tensorflow>=2.10.0, <2.11; sys_platform != 'darwin' or platform_machine != 'arm64'",
"tensorflow-text>=2.10.0, <2.11; platform_machine == 'x86_64' or platform_machine == 'amd64'",
"mlflow>2",
"wandb"
"wandb",
"tensorflow-io-gcs-filesystem==0.27.0", # Transitive dependency, needed to make it work for windows (downgrade from 0.33 to 0.27)
Copy link
Contributor

Choose a reason for hiding this comment

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

should we add sys_platform marker in this case? And let other OS users install more recent versions?

Copy link
Contributor

Choose a reason for hiding this comment

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

otherwise we'll be stuck with python <3.11 forever

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, this version is the recommended one according to https://github.com/tensorflow/io
I checked the matrix there, that's why I fixed it.

Honestly, we'll need to make changes to every tf package to handle 3.11 after.

Copy link
Contributor

Choose a reason for hiding this comment

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

could you also tell what exactly breaks on windows with more recent versions of tensorflow-io-gcs-filesystem ?

Copy link
Member Author

@Hartorn Hartorn Sep 8, 2023

Choose a reason for hiding this comment

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

Basically, it cannot be installed. It's trying to find a version, but cannot find one matching the needed requirements.
I cannot find the build error anymore, I must have deleted them while cleaning yesterday.

I checked a bit into the lock file, and from I can see, there is not wheel registeres for 0.33 for win os.
image

I will try to change again, I will see if it's still broken

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, I reproduced it in here : #1389
https://github.com/Giskard-AI/giskard/actions/runs/6120611136/job/16612786445?pr=1389

And I found the root cause :

tensorflow/io#1789

Basically, since 0.32, there is no win wheel on pipy, I will see this afternoon for the details.
0.31 should work though

@Hartorn Hartorn force-pushed the fix/repair-lock-generation branch from b9d0987 to 6e25d4b Compare September 8, 2023 09:59
@Hartorn Hartorn force-pushed the fix/repair-lock-generation branch from 6e25d4b to fe6a41e Compare September 8, 2023 12:32
@Hartorn Hartorn closed this Sep 8, 2023
@Hartorn Hartorn deleted the fix/repair-lock-generation branch September 8, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants