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

The tests actually require wheel #2843

Merged
merged 1 commit into from Jan 10, 2023
Merged

Conversation

hroncok
Copy link
Contributor

@hroncok hroncok commented Jan 9, 2023

When wheel is not installed, several tests error like this:

distutils.errors.DistutilsModuleError: invalid command 'bdist_wheel'
...
SystemExit: error: invalid command 'bdist_wheel'

Or like this:

ERROR Missing dependencies:
	wheel

When the tests are executed in a virtualenv, wheel is implicitly installed, which is why this have never happened on the CI.

List of tests that error:

 ERROR tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_tox_install_pkg_wheel
 ERROR tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_tox_install_pkg_sdist
 ERROR tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_install_pkg_via[p]
 ERROR tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_install_pkg_via[le]
 ERROR tests/tox_env/python/virtual_env/package/test_python_package_util.py::test_load_dependency_no_extra
 ERROR tests/tox_env/python/virtual_env/package/test_python_package_util.py::test_load_dependency_many_extra

Thanks for contribution

Please, make sure you address all the checklists (for details on how see
development documentation)!

  • 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

pyproject.toml Outdated Show resolved Hide resolved
Copy link
Member

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

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

Please add a changelog 👍 for this bugfix.

When wheel is not installed, several tests error like this:

    distutils.errors.DistutilsModuleError: invalid command 'bdist_wheel'
    ...
    SystemExit: error: invalid command 'bdist_wheel'

Or like this:

    ERROR Missing dependencies:
    	wheel

When the tests are executed in a virtualenv, wheel is implicitly installed,
which is why this have never happened on the CI.

List of tests that error:

     ERROR tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_tox_install_pkg_wheel
     ERROR tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_tox_install_pkg_sdist
     ERROR tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_install_pkg_via[p]
     ERROR tests/tox_env/python/virtual_env/package/test_package_cmd_builder.py::test_install_pkg_via[le]
     ERROR tests/tox_env/python/virtual_env/package/test_python_package_util.py::test_load_dependency_no_extra
     ERROR tests/tox_env/python/virtual_env/package/test_python_package_util.py::test_load_dependency_many_extra

Version 0.38.4 is required as this is the current version
and this is the way tox specifies the test dependencies.
@hroncok
Copy link
Contributor Author

hroncok commented Jan 9, 2023

Added a bugfix changelog entry.

@gaborbernat gaborbernat merged commit ce2e8db into tox-dev:main Jan 10, 2023
descope bot added a commit to descope/django-descope that referenced this pull request Jan 28, 2023
This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
| [tox](https://togithub.com/tox-dev/tox)
([changelog](https://tox.wiki/en/latest/changelog.html)) | dev | patch |
`4.2.6` -> `4.2.8` | `4.4.2` (+8) |

---

### Release Notes

<details>
<summary>tox-dev/tox</summary>

### [`v4.2.8`](https://togithub.com/tox-dev/tox/releases/tag/4.2.8)

[Compare Source](https://togithub.com/tox-dev/tox/compare/4.2.7...4.2.8)

#### What's Changed

- Allow package names with env markers with pip binary options by
[@&#8203;q0w](https://togithub.com/q0w) in
[tox-dev/tox#2853

**Full Changelog**: tox-dev/tox@4.2.7...4.2.8

### [`v4.2.7`](https://togithub.com/tox-dev/tox/releases/tag/4.2.7)

[Compare Source](https://togithub.com/tox-dev/tox/compare/4.2.6...4.2.7)

#### What's Changed

- Add release notes project URL for quick access in PyPI web by
[@&#8203;scop](https://togithub.com/scop) in
[tox-dev/tox#2835
- Document colorization regression on Windows by
[@&#8203;adamchainz](https://togithub.com/adamchainz) in
[tox-dev/tox#2837
- The tests actually require wheel by
[@&#8203;hroncok](https://togithub.com/hroncok) in
[tox-dev/tox#2843
- Only return Python factor on base_python conflict by
[@&#8203;stephenfin](https://togithub.com/stephenfin) in
[tox-dev/tox#2840
- Revert to supporting simple Python factors by
[@&#8203;stephenfin](https://togithub.com/stephenfin) in
[tox-dev/tox#2849

**Full Changelog**: tox-dev/tox@4.2.6...4.2.7

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMDEuMCIsInVwZGF0ZWRJblZlciI6IjM0LjEwMS4wIn0=-->

Co-authored-by: descope[bot] <descope[bot]@users.noreply.github.com>
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