python-poetry / python-poetry/poetry

In poetry 1.8.2, even when I run the `poetry self update` command, only the VERSION is not updated.

Open
#9,329 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/installer area/project/deps kind/bug status/triage
Dominant language
Python
Stars
34.3k
Forks
2.5k
Avg merge
2d 19h
Merged PRs (30d)
30

Description

Description
❯ poetry self update
Updating Poetry version ...

Using version ^1.8.2 for poetry

Updating dependencies
Resolving dependencies... (0.1s)

No dependencies to install or update

After executing the above command, only the VERSION is not updated.

❯ cat ~/Library/Application\ Support/pypoetry/VERSION
1.7.1                                                                                                                                                                                                

❯ cat ~/Library/Application\ Support/pypoetry/pyproject.toml 
[tool.poetry]
name = "poetry-instance"
version = "1.8.2"
description = ""
authors = []
license = ""

Also, I have a related question. Originally, I was having trouble with the pyenv version not updating even when I ran the poetry new command. During my investigation, I found that editing the pyvenv.cfg file might allow me to use the desired Python version. However, I was wondering if it is possible to do something like poetry new --python-version 3.12 or --python-path /path/to/python to specify the Python version or path directly when creating a new project?

Workarounds

no.

Poetry Installation Method

install.python-poetry.org

Operating System

Mac OS

Poetry Version

1.8.2

Poetry Configuration
❯ poetry config --list
cache-dir = "/Users/user/Library/Caches/pypoetry"
experimental.system-git-client = false
installer.max-workers = null
installer.modern-installation = true
installer.no-binary = null
installer.parallel = true
keyring.enabled = true
solver.lazy-wheel = true
virtualenvs.create = true
virtualenvs.in-project = null
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}/virtualenvs"  # /Users/user/Library/Caches/pypoetry/virtualenvs
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = true


### Python Sysconfig

_No response_

### Example pyproject.toml

_No response_

### Poetry Runtime Logs

```bash session
❯ poetry self update -vvv        
Loading configuration file /Users/user/Library/Application Support/pypoetry/config.toml
Updating Poetry version ...

Checking if keyring is available
[keyring:keyring.backend] Loading KWallet
[keyring:keyring.backend] Loading SecretService
[keyring:keyring.backend] Loading Windows
[keyring:keyring.backend] Loading chainer
[keyring:keyring.backend] Loading libsecret
[keyring:keyring.backend] Loading macOS
Using keyring backend 'macOS Keyring'
Creating new session for pypi.org
[urllib3:urllib3.connectionpool] Starting new HTTPS connection (1): pypi.org:443
[urllib3:urllib3.connectionpool] https://pypi.org:443 "GET /simple/poetry/ HTTP/1.1" 304 0
[filelock:filelock] Attempting to acquire lock 4392603408 on /Users/user/Library/Caches/pypoetry/cache/repositories/PyPI/_http/3/f/1/8/3/3f1831de5c013ea5c0cdef890fb37908acf5692d338515305311a3ab.lock
[filelock:filelock] Lock 4392603408 acquired on /Users/user/Library/Caches/pypoetry/cache/repositories/PyPI/_http/3/f/1/8/3/3f1831de5c013ea5c0cdef890fb37908acf5692d338515305311a3ab.lock
[filelock:filelock] Attempting to release lock 4392603408 on /Users/user/Library/Caches/pypoetry/cache/repositories/PyPI/_http/3/f/1/8/3/3f1831de5c013ea5c0cdef890fb37908acf5692d338515305311a3ab.lock
[filelock:filelock] Lock 4392603408 released on /Users/user/Library/Caches/pypoetry/cache/repositories/PyPI/_http/3/f/1/8/3/3f1831de5c013ea5c0cdef890fb37908acf5692d338515305311a3ab.lock
Source (PyPI): 98 packages found for poetry *
Using version ^1.8.2 for poetry

Updating dependencies
Resolving dependencies...
   1: fact: poetry-instance is 1.8.2
   1: derived: poetry-instance
   1: fact: poetry-instance depends on poetry (^1.8.2)
   1: selecting poetry-instance (1.8.2)
   1: derived: poetry (>=1.8.2,<2.0.0)
Source (PyPI): 1 packages found for poetry >=1.8.2,<2.0.0
   1: fact: poetry (1.8.2) depends on poetry-core (1.9.0)
   1: fact: poetry (1.8.2) depends on poetry-plugin-export (>=1.6.0,<2.0.0)
   1: fact: poetry (1.8.2) depends on build (>=1.0.3,<2.0.0)
   1: fact: poetry (1.8.2) depends on cachecontrol[filecache] (>=0.14.0,<0.15.0)
   1: fact: poetry (1.8.2) depends on cleo (>=2.1.0,<3.0.0)
   1: fact: poetry (1.8.2) depends on crashtest (>=0.4.1,<0.5.0)
   1: fact: poetry (1.8.2) depends on dulwich (>=0.21.2,<0.22.0)
   1: fact: poetry (1.8.2) depends on fastjsonschema (>=2.18.0,<3.0.0)
   1: fact: poetry (1.8.2) depends on installer (>=0.7.0,<0.8.0)
   1: fact: poetry (1.8.2) depends on keyring (>=24.0.0,<25.0.0)
   1: fact: poetry (1.8.2) depends on packaging (>=23.1)
   1: fact: poetry (1.8.2) depends on pexpect (>=4.7.0,<5.0.0)
   1: fact: poetry (1.8.2) depends on pkginfo (>=1.9.4,<2.0.0)
   1: fact: poetry (1.8.2) depends on platformdirs (>=3.0.0,<5)
   1: fact: poetry (1.8.2) depends on pyproject-hooks (>=1.0.0,<2.0.0)
   1: fact: poetry (1.8.2) depends on requests (>=2.26,<3.0)
   1: fact: poetry (1.8.2) depends on requests-toolbelt (>=1.0.0,<2.0.0)
   1: fact: poetry (1.8.2) depends on shellingham (>=1.5,<2.0)
   1: fact: poetry (1.8.2) depends on tomlkit (>=0.11.4,<1.0.0)
   1: fact: poetry (1.8.2) depends on trove-classifiers (>=2022.5.19)
   1: fact: poetry (1.8.2) depends on virtualenv (>=20.23.0,<21.0.0)
   1: fact: poetry (1.8.2) depends on xattr (>=1.0.0,<2.0.0)
   1: selecting poetry (1.8.2)
   1: derived: xattr (>=1.0.0,<2.0.0)
   1: derived: virtualenv (>=20.23.0,<21.0.0)
   1: derived: trove-classifiers (>=2022.5.19)
   1: derived: tomlkit (>=0.11.4,<1.0.0)
   1: derived: shellingham (>=1.5,<2.0)
   1: derived: requests-toolbelt (>=1.0.0,<2.0.0)
   1: derived: requests (>=2.26,<3.0)
   1: derived: pyproject-hooks (>=1.0.0,<2.0.0)
   1: derived: platformdirs (>=3.0.0,<5)
   1: derived: pkginfo (>=1.9.4,<2.0.0)
   1: derived: pexpect (>=4.7.0,<5.0.0)
   1: derived: packaging (>=23.1)
   1: derived: keyring (>=24.0.0,<25.0.0)
   1: derived: installer (>=0.7.0,<0.8.0)
   1: derived: fastjsonschema (>=2.18.0,<3.0.0)
   1: derived: dulwich (>=0.21.2,<0.22.0)
   1: derived: crashtest (>=0.4.1,<0.5.0)
   1: derived: cleo (>=2.1.0,<3.0.0)
   1: derived: cachecontrol[filecache] (>=0.14.0,<0.15.0)
   1: derived: build (>=1.0.3,<2.0.0)
   1: derived: poetry-plugin-export (>=1.6.0,<2.0.0)
   1: derived: poetry-core (==1.9.0)
   1: fact: virtualenv (20.25.0) depends on distlib (>=0.3.7,<1)
   1: fact: virtualenv (20.25.0) depends on filelock (>=3.12.2,<4)
   1: fact: virtualenv (20.25.0) depends on platformdirs (>=3.9.1,<5)
   1: selecting virtualenv (20.25.0)
   1: derived: platformdirs (>=3.9.1,<5)
   1: derived: filelock (>=3.12.2,<4)
   1: derived: distlib (>=0.3.7,<1)
   1: selecting trove-classifiers (2023.11.29)
   1: selecting tomlkit (0.12.3)
   1: selecting shellingham (1.5.4)
   1: fact: requests-toolbelt (1.0.0) depends on requests (>=2.0.1,<3.0.0)
   1: selecting requests-toolbelt (1.0.0)
   1: fact: requests (2.31.0) depends on charset-normalizer (>=2,<4)
   1: fact: requests (2.31.0) depends on idna (>=2.5,<4)
   1: fact: requests (2.31.0) depends on urllib3 (>=1.21.1,<3)
   1: fact: requests (2.31.0) depends on certifi (>=2017.4.17)
   1: selecting requests (2.31.0)
   1: derived: certifi (>=2017.4.17)
   1: derived: urllib3 (>=1.21.1,<3)
   1: derived: idna (>=2.5,<4)
   1: derived: charset-normalizer (>=2,<4)
   1: selecting pyproject-hooks (1.0.0)
   1: selecting platformdirs (3.11.0)
   1: selecting pkginfo (1.9.6)
   1: fact: pexpect (4.9.0) depends on ptyprocess (>=0.5)
   1: selecting pexpect (4.9.0)
   1: derived: ptyprocess (>=0.5)
   1: selecting packaging (23.2)
   1: fact: keyring (24.3.0) depends on jaraco.classes (*)
   1: fact: keyring (24.3.0) depends on importlib-metadata (>=4.11.4)
   1: fact: keyring (24.3.0) depends on SecretStorage (>=3.2)
   1: fact: keyring (24.3.0) depends on jeepney (>=0.4.2)
   1: fact: keyring (24.3.0) depends on pywin32-ctypes (>=0.2.0)
   1: selecting keyring (24.3.0)
   1: derived: pywin32-ctypes (>=0.2.0)
   1: derived: jeepney (>=0.4.2)
   1: derived: SecretStorage (>=3.2)
   1: derived: importlib-metadata (>=4.11.4)
   1: derived: jaraco.classes
   1: selecting installer (0.7.0)
   1: selecting fastjsonschema (2.19.1)
   1: fact: dulwich (0.21.7) depends on urllib3 (>=1.25)
   1: selecting dulwich (0.21.7)
   1: derived: urllib3 (>=1.25)
   1: selecting crashtest (0.4.1)
   1: fact: cleo (2.1.0) depends on crashtest (>=0.4.1,<0.5.0)
   1: fact: cleo (2.1.0) depends on rapidfuzz (>=3.0.0,<4.0.0)
   1: selecting cleo (2.1.0)
   1: derived: rapidfuzz (>=3.0.0,<4.0.0)
   1: fact: cachecontrol[filecache] (0.14.0) depends on cachecontrol (0.14.0)
   1: fact: cachecontrol[filecache] (0.14.0) depends on requests (>=2.16.0)
   1: fact: cachecontrol[filecache] (0.14.0) depends on msgpack (>=0.5.2,<2.0.0)
   1: fact: cachecontrol[filecache] (0.14.0) depends on filelock (>=3.8.0)
   1: selecting cachecontrol[filecache] (0.14.0)
   1: derived: msgpack (>=0.5.2,<2.0.0)
   1: derived: cachecontrol (==0.14.0)
   1: fact: build (1.0.3) depends on packaging (>=19.0)
   1: fact: build (1.0.3) depends on pyproject_hooks (*)
   1: fact: build (1.0.3) depends on colorama (*)
   1: selecting build (1.0.3)
   1: derived: colorama
   1: fact: poetry-plugin-export (1.6.0) depends on poetry (>=1.6.0,<2.0.0)
   1: fact: poetry-plugin-export (1.6.0) depends on poetry-core (>=1.7.0,<2.0.0)
   1: selecting poetry-plugin-export (1.6.0)
   1: selecting poetry-core (1.9.0)
   1: selecting filelock (3.13.1)
   1: selecting distlib (0.3.8)
   1: selecting certifi (2023.11.17)
   1: selecting urllib3 (2.1.0)
   1: selecting idna (3.6)
   1: selecting charset-normalizer (3.3.2)
   1: selecting ptyprocess (0.7.0)
   1: fact: jaraco-classes (3.3.0) depends on more-itertools (*)
   1: selecting jaraco-classes (3.3.0)
   1: derived: more-itertools
   1: selecting rapidfuzz (3.6.0)
   1: selecting msgpack (1.0.7)
   1: selecting more-itertools (10.1.0)
   1: fact: xattr (1.1.0) depends on cffi (>=1.16.0)
   1: selecting xattr (1.1.0)
   1: derived: cffi (>=1.16.0)
   1: fact: cffi (1.16.0) depends on pycparser (*)
   1: selecting cffi (1.16.0)
   1: derived: pycparser
   1: selecting pycparser (2.21)
   1: selecting pywin32-ctypes (0.2.2)
   1: selecting jeepney (0.8.0)
   1: fact: secretstorage (3.3.3) depends on cryptography (>=2.0)
   1: fact: secretstorage (3.3.3) depends on jeepney (>=0.6)
   1: selecting secretstorage (3.3.3)
   1: derived: cryptography (>=2.0)
   1: fact: cryptography (41.0.7) depends on cffi (>=1.12)
   1: selecting cryptography (41.0.7)
   1: fact: importlib-metadata (7.0.1) depends on zipp (>=0.5)
   1: selecting importlib-metadata (7.0.1)
   1: derived: zipp (>=0.5)
   1: selecting zipp (3.17.0)
   1: fact: cachecontrol (0.14.0) depends on requests (>=2.16.0)
   1: fact: cachecontrol (0.14.0) depends on msgpack (>=0.5.2,<2.0.0)
   1: selecting cachecontrol (0.14.0)
   1: selecting colorama (0.4.6)
   1: Version solving took 0.062 seconds.
   1: Tried 1 solutions.

Finding the necessary packages for the current system
Source (PyPI): 1 packages found for poetry >=1.8.2,<2.0.0

Package operations: 0 installs, 0 updates, 0 removals, 38 skipped

  - Installing build (1.0.3): Pending...
  - Installing build (1.0.3): Skipped for the following reason: Already installed
  - Installing cachecontrol (0.14.0): Pending...
  - Installing cachecontrol (0.14.0): Skipped for the following reason: Already installed
  - Installing certifi (2023.11.17): Pending...
  - Installing certifi (2023.11.17): Skipped for the following reason: Already installed
  - Installing cffi (1.16.0): Pending...
  - Installing cffi (1.16.0): Skipped for the following reason: Already installed
  - Installing charset-normalizer (3.3.2): Pending...
  - Installing charset-normalizer (3.3.2): Skipped for the following reason: Already installed
  - Installing cleo (2.1.0): Pending...
  - Installing cleo (2.1.0): Skipped for the following reason: Already installed
  - Installing crashtest (0.4.1): Pending...
  - Installing crashtest (0.4.1): Skipped for the following reason: Already installed
  - Installing distlib (0.3.8): Pending...
  - Installing distlib (0.3.8): Skipped for the following reason: Already installed
  - Installing dulwich (0.21.7): Pending...
  - Installing dulwich (0.21.7): Skipped for the following reason: Already installed
  - Installing fastjsonschema (2.19.1): Pending...
  - Installing fastjsonschema (2.19.1): Skipped for the following reason: Already installed
  - Installing filelock (3.13.1): Pending...
  - Installing filelock (3.13.1): Skipped for the following reason: Already installed
  - Installing idna (3.6): Pending...
  - Installing idna (3.6): Skipped for the following reason: Already installed
  - Installing importlib-metadata (7.0.1): Pending...
  - Installing importlib-metadata (7.0.1): Skipped for the following reason: Already installed
  - Installing installer (0.7.0): Pending...
  - Installing installer (0.7.0): Skipped for the following reason: Already installed
  - Installing jaraco-classes (3.3.0): Pending...
  - Installing jaraco-classes (3.3.0): Skipped for the following reason: Already installed
  - Installing keyring (24.3.0): Pending...
  - Installing keyring (24.3.0): Skipped for the following reason: Already installed
  - Installing more-itertools (10.1.0): Pending...
  - Installing more-itertools (10.1.0): Skipped for the following reason: Already installed
  - Installing msgpack (1.0.7): Pending...
  - Installing msgpack (1.0.7): Skipped for the following reason: Already installed
  - Installing packaging (23.2): Pending...
  - Installing packaging (23.2): Skipped for the following reason: Already installed
  - Installing pyproject-hooks (1.0.0): Pending...
  - Installing pyproject-hooks (1.0.0): Skipped for the following reason: Already installed
  - Installing pkginfo (1.9.6): Pending...
  - Installing pkginfo (1.9.6): Skipped for the following reason: Already installed
  - Installing platformdirs (3.11.0): Pending...
  - Installing platformdirs (3.11.0): Skipped for the following reason: Already installed
  - Installing poetry-core (1.9.0): Pending...
  - Installing poetry-core (1.9.0): Skipped for the following reason: Already installed
  - Installing poetry-plugin-export (1.6.0): Pending...
  - Installing poetry-plugin-export (1.6.0): Skipped for the following reason: Already installed
  - Installing ptyprocess (0.7.0): Pending...
  - Installing ptyprocess (0.7.0): Skipped for the following reason: Already installed
  - Installing pycparser (2.21): Pending...
  - Installing pycparser (2.21): Skipped for the following reason: Already installed
  - Installing pexpect (4.9.0): Pending...
  - Installing pexpect (4.9.0): Skipped for the following reason: Already installed
  - Installing virtualenv (20.25.0): Pending...
  - Installing virtualenv (20.25.0): Skipped for the following reason: Already installed
  - Installing requests (2.31.0): Pending...
  - Installing requests (2.31.0): Skipped for the following reason: Already installed
  - Installing requests-toolbelt (1.0.0): Pending...
  - Installing requests-toolbelt (1.0.0): Skipped for the following reason: Already installed
  - Installing shellingham (1.5.4): Pending...
  - Installing shellingham (1.5.4): Skipped for the following reason: Already installed
  - Installing tomlkit (0.12.3): Pending...
  - Installing tomlkit (0.12.3): Skipped for the following reason: Already installed
  - Installing trove-classifiers (2023.11.29): Pending...
  - Installing trove-classifiers (2023.11.29): Skipped for the following reason: Already installed
  - Installing urllib3 (2.1.0): Pending...
  - Installing urllib3 (2.1.0): Skipped for the following reason: Already installed
  - Installing poetry (1.8.2): Pending...
  - Installing poetry (1.8.2): Skipped for the following reason: Already installed
  - Installing xattr (1.1.0): Pending...
  - Installing xattr (1.1.0): Skipped for the following reason: Already installed
  - Installing zipp (3.17.0): Pending...
  - Installing zipp (3.17.0): Skipped for the following reason: Already installed
  - Installing rapidfuzz (3.6.0): Pending...
  - Installing rapidfuzz (3.6.0): Skipped for the following reason: Already installed

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing poetry self update with the install.python-poetry.org installation and compare the reported version with ~/Library/Application Support/pypoetry/VERSION and its pyproject.toml. Use the supplied verbose runtime log to trace the update path; done means the VERSION value reflects the installed Poetry release. The separate request for Python version or path options should be clarified independently.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.