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

run test session against active python versions #825

Closed
gpongelli opened this issue May 1, 2024 · 1 comment
Closed

run test session against active python versions #825

gpongelli opened this issue May 1, 2024 · 1 comment

Comments

@gpongelli
Copy link

How would this feature be useful?

Hi,
thanks for this package, it solves many issues I had with tox.

Many times ago I've developed a package that can be useful while working with nox, it is python-active-versions that gather python's active versions from developers website.

It can be used together with nox in a way like this:

import nox

from python_active_versions.python_active_versions import get_active_python_versions
from typing import List

def _get_active_version(_active_versions: List[dict]) -> List[str]:
    return [_av['version'] for _av in _active_versions]

_python_versions = _get_active_version(get_active_python_versions())

@nox.session(python=_python_versions)
def test_something(session):
    ...

@nox.session(python=_python_versions)
def test_another(session):
    ...

So nox executes test sessions against installed and active (not EOL) python versions; devs have no more need to manually put supported python version array to the session.

Hope this can be useful for other python devs that are using nox.

Thanks.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Anything else?

No response

@DiddiLeija
Copy link
Collaborator

Hi! Thanks for sharing, sounds like an interesting approach!

However, this issue format is meant to propose features to the nox package itself, so I'll close this issue. If you would like to meet Nox-interested folks, you can join the Winterbloom Discord server, there's a Nox-specific channel -- https://nox.thea.codes/en/stable/CONTRIBUTING.html#support-questions-and-feature-requests :)

@DiddiLeija DiddiLeija closed this as not planned Won't fix, can't repro, duplicate, stale Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants