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

Restrict matplotlib < 3.8 #341

Merged
merged 4 commits into from
Sep 22, 2023
Merged

Conversation

AdamOrmondroyd
Copy link
Collaborator

@AdamOrmondroyd AdamOrmondroyd commented Sep 20, 2023

Description

anesthetic is currently incompatible with matplotlib 3.8, so the installation has been restricted.

This more complex dependency also required changes to min_dependencies.py

Fixes #340

Checklist:

  • I have performed a self-review of my own code
  • My code is PEP8 compliant (flake8 anesthetic tests)
  • My code contains compliant docstrings (pydocstyle --convention=numpy anesthetic)
  • New and existing unit tests pass locally with my changes (python -m pytest)
  • I have added tests that prove my fix is effective or that my feature works
  • I have appropriately incremented the semantic version number in both README.rst and anesthetic/_version.py

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (f1055e0) 100.00% compared to head (092d9e9) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #341   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           34        34           
  Lines         2858      2858           
=========================================
  Hits          2858      2858           
Files Changed Coverage Δ
anesthetic/_version.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AdamOrmondroyd AdamOrmondroyd marked this pull request as ready for review September 20, 2023 17:14
@@ -7,5 +7,6 @@
deps = pyproject["project"]["dependencies"]
deps = [dep.replace(">=", "==") for dep in deps]
deps = [dep.replace("~=", "==") for dep in deps]
deps = [dep[:dep.find('<')-1] if '<' in dep else dep for dep in deps]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't like that this requires the upper bound to be written after the lower one

Copy link
Collaborator

Choose a reason for hiding this comment

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

How about

deps = ['"%s"' % dep for dep in deps]

instead of that line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ah yes perfect, though I think I'll use f-strings instead.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ahhhhh now it has too many sets of quotes :'(

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

(same result with f-strings and %s formatting)

AdamOrmondroyd added a commit to AdamOrmondroyd/anesthetic that referenced this pull request Sep 20, 2023
Copy link
Collaborator

@lukashergt lukashergt left a comment

Choose a reason for hiding this comment

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

Happy for this to be merged until #339 is ready. Thanks @AdamOrmondroyd

@AdamOrmondroyd AdamOrmondroyd merged commit 108d77c into handley-lab:master Sep 22, 2023
@AdamOrmondroyd AdamOrmondroyd deleted the mpl37 branch September 22, 2023 07:17
AdamOrmondroyd added a commit that referenced this pull request Sep 27, 2023
* Ignore "You are using [hist/kde] as a plot kind" warnings

* hedge bets that #341 will merge first lol
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

Successfully merging this pull request may close these issues.

matplotlib 3.8 + minimum dependencies check
2 participants