Release v1.13.5 (2022-03-23) ---------------------------- ### Features & Improvements - Users can change the install destination of global project to the user site(`~/.local`) with `global_project.user_site` config. [#885](https://github.com/pdm-project/pdm/issues/885) - Make the path to the global project configurable. Rename the configuration `auto_global` to `global_project.fallback` and deprecate the old name. [#986](https://github.com/pdm-project/pdm/issues/986) ### Bug Fixes - Fix the compatibility when fetching license information in `show` command. [#966](https://github.com/pdm-project/pdm/issues/966) - Don't follow symlinks for the paths in the requirement strings. [#976](https://github.com/pdm-project/pdm/issues/976) - Use the default install scheme when installing build requirements. [#983](https://github.com/pdm-project/pdm/issues/983) - Fix a bug that `_.site_packages` is overriden by default option value. [#985](https://github.com/pdm-project/pdm/issues/985) Release v1.13.4 (2022-03-09) ---------------------------- ### Features & Improvements - Update the dependency `pdm-pep517` to support PEP 639. [#959](https://github.com/pdm-project/pdm/issues/959) ### Bug Fixes - Filter out the unmatched python versions when listing the available versions. [#941](https://github.com/pdm-project/pdm/issues/941) - Fix a bug displaying the available python versions. [#943](https://github.com/pdm-project/pdm/issues/943) - Fix a bug under non-UTF8 console encoding. [#960](https://github.com/pdm-project/pdm/issues/960) - Fix a bug that data files are not copied to the destination when using installation cache. [#961](https://github.com/pdm-project/pdm/issues/961) Release v1.13.3 (2022-02-24) ---------------------------- ### Bug Fixes - Fix a bug that VCS repo name are parsed as the package name. [#928](https://github.com/pdm-project/pdm/issues/928) - Support prerelease versions for global projects. [#932](https://github.com/pdm-project/pdm/issues/932) - Fix a bug that VCS revision in the lock file isn't respected when installing. [#933](https://github.com/pdm-project/pdm/issues/933) ### Dependencies - Switch from `pythonfinder` to `findpython` as the Python version finder. [#930](https://github.com/pdm-project/pdm/issues/930) Release v1.13.2 (2022-02-20) ---------------------------- ### Bug Fixes - Fix a regression issue that prereleases can't be installed if the version specifier of the requirement doesn't imply that. [#920](https://github.com/pdm-project/pdm/issues/920) Release v1.13.1 (2022-02-18) ---------------------------- ### Bug Fixes - Fix a bug that bad pip cache dir value breaks PDM's check update function. [#922](https://github.com/pdm-project/pdm/issues/922) - Fix a race condition in parallel installation by changing metadata to a lazy property. This fixes a bug that incompatible wheels are installed unexpectedly. [#924](https://github.com/pdm-project/pdm/issues/924) Release v1.13.0.post0 (2022-02-18) ---------------------------------- ### Bug Fixes - Fix a bug that incompatible platform-specific wheels are installed. [#921](https://github.com/pdm-project/pdm/issues/921) Release v1.13.0 (2022-02-18) ---------------------------- ### Features & Improvements - Support `pre_*` and `post_*` scripts for task composition. Pre- and Post- scripts for `init`, `build`, `install` and `lock` will be run if present. [#789](https://github.com/pdm-project/pdm/issues/789) - Support `--config/-c` option to specify another global configuration file. [#883](https://github.com/pdm-project/pdm/issues/883) - Packages with extras require no longer inherit the dependencies from the same package without extras. It is because the package without extras are returned as one of the dependencies. This change won't break the existing lock files nor dependency cache. [#892](https://github.com/pdm-project/pdm/issues/892) - Support version ranges in `[tool.pdm.overrides]` table. [#909](https://github.com/pdm-project/pdm/issues/909) - Rename config `use_venv` to `python.use_venv`; rename config `feature.install_cache` to `install.cache`; rename config `feature.install_cache_method` to `install.cache_method`; rename config `parallel_install` to `install.parallel`. [#914](https://github.com/pdm-project/pdm/issues/914) ### Bug Fixes - Fix a bug that file URLs or VCS URLs don't work in `[tool.pdm.overrides]` table. [#861](https://github.com/pdm-project/pdm/issues/861) - Fix a bug of identifier mismatch for URL requirements without an explicit name. [#901](https://github.com/pdm-project/pdm/issues/901) - No `requires-python` should be produced if ANY(`*`) is given. [#917](https://github.com/pdm-project/pdm/issues/917) - Fix a bug that `pdm.lock` gets created when `--dry-run` is passed to `pdm add`. [#918](https://github.com/pdm-project/pdm/issues/918) ### Improved Documentation - The default editable backend becomes `path`. [#904](https://github.com/pdm-project/pdm/issues/904) ### Removals and Deprecations - Stop auto-migrating projects from PDM 0.x format. [#912](https://github.com/pdm-project/pdm/issues/912) ### Refactor - Rename `ExtrasError` to `ExtrasWarning` for better understanding. Improve the warning message. [#892](https://github.com/pdm-project/pdm/issues/892) - Extract the environment related code from `Candidate` into a new class `PreparedCandidate`. `Candidate` no longer holds an `Environment` instance. [#920](https://github.com/pdm-project/pdm/issues/920) Release v1.12.8 (2022-02-06) ---------------------------- ### Features & Improvements - Print the error and continue if a plugin fails to load. [#878](https://github.com/pdm-project/pdm/issues/878) ### Bug Fixes - PDM now ignores configuration of uninstalled plugins. [#872](https://github.com/pdm-project/pdm/issues/872) - Fix the compatibility issue with `pip>=22.0`. [#875](https://github.com/pdm-project/pdm/issues/875) Release v1.12.7 (2022-01-31) ---------------------------- ### Features & Improvements - If no command is given to `pdm run`, it will run the Python REPL. [#856](https://github.com/pdm-project/pdm/issues/856) ### Bug Fixes - Fix the hash calculation when generating `direct_url.json` for a local pre-built wheel. [#861](https://github.com/pdm-project/pdm/issues/861) - PDM no longer migrates project meta silently. [#867](https://github.com/pdm-project/pdm/issues/867) ### Dependencies - Pin `pip<22.0`. [#874](https://github.com/pdm-project/pdm/issues/874) ### Miscellany - Reduce the number of tests that require network, and mark the rest with `network` marker. [#858](https://github.com/pdm-project/pdm/issues/858) Release v1.12.6 (2022-01-12) ---------------------------- ### Bug Fixes - Fix a bug that cache dir isn't created. [#843](https://github.com/pdm-project/pdm/issues/843) Release v1.12.5 (2022-01-11) ---------------------------- ### Bug Fixes - Fix a resolution error that dots in the package name are normalized to `-` unexpectedly. [#853](https://github.com/pdm-project/pdm/issues/853) Release v1.12.4 (2022-01-11) ---------------------------- ### Features & Improvements - Remember the last selection in `use` command to save the human effort. And introduce an `-i` option to ignored that remembered value. [#846](https://github.com/pdm-project/pdm/issues/846) ### Bug Fixes - Fix a bug of uninstall crash when the package has directories in `RECORD`. [#847](https://github.com/pdm-project/pdm/issues/847) - Fix the `ModuleNotFoundError` during uninstall when the modules required are removed. [#850](https://github.com/pdm-project/pdm/issues/850) Release v1.12.3 (2022-01-07) ---------------------------- ### Features & Improvements - Support setting Python path in global configuration. [#842](https://github.com/pdm-project/pdm/issues/842) ### Bug Fixes - Lowercase the package names in the lock file make it more stable. [#836](https://github.com/pdm-project/pdm/issues/836) - Show the packages to be updated in dry run mode of `pdm update` even if `--no-sync` is passed. [#837](https://github.com/pdm-project/pdm/issues/837) - Improve the robustness of update check code. [#841](https://github.com/pdm-project/pdm/issues/841) - Fix a bug that export result has environment markers that don't apply for all requirements. [#843](https://github.com/pdm-project/pdm/issues/843) Release v1.12.2 (2021-12-30) ---------------------------- ### Features & Improvements - Allow changing the installation linking method by `feature.install_cache_method` config. [#822](https://github.com/pdm-project/pdm/issues/822) ### Bug Fixes - Fix a bug that namespace packages can't be symlinked to the cache due to existing links. [#820](https://github.com/pdm-project/pdm/issues/820) - Make PDM generated pth files processed as early as possible. [#821](https://github.com/pdm-project/pdm/issues/821) - Fix a UnicodeDecodeError for subprocess logger under Windows/GBK. [#823](https://github.com/pdm-project/pdm/issues/823) Release v1.12.1 (2021-12-24) ---------------------------- ### Bug Fixes - Don't symlink pycaches to the target place. [#817](https://github.com/pdm-project/pdm/issues/817) Release v1.12.0 (2021-12-22) ---------------------------- ### Features & Improvements - Add `lock --refresh` to update the hash stored with the lock file without updating the pinned versions. [#642](https://github.com/pdm-project/pdm/issues/642) - Support resolution overriding in the `[tool.pdm.overrides]` table. [#790](https://github.com/pdm-project/pdm/issues/790) - Add support for signals for basic operations, now including `post_init`, `pre_lock`, `post_lock`, `pre_install` and `post_install`. [#798](https://github.com/pdm-project/pdm/issues/798) - Add `install --check` to check if the lock file is up to date. [#810](https://github.com/pdm-project/pdm/issues/810) - Use symlinks to cache installed packages when it is supported by the file system. [#814](https://github.com/pdm-project/pdm/issues/814) ### Bug Fixes - Fix a bug that candidates from urls are rejected by the `allow_prereleases` setting. Now non-named requirements are resolved earlier than pinned requirements. [#799](https://github.com/pdm-project/pdm/issues/799) ### Improved Documentation - Add a new doc page: **API reference**. [#802](https://github.com/pdm-project/pdm/issues/802) ### Dependencies - Switch back from `atoml` to `tomlkit` as the style-preserving TOML parser. The latter has supported TOML v1.0.0. [#809](https://github.com/pdm-project/pdm/issues/809) ### Miscellany - Cache the latest version of PDM for one week to reduce the request frequency. [#800](https://github.com/pdm-project/pdm/issues/800) Release v1.11.3 (2021-12-15) ---------------------------- ### Features & Improvements - Change the default version save strategy to `minimum`, without upper bounds. [#787](https://github.com/pdm-project/pdm/issues/787) ### Bug Fixes - Fix the patching of sysconfig in PEP 582 initialization script. [#796](https://github.com/pdm-project/pdm/issues/796) ### Miscellany - Fix an installation failure of the bootstrap script on MacOS Catalina. [#793](https://github.com/pdm-project/pdm/issues/793) - Add a basic benchmarking script. [#794](https://github.com/pdm-project/pdm/issues/794) Release v1.11.2 (2021-12-10) ---------------------------- ### Bug Fixes - Fix the resolution order to reduce the loop number to find a conflict. [#781](https://github.com/pdm-project/pdm/issues/781) - Patch the functions in `sysconfig` to return the PEP 582 scheme in `pdm run`. [#784](https://github.com/pdm-project/pdm/issues/784) ### Dependencies - Remove the upper bound of version constraints for most dependencies, except for some zero-versioned ones. [#787](https://github.com/pdm-project/pdm/issues/787) Release v1.11.1 (2021-12-08) ---------------------------- ### Features & Improvements - Support `--pre/--prelease` option for `pdm add` and `pdm update`. It will allow prereleases to be pinned. [#774](https://github.com/pdm-project/pdm/issues/774) - Improve the error message when python is found but not meeting the python requirement. [#777](https://github.com/pdm-project/pdm/issues/777) ### Bug Fixes - Fix a bug that `git+https` candidates cannot be resolved. [#771](https://github.com/pdm-project/pdm/issues/771) - Fix an infinite resolution loop by resolving the top-level packages first. Also deduplicate the lines from the same requirement in the error output. [#776](https://github.com/pdm-project/pdm/issues/776) ### Miscellany - Fix the install script to use a zipapp of virtualenv when it isn't installed. [#780](https://github.com/pdm-project/pdm/issues/780) Release v1.11.0 (2021-11-30) ---------------------------- ### Features & Improvements - Move `version` from `[project]` table to `[tool.pdm]` table, delete `classifiers` from `dynamic`, and warn usage about the deprecated usages. [#748](https://github.com/pdm-project/pdm/issues/748) - Add support for Conda environments in addition to Python virtual environments. [#749](https://github.com/pdm-project/pdm/issues/749) - Add support for saving only the lower bound `x >= VERSION` when adding dependencies. [#752](https://github.com/pdm-project/pdm/issues/752) - Improve the error message when resolution fails. [#754](https://github.com/pdm-project/pdm/issues/754) ### Bug Fixes - Switch to self-implemented `pdm list --freeze` to fix a bug due to Pip's API change. [#533](https://github.com/pdm-project/pdm/issues/533) - Fix an infinite loop issue when resolving candidates with incompatible `requires-python`. [#744](https://github.com/pdm-project/pdm/issues/744) - Fix the python finder to support pyenv-win. [#745](https://github.com/pdm-project/pdm/issues/745) - Fix the ANSI color output for Windows cmd and Powershell terminals. [#753](https://github.com/pdm-project/pdm/issues/753) ### Removals and Deprecations - Remove `-s/--section` option from all previously supported commands. Use `-G/--group` instead. [#756](https://github.com/pdm-project/pdm/issues/756) Release v1.10.3 (2021-11-18) ---------------------------- ### Bug Fixes - Use `importlib` to replace `imp` in the `sitecustomize` module for Python 3. [#574](https://github.com/pdm-project/pdm/issues/574) - Fix the lib paths under non-isolated build. [#740](https://github.com/pdm-project/pdm/issues/740) - Exclude the dependencies with extras in the result of `pdm export`. [#741](https://github.com/pdm-project/pdm/issues/741) Release v1.10.2 (2021-11-14) ---------------------------- ### Features & Improvements - Add a new option `-s/--site-packages` to `pdm run` as well as a script config item. When it is set to `True`, site-packages from the selected interpreter will be loaded into the running environment. [#733](https://github.com/pdm-project/pdm/issues/733) ### Bug Fixes - Now `NO_SITE_PACKAGES` isn't set in `pdm run` if the executable is out of local packages. [#733](https://github.com/pdm-project/pdm/issues/733) Release v1.10.1 (2021-11-09) ---------------------------- ### Features & Improvements - Isolate the project environment with system site packages in `pdm run`, but keep them seen when PEP 582 is enabled. [#708](https://github.com/pdm-project/pdm/issues/708) ### Bug Fixes - Run `pip` with `--isolated` when building wheels. In this way some env vars like `PIP_REQUIRE_VIRTUALENV` can be ignored. [#669](https://github.com/pdm-project/pdm/issues/669) - Fix the install script to ensure `pip` is not DEBUNDLED. [#685](https://github.com/pdm-project/pdm/issues/685) - Fix a bug that when `summary` is `None`, the lockfile can't be generated. [#719](https://github.com/pdm-project/pdm/issues/719) - `${PROJECT_ROOT}` should be written in the URL when relative path is given. [#721](https://github.com/pdm-project/pdm/issues/721) - Fix a bug that when project table already exists, `pdm import` can't merge the settings correctly. [#723](https://github.com/pdm-project/pdm/issues/723) Release v1.10.0 (2021-10-25) ---------------------------- ### Features & Improvements - Add `--no-sync` option to `update` command. [#684](https://github.com/pdm-project/pdm/issues/684) - Support `find_links` source type. It can be specified via `type` key of `[[tool.pdm.source]]` table. [#694](https://github.com/pdm-project/pdm/issues/694) - Add `--dry-run` option to `add`, `install` and `remove` commands. [#698](https://github.com/pdm-project/pdm/issues/698) ### Bug Fixes - Remove trailing whitespace with terminal output of tables (via `project.core.ui.display_columns`), fixing unnecessary wrapping due to / with empty lines full of spaces in case of long URLs in the last column. [#680](https://github.com/pdm-project/pdm/issues/680) - Include files should be installed under venv's base path. [#682](https://github.com/pdm-project/pdm/issues/682) - Ensure the value of `check_update` is boolean. [#689](https://github.com/pdm-project/pdm/issues/689) ### Improved Documentation - Update the contributing guide, remove the usage of `setup_dev.py` in favor of `pip install`. [#676](https://github.com/pdm-project/pdm/issues/676) Release v1.9.0 (2021-10-12) --------------------------- ### Bug Fixes - Fix a bug that `requires-python` is not recognized in candidates evaluation. [#657](https://github.com/pdm-project/pdm/issues/657) - Fix the path order when pdm run so that executables in local packages dir are found first. [#678](https://github.com/pdm-project/pdm/issues/678) ### Dependencies - Update `installer` to `0.3.0`, fixing a bug that broke installation of some packages with unusual wheel files. [#653](https://github.com/pdm-project/pdm/issues/653) - Change `packaging` and `typing-extensions` to direct dependencies. [#674](https://github.com/pdm-project/pdm/issues/674) ### Refactor - `requires-python` now participates in the resolution as a dummy requirement. [#658](https://github.com/pdm-project/pdm/issues/658) Release v1.8.5 (2021-09-16) --------------------------- ### Bug Fixes - Fix the error of regex to find the shebang line. [#656](https://github.com/pdm-project/pdm/issues/656) Release v1.8.4 (2021-09-15) --------------------------- ### Features & Improvements - Support `--no-isolation` option for `install`, `lock`, `update`, `remove`, `sync` commands. [#640](https://github.com/pdm-project/pdm/issues/640) - Make `project_max_depth` configurable and default to `5`. [#643](https://github.com/pdm-project/pdm/issues/643) ### Bug Fixes - Don't try `pdm-pep517` backend on Python 2.7 when installing self as editable. [#640](https://github.com/pdm-project/pdm/issues/640) - Fix a bug that existing shebang can't be replaced correctly. [#651](https://github.com/pdm-project/pdm/issues/651) - Fix the version range saving for prerelease versions. [#654](https://github.com/pdm-project/pdm/issues/654) Release v1.8.3 (2021-09-07) --------------------------- ### Features & Improvements - Allow to build in non-isolated environment, to enable optional speedups depending on the environment. [#635](https://github.com/pdm-project/pdm/issues/635) ### Bug Fixes - Don't copy `*-nspkg.pth` files in `install_cache` mode. It will still work without them. [#623](https://github.com/pdm-project/pdm/issues/623) Release v1.8.2 (2021-09-01) --------------------------- ### Bug Fixes - Fix the removal issue of standalone pyc files [#633](https://github.com/pdm-project/pdm/issues/633) Release v1.8.1 (2021-08-26) --------------------------- ### Features & Improvements - Add `-r/--reinstall` option to `sync` command to force re-install the existing dependencies. [#601](https://github.com/pdm-project/pdm/issues/601) - Show update hint after every pdm command. [#603](https://github.com/pdm-project/pdm/issues/603) - `pdm cache clear` can clear cached installations if not needed any more. [#604](https://github.com/pdm-project/pdm/issues/604) ### Bug Fixes - Fix the editable install script so that `setuptools` won't see the dependencies under local packages. [#601](https://github.com/pdm-project/pdm/issues/601) - Preserve the executable bit when installing wheels. [#606](https://github.com/pdm-project/pdm/issues/606) - Write PEP 610 metadata `direct_url.json` when installing wheels. [#607](https://github.com/pdm-project/pdm/issues/607) - Fix a bug that `*` fails to be converted as `SpecifierSet`. [#609](https://github.com/pdm-project/pdm/issues/609) ### Refactor - Build editable packages are into wheels via PEP 660 build backend. Now all installations are unified into wheels. [#612](https://github.com/pdm-project/pdm/issues/612) Release v1.8.0 (2021-08-16) --------------------------- ### Features & Improvements - Added a new mode `--json` to the list command which outputs the dependency graph as a JSON document. [#583](https://github.com/pdm-project/pdm/issues/583) - Add a new config `feature.install_cache`. When it is turned on, wheels will be installed into a centralized package repo and create `.pth` files under project packages directory to link to the cached package. [#589](https://github.com/pdm-project/pdm/issues/589) ### Bug Fixes - Fix env vars in source URLs not being expanded in all cases. [#570](https://github.com/pdm-project/pdm/issues/570) - Fix the weird output of `pdm show`. [#580](https://github.com/pdm-project/pdm/issues/580) - Prefer `~/.pyenv/shims/python3` as the pyenv interpreter. [#590](https://github.com/pdm-project/pdm/issues/590) - Fix a bug that installing will download candidates that do not match the locked hashes. [#596](https://github.com/pdm-project/pdm/issues/596) ### Improved Documentation - Added instructions to the Contributing section for creating news fragments [#573](https://github.com/pdm-project/pdm/issues/573) ### Removals and Deprecations - Deprecate `-s/--section` option in favor of `-G/--group`. [#591](https://github.com/pdm-project/pdm/issues/591) ### Refactor - Switch to a self-implemented version of uninstaller. [#586](https://github.com/pdm-project/pdm/issues/586) - `pdm/installers/installers.py` is renamed to `pdm/installers/manager.py` to be more accurate. The `Installer` class under that file is renamed to `InstallerManager` and is exposed in the `pdm.core.Core` object for overriding. The new `pdm/installers/installers.py` contains some installation implementations. [#589](https://github.com/pdm-project/pdm/issues/589) - Switch from `pkg_resources.Distribution` to the implementation of `importlib.metadata`. [#592](https://github.com/pdm-project/pdm/issues/592) Release v1.7.2 (2021-07-30) --------------------------- ### Bug Fixes - Remove the existing files before installing. [#565](https://github.com/pdm-project/pdm/issues/565) - Deduplicate the plugins list. [#566](https://github.com/pdm-project/pdm/issues/566) Release v1.7.1 (2021-07-29) --------------------------- ### Bug Fixes - Accept non-canonical distribution name in the wheel's dist-info directory name. [#529](https://github.com/pdm-project/pdm/issues/529) - Prefer requirements with narrower version constraints or allowing prereleases to find matches. [#551](https://github.com/pdm-project/pdm/issues/551) - Use the underlying real executable path for writing shebangs. [#553](https://github.com/pdm-project/pdm/issues/553) - Fix a bug that extra markers cannot be extracted when combined with other markers with "and". [#559](https://github.com/pdm-project/pdm/issues/559) - Fix a bug that redacted credentials in source urls get overwritten with the plain text after locking. [#561](https://github.com/pdm-project/pdm/issues/561) ### Refactor - Use installer as the wheel installer, replacing `distlib`. [#519](https://github.com/pdm-project/pdm/issues/519) Release v1.7.0 (2021-07-20) --------------------------- ### Features & Improvements - Support showing individual fields by `--` options in pdm show. When no package is given, show this project. [#527](https://github.com/pdm-project/pdm/issues/527) - Add `--freeze` option to `pdm list` command which shows the dependencies list as pip's requirements.txt format. [#531](https://github.com/pdm-project/pdm/issues/531) ### Bug Fixes - Fix the path manipulation on Windows, now the PEP 582 path is prepended to the `PYTHONPATH`. [#522](https://github.com/pdm-project/pdm/issues/522) - Fix the handling of auth prompting: will try keyring in non-verbose mode. [#523](https://github.com/pdm-project/pdm/issues/523) - Recognize old entry point name "pdm.plugin" for backward-compatibility. [#530](https://github.com/pdm-project/pdm/issues/530) - Match the VCS scheme in case-insensitive manner. [#537](https://github.com/pdm-project/pdm/issues/537) - Use the default permission bits when writing project files. [#542](https://github.com/pdm-project/pdm/issues/542) - Fix the VCS url to be consistent between lock and install. [#547](https://github.com/pdm-project/pdm/issues/547) ### Improved Documentation - Add installation instructions for Scoop. [#522](https://github.com/pdm-project/pdm/issues/522) ### Dependencies - Update `pdm-pep517` to `0.8.0`. [#524](https://github.com/pdm-project/pdm/issues/524) - Switch from `toml` to `tomli`. [#541](https://github.com/pdm-project/pdm/issues/541) ### Refactor - Separate the build env into two different levels for better caching. [#541](https://github.com/pdm-project/pdm/issues/541) - Refactor the build part into smaller functions. [#543](https://github.com/pdm-project/pdm/issues/543) Release v1.6.4 (2021-06-23) --------------------------- ### Features & Improvements - Extract package name from egg-info in filename when eligible. Remove the patching code of resolvelib's inner class. [#441](https://github.com/pdm-project/pdm/issues/441) - Support installing packages from subdiretories of VCS repository. [#507](https://github.com/pdm-project/pdm/issues/507) - Add an install script to bootstrap PDM quickly without help of other tools. Modify docs to recommend this installation method. [#508](https://github.com/pdm-project/pdm/issues/508) - Add a new subcommand `plugin` to manage pdm plugins, including `add`, `remove` and `list` commands. [#510](https://github.com/pdm-project/pdm/issues/510) ### Bug Fixes - Don't monkeypatch the internal class of `resolvelib` any more. This makes PDM more stable across updates of sub-dependencies. [#515](https://github.com/pdm-project/pdm/issues/515) ### Miscellany - Clear the type errors from mypy. [#261](https://github.com/pdm-project/pdm/issues/261) Release v1.6.3 (2021-06-17) --------------------------- ### Features & Improvements - Add an option `-u/--unconstrained` to support unconstraining version specifiers when adding packages. [#501](https://github.com/pdm-project/pdm/issues/501) ### Bug Fixes - Fix the format of dependency arrays when a new value is appended. [#487](https://github.com/pdm-project/pdm/issues/487) - Allow missing email attribute for authors and maintainers. [#492](https://github.com/pdm-project/pdm/issues/492) - Fix a bug that editable install shouldn't require pyproject.toml to be valid. [#497](https://github.com/pdm-project/pdm/issues/497) - Fix a bug on MacOS that purelib and platlib paths of isolated build envs cannot be substituted correctly if the Python is a framework build. [#502](https://github.com/pdm-project/pdm/issues/502) - Fix the version sort of candidates. [#506](https://github.com/pdm-project/pdm/issues/506) Release v1.6.2 (2021-05-31) --------------------------- No significant changes. Release v1.6.1 (2021-05-31) --------------------------- No significant changes. Release v1.6.0 (2021-05-31) --------------------------- ### Features & Improvements - Use a new approach to determine the packages to be installed. This requires a quick resolution step before installation. [#456](https://github.com/pdm-project/pdm/issues/456) - `pdm export` no longer produces requirements file applicable for all platforms due to the new approach. [#456](https://github.com/pdm-project/pdm/issues/456) - Add structural typing for requirements module. Refactor the requirements module for that purpose. [#433](https://github.com/pdm-project/pdm/issues/433) - Introduce `--no-editable` option to install non-editable versions of all packages. [#443](https://github.com/pdm-project/pdm/issues/443) - Introduce `--no-self` option to prevent the project itself from being installed. [#444](https://github.com/pdm-project/pdm/issues/444) - Add a default `.gitignore` file in the `__pypackages__` directory. [#446](https://github.com/pdm-project/pdm/issues/446) - Check if the lock file version is compatible with PDM program before installation. [#463](https://github.com/pdm-project/pdm/issues/463) - Expose the project root path via `PDM_PROJECT_ROOT` env var. Change to the project root when executing scripts. [#470](https://github.com/pdm-project/pdm/issues/470) - Fix a bug that installation resolution doesn't respect the requirement markers from pyproject config. [#480](https://github.com/pdm-project/pdm/issues/480) ### Bug Fixes - Changing to multiline breaks the parsing of TOML document. [#462](https://github.com/pdm-project/pdm/issues/462) - Fix a bug that transient dependencies of conditional requirements can't be resolved. [#472](https://github.com/pdm-project/pdm/issues/472) - Fix a bug that invalid wheels are rejected while they are acceptable for resolution. [#473](https://github.com/pdm-project/pdm/issues/473) - Fix a bug that build environment is not fully isolated with the hosted environment. [#477](https://github.com/pdm-project/pdm/issues/477) - Ensure the lock file is compatible before looking for the locked candidates. [#484](https://github.com/pdm-project/pdm/issues/484) ### Improved Documentation - Fix 404 links in documentation. [#472](https://github.com/pdm-project/pdm/issues/472) ### Dependencies - Migrate from `tomlkit` to `atoml` as the style-preserving TOML parser and writer. [#465](https://github.com/pdm-project/pdm/issues/465) ### Removals and Deprecations - Remove the warning of `--dev` flag for older versions of PDM. [#444](https://github.com/pdm-project/pdm/issues/444) ### Miscellany - Add Python 3.10 beta CI job. [#457](https://github.com/pdm-project/pdm/issues/457) Release v1.5.3 (2021-05-10) --------------------------- ### Features & Improvements - Support passing options to the build backends via `--config-setting`. [#452](https://github.com/pdm-project/pdm/issues/452) ### Bug Fixes - Seek for other sitecustomize.py to import. [#422](https://github.com/pdm-project/pdm/issues/422) - Fix an unescaped single quote in fish completion script. [#423](https://github.com/pdm-project/pdm/issues/423) - The hashes of a remote file candidate should be calculated from the link itself. [#450](https://github.com/pdm-project/pdm/issues/450) ### Dependencies - Remove `keyring` as a dependency and guide users to install it when it is not available. [#442](https://github.com/pdm-project/pdm/issues/442) - Specify the minimum version of `distlib`. [#447](https://github.com/pdm-project/pdm/issues/447) ### Miscellany - Add log output about found candidates and their origin. [#421](https://github.com/pdm-project/pdm/issues/421) - Add [mypy](https://github.com/python/mypy) pre-commit hook [#427](https://github.com/pdm-project/pdm/issues/427) - Improve type safety of `pdm.cli.actions` [#428](https://github.com/pdm-project/pdm/issues/428) - Fix wrong mypy configuration. [#451](https://github.com/pdm-project/pdm/issues/451) Release v1.5.2 (2021-04-27) --------------------------- ### Features & Improvements - Allow `pdm use` with no argument given, which will list all available pythons for pick. [#409](https://github.com/pdm-project/pdm/issues/409) ### Bug Fixes - Inform user to enable PEP 582 for development script to work. [#404](https://github.com/pdm-project/pdm/issues/404) - Check the existence of pyenv shim Python interpreter before using it. [#406](https://github.com/pdm-project/pdm/issues/406) - Fix a bug that executing `setup.py` failed for NameError. [#407](https://github.com/pdm-project/pdm/issues/407) - Check before setting the PYTHONPATH environment variable for PEP582 [#410](https://github.com/pdm-project/pdm/issues/410) - Fix development setup error. [#415](https://github.com/pdm-project/pdm/issues/415) ### Dependencies - Update pip to 21.1 and fix compatibility issues. [#412](https://github.com/pdm-project/pdm/issues/412) Release v1.5.1 (2021-04-22) --------------------------- ### Bug Fixes - Make func translate_sections pure to avoid exporting requirements in random order. [#401](https://github.com/pdm-project/pdm/issues/401) - Expand the variables in install requirements' attributes for build. [#402](https://github.com/pdm-project/pdm/issues/402) Release v1.5.0 (2021-04-20) --------------------------- ### Features & Improvements - Include dev dependencies by default for `install` and `sync` commands. Add a new option `--prod/--production` to exclude them. Improve the dependency selection logic to be more convenient to use — the more common the usage is, the shorter the command is. [#391](https://github.com/pdm-project/pdm/issues/391) ### Bug Fixes - Enquote executable path to ensure generating valid scripts. [#387](https://github.com/pdm-project/pdm/issues/387) - Consider hashes when fetching artifact link for build. [#389](https://github.com/pdm-project/pdm/issues/389) - Considier the sources settings when building. [#399](https://github.com/pdm-project/pdm/issues/399) ### Improved Documentation - New pdm setting `source-includes` to mark files to be included only in sdist builds. [#390](https://github.com/pdm-project/pdm/issues/390) ### Dependencies - Update `pdm-pep517` to `0.7.0`; update `resolvelib` to` 0.7.0`. [#390](https://github.com/pdm-project/pdm/issues/390) ### Removals and Deprecations - Deprecate the usage of `-d/--dev` option in `install` and `sync` commands. [#391](https://github.com/pdm-project/pdm/issues/391) Release v1.5.0b1 (2021-04-12) ----------------------------- ### Features & Improvements - Improve the env builder to run in isolated mode. [#384](https://github.com/pdm-project/pdm/issues/384) ### Bug Fixes - Remove the incompatible code from the files that will be run in-process. [#375](https://github.com/pdm-project/pdm/issues/375) - Get the correct Python ABI tag of selected interpreter [#378](https://github.com/pdm-project/pdm/issues/378) - Error out when doing `pdm run` on a directory not initialized yet. - Give warning message when the project automatically fallbacks to the global project. ### Dependencies - Upgrade `resolvelib` to `0.6.0`. [#381](https://github.com/pdm-project/pdm/issues/381) ### Miscellany - refactor `pdm.models.readers` to improve typing support [#321](https://github.com/pdm-project/pdm/issues/321) - Add a basic integration test for cross-python check. [#377](https://github.com/pdm-project/pdm/issues/377) - Refactor the `project.python_executable` to `project.python` that contains all info of the interpreter. [#382](https://github.com/pdm-project/pdm/issues/382) - Continue refactoring Python info to extract to its own module. [#383](https://github.com/pdm-project/pdm/issues/383) - Refactor the creation of project. Release v1.5.0b0 (2021-04-03) ----------------------------- ### Features & Improvements - Add hand-written zsh completion script. [#188](https://github.com/pdm-project/pdm/issues/188) - Add a special value `:all` given to `-s/--section` to refer to all sections under the same species. Adjust `add`, `sync`, `install`, `remove` and `update` to support the new `dev-dependencies` groups. Old behavior will be kept the same. [#351](https://github.com/pdm-project/pdm/issues/351) - `dev-dependencies` is now a table of dependencies groups, where key is the group name and value is an array of dependencies. These dependencies won't appear in the distribution's metadata. `dev-depedencies` of the old format will turn into `dev` group under `dev-dependencies`. [#351](https://github.com/pdm-project/pdm/issues/351) - Move `dev-dependencies`, `includes`, `excludes` and `package-dir` out from `[project]` table to `[tool.pdm]` table. The migration will be done automatically if old format is detected. [#351](https://github.com/pdm-project/pdm/issues/351) - Throws an error with meaningful message when no candidate is found for one requirement. [#357](https://github.com/pdm-project/pdm/issues/357) - Support `--dry-run` option for `update` command to display packages that need update, install or removal. Add `--top` option to limit to top level packages only. [#358](https://github.com/pdm-project/pdm/issues/358) - Full-featured completion scripts for Zsh and Powershell - section selection, package name autocompletion and so on. Windows is a first-class citizen! [#367](https://github.com/pdm-project/pdm/issues/367) - Support non-interactive `init` command via `-n/--non-interactive` option. No question will be asked in this mode. [#368](https://github.com/pdm-project/pdm/issues/368) - Show project packages path(PEP 582) in the output of `pdm info`, also add an option `--packages` to show that value only. [#372](https://github.com/pdm-project/pdm/issues/372) ### Bug Fixes - Fix a bug that pure python libraries are not loaded to construct the WorkingSet. [#346](https://github.com/pdm-project/pdm/issues/346) - Don't write `