1. 17 Sep, 2022 8 commits
  2. 16 Sep, 2022 2 commits
  3. 15 Sep, 2022 2 commits
  4. 14 Sep, 2022 2 commits
  5. 13 Sep, 2022 1 commit
  6. 12 Sep, 2022 2 commits
  7. 11 Sep, 2022 3 commits
  8. 10 Sep, 2022 1 commit
  9. 09 Sep, 2022 3 commits
  10. 08 Sep, 2022 2 commits
  11. 07 Sep, 2022 1 commit
  12. 06 Sep, 2022 5 commits
    • Fix shell activation for zsh (#5795) · 28d0175d
      # Fix Shell Activation For ZSH
      
      This PR resolves an issue wherein poetry will clear the `PATH` on zsh.
      The activation script contains a number of if statements of the
      following form:
      
      ```bash
          # ...
          if ! [ -z "${_OLD_VIRTUAL_PATH:+_}" ] ; then
              PATH="$_OLD_VIRTUAL_PATH"
              export PATH
              unset _OLD_VIRTUAL_PATH
          fi
      ```
      These constructs are valid in bash, although zsh fails to negate the
      conditional except when placed in emulation mode:
      
      ```zsh
      # Causes PATH to be cleared, leading to other issues
      . /home/alecto/.cache/pypoetry/virtualenvs/poetry-E-aAiPjf-py3.10/bin/activate
      ```
      
      When bash is used as an emulator to source the script, it functions
      correctly:
      
      ```zsh
      # Functions correctly
      emulate bash -c '. /home/alecto/.cache/pypoetry/virtualenvs/poetry-E-aAiPjf-py3.10/bin/activate'
      ```
      
      It's important to note that this doesn't place the *entire* shell into
      bash emulation mode; only the activate script is sourced as bash.
      
      Any guidance on what tests should be added for this PR would be
      appreciated.
      
      Co-authored-by: Alecto Irene Perez <alecto.perez@voladynamics.com>
      Co-authored-by: Bartosz Sokorski <b.sokorski@gmail.com>
      Alecto Irene Perez committed
    • fix: write to stderr in utils.env · 47255c44
      This is a quick fix to avoid polluting stdout unexpectedly when Poetry's
      environment management comes into play.
      
      It's apparent from how much the complexity of this file has grown that
      this needs to be refactored moderately, as well as each major class
      deserving its own source file.
      
      Future work should also include a rethink of how IO objects are passed
      around the codebase, how we reason about verbosity at a function level,
      and how code is re-used -- one command may wish to output to stdout, but
      if that code is reused by another command, the calculus of what is
      command output and what is informative (or even needs to be hidden/shown
      based on verbosity level) changes.
      
      Work on output would likely have to be fairly comprehensive and
      invasive, but things have grown complex enough that a top-down design
      pass is likely the best route.
      
      Regardless, this is a simple change today, and low risk. Resolves #6427.
      Bjorn Neergaard committed
    • [pre-commit.ci] pre-commit autoupdate (#6414) · 40780824
      <!--pre-commit.ci start-->
      updates:
      - [github.com/psf/black: 22.6.0 → 22.8.0](https://github.com/psf/black/compare/22.6.0...22.8.0)
      <!--pre-commit.ci end-->
      
      Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
      pre-commit-ci[bot] committed
  13. 05 Sep, 2022 3 commits
  14. 04 Sep, 2022 2 commits
  15. 03 Sep, 2022 3 commits
    • refactor: once again rework get-poetry.py · 58d2b996
      The new plan is described in https://github.com/python-poetry/poetry/issues/6377.
      
      With these changes, we see the following behaviors:
      
      ```sh
      $ python get-poetry.py
      
      Retrieving Poetry metadata
      
      This installer is deprecated, and scheduled for removal from the Poetry repository on or after January 1, 2023.
      See https://github.com/python-poetry/poetry/issues/6377 for details.
      
      You should migrate to https://install.python-poetry.org instead, which supports all versions of Poetry, and allows for `self update` of versions 1.1.7 or newer.
      Instructions are available at https://python-poetry.org/docs/#installation.
      
      Without an explicit version, this installer will attempt to install the latest version of Poetry.
      This installer cannot install Poetry 1.2.0a1 or newer (and installs will be unable to `self update` to 1.2.0a1 or newer).
      
      To continue to use this deprecated installer, you must specify an explicit version with --version <version> or POETRY_VERSION=<version>.
      Alternatively, if you wish to force this deprecated installer to use the latest installable release, set GET_POETRY_IGNORE_DEPRECATION=1.
      
      Version 1.2.0 is not supported by this installer! Please specify a version prior to 1.2.0a1 to continue!
      ```
      ```sh
      $ python get-poetry.py --version 1.2.0
      
      Retrieving Poetry metadata
      
      This installer is deprecated, and scheduled for removal from the Poetry repository on or after January 1, 2023.
      See https://github.com/python-poetry/poetry/issues/6377 for details.
      
      You should migrate to https://install.python-poetry.org instead, which supports all versions of Poetry, and allows for `self update` of versions 1.1.7 or newer.
      Instructions are available at https://python-poetry.org/docs/#installation.
      
      Without an explicit version, this installer will attempt to install the latest version of Poetry.
      This installer cannot install Poetry 1.2.0a1 or newer (and installs will be unable to `self update` to 1.2.0a1 or newer).
      
      To continue to use this deprecated installer, you must specify an explicit version with --version <version> or POETRY_VERSION=<version>.
      Alternatively, if you wish to force this deprecated installer to use the latest installable release, set GET_POETRY_IGNORE_DEPRECATION=1.
      
      Version 1.2.0 is not supported by this installer! Please specify a version prior to 1.2.0a1 to continue!
      ```
      ```sh
      $ python get-poetry.py --version 1.1.15
      
      Retrieving Poetry metadata
      
      This installer is deprecated, and scheduled for removal from the Poetry repository on or after January 1, 2023.
      See https://github.com/python-poetry/poetry/issues/6377 for details.
      
      You should migrate to https://install.python-poetry.org instead, which supports all versions of Poetry, and allows for `self update` of versions 1.1.7 or newer.
      Instructions are available at https://python-poetry.org/docs/#installation.
      
      [install of 1.1.15]
      ```
      ```sh
      $ GET_POETRY_IGNORE_DEPRECATION=1 python get-poetry.py
      
      Retrieving Poetry metadata
      
      This installer is deprecated, and scheduled for removal from the Poetry repository on or after January 1, 2023.
      See https://github.com/python-poetry/poetry/issues/6377 for details.
      
      You should migrate to https://install.python-poetry.org instead, which supports all versions of Poetry, and allows for `self update` of versions 1.1.7 or newer.
      Instructions are available at https://python-poetry.org/docs/#installation.
      
      Version 1.2.0 is available but is not supported by this installer!
      Version 1.1.15 will be installed as it is the latest version supported by this installer.
      
      This is not the latest version of Poetry! If you wish to install the latest version, you must move to the new installer as described above!
      
      [install of 1.1.15]
      ```
      Bjorn Neergaard committed