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

Drop support for Python 3.8 #1756

Merged
merged 4 commits into from
Jan 7, 2024
Merged

Drop support for Python 3.8 #1756

merged 4 commits into from
Jan 7, 2024

Conversation

rht
Copy link
Contributor

@rht rht commented Aug 7, 2023

NumPy had dropped it since Jan 31 2023: https://numpy.org/neps/nep-0029-deprecation_policy.html.

If this PR is merged, the next release needs to be 2.2.0 instead of 2.1.2.

@codecov
Copy link

codecov bot commented Aug 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0bd4429) 79.87% compared to head (6b1fa5d) 79.92%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1756      +/-   ##
==========================================
+ Coverage   79.87%   79.92%   +0.04%     
==========================================
  Files          15       15              
  Lines        1267     1270       +3     
  Branches      277      277              
==========================================
+ Hits         1012     1015       +3     
  Misses        216      216              
  Partials       39       39              

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

@rht
Copy link
Contributor Author

rht commented Aug 7, 2023

I think this shouldn't be merged until after the CSSSA conference. We should instead release 2.1.2 with bugfix releases for the Solara viz.

@@ -60,7 +60,7 @@
"source": [
"### Tutorial Setup\n",
"\n",
"Create and activate a [virtual environment](http://docs.python-guide.org/en/latest/dev/virtualenvs/). *Python version 3.8 or higher is required*.\n",
"Create and activate a [virtual environment](http://docs.python-guide.org/en/latest/dev/virtualenvs/). *Python version 3.9 or higher is required*.\n",
Copy link
Member

Choose a reason for hiding this comment

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

Do we still want to do 3.9 as it seems Solara only works with 3.10 or higher?

Copy link
Contributor

Choose a reason for hiding this comment

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

Quite the opposite, solara still supports Python 3.6. They are quite proud of it, although i cant find the source for that claim right now. But their unit tests still run on Python 3.6 https://github.com/widgetti/solara/blob/master/.github/workflows/unittest.yml

Copy link
Member

Choose a reason for hiding this comment

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

Following SPEC 0, the successor of NEP 29, Python 3.9 can also be dropped at this point.

That would allow us to start using Structural Pattern Matching (also in examples) and use new typing features. See What’s New In Python 3.10.

Users still on Python 3.8 and 3.9 can of course still keep using the current Mesa versions, as always.

@tpike3 tpike3 added this to the Mesa 2.2 milestone Nov 10, 2023
@EwoutH
Copy link
Member

EwoutH commented Nov 28, 2023

Will there be another patch release (2.1.6) after the current 2.1.5? If not, we could merge this right and release 2.2.0 in a bit.

Copy link
Member

@EwoutH EwoutH left a comment

Choose a reason for hiding this comment

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

You can also update pyupgrade in the pre-commit config.

(in .pre-commit-config.yaml, change --py38-plus to --py39-plus)

Copy link
Member

@tpike3 tpike3 left a comment

Choose a reason for hiding this comment

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

LGTM

@tpike3
Copy link
Member

tpike3 commented Jan 7, 2024

@rht could you please resolve the conflicts and then I will merge. Honestly, I am a little confused why it is saying these are conflicts

@rht
Copy link
Contributor Author

rht commented Jan 7, 2024

Merge conflicts resolved.

mesa/batchrunner.py Outdated Show resolved Hide resolved
mesa/space.py Outdated Show resolved Hide resolved
Copy link
Member

@tpike3 tpike3 left a comment

Choose a reason for hiding this comment

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

LGTM

@tpike3 tpike3 merged commit d2eb502 into projectmesa:main Jan 7, 2024
11 of 12 checks passed
@EwoutH EwoutH added the maintenance Release notes label label Jan 9, 2024
@rht rht deleted the deprecate_38 branch January 13, 2024 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Release notes label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants