Skip to content

Conversation

@skarzi
Copy link
Contributor

@skarzi skarzi commented Dec 23, 2020

This PR:

  • adds Python 3.9 to supported python versions (add classifiers to setup.py and run tests)
  • removes python 3.5 from supported python versions
  • sync pytest versions supported by pytest-factoryboy with these officially maintained by pytest-dev team (I get versions from branch list of pytest repo)
  • remove invalid (or no longer used/needed) pep8maxlinelength pytest's ini option

What do you think about dropping support for python 2?


This change is Reviewable

Copy link
Contributor

@youtux youtux left a comment

Choose a reason for hiding this comment

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

Also please add one (or more) entries to the CHANGES.rst saying which pythons and pytest we started and stopped supporting.

tox.ini Outdated
envlist = py27-pytest{43,44,45,46},
py38-pytest{43,44,45,46,50,51,52,53,54,60,latest},
envlist = py27-pytest46,
py38-pytest{46,54,60,61,62,latest,master},
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer to keep on testing all the minor versions of pytest that we claim to support (5.0, 5.1, 5.2, 5.3).

language: python
dist: bionic
python:
- "2.7"
Copy link
Contributor

Choose a reason for hiding this comment

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

We can remove python2.7 compatibility. Make sure to update the python_requires marker accordingly in the setup.py.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can make it in #105 (it just needs some small polishing) after merging this one. What do you think?

@graingert
Copy link
Member

here's a PR with pyupgrade: https://github.com/pytest-dev/pytest-factoryboy/pull/105/files

@youtux youtux merged commit 1601cb7 into pytest-dev:master Dec 23, 2020
@youtux
Copy link
Contributor

youtux commented Dec 23, 2020

Thank you for the PR!

@skarzi skarzi deleted the feature/update-supported-python-and-pytest-versions branch December 23, 2020 13:36
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