chore: modernize packaging - #14
Conversation
- Add support for Python 3.14. - Drop support for Python 3.9. - Adopt 'src/' / 'tests/unit' layout. - Remove running tests inside 'docs' build. - Drop 'pkg_resources' namespace declaration. - Drop runtime use of 'pkg_resources' for parsing retryables.
- Replace conditional imports w/ 'importlib.util.find_spec' - Import stdlib modules at testcase module scope. - Import 'repoze.retry' at testcase module scope: use it to find the exception types, versus the now-removed 'CEBase' testcase class, as well as the 'Retry' class itself. - Rename helpers for clarity. - Replace 'unittest'-style assertions with 'assert'; 'self.assertRaises' with 'pytest.raises'. - Remove testcase classes; replace class-level factories with fixtures. - Use 'mock.Mock' for fixtures, versus hand-rolls. - Lint tests to 'ruff check' standards.
... using 'ruff format'
Even though they don't get alled, the 'wsgiref.validator' asserts if they aren't present.
mauritsvanrees
left a comment
There was a problem hiding this comment.
I am not using this package, but the changes look good to me.
|
@mauritsvanrees thanks for the look. I'm holding off merging because of worry that switching away from |
|
I have experience with this on the Zope and Plone packages. There is no flag day needed. I released The best explanation may be what I write in the Plone 6.2 upgrade guide. Or a bit more verbose in the
|
|
@mauritsvanrees Thanks very much for elucidating! With that understanding now in my mental "context stack," please go ahead an make your release. |
No description provided.