-
Notifications
You must be signed in to change notification settings - Fork 42
drop support for EOL python 2 #105
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 EOL python 2 #105
Conversation
|
@graingert could you merge |
bdd2b89 to
330852b
Compare
|
Let's apply |
330852b to
1c664cb
Compare
setup.cfg
Outdated
| Topic :: Software Development :: Libraries | ||
| Topic :: Utilities | ||
| Programming Language :: Python :: 3 | ||
| Programming Language :: Python :: 3 :: Only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't use this classifier, as it implies that the project would not be compatible with a hypothetical python 4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to match pytest's config: https://github.com/pytest-dev/pytest/blob/master/setup.cfg#L19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have to match pytest's config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as we know, it's not compatible with Python 4...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree with this, if we follow this logic then we should also add python_requires<4, and we don't do that.
Python 4 will probably not introduce incompatible changes like python 3 did.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this classifier.
setup.cfg
Outdated
| Topic :: Software Development :: Libraries | ||
| Topic :: Utilities | ||
| Programming Language :: Python :: 3 | ||
| Programming Language :: Python :: 3 :: Only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree with this, if we follow this logic then we should also add python_requires<4, and we don't do that.
Python 4 will probably not introduce incompatible changes like python 3 did.
hugovk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Presence or absence of the 3 :: Only classifier isn't a big deal, would be good to add it 3.9 as well.
|
@hugovk 3.9 classifier is already present |
|
👍 And add 3.9 to CI? |
pytest_factoryboy/__init__.py
Outdated
| from .fixture import LazyFixture | ||
| from .fixture import register |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the previous approach was wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is using reorder_python_imports, the same as pytest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revert this. Let's have a PR with one objective, if we want to introduce a new tool to this project it should be a separate PR where we can discuss that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@youtux I've reverted the change to use reorder-python-imports, and will make it an a followup
3.9 is already tested by CI pipeline, however, 3.10 is missing in |
setup.cfg
Outdated
| Topic :: Software Development :: Libraries | ||
| Topic :: Utilities | ||
| Programming Language :: Python :: 3 | ||
| Programming Language :: Python :: 3 :: Only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this classifier.
see also #104 (comment)
This change is