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

Update Virtual Environment tutorial #89605

Closed
ShivnarenSrinivasan mannequin opened this issue Oct 12, 2021 · 3 comments
Closed

Update Virtual Environment tutorial #89605

ShivnarenSrinivasan mannequin opened this issue Oct 12, 2021 · 3 comments
Labels
3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes 3.11 only security fixes docs Documentation in the Doc dir

Comments

@ShivnarenSrinivasan
Copy link
Mannequin

ShivnarenSrinivasan mannequin commented Oct 12, 2021

BPO 45442
Nosy @miss-islington, @ShivnarenSrinivasan
PRs
  • bpo-45442: Add deactivate step to venv tutorial. #28959
  • bpo-45442: Add deactivate step to venv tutorial. #28981
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-10-16.17:56:04.647>
    created_at = <Date 2021-10-12.10:39:52.732>
    labels = ['3.8', '3.9', '3.10', '3.11', '3.7', 'docs']
    title = 'Update `Virtual Environment` tutorial'
    updated_at = <Date 2021-10-16.17:56:04.647>
    user = 'https://github.com/ShivnarenSrinivasan'

    bugs.python.org fields:

    activity = <Date 2021-10-16.17:56:04.647>
    actor = 'shivnaren'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2021-10-16.17:56:04.647>
    closer = 'shivnaren'
    components = ['Documentation']
    creation = <Date 2021-10-12.10:39:52.732>
    creator = 'shivnaren'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45442
    keywords = ['patch']
    message_count = 3.0
    messages = ['403722', '403724', '404048']
    nosy_count = 4.0
    nosy_names = ['docs@python', 'python-dev', 'miss-islington', 'shivnaren']
    pr_nums = ['28959', '28981']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue45442'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10', 'Python 3.11']

    @ShivnarenSrinivasan
    Copy link
    Mannequin Author

    ShivnarenSrinivasan mannequin commented Oct 12, 2021

    Priority: Low

    The Virtual Environment tutorial page (https://docs.python.org/3/tutorial/venv.html) doesn't specify how we can revert, or deactivate the venv.

    This is quite a popular question on SO:
    https://stackoverflow.com/questions/990754/how-to-leave-exit-deactivate-a-python-virtualenv

    deactivate worked for me—this could be added to the docs?

    Happy to submit a PR.

    @ShivnarenSrinivasan ShivnarenSrinivasan mannequin added type-feature A feature request or enhancement 3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes 3.11 only security fixes labels Oct 12, 2021
    @ShivnarenSrinivasan ShivnarenSrinivasan mannequin added docs Documentation in the Doc dir type-feature A feature request or enhancement 3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes 3.11 only security fixes labels Oct 12, 2021
    @ShivnarenSrinivasan ShivnarenSrinivasan mannequin added the docs Documentation in the Doc dir label Oct 12, 2021
    @ShivnarenSrinivasan
    Copy link
    Mannequin Author

    ShivnarenSrinivasan mannequin commented Oct 12, 2021

    In the same vein, the specified script for windows is the old .bat file, though PowerShell is now the preferred shell (and for which a .ps1 script is generated in the venv directory).

    We could make the .ps1 the default, and specify the .bat as an alternative?

    @ShivnarenSrinivasan ShivnarenSrinivasan mannequin removed type-feature A feature request or enhancement labels Oct 12, 2021
    @miss-islington
    Copy link
    Contributor

    New changeset 11b2ae7 by srinivasan in branch 'main':
    bpo-45442: Add deactivate step to venv tutorial. (GH-28981)
    11b2ae7

    @ShivnarenSrinivasan ShivnarenSrinivasan mannequin closed this as completed Oct 16, 2021
    @ShivnarenSrinivasan ShivnarenSrinivasan mannequin closed this as completed Oct 16, 2021
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life 3.8 only security fixes 3.9 only security fixes 3.10 only security fixes 3.11 only security fixes docs Documentation in the Doc dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant