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

conda python310 #1

Closed
wants to merge 91 commits into from
Closed

conda python310 #1

wants to merge 91 commits into from

Commits on Mar 29, 2020

  1. Force adding group for command-line arguments (wntrblm#306)

    * Force adding group to an option
    
    * Update tests
    maciej-lech committed Mar 29, 2020
    Configuration menu
    Copy the full SHA
    b3c600c View commit details
    Browse the repository at this point in the history

Commits on May 16, 2020

  1. Add seasion.create_tmp (wntrblm#320)

    * Address wntrblm#319: Give a create_tmp API
    
    * more stuff
    
    * fade to black
    
    * woops
    
    * calculate tmp directly from envdir
    
    * cleanup and fix tests
    moshez committed May 16, 2020
    Configuration menu
    Copy the full SHA
    9110f3e View commit details
    Browse the repository at this point in the history

Commits on May 20, 2020

  1. Typo - formater to formatter (wntrblm#324)

    Docstring typo
    kkirsche committed May 20, 2020
    Configuration menu
    Copy the full SHA
    3e4eaff View commit details
    Browse the repository at this point in the history
  2. Fix overwritten and environment typos in virtualenv.py (wntrblm#326)

    Fix overwritten and environment typos in virtualenv.py
    kkirsche committed May 20, 2020
    Configuration menu
    Copy the full SHA
    7f00d10 View commit details
    Browse the repository at this point in the history
  3. Typo: Controling -> Controlling (wntrblm#325)

    * Typo: Controling -> Controlling
    
    Typo in usage.rst
    
    * Update usage.rst
    
    Co-authored-by: Thea Flowers <magicalgirl@google.com>
    kkirsche and theacodes committed May 20, 2020
    Configuration menu
    Copy the full SHA
    9d2788d View commit details
    Browse the repository at this point in the history

Commits on May 24, 2020

  1. venv_backend new options and choices (wntrblm#316)

    * New global option `nox.options.venv_backend` to set the default backend. Fixes wntrblm#315
    
    * Added doc about the new option
    
    * Blackened
    
    * fixed tests
    
    * Fixed docs
    
    * Fixed coverage by adding tests for the venv_backend_completer
    
    * fixed test
    
    * Added tests for short and long versions of the new option.
    
    * Replaced the venv_backend completer with a simple `choices` from argparse :)
    
    * Renamed venv_backend to default_venv_backend, and created new force_venv_backend
    
    * New "none" choice for venv_backends, equivalent to python=False
    
    * Updated doc concerning default_venv_backend and force_venv_backend, as well as the new 'none' backend
    
    * Fixed all manifest tests
    
    * Fixed test_tasks for venv_backend
    
    * Fixed coverage
    
    * Blackened code
    
    * The warning message was appearing for all sessions, even those deselected. It is now only logged when session is run.
    
    * Added `--no-venv` option. Fixes wntrblm#301
    
    * Blackened
    
    * Fixed tests
    
    * Improved coverage
    
    * Blackened
    
    * Fixed an issue with parametrization: warning would not be issued. Added corresponding tests. This should make coverage happy, too.
    
    * Blackened
    
    * Now `install` and `conda_install` work when there is no venv backend (or python=False). Previously a `ValueError` was raised. Fixes wntrblm#318
    
    * Fixed test
    
    * Minor edit to trigger CI build again as it seems stuck.
    
    * Minor doc fix to trigger the CI again (appveyor false fail)
    
    Co-authored-by: Sylvain MARIE <sylvain.marie@se.com>
    smarie and Sylvain MARIE committed May 24, 2020
    Configuration menu
    Copy the full SHA
    271ff14 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2020

  1. Configuration menu
    Copy the full SHA
    a3cb034 View commit details
    Browse the repository at this point in the history
  2. Fix version number

    theacodes committed May 25, 2020
    Configuration menu
    Copy the full SHA
    5a4f54a View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2020

  1. Configuration menu
    Copy the full SHA
    323ab59 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e3d4696 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2020

  1. Add --add-timestamp option (wntrblm#323)

    * initial pass, some tests failing
    
    * lint
    
    * hopefully fixed linting on 3.5
    omry committed Jun 18, 2020
    Configuration menu
    Copy the full SHA
    8dcefbf View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2020

  1. Fixed the default paths for conda on windows where the python.exe f…

    …ound was not the correct one (wntrblm#310)
    
    * Virtual environments now have a `bin_paths` attribute instead of a single `bin`. `command.run` and `which` both have their `path` argument renamed `paths` and supporting a list of paths, to handle it. Fixes wntrblm#256
    
    * Updated tests to handle the `paths` renaming of the `path` argument in `nox.command.run`, and the `bin` to `bin_paths` renaming in `virtualenv`
    
    * First conda test on windows
    
    * Black-ened code
    
    * As per code review: Added a backwards-compatible `session.bin` property
    
    * Fixed lint error
    
    * Added back `bin` to all envs for compatibility with legacy api
    
    Co-authored-by: Sylvain MARIE <sylvain.marie@se.com>
    smarie and Sylvain MARIE committed Jun 21, 2020
    Configuration menu
    Copy the full SHA
    ae3b37d View commit details
    Browse the repository at this point in the history
  2. Auto-offline for conda_install (wntrblm#314)

    * Offline mode is now auto-detected by default by `conda_install`. This allows users to continue executing nox sessions on already installed environments. This behaviour can be disabled by setting `auto_offline=False`. Fixes wntrblm#313
    
    * Fixed args order for offline option and added tests
    
    * Black-ened code
    
    * Fixed conda options order again
    
    * Added a log message when doing auto-offline
    
    * Fixed mypy errors
    
    * Fixed mypy errors (2)
    
    * mypy fix (3)
    
    * Fixed last failing test
    
    * Improved coverage
    
    * Last coverage fix ?
    
    * Blackened
    
    * Last Flake8 fix
    
    * removed dependency to `requests`
    
    * removed dependency to `urllib3`
    
    * Simplified offline checks
    
    * fixed import
    
    * fixed test
    
    * Added pragma no cover
    
    Co-authored-by: Sylvain MARIE <sylvain.marie@se.com>
    smarie and Sylvain MARIE committed Jun 21, 2020
    Configuration menu
    Copy the full SHA
    3098a7a View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2020

  1. conda_install and install args are now automatically double-quote…

    …d when needed. (wntrblm#312)
    
    * `conda_install` and `install` args are now automatically double-quoted when they contain a `<` or a `>`. Fixes wntrblm#311
    
    * Added a test for the double-quoting fix
    
    * Black-ened
    
    * Improving coverage: added some tests and improved error checking in _dblquote_pkg_install_arg
    
    * Blackened
    
    * Fixed mypy error
    
    * Fixed test
    
    * Now double-quoting arguments only for `conda_install`, not `install`. Apparently, `pip` does not need it.
    
    * Fixed mock error in test
    
    * blackened
    
    * Fixed lint error and code review related mod of comments
    
    Co-authored-by: Sylvain MARIE <sylvain.marie@se.com>
    smarie and Sylvain MARIE committed Jun 24, 2020
    Configuration menu
    Copy the full SHA
    00775b4 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2020

  1. Configuration menu
    Copy the full SHA
    7107cd5 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2020

  1. Export Session in __init__ (wntrblm#344)

    Closes wntrblm#343.
    layday committed Sep 4, 2020
    Configuration menu
    Copy the full SHA
    b704678 View commit details
    Browse the repository at this point in the history
  2. Fully annotate the session decorator (wntrblm#342)

    * Fully annotate the session decorator
    
    Previously the decorator would obscure the
    function type.
    
    * Try to get setuptools working on Travis
    
    See pypa/setuptools#2353.
    
    * fixup! Fully annotate the session decorator
    
    * Add `@overload` to coverage excludes
    layday committed Sep 4, 2020
    Configuration menu
    Copy the full SHA
    4deea88 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2020

  1. Configuration menu
    Copy the full SHA
    9caaba5 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2020

  1. Do not merge command-line options in place (wntrblm#357)

    When merging options specified in the noxfile and on the command-line option, do
    not use the output parameter `command_args` as the input for the merge; instead,
    copy `command_args` initially and pass the copy to the merge functions.
    
    Merge functions such as `_session_filters_merge_func` inspect `command_args` to
    see if other options have been specified on the command-line. When the options
    are merged in place, this check produces false positives.
    
    For example, `nox.options.sessions` is copied into `command_args` as a part of
    the merge; so it will appear to have been specified on the command-line when
    merging `nox.options.pythons`, causing the latter to be ignored.
    
    Co-authored-by: Claudio Jolowicz <cjolowicz@localhost.localdomain>
    cjolowicz and Claudio Jolowicz committed Nov 13, 2020
    Configuration menu
    Copy the full SHA
    e78d8d9 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2020

  1. Decouple merging of --python with nox.options from --sessions and --k…

    …eywords (wntrblm#359)
    
    * Add test fixture to generate noxfile.py
    
    The noxfile.py is templated with the default session (`nox.options.sessions`),
    and the default Python version (`nox.options.pythons`), as well as an alternate
    Python version.
    
    This allows us to avoid the situation where a test case running on one Python
    version needs to launch Nox using another Python version. As a side-effect, it
    makes the test cases a bit more explicit.
    
    * Add test case for using --pythons with nox.options.sessions
    
    * Add test case for using --sessions with nox.options.pythons
    
    * Do not ignore nox.options.pythons when --{sessions,keywords} passed
    
    * Do not ignore nox.options.{sessions,keywords} when --pythons passed
    
    * Rename _{session_filters => sessions_and_keywords}_merge_func
    
    Revert function name to the one used before --pythons was introduced.
    cjolowicz committed Nov 14, 2020
    Configuration menu
    Copy the full SHA
    6bdf51c View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2020

  1. Update nox to latest supported python versions. (wntrblm#362)

    * Update parameters to match latest python releases.
    
    * update setup.py, other references to 3.5
    
    * don't use miniconda 3.8 even though https://www.appveyor.com/docs/windows-images-software/ mentions it
    crwilcox committed Nov 21, 2020
    Configuration menu
    Copy the full SHA
    e5e9869 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    495b23f View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2020

  1. Sort imports using isort

    Run the blacken session on the codebase.
    Claudio Jolowicz authored and stsewd committed Nov 26, 2020
    Configuration menu
    Copy the full SHA
    6dc712a View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2020

  1. Support double-digit minor version in python keyword (wntrblm#367)

    * Add test for resolving python3.10
    
    * Support double-digit minor version in `python` keyword
    
    This fixes an issue where "3.10" is resolved as "python3".
    cjolowicz committed Nov 30, 2020
    Configuration menu
    Copy the full SHA
    bbe2cd8 View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2020

  1. Configuration menu
    Copy the full SHA
    4e18422 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2020

  1. Fix nested decorator annotation (wntrblm#370)

    Type checkers cannot solve an aliased, generic callable.
    layday committed Dec 19, 2020
    Configuration menu
    Copy the full SHA
    a188be7 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2020

  1. Configuration menu
    Copy the full SHA
    cdb391f View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2020

  1. feat: support users specifying an undeclared parametrization of python (

    wntrblm#361)
    
    * feat: support users specifying an undeclared parametrization of python
    
    Co-authored-by: Danny Hermes <daniel.j.hermes@gmail.com>
    Co-authored-by: Claudio Jolowicz <cjolowicz@gmail.com>
    3 people committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    e2db5ed View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2020

  1. Use conda remove to clean up existing conda environment. Closes wntrb…

    …lm#372. (wntrblm#373)
    
    Co-authored-by: Santos Gallegos <santos_g@outlook.com>
    Co-authored-by: Christopher Wilcox <crwilcox@google.com>
    3 people committed Dec 31, 2020
    Configuration menu
    Copy the full SHA
    4d42022 View commit details
    Browse the repository at this point in the history
  2. Fix NoxColoredFormatter.format (wntrblm#374)

    That method is making use of `_simple_fmt`,
    but isn't defined in the class.
    I used the same value as `NoxFormatter`
    stsewd committed Dec 31, 2020
    Configuration menu
    Copy the full SHA
    6f23914 View commit details
    Browse the repository at this point in the history

Commits on Jan 1, 2021

  1. Configuration menu
    Copy the full SHA
    319c796 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2021

  1. Allow passing PathLike types to Session.chdir() (wntrblm#376)

    os.chdir() has supported PathLib since Python 3.6.
    
    Discovered while adding types pip's noxfile.py:
    pypa/pip#9411
    jdufresne committed Jan 22, 2021
    Configuration menu
    Copy the full SHA
    156765c View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2021

  1. Make ProcessEnv.bin always return a str (wntrblm#378)

    The property never returns None. This simplifies user code containing
    types that already knows a bin directory must exist. It avoids the need
    to pepper calling code with:
    
        assert session.bin is not None
    
    Or
    
        # type: ignore
    
    For example, in pip:
    https://github.com/pypa/pip/blob/062f0e54d99f58e53be36be5a45adad89e2429fb/tools/automation/release/__init__.py#L29
    
    A noxfile that tries to access a bin directory that doesn't exist will
    now raise an exception.
    jdufresne committed Feb 8, 2021
    Configuration menu
    Copy the full SHA
    1025682 View commit details
    Browse the repository at this point in the history
  2. Define the location attribute on base class ProcessEnv (wntrblm#377)

    Fixes errors when running mypy on a project's noxfile.py:
    
        noxfile.py:42: error: "ProcessEnv" has no attribute "location"
    
    Discovered while adding types pip's noxfile.py:
    pypa/pip#9411
    jdufresne committed Feb 8, 2021
    Configuration menu
    Copy the full SHA
    d6a0ba5 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2021

  1. Docs: remove outdated notes on Windows compatibility (wntrblm#382)

    * Docs: remove outdated notes on Windows compatibility
    
    Closes wntrblm#379
    
    * Docs: add Python Launcher notes to config section
    brechtm committed Feb 10, 2021
    Configuration menu
    Copy the full SHA
    a70df3c View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2021

  1. Decode popen output using the system locale if UTF-8 decoding fails. (w…

    …ntrblm#380)
    
    * add decode_output func to decode popen output
    
    fixes wntrblm#309 by trying to decode popen output with utf8 first
    and on error tries other encodings provided by the systems
    preferences.
    
    * simplified decode_output function
    
    * fix linting issues
    
    * fix double hard coded utf8
    
    * change utf8 to utf-8
    
    * add tests for decode_output
    
    * fix linting issues
    
    * simplify nested try...except block and fix nested exception msg
    
    Co-authored-by: Claudio Jolowicz <cjolowicz@gmail.com>
    
    * fix tests for simplified deode_output
    
    Co-authored-by: Claudio Jolowicz <cjolowicz@gmail.com>
    Cielquan and cjolowicz committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    211702d View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2021

  1. Add Session.name (wntrblm#386)

    drhagen committed Feb 14, 2021
    Configuration menu
    Copy the full SHA
    db63783 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2021

  1. Configuration menu
    Copy the full SHA
    d4cf547 View commit details
    Browse the repository at this point in the history
  2. Add nox.needs_version to specify Nox version requirements (wntrblm#388)

    * feat: Add nox.needs_version
    * build: Add dependency on packaging >= 20.9
    
    The packaging library is needed to parse the version specifier in the
    `nox.needs_version` attribute set by user's `noxfile.py` files. We use the
    current version as the lower bound. The upper bound is omitted; packaging uses
    calendar versioning with a YY.N scheme.
    
    * Use admonition for version specification warning
    * Use a fixture to take care of common noxfile creation code
    
    Co-authored-by: Paulius Maruška <paulius.maruska@gmail.com>
    Co-authored-by: Thea Flowers <me@thea.codes>
    3 people committed Feb 20, 2021
    Configuration menu
    Copy the full SHA
    142092f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a078d3c View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2021

  1. Gracefully shutdown child processes (wntrblm#393)

    * Allow child processes to handle keyboard interrupts
    
    * Add tests for keyboard interrupts during commands
    
    * Remove obsolete u"" literal
    
    * Fix spurious interrupts in Windows tests
    
    * Do not send keyboard interrupts in Windows CI
    
    * Run keyboard interrupt tests on Windows detached from console
    
    * Avoid misleading naming in interrupt tests
    
    * Do not assume that the correct pytest is on PATH
    cjolowicz committed Mar 4, 2021
    Configuration menu
    Copy the full SHA
    7ad30a0 View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2021

  1. Improve automated tests support on Windows (wntrblm#300)

    * Allow sphinx-autobuild to run on Windows
    
    * Improve coverage when selecting bin folder
    
    * Test CondaEnv interpreter on Windows
    
    * Test VirtualEnv interpreter on Windows
    
    * Merge coverage results.
    
    * Undo changes to `test_create_interpreter`.
    
    * Remove an unused shutil import
    Peilonrayz committed Mar 8, 2021
    Configuration menu
    Copy the full SHA
    082c266 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2021

  1. Configuration menu
    Copy the full SHA
    1228981 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2021

  1. Configuration menu
    Copy the full SHA
    5525832 View commit details
    Browse the repository at this point in the history
  2. Preserve the order of parameterized arguments (wntrblm#401)

    * Swap param order in multiple args test
    
    * Remove arg sorting in Param repr
    
    Co-authored-by: Claudio Jolowicz <mail@claudiojolowicz.com>
    paw-lu and cjolowicz committed Mar 12, 2021
    Configuration menu
    Copy the full SHA
    de3d9c5 View commit details
    Browse the repository at this point in the history
  3. set local session posargs via notify (wntrblm#397)

    * add local session posargs via notify
    
    * add docs for notify(posargs=...)
    
    Also SessionRunner.notify did not need to be a property.
    
    * fix tests after notify(posargs=...) addition
    
    * add test for notified posargs
    
    * Add posargs to docstring for Manifest.notify
    
    * Fix typo in docstring
    rmorshea committed Mar 12, 2021
    Configuration menu
    Copy the full SHA
    3240441 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2021

  1. Check whether interpreter changed and type (wntrblm#123) (wntrblm#418)

    Co-authored-by: Diego <dpalma@evernote.com>
    dpalmasan and Diego committed Apr 24, 2021
    Configuration menu
    Copy the full SHA
    a67c9a2 View commit details
    Browse the repository at this point in the history
  2. fix position of venv_params within conda create (wntrblm#420)

    Fixes wntrblm#419 by moving 'pip' to after venv_params
    wholtz committed Apr 24, 2021
    Configuration menu
    Copy the full SHA
    7f3b8da View commit details
    Browse the repository at this point in the history
  3. Add normalized comparison to check sessions (wntrblm#396) (wntrblm#417)

    Co-authored-by: Diego <dpalma@evernote.com>
    dpalmasan and Diego committed Apr 24, 2021
    Configuration menu
    Copy the full SHA
    a9bd872 View commit details
    Browse the repository at this point in the history
  4. Allow nox.parametrize to select the session Python (wntrblm#413)

    * Enable nox.parametrize to determine the session Python
    
    * Add tests
    
    * Add documentation
    cjolowicz committed Apr 24, 2021
    Configuration menu
    Copy the full SHA
    9cd5b78 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2021

  1. Fix regression in check for stale environments (wntrblm#425)

    * Add test case for reusing environments
    
    * Fix crash due to unconditional use of `sys.real_prefix`
    
    - `sys.real_prefix` was set by virtualenv < 20.0.
    - `sys.base_prefix` is used by virtualenv >= 20.0 and python -m venv (PEP 405)
    
    * Fix disabled reuse due to comparing sys.prefix with sys.base_prefix
    
    When comparing the resolved interpreter to the interpreter in an existing
    virtualenv, we need to use sys.base_prefix (or sys.real_prefix) for both.
    The resolved interpreter is located in the virtualenv, so its sys.prefix would
    point into the virtualenv instead of the base installation.
    
    This bug results in virtualenvs never being reused.
    
    * Add test for reusing stale venv-style environment
    
    * Add test for reusing stale virtualenv-style environment
    
    * Fix crash when reusing environment of unexpected type
    
    * Use realistic pyvenv.cfg syntax in test for interpreter check
    
    * Add test for venv-style pyvenv.cfg with spurious "virtualenv" string
    
    * Fix false positive for venv-style environment
    
    * Fix crash on Windows due to hardcoded POSIX-style interpreter path
    
    * Add test for virtualenv without pyvenv.cfg file
    
    * Fix crash when virtualenv does not contain a pyvenv.cfg file
    
    Environments created by virtualenv < 20.0.0 do not have pyvenv.cfg files.
    
    * Rename Virtualenv._check_reused_environment{ => _type}
    
    * Extract function Virtualenv._check_reused_environment_interpreter
    
    * Refactor test reusing environments with different interpreter
    
    * Extend test to check that the stale environment is removed
    
    * Fix missing directory removal when re-creating environment
    
    * Reformat with Black
    cjolowicz committed May 23, 2021
    Configuration menu
    Copy the full SHA
    99c5910 View commit details
    Browse the repository at this point in the history
  2. Drop contexter from test requirements (wntrblm#426)

    The contexter package is a third-party backport of contextlib (with some
    extensions). It is no longer required because Nox does not support Python 2
    anymore, and we only ever used the standard ExitStack interface.
    
    The contexter package was used only in the test suite.
    cjolowicz committed May 23, 2021
    Configuration menu
    Copy the full SHA
    a6539a7 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2021

  1. Configuration menu
    Copy the full SHA
    e012b60 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2021

  1. Allow colorlog <7.0.0 (wntrblm#431)

    5 is the latest release, and 6.x just drops support for Python 2, so we should be good.
    theacodes committed May 27, 2021
    Configuration menu
    Copy the full SHA
    1d0ff6f View commit details
    Browse the repository at this point in the history
  2. Add --force-python option as shorthand for --python and --extra-python (

    wntrblm#427)
    
    * Add test for --force-python option
    
    * Add --force-python option as shorthand for --python and --extra-python
    
    * Document the --force-python option
    cjolowicz committed May 27, 2021
    Configuration menu
    Copy the full SHA
    e9945ef View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2021

  1. Add option --no-install to skip install commands in reused environmen…

    …ts (wntrblm#432)
    
    Use either of these to reuse a virtualenv without re-installing packages:
    
    ```
    nox -R
    nox --reuse-existing-virtualenvs --no-install
    ```
    
    The `--no-install` option causes the following session methods to return early:
    
    - `session.install`
    - `session.conda_install`
    - `session.run_always`
    
    This option has no effect if the virtualenv is not being reused.
    
    Co-authored-by: Jam <jam@jamandbees.net>
    
    * Add option --no-install
    
    * Add test for VirtualEnv._reused
    
    * Add test for CondaEnv._reused
    
    * Add {Virtual,Conda,Process}Env._reused
    
    * Add test for session.install with --no-install
    
    * Skip session.install when --no-install is given
    
    * Add test for session.conda_install with --no-install
    
    * Skip session.conda_install when --no-install is given
    
    * Add test for session.run_always with --no-install
    
    * Skip session.run_always when --no-install is given
    
    * Add test for short option -R
    
    * Add short option -R for `--reuse-existing-virtualenvs --no-install`
    
    * Document the --no-install and -R options
    
    * Update broken link to pip documentation
    
    * Clarify documentation of session.run_always
    cjolowicz committed Jun 1, 2021
    Configuration menu
    Copy the full SHA
    56c7d56 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2021

  1. Fix garbled error message when session not found (wntrblm#434)

    * Add Noxfile for testing normalized session names
    
    * Add tests for normalized session names
    
    * Add failing test for regression when session not found
    
    * Fix garbled error message when session not found
    cjolowicz committed Jun 3, 2021
    Configuration menu
    Copy the full SHA
    4ddd055 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2021

  1. Configuration menu
    Copy the full SHA
    41b9c79 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2021

  1. Prevent sessions from modifying each other's posargs (wntrblm#439)

    * test: Do not compare posargs using `is`
    
    * test: Do not set posargs to mock sentinel
    
    This breaks tests because sentinels cannot be subscripted.
    
    * test: Initialize posargs to an empty list, not None
    
    * test: Add failing test for bleed-through of posargs between sessions
    
    * Give each session its own copy of posargs
    cjolowicz committed Jun 6, 2021
    Configuration menu
    Copy the full SHA
    bcaa5ff View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    da48d3c View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2021

  1. Configuration menu
    Copy the full SHA
    24fc263 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2021

  1. Configuration menu
    Copy the full SHA
    0fb841d View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2021

  1. Fix crash on Python 2 when reusing environments (wntrblm#450)

    * Remove redundant mock in test for environment reuse
    
    This breaks tests comparing a string from pyvenv.cfg to command output, because
    the latter will be a mock. There is no inherent need for this mock. It was added
    recently, and probably speculatively or for performance reasons.
    
    * Add test case for reusing Python 2 environments
    
    * Read base prefix from pyvenv.cfg if present
    
    * Remove trailing newline when querying interpreter base prefix
    cjolowicz committed Jun 12, 2021
    Configuration menu
    Copy the full SHA
    2791b70 View commit details
    Browse the repository at this point in the history
  2. Hide staleness check behind a feature flag (wntrblm#451)

    * Hide staleness check behind a feature flag
    
    * Set feature flag for staleness check in unit tests
    
    * Set feature flag for staleness check in Python 2 test
    cjolowicz committed Jun 12, 2021
    Configuration menu
    Copy the full SHA
    950015e View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2021

  1. Configuration menu
    Copy the full SHA
    787dfaa View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2021

  1. Configuration menu
    Copy the full SHA
    d977535 View commit details
    Browse the repository at this point in the history
  2. chore: upgrade to mypy 0.902 (wntrblm#455)

    * chore: upgrade to mypy 0.902
    
    Uses the new pyproject.toml configuration and much tighter checking, nearly --strict
    
    * fix: adding pragma no cover for static if
    
    Co-authored-by: Claudio Jolowicz <mail@claudiojolowicz.com>
    henryiii and cjolowicz committed Jun 20, 2021
    Configuration menu
    Copy the full SHA
    4ea2051 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0ba939a View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2021

  1. Configuration menu
    Copy the full SHA
    6cb0376 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2021

  1. Remove setup.py (wntrblm#458)

    * Remove setup.py
    
    Editable installs for projects with a setup.cfg no longer require a setup.py
    shim. This requires pip >= 21.1 (2021-04-24).
    
    * Remove setup.py from blacken and lint sessions
    
    * CI: Use python -m build in deploy job
    cjolowicz committed Jul 4, 2021
    Configuration menu
    Copy the full SHA
    5ac156f View commit details
    Browse the repository at this point in the history
  2. Add header from noxfile.py docstring wntrblm#454 (wntrblm#459)

    * Add header from noxfile.py docstring wntrblm#454
    
    This commit adds the functionality for using the `noxfile.py` module
    docstring as a header description for the `nox -l` option.
    
    The module docstring is now an attribute in `Manifest` which is
    now populated in `discover_manifest` which is in-turn passed
    to `honor_list_request` which will print the docstring if it is
    present, and do nothing if it is not present.
    
    I've also added two tests which cover these conditions (existent and
    non-existent module docstring) and added to an existing
    parametrized test.
    
    * Standardise printed docstring whitespace
    
    Co-authored-by: Claudio Jolowicz <mail@claudiojolowicz.com>
    FollowTheProcess and cjolowicz committed Jul 4, 2021
    Configuration menu
    Copy the full SHA
    0d4764e View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2021

  1. Configuration menu
    Copy the full SHA
    98e8c24 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2021

  1. Add friendlier message if no noxfile.py (wntrblm#463)

    * Add friendlier message if no noxfile.py
    
    Fixes wntrblm#462.
    
    Add a friendlier message on the specific case that user is calling
    nox from within a directory with no noxfile.
    
    Existing test for this case modified and two additional tests
    added to ensure lower level errors are still handled further down.
    
    * Standardise no noxfile found message for noxfile with different names
    
    Co-authored-by: Claudio Jolowicz <mail@claudiojolowicz.com>
    FollowTheProcess and cjolowicz committed Jul 10, 2021
    Configuration menu
    Copy the full SHA
    8ee3ebe View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2021

  1. Add python 3.10.0-rc2 to GitHub Actions (wntrblm#475)

    * Add python 3.10.0-rc.2 to GitHub Actions
    
    * Make separate CI job for 3.10 to avoid conda failure
    
    * Fix docs job in CI so that it now executes correctly
    FollowTheProcess committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    d537c55 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5f9cffa View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2821216 View commit details
    Browse the repository at this point in the history
  4. Run Flynt to convert str.format to f-strings (wntrblm#464)

    * chore: Convert old style str.format to f strings
    
    Ran `flynt`: https://github.com/ikamensh/flynt against nox
    to automatically convert `"{}".format` style strings to the
    newer `f"{}"` style strings.
    
    * Fix Lint failure by running black
    
    * Improve readibility of some converted strings
    
    * Run Flynt string conversion against tests/
    
    * Change remaining str.format calls to f-strings
    FollowTheProcess committed Sep 9, 2021
    Configuration menu
    Copy the full SHA
    9c696e2 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2021

  1. Add session.invoked_from (wntrblm#472)

    * Add original cwd to session properties
    
    * Fix test
    
    * Rename original_wd to invoked_from
    
    * Hoist invoked_from up to the options parser
    
    * Add test case for hidden options
    
    * Add test case for groupless options
    
    Co-authored-by: Thea Flowers <me@thea.codes>
    franekmagiera and theacodes committed Sep 11, 2021
    Configuration menu
    Copy the full SHA
    74f8793 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2021

  1. Add a "shared cache" directory (wntrblm#476)

    * Add a "shared cache" directory
    
    Add an "{envdir}/.shared" directory, and create an API for accesing to it.
    
    * Don't fail  if the ".shared" directory exists
    
    Don't raise an exception.
    
    * Update sessions.py
    
    Move the "shared cache" API inside of nox.sessions.Session
    
    * Update sessions.py
    
    Convert the "shared cache" path into a property. Now, it returns a "pathlib.Path".
    
    * Update test_sessions.py
    
    Make a test for the recent changes.
    
    * Update sessions.py
    
    Use the "pathlib.Path" methods to reduce the variable usage.
    
    * Update test_sessions.py
    
    Make some modifications to the tests.
    
    * Update test_sessions.py
    
    Fix an import error.
    
    * Update sessions.py
    
    Use the parent directory to create the cache dir.
    
    * Update test_sessions.py
    
    Use a tempfile to test the session properties.
    
    * Fix test indent
    
    * Update nox/sessions.py
    
    This avoids some unnecessary path manipulations, and using the parent directory of a virtualenv which does not necessarily exist (`PassthroughEnv` does not create a virtualenv).
    
    Co-authored-by: Claudio Jolowicz <cjolowicz@gmail.com>
    
    * Update sessions.py
    
    Use ".cache" instead of ".shared".
    
    * Update test_sessions.py
    
    Use ".cache" instead of ".shared".
    
    Co-authored-by: Tom Fleet <tomfleet2018@gmail.com>
    Co-authored-by: Claudio Jolowicz <cjolowicz@gmail.com>
    3 people committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    9ebae0a View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2021

  1. CI: Python 3.10.0-rc.2 coverage fix (wntrblm#479)

    * Hopeful python3.10.0-rc.2 CI fix
    
    * Lets get the correct syntax this time
    
    * Lower coverage requirement if 3.10
    
    * Fix failing test coupled to now modified noxfile.py
    
    * Explicitly run cover session in GHA
    
    * Remove parametrisation in favour of explicit sys.version_info check
    
    * Change CI workflow now cover is no longer parametrised
    
    * Remove redundant cover session in GHA
    FollowTheProcess committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    f584aed View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2021

  1. Decouple test_session_completer from project level noxfile (wntrblm…

    …#480)
    
    * Decouple test_session_completer from project's root noxfile
    
    * Make test variables a bit more intuitive
    FollowTheProcess committed Sep 17, 2021
    Configuration menu
    Copy the full SHA
    e7d4f5a View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2021

  1. Add session.warn to output warnings (wntrblm#482)

    * Add `session.warn` to output warnings
    
    Show warnings during the session.
    
    * Update test_sessions.py
    
    Add a test for "session.warn"
    (It is pretty similar to "test_log", but it has changed the logging level to be tested).
    
    * Update test_sessions.py
    
    Run black to fix linting errors.
    
    * Update test_sessions.py
    
    Remove an additional whiespace.
    DiddiLeija committed Sep 21, 2021
    Configuration menu
    Copy the full SHA
    7f63350 View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2021

  1. Move configs into pyproject.toml or setup.cfg(flake8) (wntrblm#484)

    * Move configs into pyproject.toml or setup.cfg(flake8)
    
    * Drop redundant isort multi-line-output setting
    FollowTheProcess committed Sep 25, 2021
    Configuration menu
    Copy the full SHA
    e679b77 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2021

  1. Release 2021.10.1

    theacodes committed Oct 1, 2021
    Configuration menu
    Copy the full SHA
    73d14b1 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2021

  1. Using shlex.join() when logging a command (wntrblm#490)

    * Using `shlex.join()` when logging a command
    
    * Backport `shlex.join()`
    
    * Fix copy-pasta
    dhermes committed Oct 2, 2021
    Configuration menu
    Copy the full SHA
    d95c57c View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2021

  1. Add session.debug to show debug-level messages (wntrblm#489)

    * Add `session.debug` to show debug-level messages
    
    A logging function to show debug-level messages.
    
    * Add `session.debug` to show debug-level messages
    
    Add a coverage test.
    DiddiLeija committed Oct 5, 2021
    Configuration menu
    Copy the full SHA
    a2bd140 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2021

  1. Configuration menu
    Copy the full SHA
    f1b01e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    536e9d1 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2021

  1. Bump the ReadTheDocs Python version to 3.8 (wntrblm#496)

    Python 3.9 is not supported yet, and 3.6 could reach its EOL soon.
    DiddiLeija committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    39b8dd4 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2021

  1. Replace deprecated load_module with exec_module (wntrblm#498)

    * Replace to be deprecated load_module
    
    * Satisfy mypy (sort of)
    
    * Add tests to cover new statements
    
    * Factor out the loader function and test seperately
    FollowTheProcess committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    e9f7f03 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2021

  1. Improve the Sphinx config file (wntrblm#499)

    * Remove redundancies on the Sphinx config file
    
    - Remove a (duplicated?) commentary.
    - Remove the "u" prefix on strngs, since they are set to Unicode by default.
    
    * Run black
    
    * Add `docs/conf.py` to the `blacken` session
    
    Run black on that file, too.
    DiddiLeija committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    cbd9d2d View commit details
    Browse the repository at this point in the history