- 17 Sep, 2022 1 commit
-
-
Randy Döring committed
-
- 16 Sep, 2022 2 commits
-
-
Randy Döring committed
-
Previously, we rely on the `display_name` stored with `tomlkit.Table`, which is an internal implementation detail, and it breaks https://github.com/sdispater/tomlkit/pull/234. This PR corrects the nested table level, because `preserved` map comes from the poetry config table.
Frost Ming committed
-
- 15 Sep, 2022 2 commits
-
-
Resolves: #6521
Bjorn Neergaard committed -
If one poetry installation is writing to the cache while a second installer is attempting to read that cache file, the second installation will fail because the in-flight cache file is invalid while it is still being written to by the first process. This PR resolves this issue by having Poetry write to a temporary file in the cache directory first, and then rename the file after it's written, which is ~atomic. Resolves: #5142 I'm not sure how to test this change, as the conditions which cause this bug to appear are a little hard to reproduce.
Zack Weger committed
-
- 14 Sep, 2022 2 commits
-
-
Bump to Dulwich 0.20.46. This version applies applyInsteadOf to rsync-style URLs. Fixes #6329
Jelmer Vernooij committed -
finswimmer committed
-
- 13 Sep, 2022 1 commit
-
-
Added explanation to docs why `pre-commit autoupdate` will not find latest version for Poetry's hooks.
finswimmer committed
-
- 12 Sep, 2022 2 commits
-
-
`--dev` is marked as deprecated for both [add](https://python-poetry.org/docs/cli/#options-4) and [remove](https://python-poetry.org/docs/cli/#options-5) commands in the documentation and emit a warning when used, but this is not reflected in the CLI help messages. I also took the occasion to update the documentation to suggest replacements. Once backported, this would also require an update of the 1.2.0 blog post announcement, which doesn't mention those deprecations.
Mathieu Kniewallner committed -
Mark Forrer committed
-
- 11 Sep, 2022 3 commits
-
-
David Hotham committed
-
Refreshing lock file, mostly to pick up https://github.com/certifi/python-certifi/compare/2022.06.15...2022.06.15.1 that will remove some deprecation warnings raised on Python 3.11, and pick up wheels for `dulwich` on 3.11.
Mathieu Kniewallner committed -
This PR splits out simple part of #6130. Once this merged I'll update that PR to contain only second (more controversial) fix.
Maxim Koltsov committed
-
- 10 Sep, 2022 1 commit
-
-
Another random bit of code-tidying: - remove some dead code that constructs an unused dictionary - simplify (considerably) the code that walks the dependency tree looking for packages introduced by extras
David Hotham committed
-
- 09 Sep, 2022 3 commits
-
-
I tried to clarify how the `virtualenvs.create` config option works and why it is a good idea to have virtual environments in docker containers as well.
finswimmer committed -
David Hotham committed
-
Resolves: #6436 Measurements of `poetry lock` with warm cache with example pyproject.toml from #6436: |test case|time in s|peak memory usage in MB| |---|---|---| |legacy repository (before)|422|113| |legacy repository (after)|3|118| |pypi repository|1|92| `backports.cached-property` is used in order to support cached_property on Python 3.7. Co-authored-by: Jarrod Moore <jmo@jmo.name> Co-authored-by: Bjorn Neergaard <bjorn@neersighted.com>
Randy Döring committed
-
- 08 Sep, 2022 2 commits
-
-
Refactor `show` command a tiny bit to separate the different cases into dedicated functions, since right now `handle` method is 300 lines long. This also has the advantage of making some imports necessary only on a specific variant of the command. The package named is also canonicalized only once, for a minor performance improvement/to avoid extra work.
Mathieu Kniewallner committed -
Bjorn Neergaard committed
-
- 07 Sep, 2022 1 commit
-
-
Only follow and lock links for packages of type `sdist` or `bdist_wheel` in PyPi repository. Closes: https://github.com/python-poetry/poetry/issues/3649 Closes: https://github.com/python-poetry/poetry/issues/4903 (This is a port of https://github.com/python-poetry/poetry/pull/3656.)
finswimmer committed
-
- 06 Sep, 2022 5 commits
-
-
# 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 -
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 -
Randy Döring committed
-
Randy Döring committed
-
<!--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
-
- 05 Sep, 2022 3 commits
-
-
* Do not fetch VCS deps when reference didn't change * test(solver): test that solver does not update the resolved reference of a locked vcs package if not requested * test(solver): test that vcs package with locked ref is not refetched Co-authored-by: Randy Döring <30527984+radoering@users.noreply.github.com>
Maxim Koltsov committed -
locker: do not assign unrelated filenames/hashes to direct origin dependencies when used in multiple constraints dependencies
Randy Döring committed -
Randy Döring committed
-
- 04 Sep, 2022 2 commits
-
-
# Pull Request Check List In order to make GitHub Actions updates less manuals, let's leverage Dependabot for the updates. Since we mostly pin major versions for the actions, the volume of PRs will be pretty low, so a weekly schedule may be a good fit. - [ ] Added **tests** for changed code. - [ ] Updated **documentation** for changed code.
Mathieu Kniewallner committed -
* https://stackoverflow.com/q/73597456/7030591 * https://github.com/python-poetry/poetry/blob/1e1585321e90a771af3da33f5154278fe9ee5ca2/src/poetry/locations.py#L24-L26 # Pull Request Check List Resolves: #issue-number-here <!-- This is just a reminder about the most common mistakes. Please make sure that you tick all *appropriate* boxes. But please read our [contribution guide](https://python-poetry.org/docs/contributing/) at least once, it will save you unnecessary review cycles! --> - [ ] Added **tests** for changed code. - [x] Updated **documentation** for changed code. <!-- If you have *any* questions to *any* of the points above, just **submit and ask**! This checklist is here to *help* you, not to deter you from contributing! -->
SADIK KUZU committed
-
- 03 Sep, 2022 5 commits
-
-
Mathieu Kniewallner committed
-
Mathieu Kniewallner committed
-
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 -
Randy Döring committed
-
Branch Vincent committed
-
- 02 Sep, 2022 5 commits
-
-
David Hotham committed
-
Bjorn Neergaard committed
-
Branch Vincent committed
-
Add some recommendations about how to install Poetry into an CI environment. Co-authored-by: Bjorn Neergaard <bjorn@neersighted.com>
finswimmer committed -
Branch Vincent committed
-