Skip to content

Drop support for EOL python 3.6, add support for python 3.10 and django 4.0#904

Merged
francoisfreitag merged 1 commit into
FactoryBoy:masterfrom
last-partizan:drop-3.6
Feb 16, 2022
Merged

Drop support for EOL python 3.6, add support for python 3.10 and django 4.0#904
francoisfreitag merged 1 commit into
FactoryBoy:masterfrom
last-partizan:drop-3.6

Conversation

@last-partizan

Copy link
Copy Markdown
Contributor

In my other PR (#903) i would like to add some basic typing support for factory-boy, but it uses features unavailable for python 3.6, and i haven't found simple workarounds.

Python 3.6 has reached end of life, so maybe drop it, and add 3.10?

This also changes pypy, from just pypy3, which resolves as pypy-3.6, to pypy-3.7 and pypy-3.8.

Quotes used for versions, becouse without them you cannot write 3.10, yaml parses it as number 3.1.

@francoisfreitag

Copy link
Copy Markdown
Member

Can also update the tags in setup.cfg and add entries to the changelog.

@last-partizan

Copy link
Copy Markdown
Contributor Author

@francoisfreitag done!

@francoisfreitag francoisfreitag left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can also drop Django 3.1. That will simplify the test matrix.

Comment thread examples/django_demo/django_demo/urls.py
Comment thread .github/workflows/test.yml Outdated
Comment thread .github/workflows/test.yml Outdated
Comment thread setup.cfg Outdated

@francoisfreitag francoisfreitag left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looking good, thanks! 🎉

Can you squash the commits please?

@last-partizan

Copy link
Copy Markdown
Contributor Author

Ready!

@francoisfreitag francoisfreitag left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We missed another case, the readme mentions:

# run tests inside a specific environment
$ tox -e py36-django20-alchemy13-mongoengine017

These environments are dead. Perhaps use djangomain and py310?
https://github.com/FactoryBoy/factory_boy#contributing

@last-partizan

Copy link
Copy Markdown
Contributor Author

Sure, fixed!

@francoisfreitag

Copy link
Copy Markdown
Member

Sweet, thanks! ⭐

@francoisfreitag francoisfreitag merged commit 928fd22 into FactoryBoy:master Feb 16, 2022
@last-partizan last-partizan deleted the drop-3.6 branch February 16, 2022 12:33
@cclauss

cclauss commented Oct 2, 2022

Copy link
Copy Markdown
Contributor

The badges on README.md say that Python 3.6 is still supported and 3.10 is not.

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.

3 participants