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

PythonPlot -> CI failing #8

Open
aTrotier opened this issue Jan 24, 2025 · 6 comments
Open

PythonPlot -> CI failing #8

aTrotier opened this issue Jan 24, 2025 · 6 comments

Comments

@aTrotier
Copy link
Collaborator

Hi @mfuderer the CI is failing because PythonPlot is not a dependencies of the package (and should not be)

If you really want to add this possibility maybe we should use the extension possibility. See -> https://pkgdocs.julialang.org/v1/creating-packages/#Conditional-loading-of-code-in-packages-(Extensions)

Can you make a PR request rather than working directly on the main branch ? We can check if the CI passes before merging.

@mfuderer
Copy link
Collaborator

mfuderer commented Jan 27, 2025 via email

@aTrotier
Copy link
Collaborator Author

aTrotier commented Jan 28, 2025

On top, I did not manage to run a test, since QMRIColors somehow kept refering to the online package version.

To run the test locally you can clone the repository -> activate the julia environment of QMRIColors and (in the pkg mode) type `test``
For the documentation, it is a little bit different.

Lastly, I accept your argument that PythonPlot should not be a dependency of the package. This immediately nulls the main reason for my change.

I don't use PythonPlot, does the function : PythonPlot.ColorMap returns a python object or just a specific array / matrix format that we can easily build with standard julia function without relaying on this package ?

So, I suggest that you reject whichever incoming commits I made. I will then make a new branch with my changes, but backtrack all these that would require PythonPlot (i.e., keep only some minor repairs to the .md files). Then I'll publish the new branch and you can have a look whether it is worthwhile merging it.

The main branch is now protected from direct push (just through pull-request). We will still be able to create branch on the repository without having a fork it.

@mfuderer can you try to create a branch, delete the PythonPlot requirements and make a pull-request, we will see if the CI is working :)

@mfuderer
Copy link
Collaborator

mfuderer commented Jan 28, 2025 via email

@mfuderer
Copy link
Collaborator

mfuderer commented Jan 29, 2025 via email

@aTrotier
Copy link
Collaborator Author

aTrotier commented Jan 29, 2025

Oh too bad.

Like I said, we have 2 options :

  1. Because it only takes a line of code I don't think it is an issue for the user to convert it by themself especially if we add a mention in the documentation.
  2. We add an [extension] PythonPlot that is compiled only if the user add it.

In my opinion, it will be easier to not have to maintain a lot of plot packages.

In that case should we revert to the version before your commit ? (even in the readme...)

@mfuderer
Copy link
Collaborator

mfuderer commented Jan 29, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants