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

Fixup the spec string for sys.executable #3327

Merged
merged 4 commits into from
Aug 17, 2024
Merged

Conversation

hroncok
Copy link
Contributor

@hroncok hroncok commented Aug 15, 2024

The previous spec string was:

namespace(name='cpython', cache_tag='cpython-313', version=sys.version_info(major=3, minor=13, micro=0, releaselevel='candidate', serial=1), hexversion=51183809, _multiarch='x86_64-linux-gnu')313-True

When it was supposed to be:

cpython313-64

Fixes https://github.com/tox-dev/tox/pull/3325/files#r1718230254
Fixes https://github.com/tox-dev/tox/pull/3325/files#r1718246292

Adds tests for a new method.

  • 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

The previous spec string was:

    namespace(name='cpython', cache_tag='cpython-313', version=sys.version_info(major=3, minor=13, micro=0, releaselevel='candidate', serial=1), hexversion=51183809, _multiarch='x86_64-linux-gnu')313-True

When it was supposed to be:

    cpython313-64

Fixes https://github.com/tox-dev/tox/pull/3325/files#r1718230254
Fixes https://github.com/tox-dev/tox/pull/3325/files#r1718246292

Adds tests for a new method.
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.

You will need to add change log entry as the bug fix but otherwise it looks good to go.

The error was:

    tests/tox_env/python/test_python_api.py:314:12: SLF001 Private member accessed: `_python_spec_for_sys_executable`
        |
    312 |     mocker.patch.object(sys, "implementation", implementation)
    313 |     mocker.patch.object(sys, "maxsize", 2**arch // 2 - 1)
    314 |     spec = Python._python_spec_for_sys_executable()
        |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SLF001
    315 |     assert spec.implementation == impl
    316 |     assert spec.major == major
        |

    Found 1 error.
@gaborbernat gaborbernat marked this pull request as ready for review August 17, 2024 19:02
@gaborbernat gaborbernat merged commit 874e9af into tox-dev:main Aug 17, 2024
24 checks passed
@hroncok hroncok deleted the string_spec branch August 18, 2024 15:33
hofbi pushed a commit to luminartech/dev-tools that referenced this pull request Sep 13, 2024
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [tox](https://redirect.github.com/tox-dev/tox)
([changelog](https://tox.wiki/en/latest/changelog.html)) | `==4.18.0` ->
`==4.18.1` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/tox/4.18.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/tox/4.18.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/tox/4.18.0/4.18.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/tox/4.18.0/4.18.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v4.18.1`](https://redirect.github.com/tox-dev/tox/releases/tag/4.18.1)

[Compare
Source](https://redirect.github.com/tox-dev/tox/compare/4.18.0...4.18.1)

<!-- Release notes generated using configuration in .github/release.yml
at 4.18.1 -->

#### What's Changed

- Fixup the spec string for sys.executable by
[@&#8203;hroncok](https://redirect.github.com/hroncok) in
[tox-dev/tox#3327
- Fix issue link in changelog by
[@&#8203;schlamar](https://redirect.github.com/schlamar) in
[tox-dev/tox#3332
- Properly document the `tox_env_teardown` hook by
[@&#8203;kemzeb](https://redirect.github.com/kemzeb) in
[tox-dev/tox#3333
- Add 3.13 to CI and bump deps by
[@&#8203;gaborbernat](https://redirect.github.com/gaborbernat) in
[tox-dev/tox#3339

#### New Contributors

- [@&#8203;schlamar](https://redirect.github.com/schlamar) made their
first contribution in
[tox-dev/tox#3332
- [@&#8203;kemzeb](https://redirect.github.com/kemzeb) made their first
contribution in
[tox-dev/tox#3333

**Full Changelog**:
tox-dev/tox@4.18.0...4.18.1

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on the first day of the
month" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, 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

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/luminartech/dev-tools).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC43NC4xIiwidXBkYXRlZEluVmVyIjoiMzguNzQuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[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.

2 participants