Skip to content

Relax dependencies - #44

Merged
diazona merged 3 commits into
masterfrom
relax-dependencies/1/dev
Jul 24, 2022
Merged

Relax dependencies#44
diazona merged 3 commits into
masterfrom
relax-dependencies/1/dev

Conversation

@diazona

@diazona diazona commented Jul 14, 2022

Copy link
Copy Markdown
Contributor

This expands the range of allowed pytest versions to be 6.2.4 to 7.X (inclusive), and adds some more tests to verify functionality of the package with the edge versions.

Closes #41

@diazona diazona added this to the v0.7.0 milestone Jul 14, 2022
@diazona
diazona requested a review from redtoad July 14, 2022 07:37
@redtoad

redtoad commented Jul 14, 2022

Copy link
Copy Markdown
Contributor

Just checked. pytest 6.2.4 needs Python >=3.6.
After some more digging:

  • pytest 6.2.0 dropped support for Python 3.5. Last one supporting Python 3.5 is 6.1.1
  • pytest 7.1.0 drops support for Python 3.6

@diazona

diazona commented Jul 15, 2022

Copy link
Copy Markdown
Contributor Author

Ah, thanks!

I want to get rid of the duplicate pipelines (#45) first, and then I'll push a fix.

diazona added 2 commits July 17, 2022 17:40
We have a constraint that limits the maximum supported version of pytest
to the current major version, under the assumption that a new major
version release may break backwards compatibility. Now that pytest 7 has
been tested and is known to work with pytest-localserver, we can relax
the constraint to mark it as supported.
I confirmed that tests pass with pytest 6.2.4 by running
  tox -r -e py310,py311 --force-dep pytest==6.2.4
Running the corresponding command for pytest 6.2.3 does not pass, so
this is the lowest version we can support on Python 3.10+.
@diazona
diazona force-pushed the relax-dependencies/1/dev branch from 048bb2d to 9bd09f8 Compare July 18, 2022 00:42
@diazona

diazona commented Jul 18, 2022

Copy link
Copy Markdown
Contributor Author

This appears to be working now... but strangely, the check with pypy-3.9, smtp, and pytest 6.2.4 failed at first, then I reran it (with no changes) and it succeeded. This isn't the first time I've noticed what seems like inconsistent behavior from the automated checks, but it is the most blatant. So we should watch out for that in the future.

I've edited the Github workflows configuration to run tests with
the lowest version of pytest marked as supported. If anything in
a future commit breaks compatibility with those versions, we'll be
alerted by a test failure and we can adjust the version compatibility
accordingly.
@diazona
diazona force-pushed the relax-dependencies/1/dev branch from 9bd09f8 to 4b1d9ac Compare July 18, 2022 00:57
@diazona
diazona merged commit 67112ca into master Jul 24, 2022
@diazona
diazona deleted the relax-dependencies/1/dev branch July 24, 2022 06:55
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.

Relax pytest requirements in tox

2 participants