Comments (7)
I don't understand what you encounter because pdm.lock does record all wheels.
what does it contain on your side?
from pdm.
You got me thinking. While doing a minimal example I found that you are right in the default case.
The problem does only occur when doing pdm lock --strategy no_cross_platform
But what I intend to do with no_cross_platform
is only limiting the platform and not the python version. I would expect to see all the wheel files of my current platform but with multiple python versions. But I get only a single wheel file.
Or is it intended to lock as well the python version?
from pdm.
Or is it intended to lock as well the python version?
If you know the mechanic of the wheel selection, the platform tags are compared together.
from pdm.
But it looks like not only the platform tag is compared.
If I define the python version as >=3.8.*,<3.10.*
using --strategy cross_platform
I get all the wheel files for the selected version of matplotlib (3.7.4) in the pdm.lock
. These include the following for Windows (and many more for the other platforms):
- matplotlib-3.7.4-cp39-cp39-win_amd64.whl
- matplotlib-3.7.4-cp38-cp38-win_amd64.whl
If I change over to pdm lock --strategy no_cross_platform
only one wheel file will be included in pdm.lock
:
- matplotlib-3.7.4-cp39-cp39-win_amd64.whl
This means not only the platform tag of the wheel file is compared but as well the python-tag. This is not what I would expect. I would still expect to see all wheel files for the available python versions but only one platform.
from pdm.
Platform tags means python+abi+platform
from pdm.
When looking at PEP427 this does not sound right. The python-tag is something different and is not part of the platform-tag. All the three last ones together are called "compatibility tags" (PEP425).
But okay. So my enhancement proposal would be to get a possibility to lock to a specific platform (platform-part of the platform-tag?) with multiple python versions. As this is currently not possible.
from pdm.
. So my enhancement proposal would be to get a possibility to lock to a specific platform (platform-part of the platform-tag?) with multiple python versions.
The cross-platform strategy does more than that. Under non-cross-platform tag, the environment markers will be evaluated at lock time to discard unmatching requirements. So it is not easy to strip the python tag out of it.
from pdm.
Related Issues (20)
- Feature request/proposal to expose project.scripts in output of `pdm show` HOT 2
- Proxy (HTTP_PROXY) settings are ignored for custom Repositories
- pdm venv activate doesn't quote strings properly for Powershell
- Inconsistent behavior between `pdm remove` and `pdm update`
- Unable to download non-py files HOT 2
- PDM caching breaks YoWASP packages HOT 5
- Remove editable package via CLI HOT 1
- In PowerShell `iex (pdm venv activate)` fails HOT 1
- Support for `--contstraint` file HOT 1
- Maximum recursion depth exceeded
- self update seem did not work HOT 2
- Allow installing packages without changing pyproject.toml HOT 1
- `pdm export --self` is incompatible with hashes (no `--without-hashes`)
- Locked incompatible file versions by Python version HOT 2
- Read operation timed out on bad connections
- Allow the repository url to be the service name in keyring HOT 1
- Skip using .netrc file on errors rather than raising HOT 1
- Auto show detail when step holding
- In monorepo, sibling dependencies can result in unintended absolute paths. HOT 2
- Settings for plugins
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdm.