pdm 2.29.2__tar.gz → 2.29.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pdm-2.29.2 → pdm-2.29.4}/CHANGELOG.md +62 -0
- {pdm-2.29.2 → pdm-2.29.4}/PKG-INFO +19 -18
- {pdm-2.29.2 → pdm-2.29.4}/pyproject.toml +19 -19
- pdm-2.29.4/src/pdm/VERSION +1 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/export.py +8 -3
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/import_cmd.py +20 -2
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/init.py +7 -2
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/list.py +2 -1
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/outdated.py +19 -1
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/publish/__init__.py +3 -3
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/publish/package.py +8 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/publish/repository.py +6 -6
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/run.py +7 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/templates/__init__.py +2 -1
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/templates/default/pyproject.toml +1 -1
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/templates/minimal/pyproject.toml +1 -1
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/environments/base.py +1 -1
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/environments/python.py +4 -1
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/formats/flit.py +26 -12
- pdm-2.29.4/src/pdm/formats/pipfile.py +106 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/formats/poetry.py +79 -15
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/formats/requirements.py +2 -1
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/installers/synchronizers.py +33 -2
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/backends.py +2 -2
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/caches.py +3 -3
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/markers.py +3 -3
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/project_info.py +2 -1
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/python_max_versions.json +7 -6
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/repositories/lock.py +11 -1
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/requirements.py +6 -2
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/session.py +16 -16
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/project/core.py +12 -1
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/project/lockfile/__init__.py +1 -1
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/project/project_file.py +4 -3
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/pytest.py +7 -7
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/utils.py +5 -3
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/conftest.py +36 -3
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_init.py +46 -12
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_list.py +14 -1
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_lock.py +36 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_others.py +92 -3
- pdm-2.29.4/tests/cli/test_outdated.py +115 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_publish.py +37 -10
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_python.py +23 -1
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_run.py +46 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_show.py +16 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/environments/test_environment.py +32 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/models/test_candidates.py +42 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/models/test_locked_repository.py +45 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/models/test_marker.py +4 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/models/test_requirements.py +51 -1
- {pdm-2.29.2 → pdm-2.29.4}/tests/models/test_session.py +17 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/test_formats.py +380 -2
- {pdm-2.29.2 → pdm-2.29.4}/tests/test_project.py +16 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/test_utils.py +20 -1
- pdm-2.29.2/src/pdm/VERSION +0 -1
- pdm-2.29.2/src/pdm/formats/pipfile.py +0 -81
- pdm-2.29.2/tests/cli/test_outdated.py +0 -47
- {pdm-2.29.2 → pdm-2.29.4}/LICENSE +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/README.md +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/__main__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/__version__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/_types.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/builders/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/builders/base.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/builders/editable.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/builders/sdist.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/builders/wheel.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/actions.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/add.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/base.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/build.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/cache.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/completion.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/config.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/fix/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/fix/fixers.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/info.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/install.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/lock.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/new.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/python.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/remove.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/search.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/self_cmd.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/show.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/sync.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/update.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/use.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/venv/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/venv/activate.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/venv/backends.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/venv/create.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/venv/list.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/venv/purge.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/venv/remove.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/commands/venv/utils.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/completions/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/completions/pdm.bash +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/completions/pdm.fish +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/completions/pdm.ps1 +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/completions/pdm.zsh +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/filters.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/hooks.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/options.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/templates/default/.gitignore +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/templates/default/README.md +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/templates/default/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/templates/default/src/example_package/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/templates/default/tests/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/templates/minimal/.gitignore +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/templates/minimal/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/cli/utils.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/compat.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/core.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/environments/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/environments/local.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/exceptions.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/formats/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/formats/base.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/formats/pylock.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/formats/setup_py.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/formats/uv.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/installers/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/installers/base.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/installers/core.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/installers/installers.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/installers/manager.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/installers/uninstallers.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/installers/uv.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/misc/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/misc/sysconfig_patcher.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/auth.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/cached_package.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/candidates.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/finder.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/in_process/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/in_process/env_spec.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/in_process/parse_setup.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/in_process/sysconfig_get_paths.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/python.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/reporter.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/repositories/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/repositories/base.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/repositories/pypi.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/setup.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/specifiers.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/venv.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/versions.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/models/working_set.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/pep582/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/pep582/sitecustomize.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/project/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/project/config.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/project/lockfile/base.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/project/lockfile/freshness.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/project/lockfile/pdmlock.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/project/lockfile/pylock.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/project/toml_file.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/project/workspace.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/py.typed +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/resolver/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/resolver/base.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/resolver/graph.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/resolver/providers.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/resolver/python.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/resolver/reporters.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/resolver/resolvelib.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/resolver/uv.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/signals.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/src/pdm/termui.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_add.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_build.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_cache.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_completion.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_config.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_fix.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_hooks.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_info.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_install.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_remove.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_search.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_self_command.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_template.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_update.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_use.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_utils.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/cli/test_venv.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/conftest.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/environments/test_shebangs.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/Pipfile +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/PyFunctional-1.4.3-py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/caj2pdf-restructured-0.1.0a6.tar.gz +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/celery-4.4.2-py2.py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/demo-0.0.1-cp36-cp36m-win_amd64.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/demo-0.0.1-py2.py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/demo-0.0.1.tar.gz +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/demo-0.0.1.zip +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/editables-0.2-py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/first-2.0.2-py2.py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/flit_core-3.6.0-py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/future_fstrings-1.2.0-py2.py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/future_fstrings-1.2.0.tar.gz +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/importlib_metadata-4.8.3-py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/jmespath-0.10.0-py2.py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/pdm_backend-2.1.4-py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/pdm_hello-0.1.0-py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/pdm_hello-0.1.0-py3-none-win_amd64.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/pdm_pep517-1.0.0-py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/poetry_core-1.3.2-py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/setuptools-68.0.0-py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/typing_extensions-4.4.0-py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/wheel-0.37.1-py2.py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/zipp-3.6.0-py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/artifacts/zipp-3.7.0-py3-none-any.whl +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/constraints.txt +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/index/demo.html +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/index/future-fstrings.html +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/index/pep345-legacy.html +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/index/wheel.html +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/json/zipp.json +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/poetry-error.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/poetry-new.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo/demo.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo/pdm.lock +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo/pdm.no_groups.lock +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo/pylock.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-#-with-hash/demo.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-#-with-hash/setup.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-combined-extras/demo.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-combined-extras/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-failure/demo.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-failure/setup.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-failure-no-dep/demo.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-failure-no-dep/setup.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-module/LICENSE +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-module/README.md +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-module/bar_module.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-module/foo_module.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-module/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package/LICENSE +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package/README.md +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package/data_out.json +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package/my_package/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package/my_package/data.json +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package/pdm.lock +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package/requirements.ini +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package/requirements.txt +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package/requirements_simple.txt +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package/setup.txt +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package/single_module.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package-has-dep-with-extras/pdm.lock +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package-has-dep-with-extras/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-package-has-dep-with-extras/requirements.txt +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-parent-package/README.md +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-parent-package/package-a/foo.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-parent-package/package-a/setup.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-parent-package/package-b/bar.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-parent-package/package-b/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-prerelease/demo.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-prerelease/setup.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-src-package/LICENSE +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-src-package/README.md +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-src-package/data_out.json +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-src-package/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-src-package/single_module.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-src-package/src/my_package/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo-src-package/src/my_package/data.json +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo_extras/demo.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/demo_extras/setup.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/flit-demo/README.rst +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/flit-demo/doc/index.html +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/flit-demo/flit.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/flit-demo/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/poetry-demo/mylib.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/poetry-demo/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/poetry-with-circular-dep/packages/child/child/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/poetry-with-circular-dep/packages/child/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/poetry-with-circular-dep/parent/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/poetry-with-circular-dep/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-hatch-static/README.md +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-hatch-static/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-monorepo/README.md +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-monorepo/core/core.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-monorepo/core/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-monorepo/package_a/alice.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-monorepo/package_a/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-monorepo/package_b/bob.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-monorepo/package_b/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-monorepo/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-package-type-fixer/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-package-type-fixer/src/test_package_type_fixer/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-plugin/hello.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-plugin/setup.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-plugin-pdm/hello.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-plugin-pdm/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-removal/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-removal/bar.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-removal/foo.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-removal/subdir/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-setuptools/AUTHORS +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-setuptools/README.md +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-setuptools/mymodule.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-setuptools/setup.cfg +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/projects/test-setuptools/setup.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/pypi.json +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/pyproject.toml +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/requirements-include.txt +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/fixtures/requirements.txt +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/models/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/models/test_auth.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/models/test_backends.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/models/test_setup_parsing.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/models/test_setup_parsing_extra.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/models/test_specifiers.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/models/test_versions.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/models/test_working_set.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/resolver/__init__.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/resolver/test_graph.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/resolver/test_providers.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/resolver/test_resolve.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/resolver/test_uv_exclude_newer.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/resolver/test_uv_resolver.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/test_doc_generation.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/test_installer.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/test_installer_manager.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/test_integration.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/test_plugin.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/test_requirements_export_relative.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/test_signals.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tests/test_synchronizer_base.py +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/tox.ini +0 -0
- {pdm-2.29.2 → pdm-2.29.4}/typings/shellingham.pyi +0 -0
|
@@ -1,3 +1,65 @@
|
|
|
1
|
+
## Release v2.29.4 (2026-10-27)
|
|
2
|
+
|
|
3
|
+
### Features & Improvements
|
|
4
|
+
|
|
5
|
+
- Allow specifying `lock.format` in `pyproject.toml` via the `[tool.pdm.lock]` table. ([#3958](https://github.com/pdm-project/pdm/issues/3958))
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
- Import a requirements file that starts with a UTF-8 BOM, which failed with a `RequirementError`. ([#3937](https://github.com/pdm-project/pdm/issues/3937))
|
|
10
|
+
- Treat a `Pipfile` version without an operator, such as `requests = "2.31.0"`, as an exact `==` pin when importing, like pipenv does, instead of failing with an invalid specifier error. ([#3939](https://github.com/pdm-project/pdm/issues/3939))
|
|
11
|
+
- Preserve Poetry include entries targeting both source and wheel distributions when importing a project. ([#3941](https://github.com/pdm-project/pdm/issues/3941))
|
|
12
|
+
- Preserve version and description when importing Flit projects with a `src/` layout or an annotated `__version__`. ([#3942](https://github.com/pdm-project/pdm/issues/3942))
|
|
13
|
+
- Require `certifi>=2026.10.19`, which removes the `emSign ECC Root CA - G3` root whose eMudhra intermediates had their private keys compromised. ([#3944](https://github.com/pdm-project/pdm/issues/3944))
|
|
14
|
+
- `pdm outdated` no longer lists a package whose installed version is newer than the latest one found on the index, such as an installed pre-release or local build. ([#3945](https://github.com/pdm-project/pdm/issues/3945))
|
|
15
|
+
- Fix `pdm lock --check` reporting an outdated lockfile when a group is declared in both `[dependency-groups]` and `[tool.pdm.dev-dependencies]`. ([#3947](https://github.com/pdm-project/pdm/issues/3947))
|
|
16
|
+
- Show the license from `License-Expression` (PEP 639) in `pdm show` and `pdm list --fields licenses`. ([#3948](https://github.com/pdm-project/pdm/issues/3948))
|
|
17
|
+
- Stop `pdm lock` from excluding packages from a lock target when another target shares its OS and architecture, e.g. manylinux and musllinux. ([#3950](https://github.com/pdm-project/pdm/issues/3950))
|
|
18
|
+
- Fix a crash when a `python_version` marker compares against a wildcard version such as `python_version == "3.*"`. ([#3951](https://github.com/pdm-project/pdm/issues/3951))
|
|
19
|
+
- Send `License-Expression` and `License-File` with the upload in `pdm publish`, so PyPI shows the license of PEP 639 packages. ([#3952](https://github.com/pdm-project/pdm/issues/3952))
|
|
20
|
+
- Preserve the subdirectory fragment in source archive requirements when resolving dependencies and serializing requirement URLs. ([#3954](https://github.com/pdm-project/pdm/issues/3954))
|
|
21
|
+
- Preserve archive hashes when reading pylock.toml so they remain available for exports. ([#3956](https://github.com/pdm-project/pdm/issues/3956))
|
|
22
|
+
- Fix detection of responses served from the HTTP cache, so cached downloads and index pages are reported as cached again. ([#3961](https://github.com/pdm-project/pdm/issues/3961))
|
|
23
|
+
|
|
24
|
+
### Dependencies
|
|
25
|
+
|
|
26
|
+
- Install the download dependencies of pbs-installer so Python installation works with its latest releases. ([#3959](https://github.com/pdm-project/pdm/issues/3959))
|
|
27
|
+
- Upgrade `unearth` to `>=0.19` and migrate the HTTP client from `httpx` to `httpx2`. `pdm.models.session.PDMPyPIClient` and the transports in `pdm.pytest` are now built on `httpx2`, so plugins interacting with them should import `httpx2` instead of `httpx`. ([#3962](https://github.com/pdm-project/pdm/issues/3962))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## Release v2.29.3 (2026-10-19)
|
|
31
|
+
|
|
32
|
+
### Features & Improvements
|
|
33
|
+
|
|
34
|
+
- Add the `--venv` option to `pdm outdated`, like the other commands that read the installed packages. ([#3904](https://github.com/pdm-project/pdm/issues/3904))
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
- Fix isolated PEP 517 builds skipping packages that are only visible via the host venv's `--system-site-packages`. ([#3895](https://github.com/pdm-project/pdm/issues/3895))
|
|
39
|
+
- Fix `pdm import` of Poetry projects dropping optional dependencies whose extras entry is spelled differently, and importing optional dependencies with multiple constraints as required ones. ([#3899](https://github.com/pdm-project/pdm/issues/3899))
|
|
40
|
+
- Keep the plain requirement in `pdm export` when the same package is also locked with extras under a narrower marker, so it is no longer missing from `requirements.txt` on the other platforms. ([#3900](https://github.com/pdm-project/pdm/issues/3900))
|
|
41
|
+
- Fix `python_version <= "X.Y"` markers excluding the patch releases of `X.Y`, so `pdm install` skipped such dependencies. ([#3902](https://github.com/pdm-project/pdm/issues/3902))
|
|
42
|
+
- Fix environment variables set by one task of a composite script, via `env` or `env_file`, leaking into the tasks that run after it. ([#3903](https://github.com/pdm-project/pdm/issues/3903))
|
|
43
|
+
- Convert flit's comma-separated `keywords` and obsolete `dev-requires` into valid PEP 621 fields when importing a flit project. ([#3907](https://github.com/pdm-project/pdm/issues/3907))
|
|
44
|
+
- Import custom Pipfile package categories, such as `[docs]`, as dependency groups instead of dropping them. ([#3909](https://github.com/pdm-project/pdm/issues/3909))
|
|
45
|
+
- Keep editable requirements in `[tool.pdm.dev-dependencies]` on `pdm import`, so the written `[dependency-groups]` table stays valid per PEP 735. ([#3910](https://github.com/pdm-project/pdm/issues/3910))
|
|
46
|
+
- Keep Poetry's `develop = true` as an editable requirement when importing dependency groups. ([#3913](https://github.com/pdm-project/pdm/issues/3913))
|
|
47
|
+
- Fix `pdm import` of the project's own Poetry `pyproject.toml` writing each dependency group to both `[tool.pdm.dev-dependencies]` and `[dependency-groups]`. ([#3915](https://github.com/pdm-project/pdm/issues/3915))
|
|
48
|
+
- Import Pipfile packages declared with a `file` URL, such as `{file = "https://..."}`, as URL requirements instead of dropping the URL. ([#3918](https://github.com/pdm-project/pdm/issues/3918))
|
|
49
|
+
- Preserve Poetry platform restrictions as environment markers when importing dependencies. ([#3920](https://github.com/pdm-project/pdm/issues/3920))
|
|
50
|
+
- Read an `exclude-newer` timestamp without a UTC offset as UTC, so `pdm lock` no longer fails with a `TypeError` comparing naive and aware datetimes. ([#3922](https://github.com/pdm-project/pdm/issues/3922))
|
|
51
|
+
- Do not write empty dependency groups, such as `dev = []` from an empty `[dev-packages]` table, when importing from another format. ([#3925](https://github.com/pdm-project/pdm/issues/3925))
|
|
52
|
+
- Strip every leading and trailing `.`, `_` and `-` when `pdm init` derives the project name from the directory, so a folder like `__demo__` no longer produces the invalid name `_demo_`. ([#3927](https://github.com/pdm-project/pdm/issues/3927))
|
|
53
|
+
- `pdm init` now writes `project.license` as a license expression string instead of a `{text = ...}` table, and no longer rewrites an existing `{file = ...}` table or license expression into a value the build backend rejects. ([#3929](https://github.com/pdm-project/pdm/issues/3929))
|
|
54
|
+
- Read the inline metadata of a script that starts with a UTF-8 BOM, which `pdm run` ignored. ([#3931](https://github.com/pdm-project/pdm/issues/3931))
|
|
55
|
+
- Convert a space-separated Poetry version constraint such as `>=1.0 <2.0` like the comma-separated form instead of aborting the import. ([#3934](https://github.com/pdm-project/pdm/issues/3934))
|
|
56
|
+
- Resolve relative `path` entries in a `Pipfile` against the directory of the `Pipfile` when importing, instead of the current working directory. ([#3935](https://github.com/pdm-project/pdm/issues/3935))
|
|
57
|
+
|
|
58
|
+
### Documentation
|
|
59
|
+
|
|
60
|
+
- Document what to cache and which install command to use when running PDM on CI platforms other than GitHub Actions. ([#2472](https://github.com/pdm-project/pdm/issues/2472))
|
|
61
|
+
|
|
62
|
+
|
|
1
63
|
## Release v2.29.2 (2026-09-17)
|
|
2
64
|
|
|
3
65
|
### Bug Fixes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pdm
|
|
3
|
-
Version: 2.29.
|
|
3
|
+
Version: 2.29.4
|
|
4
4
|
Summary: A modern Python package and dependency manager supporting the latest PEP standards
|
|
5
5
|
Keywords: packaging,dependency,workflow
|
|
6
6
|
Author-Email: Frost Ming <mianghong@gmail.com>
|
|
@@ -25,7 +25,7 @@ Requires-Dist: platformdirs
|
|
|
25
25
|
Requires-Dist: rich>=12.3.0
|
|
26
26
|
Requires-Dist: virtualenv>=20
|
|
27
27
|
Requires-Dist: pyproject-hooks
|
|
28
|
-
Requires-Dist: unearth>=0.
|
|
28
|
+
Requires-Dist: unearth>=0.19
|
|
29
29
|
Requires-Dist: dep-logic>=0.5
|
|
30
30
|
Requires-Dist: findpython<1.0.0a0,>=0.7.0
|
|
31
31
|
Requires-Dist: tomlkit<1,>=0.11.1
|
|
@@ -35,12 +35,11 @@ Requires-Dist: resolvelib>=1.1
|
|
|
35
35
|
Requires-Dist: installer>=1
|
|
36
36
|
Requires-Dist: truststore>=0.10.4
|
|
37
37
|
Requires-Dist: tomli>=1.1.0; python_version < "3.11"
|
|
38
|
-
Requires-Dist: hishel[
|
|
39
|
-
Requires-Dist: pbs-installer>=
|
|
40
|
-
Requires-Dist:
|
|
38
|
+
Requires-Dist: hishel[httpx2]>=1.4.0
|
|
39
|
+
Requires-Dist: pbs-installer[download]>=2026.10.25
|
|
40
|
+
Requires-Dist: httpx2[socks]<3,>=2.9.1
|
|
41
41
|
Requires-Dist: filelock>=3.13
|
|
42
|
-
Requires-Dist:
|
|
43
|
-
Requires-Dist: certifi>=2024.8.30
|
|
42
|
+
Requires-Dist: certifi>=2026.10.19
|
|
44
43
|
Requires-Dist: id>=1.5.0
|
|
45
44
|
Provides-Extra: pytest
|
|
46
45
|
Requires-Dist: pytest; extra == "pytest"
|
|
@@ -60,26 +59,28 @@ Requires-Dist: anyio==4.13.0; extra == "locked"
|
|
|
60
59
|
Requires-Dist: anysqlite==0.0.5; extra == "locked"
|
|
61
60
|
Requires-Dist: argcomplete==3.7.0; extra == "locked"
|
|
62
61
|
Requires-Dist: blinker==1.9.0; extra == "locked"
|
|
63
|
-
Requires-Dist: certifi==2026.
|
|
62
|
+
Requires-Dist: certifi==2026.10.19; extra == "locked"
|
|
64
63
|
Requires-Dist: dep-logic==0.7.1; extra == "locked"
|
|
65
64
|
Requires-Dist: distlib==0.4.0; extra == "locked"
|
|
66
65
|
Requires-Dist: exceptiongroup==1.3.1; python_version < "3.11" and extra == "locked"
|
|
67
66
|
Requires-Dist: filelock==3.29.0; extra == "locked"
|
|
68
67
|
Requires-Dist: findpython==0.8.0; extra == "locked"
|
|
69
|
-
Requires-Dist: h11==0.16.0; extra == "locked"
|
|
70
|
-
Requires-Dist: hishel==1.
|
|
71
|
-
Requires-Dist: hishel[
|
|
72
|
-
Requires-Dist:
|
|
73
|
-
Requires-Dist:
|
|
74
|
-
Requires-Dist:
|
|
68
|
+
Requires-Dist: h11==0.16.0; sys_platform != "emscripten" and extra == "locked"
|
|
69
|
+
Requires-Dist: hishel==1.4.0; extra == "locked"
|
|
70
|
+
Requires-Dist: hishel[httpx2]==1.4.0; extra == "locked"
|
|
71
|
+
Requires-Dist: httpcore2==2.14.0; sys_platform != "emscripten" and extra == "locked"
|
|
72
|
+
Requires-Dist: httpx2==2.14.0; extra == "locked"
|
|
73
|
+
Requires-Dist: httpx2-jsfetch==1.0; sys_platform == "emscripten" and python_version >= "3.12" and extra == "locked"
|
|
74
|
+
Requires-Dist: httpx2[socks]==2.14.0; extra == "locked"
|
|
75
75
|
Requires-Dist: id==1.6.1; extra == "locked"
|
|
76
|
-
Requires-Dist: idna==3.
|
|
76
|
+
Requires-Dist: idna==3.20; extra == "locked"
|
|
77
77
|
Requires-Dist: installer==1.0.0; extra == "locked"
|
|
78
78
|
Requires-Dist: markdown-it-py==4.1.0; extra == "locked"
|
|
79
79
|
Requires-Dist: mdurl==0.1.2; extra == "locked"
|
|
80
80
|
Requires-Dist: msgpack==1.1.2; extra == "locked"
|
|
81
81
|
Requires-Dist: packaging==26.2; extra == "locked"
|
|
82
|
-
Requires-Dist: pbs-installer==2026.
|
|
82
|
+
Requires-Dist: pbs-installer==2026.10.25; extra == "locked"
|
|
83
|
+
Requires-Dist: pbs-installer[download]==2026.10.25; extra == "locked"
|
|
83
84
|
Requires-Dist: platformdirs==4.9.6; extra == "locked"
|
|
84
85
|
Requires-Dist: pygments==2.20.0; extra == "locked"
|
|
85
86
|
Requires-Dist: pyproject-hooks==1.2.0; extra == "locked"
|
|
@@ -91,9 +92,9 @@ Requires-Dist: shellingham==1.5.4; extra == "locked"
|
|
|
91
92
|
Requires-Dist: socksio==1.0.0; extra == "locked"
|
|
92
93
|
Requires-Dist: tomli==2.4.1; extra == "locked"
|
|
93
94
|
Requires-Dist: tomlkit==0.14.0; extra == "locked"
|
|
94
|
-
Requires-Dist: truststore==0.10.4;
|
|
95
|
+
Requires-Dist: truststore==0.10.4; extra == "locked"
|
|
95
96
|
Requires-Dist: typing-extensions==4.15.0; extra == "locked"
|
|
96
|
-
Requires-Dist: unearth==0.
|
|
97
|
+
Requires-Dist: unearth==0.19.0; extra == "locked"
|
|
97
98
|
Requires-Dist: urllib3==2.6.3; extra == "locked"
|
|
98
99
|
Requires-Dist: virtualenv==21.3.1; extra == "locked"
|
|
99
100
|
Provides-Extra: all-locked
|
|
@@ -25,7 +25,7 @@ dependencies = [
|
|
|
25
25
|
"rich>=12.3.0",
|
|
26
26
|
"virtualenv>=20",
|
|
27
27
|
"pyproject-hooks",
|
|
28
|
-
"unearth>=0.
|
|
28
|
+
"unearth>=0.19",
|
|
29
29
|
"dep-logic>=0.5",
|
|
30
30
|
"findpython>=0.7.0,<1.0.0a0",
|
|
31
31
|
"tomlkit>=0.11.1,<1",
|
|
@@ -35,12 +35,11 @@ dependencies = [
|
|
|
35
35
|
"installer>=1",
|
|
36
36
|
"truststore>=0.10.4",
|
|
37
37
|
"tomli>=1.1.0; python_version < \"3.11\"",
|
|
38
|
-
"hishel[
|
|
39
|
-
"pbs-installer>=
|
|
40
|
-
"
|
|
38
|
+
"hishel[httpx2]>=1.4.0",
|
|
39
|
+
"pbs-installer[download]>=2026.10.25",
|
|
40
|
+
"httpx2[socks]>=2.9.1,<3",
|
|
41
41
|
"filelock>=3.13",
|
|
42
|
-
"
|
|
43
|
-
"certifi>=2024.8.30",
|
|
42
|
+
"certifi>=2026.10.19",
|
|
44
43
|
"id>=1.5.0",
|
|
45
44
|
]
|
|
46
45
|
readme = "README.md"
|
|
@@ -58,7 +57,7 @@ classifiers = [
|
|
|
58
57
|
"Programming Language :: Python :: 3.13",
|
|
59
58
|
"Programming Language :: Python :: 3.14",
|
|
60
59
|
]
|
|
61
|
-
version = "2.29.
|
|
60
|
+
version = "2.29.4"
|
|
62
61
|
|
|
63
62
|
[project.urls]
|
|
64
63
|
Homepage = "https://pdm-project.org"
|
|
@@ -91,26 +90,28 @@ locked = [
|
|
|
91
90
|
"anysqlite==0.0.5",
|
|
92
91
|
"argcomplete==3.7.0",
|
|
93
92
|
"blinker==1.9.0",
|
|
94
|
-
"certifi==2026.
|
|
93
|
+
"certifi==2026.10.19",
|
|
95
94
|
"dep-logic==0.7.1",
|
|
96
95
|
"distlib==0.4.0",
|
|
97
96
|
"exceptiongroup==1.3.1 ; python_version < \"3.11\"",
|
|
98
97
|
"filelock==3.29.0",
|
|
99
98
|
"findpython==0.8.0",
|
|
100
|
-
"h11==0.16.0",
|
|
101
|
-
"hishel==1.
|
|
102
|
-
"hishel[
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
99
|
+
"h11==0.16.0 ; sys_platform != \"emscripten\"",
|
|
100
|
+
"hishel==1.4.0",
|
|
101
|
+
"hishel[httpx2]==1.4.0",
|
|
102
|
+
"httpcore2==2.14.0 ; sys_platform != \"emscripten\"",
|
|
103
|
+
"httpx2==2.14.0",
|
|
104
|
+
"httpx2-jsfetch==1.0 ; sys_platform == \"emscripten\" and python_version >= \"3.12\"",
|
|
105
|
+
"httpx2[socks]==2.14.0",
|
|
106
106
|
"id==1.6.1",
|
|
107
|
-
"idna==3.
|
|
107
|
+
"idna==3.20",
|
|
108
108
|
"installer==1.0.0",
|
|
109
109
|
"markdown-it-py==4.1.0",
|
|
110
110
|
"mdurl==0.1.2",
|
|
111
111
|
"msgpack==1.1.2",
|
|
112
112
|
"packaging==26.2",
|
|
113
|
-
"pbs-installer==2026.
|
|
113
|
+
"pbs-installer==2026.10.25",
|
|
114
|
+
"pbs-installer[download]==2026.10.25",
|
|
114
115
|
"platformdirs==4.9.6",
|
|
115
116
|
"pygments==2.20.0",
|
|
116
117
|
"pyproject-hooks==1.2.0",
|
|
@@ -122,9 +123,9 @@ locked = [
|
|
|
122
123
|
"socksio==1.0.0",
|
|
123
124
|
"tomli==2.4.1",
|
|
124
125
|
"tomlkit==0.14.0",
|
|
125
|
-
"truststore==0.10.4
|
|
126
|
+
"truststore==0.10.4",
|
|
126
127
|
"typing-extensions==4.15.0",
|
|
127
|
-
"unearth==0.
|
|
128
|
+
"unearth==0.19.0",
|
|
128
129
|
"urllib3==2.6.3",
|
|
129
130
|
"virtualenv==21.3.1",
|
|
130
131
|
]
|
|
@@ -156,7 +157,6 @@ test = [
|
|
|
156
157
|
"pytest-xdist>=1.31.0",
|
|
157
158
|
"pytest-rerunfailures>=10.2",
|
|
158
159
|
"pytest-httpserver>=1.0.6",
|
|
159
|
-
"pytest-httpx>=0.34.0",
|
|
160
160
|
]
|
|
161
161
|
tox = [
|
|
162
162
|
"tox",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.29.4
|
|
@@ -13,6 +13,7 @@ from pdm.exceptions import PdmUsageError
|
|
|
13
13
|
from pdm.formats import FORMATS
|
|
14
14
|
from pdm.formats.pylock import PyLockConverter
|
|
15
15
|
from pdm.models.candidates import Candidate
|
|
16
|
+
from pdm.models.markers import Marker
|
|
16
17
|
from pdm.models.requirements import Requirement
|
|
17
18
|
from pdm.project import Project
|
|
18
19
|
from pdm.project.lockfile import FLAG_INHERIT_METADATA
|
|
@@ -109,13 +110,17 @@ class Command(BaseCommand):
|
|
|
109
110
|
key=lambda c: not c.req.extras,
|
|
110
111
|
)
|
|
111
112
|
packages = []
|
|
112
|
-
|
|
113
|
+
extras_markers: dict[str, list[Marker | None]] = {}
|
|
113
114
|
for candidate in candidates:
|
|
114
115
|
if options.extras:
|
|
115
116
|
key = candidate.req.key or ""
|
|
117
|
+
marker = candidate.req.marker if options.markers else None
|
|
116
118
|
if candidate.req.extras:
|
|
117
|
-
|
|
118
|
-
elif
|
|
119
|
+
extras_markers.setdefault(key, []).append(marker)
|
|
120
|
+
elif marker in extras_markers.get(key, []):
|
|
121
|
+
# Only drop the plain entry when an entry with extras applies to
|
|
122
|
+
# exactly the same environments, otherwise it would go missing
|
|
123
|
+
# where the extras are not requested.
|
|
119
124
|
continue
|
|
120
125
|
elif candidate.req.extras:
|
|
121
126
|
continue
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import argparse
|
|
4
|
+
from pathlib import Path
|
|
4
5
|
|
|
5
6
|
from pdm.cli.commands.base import BaseCommand
|
|
6
7
|
from pdm.exceptions import PdmUsageError
|
|
@@ -53,6 +54,7 @@ class Command(BaseCommand):
|
|
|
53
54
|
|
|
54
55
|
from pdm.cli.utils import merge_dictionary
|
|
55
56
|
from pdm.formats import FORMATS
|
|
57
|
+
from pdm.formats.base import make_array
|
|
56
58
|
from pdm.models.backends import DEFAULT_BACKEND
|
|
57
59
|
|
|
58
60
|
if not format:
|
|
@@ -68,8 +70,22 @@ class Command(BaseCommand):
|
|
|
68
70
|
if options is None:
|
|
69
71
|
options = argparse.Namespace(dev=False, group=None)
|
|
70
72
|
project_data, settings = FORMATS[key].convert(project, filename, options)
|
|
71
|
-
dependency_groups =
|
|
72
|
-
|
|
73
|
+
dependency_groups: dict[str, list] = {}
|
|
74
|
+
editable_groups: dict[str, list] = {}
|
|
75
|
+
for group, deps in settings.pop("dev-dependencies", {}).items(): # type: ignore[attr-defined]
|
|
76
|
+
# Editable requirements are not valid in [dependency-groups] (PEP 735),
|
|
77
|
+
# keep them in [tool.pdm.dev-dependencies] like `pdm add -e` does.
|
|
78
|
+
editables = [dep for dep in deps if isinstance(dep, str) and dep.startswith("-e")]
|
|
79
|
+
if editables:
|
|
80
|
+
editable_groups[group] = make_array(editables, True)
|
|
81
|
+
deps = make_array([dep for dep in deps if dep not in editables], True)
|
|
82
|
+
# Skip empty groups, e.g. the empty `[dev-packages]` table pipenv creates.
|
|
83
|
+
if deps:
|
|
84
|
+
dependency_groups[group] = deps
|
|
85
|
+
# The project file is converted above when importing it, converting it again
|
|
86
|
+
# on open would also leave its groups in [tool.pdm.dev-dependencies].
|
|
87
|
+
same_file = Path(filename).resolve() == project.root.joinpath(project.PYPROJECT_FILENAME).resolve()
|
|
88
|
+
pyproject = project.pyproject.open_for_write(convert=not same_file)
|
|
73
89
|
|
|
74
90
|
if "tool" not in pyproject or "pdm" not in pyproject["tool"]:
|
|
75
91
|
pyproject.setdefault("tool", {})["pdm"] = tomlkit.table()
|
|
@@ -92,6 +108,8 @@ class Command(BaseCommand):
|
|
|
92
108
|
merge_dictionary(pyproject["tool"]["pdm"], settings)
|
|
93
109
|
if dependency_groups:
|
|
94
110
|
merge_dictionary(pyproject.setdefault("dependency-groups", {}), dependency_groups)
|
|
111
|
+
if editable_groups:
|
|
112
|
+
merge_dictionary(pyproject["tool"]["pdm"].setdefault("dev-dependencies", {}), editable_groups)
|
|
95
113
|
if reset_backend:
|
|
96
114
|
pyproject["build-system"] = DEFAULT_BACKEND.build_system()
|
|
97
115
|
|
|
@@ -153,7 +153,7 @@ class Command(BaseCommand):
|
|
|
153
153
|
return self.ask_project(project, default)
|
|
154
154
|
|
|
155
155
|
def get_metadata_from_input(self, project: Project, options: argparse.Namespace) -> dict[str, Any]:
|
|
156
|
-
from pdm.formats.base import array_of_inline_tables, make_array
|
|
156
|
+
from pdm.formats.base import array_of_inline_tables, make_array
|
|
157
157
|
|
|
158
158
|
existing_data = project.pyproject.open_for_read()
|
|
159
159
|
existing_project = existing_data.get("project", {})
|
|
@@ -217,6 +217,9 @@ class Command(BaseCommand):
|
|
|
217
217
|
else:
|
|
218
218
|
default_license = existing_license or "MIT"
|
|
219
219
|
license = self.ask("License(SPDX name)", options.license or default_license)
|
|
220
|
+
# An existing {file = ...} table has no expression to offer, so it is left
|
|
221
|
+
# alone unless a new license is given
|
|
222
|
+
keep_license_file = isinstance(existing_license, dict) and license == existing_license.get("file")
|
|
220
223
|
|
|
221
224
|
git_user, git_email = get_user_email_from_git()
|
|
222
225
|
existing_authors = existing_project.get("authors", [])
|
|
@@ -232,12 +235,14 @@ class Command(BaseCommand):
|
|
|
232
235
|
"name": name,
|
|
233
236
|
"version": version,
|
|
234
237
|
"authors": array_of_inline_tables([{"name": author, "email": email}]),
|
|
235
|
-
"license":
|
|
238
|
+
"license": license,
|
|
236
239
|
"dependencies": make_array([], True),
|
|
237
240
|
},
|
|
238
241
|
"tool": {"pdm": {"distribution": is_dist}},
|
|
239
242
|
}
|
|
240
243
|
|
|
244
|
+
if keep_license_file:
|
|
245
|
+
del data["project"]["license"] # type: ignore[attr-defined]
|
|
241
246
|
if python_requires and python_requires != "*":
|
|
242
247
|
get_specifier(python_requires)
|
|
243
248
|
data["project"]["requires-python"] = python_requires # type: ignore[index]
|
|
@@ -330,10 +330,11 @@ class Listable:
|
|
|
330
330
|
self.homepage = dist.metadata.get("Home-Page")
|
|
331
331
|
self.homepage = None if self.homepage == "UNKNOWN" else self.homepage
|
|
332
332
|
|
|
333
|
+
# Prefer the SPDX License-Expression (core metadata 2.4, PEP 639).
|
|
333
334
|
# If the License metadata field is empty or UNKNOWN then try to
|
|
334
335
|
# find the license in the Trove classifiers. There may be more than one
|
|
335
336
|
# so generate a pipe separated list (to avoid complexity with CSV export).
|
|
336
|
-
self.licenses = dist.metadata.get("License")
|
|
337
|
+
self.licenses = dist.metadata.get("License-Expression") or dist.metadata.get("License")
|
|
337
338
|
self.licenses = None if self.licenses == "UNKNOWN" else self.licenses
|
|
338
339
|
|
|
339
340
|
# Sometimes package metadata contains the full license text.
|
|
@@ -9,6 +9,7 @@ from itertools import zip_longest
|
|
|
9
9
|
from typing import TYPE_CHECKING, cast
|
|
10
10
|
|
|
11
11
|
from pdm.cli.commands.base import BaseCommand
|
|
12
|
+
from pdm.cli.options import venv_option
|
|
12
13
|
from pdm.cli.utils import normalize_pattern
|
|
13
14
|
from pdm.models.requirements import strip_extras
|
|
14
15
|
from pdm.utils import normalize_name
|
|
@@ -44,6 +45,7 @@ class Command(BaseCommand):
|
|
|
44
45
|
"""Check for outdated packages and list the latest versions on indexes."""
|
|
45
46
|
|
|
46
47
|
def add_arguments(self, parser: ArgumentParser) -> None:
|
|
48
|
+
venv_option.add_to_parser(parser)
|
|
47
49
|
parser.add_argument(
|
|
48
50
|
"--json", action="store_const", const="json", dest="format", default="table", help="Output in JSON format"
|
|
49
51
|
)
|
|
@@ -60,6 +62,22 @@ class Command(BaseCommand):
|
|
|
60
62
|
if best:
|
|
61
63
|
package.latest_version = best.version or ""
|
|
62
64
|
|
|
65
|
+
@staticmethod
|
|
66
|
+
def _is_outdated(package: ListPackage) -> bool:
|
|
67
|
+
from packaging.version import InvalidVersion
|
|
68
|
+
|
|
69
|
+
from pdm.utils import parse_version
|
|
70
|
+
|
|
71
|
+
if not package.latest_version:
|
|
72
|
+
return False
|
|
73
|
+
if not package.installed_version:
|
|
74
|
+
return True
|
|
75
|
+
try:
|
|
76
|
+
# An installed pre-release or local build can be newer than the best match on the index
|
|
77
|
+
return parse_version(package.latest_version) > parse_version(package.installed_version)
|
|
78
|
+
except InvalidVersion:
|
|
79
|
+
return package.latest_version != package.installed_version
|
|
80
|
+
|
|
63
81
|
@staticmethod
|
|
64
82
|
def _format_json(packages: list[ListPackage]) -> str:
|
|
65
83
|
return json.dumps([asdict(package) for package in packages], indent=2)
|
|
@@ -125,7 +143,7 @@ class Command(BaseCommand):
|
|
|
125
143
|
executor.submit(self._populate_latest_version, finder, package)
|
|
126
144
|
|
|
127
145
|
collected = sorted(
|
|
128
|
-
[p for p in collected if
|
|
146
|
+
[p for p in collected if self._is_outdated(p)],
|
|
129
147
|
key=lambda p: p.package,
|
|
130
148
|
)
|
|
131
149
|
if options.format == "json":
|
|
@@ -13,7 +13,7 @@ from pdm.exceptions import PdmUsageError, PublishError
|
|
|
13
13
|
from pdm.termui import logger
|
|
14
14
|
|
|
15
15
|
if TYPE_CHECKING:
|
|
16
|
-
from
|
|
16
|
+
from httpx2 import Response
|
|
17
17
|
|
|
18
18
|
from pdm.cli.commands.publish.repository import Repository
|
|
19
19
|
from pdm.project import Project
|
|
@@ -123,7 +123,7 @@ class Command(BaseCommand):
|
|
|
123
123
|
|
|
124
124
|
@staticmethod
|
|
125
125
|
def _check_response(response: Response) -> None:
|
|
126
|
-
import
|
|
126
|
+
import httpx2
|
|
127
127
|
|
|
128
128
|
message = ""
|
|
129
129
|
if response.status_code == 410 and "pypi.python.org" in str(response.url):
|
|
@@ -137,7 +137,7 @@ class Command(BaseCommand):
|
|
|
137
137
|
else:
|
|
138
138
|
try:
|
|
139
139
|
response.raise_for_status()
|
|
140
|
-
except
|
|
140
|
+
except httpx2.HTTPStatusError as err:
|
|
141
141
|
message = str(err)
|
|
142
142
|
if response.text:
|
|
143
143
|
logger.debug(response.text)
|
|
@@ -11,6 +11,8 @@ import subprocess
|
|
|
11
11
|
from dataclasses import dataclass
|
|
12
12
|
from typing import IO, Any, cast
|
|
13
13
|
|
|
14
|
+
from packaging.version import Version
|
|
15
|
+
|
|
14
16
|
from pdm.exceptions import PdmUsageError, ProjectError
|
|
15
17
|
from pdm.termui import logger
|
|
16
18
|
|
|
@@ -212,9 +214,15 @@ class PackageFile:
|
|
|
212
214
|
"description_content_type": meta.get("Description-Content-Type"),
|
|
213
215
|
# Metadata 2.2
|
|
214
216
|
"dynamic": meta.get_all("Dynamic") or (),
|
|
217
|
+
# Metadata 2.4
|
|
218
|
+
"license_expression": meta["License-Expression"],
|
|
215
219
|
# Hashes
|
|
216
220
|
**self.get_hashes(),
|
|
217
221
|
}
|
|
222
|
+
# setuptools writes License-File under Metadata-Version 2.1, where it is not
|
|
223
|
+
# defined, so only send it from 2.4 on (PEP 639).
|
|
224
|
+
if Version(meta.get("Metadata-Version", "0")) >= Version("2.4"):
|
|
225
|
+
data["license_file"] = meta.get_all("License-File") or ()
|
|
218
226
|
if self.gpg_signature is not None:
|
|
219
227
|
data["gpg_signature"] = self.gpg_signature
|
|
220
228
|
return data
|
|
@@ -5,7 +5,7 @@ from collections.abc import Iterable, Iterator
|
|
|
5
5
|
from typing import TYPE_CHECKING, Any, cast
|
|
6
6
|
from urllib.parse import urlparse, urlunparse
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import httpx2
|
|
9
9
|
from id import AmbientCredentialError, detect_credential
|
|
10
10
|
from rich.progress import (
|
|
11
11
|
BarColumn,
|
|
@@ -24,13 +24,13 @@ if TYPE_CHECKING:
|
|
|
24
24
|
from collections.abc import Callable
|
|
25
25
|
from typing import Self
|
|
26
26
|
|
|
27
|
-
from
|
|
27
|
+
from httpx2._multipart import MultipartStream
|
|
28
28
|
|
|
29
29
|
from pdm._types import RepositoryConfig
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
class CallbackWrapperStream(
|
|
33
|
-
def __init__(self, stream:
|
|
32
|
+
class CallbackWrapperStream(httpx2.SyncByteStream):
|
|
33
|
+
def __init__(self, stream: httpx2.SyncByteStream, callback: Callable[[Self], Any]) -> None:
|
|
34
34
|
self._stream = stream
|
|
35
35
|
self._callback = callback
|
|
36
36
|
self.bytes_read = 0
|
|
@@ -100,7 +100,7 @@ class Repository:
|
|
|
100
100
|
except AmbientCredentialError as e:
|
|
101
101
|
self.ui.echo(f"Unable to detect OIDC token for CI platform: {e}", err=True)
|
|
102
102
|
return None
|
|
103
|
-
except
|
|
103
|
+
except httpx2.HTTPError:
|
|
104
104
|
self.ui.echo("Failed to get PyPI token via OIDC", err=True)
|
|
105
105
|
return None
|
|
106
106
|
else:
|
|
@@ -136,7 +136,7 @@ class Repository:
|
|
|
136
136
|
return set()
|
|
137
137
|
return {f"{base}project/{package.metadata['name']}/{package.metadata['version']}/" for package in packages}
|
|
138
138
|
|
|
139
|
-
def upload(self, package: PackageFile) ->
|
|
139
|
+
def upload(self, package: PackageFile) -> httpx2.Response:
|
|
140
140
|
data_fields = package.metadata_dict
|
|
141
141
|
data_fields.update(
|
|
142
142
|
{
|
|
@@ -120,6 +120,8 @@ def read_script_metadata(script: str, section: str) -> dict[str, Any] | None:
|
|
|
120
120
|
else:
|
|
121
121
|
import tomli as tomllib
|
|
122
122
|
|
|
123
|
+
# Python runs a script that starts with a UTF-8 BOM, so look for a block on its first line too.
|
|
124
|
+
script = script.removeprefix("\ufeff")
|
|
123
125
|
matches = [m for m in re.finditer(_METADATA_REGEX, script) if m.group("type") == section]
|
|
124
126
|
if len(matches) > 1:
|
|
125
127
|
raise ValueError(f"Multiple {section} blocks found")
|
|
@@ -262,6 +264,9 @@ class TaskRunner:
|
|
|
262
264
|
from dotenv.main import resolve_variables
|
|
263
265
|
|
|
264
266
|
project = self.project
|
|
267
|
+
# The environment is prepared in os.environ, restore it afterwards so
|
|
268
|
+
# the next task of a composite script doesn't inherit it.
|
|
269
|
+
saved_environ = os.environ.copy()
|
|
265
270
|
if not shell and args[0].endswith(".py"):
|
|
266
271
|
script_file = os.path.expanduser(args[0])
|
|
267
272
|
if working_dir and not os.path.isabs(script_file):
|
|
@@ -337,6 +342,8 @@ class TaskRunner:
|
|
|
337
342
|
finally:
|
|
338
343
|
signal.signal(signal.SIGTERM, handle_term)
|
|
339
344
|
signal.signal(signal.SIGINT, handle_int)
|
|
345
|
+
os.environ.clear()
|
|
346
|
+
os.environ.update(saved_environ)
|
|
340
347
|
|
|
341
348
|
def run_task(
|
|
342
349
|
self, task: Task, args: Sequence[str] = (), opts: TaskOptions | None = None, seen: set[str] | None = None
|
|
@@ -37,7 +37,8 @@ def merge_dictionary_defaults(target: MutableMapping[Any, Any], input: Mapping[A
|
|
|
37
37
|
def merge_project_metadata(target: MutableMapping[Any, Any], input: Mapping[Any, Any]) -> None:
|
|
38
38
|
"""Merge init metadata while preserving existing dependency lists."""
|
|
39
39
|
for key, value in input.items():
|
|
40
|
-
|
|
40
|
+
# license is replaced whole: merging {text} into {file} leaves both keys
|
|
41
|
+
if key != "license" and isinstance(target.get(key), MutableMapping) and isinstance(value, Mapping):
|
|
41
42
|
merge_project_metadata(target[key], value)
|
|
42
43
|
elif key == "dependencies" and not value and key in target:
|
|
43
44
|
continue
|
|
@@ -27,7 +27,7 @@ from pdm.utils import deprecation_warning, is_pip_compatible_with_python
|
|
|
27
27
|
|
|
28
28
|
if TYPE_CHECKING:
|
|
29
29
|
import unearth
|
|
30
|
-
from
|
|
30
|
+
from httpx2 import BaseTransport
|
|
31
31
|
|
|
32
32
|
from pdm._types import RepositoryConfig
|
|
33
33
|
from pdm.models.auth import PdmBasicAuth
|
|
@@ -59,6 +59,9 @@ class PythonEnvironment(BaseEnvironment):
|
|
|
59
59
|
paths = [scheme["platlib"], scheme["purelib"]]
|
|
60
60
|
venv = self.interpreter.get_venv()
|
|
61
61
|
shared_paths = self.extra_paths[:]
|
|
62
|
-
|
|
62
|
+
# Isolated build prefixes only expose their own site-packages to the PEP 517
|
|
63
|
+
# subprocess (PYTHONPATH=prefix). Do not treat the host venv's system
|
|
64
|
+
# site-packages as already installed, or shared build deps get skipped.
|
|
65
|
+
if self.prefix is None and venv is not None and venv.include_system_site_packages:
|
|
63
66
|
shared_paths.extend(venv.base_paths)
|
|
64
67
|
return WorkingSet(paths, shared_paths=list(dict.fromkeys(shared_paths)))
|