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

2.4.4 doesn't consider dependencies that stopped shipping a wheel #1698

Closed
1 task done
hynek opened this issue Feb 10, 2023 · 0 comments · Fixed by j178/pdm#1
Closed
1 task done

2.4.4 doesn't consider dependencies that stopped shipping a wheel #1698

hynek opened this issue Feb 10, 2023 · 0 comments · Fixed by j178/pdm#1
Labels
🐛 bug Something isn't working

Comments

@hynek
Copy link

hynek commented Feb 10, 2023

  • I have searched the issue tracker and believe that this is not a duplicate.

Steps to reproduce

Have a project with a dependency on a package that used to ship a wheel but doesn't anymore – like sqlanydb, the bane of my existence – and lock:

pyproject.toml

[tool.pdm]

[project]
name = "pdm-test"
version = "0"
dependencies = ["sqlanydb"]

gives this pdm.lock with pdm 2.4.4:

# This file is @generated by PDM.
# It is not intended for manual editing.

[[package]]
name = "sqlanydb"
version = "1.0.6.1"
summary = "pure Python SQL Anywhere database interface"

[metadata]
lock_version = "4.1"
content_hash = "sha256:c54813971e8f4b1fd69452c8720a2c8e56bad23b797371f42385df93415b21cf"

[metadata.files]
"sqlanydb 1.0.6.1" = [
    {url = "https://pypi.vm.ag/root/pypi/+f/747/03a7e495998b4/sqlanydb-1.0.6.1-py2.py3-none-any.whl", hash = "sha256:74703a7e495998b45566823ff5fa73509c75463b1d966456592bffca74b508ed"},
    {url = "https://pypi.vm.ag/root/pypi/+f/cf2/8a9a5da560af8/sqlanydb-1.0.6.1.tar.gz", hash = "sha256:cf28a9a5da560af8ef03b15095acc2f78a7bd94c8be3287a333fae1d02a21406"},
]

while pdm 2.4.3 gives you:

# This file is @generated by PDM.
# It is not intended for manual editing.

[[package]]
name = "sqlanydb"
version = "1.0.11"
summary = "pure Python SQL Anywhere database interface"

[metadata]
lock_version = "4.1"
content_hash = "sha256:c54813971e8f4b1fd69452c8720a2c8e56bad23b797371f42385df93415b21cf"

[metadata.files]
"sqlanydb 1.0.11" = [
    {url = "https://pypi.vm.ag/root/pypi/+f/5e6/0e1808b9c10f3/sqlanydb-1.0.11.tar.gz", hash = "sha256:5e60e1808b9c10f3afac9b294daaac1e189ad2ffdb9bb7ff9ac653427a4c5c7b"},
]

Actual behavior

As of 2.4.4, it locks to the last wheel-carrying version (in this case 1.0.6.1).

Expected behavior

It locks to the latest version (1.0.11).

Environment Information

$ pdm info -v
PDM version:
  2.4.4
Python Interpreter:
  /private/tmp/pdm/.venv/bin/python (3.11)
Project Root:
  /private/tmp/pdm
Project Packages:
  None
$ pdm info --env
{
  "implementation_name": "cpython",
  "implementation_version": "3.11.2",
  "os_name": "posix",
  "platform_machine": "arm64",
  "platform_release": "22.3.0",
  "platform_system": "Darwin",
  "platform_version": "Darwin Kernel Version 22.3.0: Thu Jan  5 20:50:36 PST 2023; root:xnu-8792.81.2~2/RELEASE_ARM64_T6020",
  "python_full_version": "3.11.2",
  "platform_python_implementation": "CPython",
  "python_version": "3.11",
  "sys_platform": "darwin"
}
@hynek hynek added the 🐛 bug Something isn't working label Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant