Skip to content
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

tox3: Support provision of tox 4 with the min_version option #2714

Merged
merged 3 commits into from Dec 14, 2022

Conversation

hroncok
Copy link
Contributor

@hroncok hroncok commented Dec 14, 2022

Fixes #2661

Thanks for contribution

  • ran the linter to address style issues (tox -e fix)
  • wrote descriptive pull request text
  • ensured there are test(s) validating the fix
  • added news fragment in docs/changelog folder
  • updated/extended the documentation

@hroncok
Copy link
Contributor Author

hroncok commented Dec 14, 2022

The new test needs to be skipped on old Pythons.

with pytest.raises(MissingRequirement) as context:
newconfig(
[],
"""\
[tox]
minversion = {}
{} = {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wonder if adding a new fixture that evaluates to this expression is worth it or not.

@hroncok
Copy link
Contributor Author

hroncok commented Dec 14, 2022

The new test needs to be skipped on old Pythons.

Done.

@hroncok
Copy link
Contributor Author

hroncok commented Dec 14, 2022

I'm not sure if the Windows failures are related or not. I don't have a Windows development environment to reproduce.

@gaborbernat
Copy link
Member

I'm not sure if the Windows failures are related or not. I don't have a Windows development environment to reproduce.

Can't accept the PR without passing CI so would need to figure it out 👍

@hroncok
Copy link
Contributor Author

hroncok commented Dec 14, 2022

Attempting to solve the UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 164: character maps to <undefined> thing by reading files as utf-8.

@hroncok hroncok force-pushed the tox3_min_version_4 branch 5 times, most recently from 31f9112 to 35c5376 Compare December 14, 2022 19:51
@hroncok

This comment was marked as resolved.

@hroncok
Copy link
Contributor Author

hroncok commented Dec 14, 2022

I went too far trying to bend the code for Python 3.5 and 2.7 and I completely forgot I can run subprocess on bytes and decode the output explicitly. Hopefully, that'll work.

@hroncok
Copy link
Contributor Author

hroncok commented Dec 14, 2022

Now the coverage job failed with:

Could not find the branch to compare to. Does 'origin/master' exist?

Added another commit.

@gaborbernat gaborbernat merged commit b26fd5d into tox-dev:legacy Dec 14, 2022
@hroncok hroncok deleted the tox3_min_version_4 branch December 15, 2022 01:04
no_package=True
min_version = 4
[testenv]
commands=python -c "import os; print('assert this')"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The import os part is a leftover from debugging a d should have been removed. Sorry about that.

@hroncok
Copy link
Contributor Author

hroncok commented Dec 15, 2022

Thanks for merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants