- Do not detect as requirements.txt if the file is a python script. #2416
- Provide information of the original line when parsing requirement fails. #2417
- Resolve
-r
requirements paths relative to the requirement file they are specified in #2422 - Updating package now overwrites the old files instead of removing before installing. #2423
- Create virtualenv for conda base Python. #2409
- Log the response text when
pdm publish
fails with HTTP error. #2400
- Improve the error message when a specific package can't be found in the lockfile. #2358
- prevent wrong project name (including space and illegal characters) #2360
- Fix a bug that PDM cannot detect namespace packages correctly when creating symlinks. The package's
__init__.py
contains an unusual line. #2378 - Fix template files created by
pdm init
being read-only when copied from a read-only PDM installation. #2379 - Don't reset the build backend when asking for import. #2388
- Never wrap the output of the
export
command. #2390 - Forbid global project in conda base environment, since it may remove conda-managed packages. #2409
- Fix a bug preventing ctrl-c from interrupting program execution on 2nd invocation when using "pdm run" (Windows only). #2292
- Fix list index out of range when build error message is empty. #2337
- Fix find_link sources being exported as
--extra--index-url
#2342 - Fix an installation failure when install.cache = true. #2355
- Fix a resolution issue that extra dependencies are not resolved when the bare dependency has more specific version constraint. #2369
- Set up a chatbot powered by LLM on the doc page. #2365
- Allow binding packages to specific sources with
include_packages
andexclude_packages
config undertool.pdm.source
table. #1645 - Show warnings when a package is rejected by the resolve because of uncovered
requires-python
range. And provide a way to ignore them per-package. #2304 - Add
-q/--quiet
option to suppress some warnings printed to the console. This option is mutually exclusive with-v/--verbose
. #2304 - Introduce a new
--strategy/-S
option forlock
command, to specify one or more strategy flags for resolving dependencies.--static-urls
and--no-cross-platform
are deprecated at the same time. #2310 - Add lock option to resolve direct dependencies to the minimal versions available. #2310
- Report the progress of download and unpacking when installing packages. #2328
- Change the venv backend clean function
pdm.cli.commands.venv.backend.Backend._ensure_clean
to empty the.venv
folder instead of deleting it. #2282 - Fix a bug that dependency groups from Poetry 1.2+ do not migrate properly to PDM. #2285
- Fix a bug that build requirements are installed into wrong location when using
--venv
option. #2314 - Fix a bug that global repository setting results in TypeError . #2330
- Fix a credentials error when working with two indices on the same host #2333
- Officially supports python3.12 now. #2301
- Revert the changes to the behavior of installing self, introduced in #2162.
Self package won't be installed when
--no-default
is requested. #2230 - Reject the candidate if it contains invalid metadata, to avoid a crash in the process of resolution. #2261
- Clarify what
--no-isolated
does. #2071
- Fix an issue that
--no-lock
option doesn't work as expected. Also support--no-lock
option foradd
,remove
andupdate
commands. #2245
- Use
findpython
to find pythons with the spec given by the user. #2225 - Use UTF-8 to read pyvenv.cfg. #2227
- On Windows, try looking for the
virtualenv
python.exe
binary underbin/
as well asScripts/
and thevirtualenv
/conda
root. #2236 - Write relocatable dependency URLs with
${PROJECT_ROOT}
variable in the lockfile. #2240
- Support convert setup.cfg without existing setup.py. #2222
pdm run
should only find local file if the command starts with./
. #2221
- Add an
--overwrite
option topdm init
to overwrite existing files(default False). #2163 - Support passing filter patterns as positional arguments to
pdm list
command. Add--tree
as an alias and preferred name of--graph
option. #2165 - Switch to truststore by default. #2195
- Consider packages as installed if the venv includes them from the system-site-packages. #2216
- Allow
pdm run
to run a script with the relative or absolute path. #2217
- Fix a bug that removing dev dependency uninstalls the project as well. #2150
- Fix a bug that
@ file://
dependencies can not be updated. #2169 - Fix a bug that dependencies requested out of the range of
requires-python
cause PDM to crash. #2175 - Fix the compatibility issue with copier 8.0+. #2177
- Makes
comarable_version("1.2.3+local1") == Version("1.2.3")
. #2182 - Default behavior for pdm venv activate when shell detection fails. #2187
- Handle parsing errors when converting from poetry-style metadata. #2203
- Don't copy .pyc files from the template directory. #2213
- Remove the legacy build backend
pdm-pep517
. #2167
- Allow setting username and password in URL for publish command #2140
- Use UTF-8 encoding when writing
sitecustomize.py
. #2139
- Add
keyring
,copier
,cookiecutter
,template
,truststore
dependency groups. #2109 - Ignore wheels for python versions not in range. #2113
- Read default value from env var
PDM_PROJECT
for-p/--project
option. #2126
- Fix the comparison of the candidate keys in the lockfile. #2120
- Don't update
pyproject.toml
if both--unconstrained
and--dry-run
are passed topdm update
. #2125 - Overwrite the
build-system
table when importing from other package manager. #2126 - Skip sources with empty URL when merging sources. #2130
- Fix the invalid requirement converted from poetry metadata. #2133
- Update
unearth
to 0.10.0 #2113
- Support target python with other architectures. #2078
- Display the help information when running pdm directly. #2081
- Allow to change the python providers from the config. Support finding pythons from Rye installation location with the new findpython. #2099
- Option to save static URLs in the lockfile. By default only filenames are saved. #2101
- Fix a bug that egg-info directories are not removed completely, leading to incomplete distribution. #2027
- Skip distributions with wrong package meta information and duplicate path. #2075
- Avoid mistakenly passing command-line arguments while testing. #2083
- Fix a bug that lockfile groups are overwritten when running locking in a preceding step of
pdm install
. #2086 - Tolerate and actually ignore the local versions in version specifiers. #2102
- Fix a bug that shared cache cannot support overlapping namespace packages. #2105
- Add notes about using custom venv path. #2096
- Fix a bug that dependencies can't be updated when the table is separated by another table. #2056
- Fix a bug that
*_lock
hooks are always emitted with dry_run=True inpdm update
. #2060 - Fix a bug that
pdm install --plugins
can't install self. #2062 - Fix a cache collision between named requirements and url requirements. #2064
- Add support for
cookiecutter
andcopier
as project generator. #2059
pdm init
now accepts a template argument to initialize project from a built-in or Git template. #2053- Replace the
DeprecationWarning
withFutureWarning
for better exposure. #2012 - Serve
install-pdm.py
and its checksum file on the docs site. #2026 - Add new option
--edit/-e
topdm config
to edit the config file in default editor. #2028 - Add
--project
option topdm venv
to support another path as the project root. #2042 - Add support for using
truststore
as the SSL backend. This only works on Python 3.10 or newer. #2049
- Fix the breaking change by adding the functions back to the old location with deprecation warnings. #2013
- Fix the duplicate entries in the output of
pdm self list
. #2018 - Disable hashes caching for local files. #2019
- Populate the
url
field when converting requirements from a Pipfile-style file requirement. #2032 - Fix a bug that empty source tables in configuration files causes errors when running pdm commands. #2034
- Fix a resolution conflict caused by requested yanked version also in other transitive dependencies. #2038
- Fix a bug that binary executables are corrupted when replacing shebangs. #2045
- Do not normalize the package name when uploading to PyPI. #2057
No significant changes.
- Fix the warning of extras not found due to extra names not normalized. #2006
- Pop up a warning when the deprecated
parser
argument is passed toBaseCommand.__init__()
method. #2007 - Fix a bug that merging settings with AoTs causing a failure. #2011
- Add option to expand environment variables when exporting requirements. #1997
- Case-insensitive sorting in
pdm list
. #1973 - Make a compatible cache reader to read the old cache files. #1981
- Fix a bug that
pdm init -n
doesn't respect the--python
option. #1984 - Do not use the deprecated nested argument groups. #1988
- Fix an error parsing
setup.py
if it prints something to stdout. #1995 - Exclude yanked versions when running
install-pdm.py
. #1996
- Switch HTTP data cache to use a split body setup, where the actual body contents are not written to disk unless changed. Previously, any changed headers would write the whole body to disk again. #1971
- Show the specific install commands for different installations when checking update. This was removed before. #1972
- PDM ignores env vars
PDM_PYPI_USERNAME
andPDM_PYPI_PASSWORD
when there are no defaults in config. #1961 - Guess the project name from VCS url if it is missing when importing from requirements.txt. #1970
- Correctly read the config from environment variables. #1977
- When keyring is available, either by importing or by CLI, the credentials of repositories and PyPI indexes will be saved into it. #1908
- Add support for reading metadata from simple index directly. #1919
- Add a configuration to specify constant command arguments for every pdm invocation. #1923
- Add ability to skip SSL verification for publish repositories via
repository.custom.verify_ssl
config option as well as new command line argument ofpublish
command. #1928 - Use lazy import to reduce the startup time of the CLI. #1929
- Add the local plugin scripts to
PATH
env var. #1944
- Don't use install cache when installing build requirements to avoid race condition. #1869
- Fix a number of
ResourceWarning
s when running the test suite with warnings enabled. #1915 - Fix a bug that dev-dependencies group gets updated with the optional dependencies, causing the hash mismatch. #1916
- Fix format conversion error from Poetry when
tool.poetry.build
doesn't exist. #1935 - Add timeout when fetching .gitignore from GitHub. #1937
- Keep the variables in the URL credentials when exporting. #1939
- Convert to boolean when setting verify_ssl for custom indexes. #1945
pdm import
clobbersbuild-system.requires
value inpyproject.toml
. #1948
- Update publish.md to use run instead of runs to match GitHub Actions steps documentation #1936
- Update advanced.md to use
pdm sync
instead ofpdm install --no-lock
. #1947
- Fix the error when publishing using trusted publisher. #1868
- Fix a bug that
PATH
env var isn't set correctly when running under non-isolation mode. #1904
- Install project-level plugins from project config, with
tool.pdm.plugins
setting. #1461 - Added a
--json
flag to bothrun
andinfo
command allowing to dump scripts and infos as JSON. #1854 - Consider tasks with a name starting by an underscore (
_
) as internal tasks and hide them from the listing. #1855 - When running
pdm init -n
(non-interactive mode), a venv will be created by default. Previously, the selected Python will be used under PEP 582 mode. #1862 - Support Trusted Publisher. #1868
- Add an ephemeral wheel cache in process for wheels built from non-static revision sources. #1885
- Allow self-referencing groups in dev-dependencies. #1890
- Add an option
--no-cross-platform
topdm lock
to create a non-cross-platform lockfile. #1898
- Fix brackets in
--venv
option descriptions in zsh completion script. #1847 - The resolver doesn't take into account of the requirements for both bare
package
andpackage[extra]
. #1851 - Default pypi source does not use configured pypi.password, but "" instead. #1856
- Detect Python interpreters under the root of virtual environments. #1866
- Fix a race condition when the builder is creating a new build directory. #1869
- Raise
FileNotFoundError
if the requirement path is not found. #1875 - Fix a bug that the self package isn't uninstallable. #1901
- Fix a double reading issue due to cachecontrol not compatible with urllib3 2.0. #1894
No significant changes.
- Pin the urllib3 to
<2.0
to avoid incompatibility withcachecontrol
. #1886
- Fix the wrong argument validation for update command, where packages given with group option should be allowed. #1836
- Update
markdown-exec
to1.5.0
for rendering TOC in CLI reference page. #1836 - Remove advertizing of PEP-582 from the feature highlights. Improve the anchor links for CLI reference. #1840
- Regression(#1710): Don't crash when trying to update the shebang in a binary script #1827
- Rename the env var
PDM_USE_VENV
asPDM_IN_VENV
for--venv
flag as it mistakenly override another existing env var. #1829
- Fix a bug that
pdm --pep582
raises an argument error. #1823
- When
resolution.respect-source-order
is enabled, sources are lazily evaluated. This means that if a match is found on the first source, the remaining sources will not be requested. #1509 - New option
--venv <venv>
to run a command in the virtual environment with the given name. #1705 - Allow to prefer binary distributions when locking and installing packages, via
PDM_PREFER_BINARY
environment variable. #1817
- Do not validate selected groups against the locked grouped when running
pdm lock
. #1796 - Avoid duplicate .pdm-python in .gitignore. #1800
- Fix a backwards compatibility issue by adding back the
environment.is_global
property. #1814 - Fix a resolution conflict when a relative path requirement resolves to the same path as another file requirement with absolute path. #1822
- Fix an error when running
pdm init -p <dir>
if the target directory is not created yet. #1822
- Switch the default build backend to
pdm-backend
. #1684 - Only lock selected groups into the lockfile. Modify other commands to honor the groups included in the lockfile. #1704
- Move the project python path to its own file, and rename the project config file as
pdm.toml
which can be committed to the VCS. #1742 - Refactor the environment package.
Environment
is renamed toPythonLocalEnvironment
andGlobalEnvironment
is renamed toPythonEnvironment
. Movepdm.models.environment
module topdm.environments
package. #1791
- Add option to fail on the first install error. #1614
- Upgrade
unearth
to 0.8 to allow calling keyring from CLI. #1653 - Merge the index parameters from different configuration files. #1667
- Add new options to
venv
command to show the path or the python interpreter for a managed venv. #1680 - Write the groups of resolved dependencies to the metadata table in lockfile. #1692
- Introduce
--lib
option toinit
command to create a library project without prompting. #1708 - New command:
pdm fix
to migrate to the new PDM features. Add a hint when invoking PDM commands. #1743 - Include
.pdm-python
in project root.gitignore
when runningpdm init
. #1749 - Allow to ignore the activated venv with
PDM_IGNORE_ACTIVE_VENV
env var. #1782 - Add a signal
pre_invoke
to emit before any command is invoked. #1792
- Fix a bug that install warning prints to terminal under non-verbose mode. #1635
- Fix the random failure of
pdm export
due to non-deterministic order of group iteration. #1786 - Show the actual version when running
pdm show --version
#1788
- Restructure the documentation. #1687
- Update
installer
to0.7.0
and emit a warning if the RECORD validation fails. #1784
- Fix a bug of synchronization of not considering the revision of VCS requirement in comparison. #1762
- Improve the error message when parsing an invalid requirement string. #1765
- Fix a bug that
pdm export
output doesn't include the extras of the dependencies. #1767
- Fix the resolution order to prefer the packages causing the conflict. This can make the resolution reach a solution faster. #1752
- Fix a bug that embedded credentials in URL are not respected for the default source. #1757
- Abort if lockfile isn't generated when executing
pdm export
. #1730 - Ignore
venv.prompt
configuration when usingconda
as the backend. #1734 - Fix a bug of finding local packages in the parent folder when it exists in the current folder. #1736
- Ensure UTF-8 encoding when generating README.md. #1739
- Fix a bug of show command not showing metadata of the current project. #1740
- Replace
.
with-
when normalizing package name. #1745
- Support using
pdm venv activate
without specifyingenv_name
to activate in project venv created by conda #1735
- Fix a resolution failure when the project has cascading relative path dependencies. #1702
- Don't crash when trying to update the shebang in a binary script. #1709
- Handle the legacy specifiers that is unable to parse with packaging>22.0. #1719
- Fix the setup.py parser to ignore the expressions unable to parse as a string. This is safe for initializing a requirement. #1720
- Fix a bug converting from flit metadata when the source file can't be found. #1726
- Add config example for Emacs using eglot + pyright #1721
- Fix a bug that built wheels are prioritized over source distributions with higher version number. #1698
- Add more intuitive error message when the
requires-python
doesn't work for all dependencies. #1690
- Prefer built distributions when finding packages for metadata extraction. #1535
- Allow creating venv in project forcely if it already exists. #1666
- Always ignore remembered selection in pdm init. #1672
- Fix the fallback build backend to
pdm-pep517
instead ofsetuptools
. #1658 - Eliminate the deprecation warnings from
importlib.resources
. #1660 - Don't crash when failed to get the latest version of PDM for checking update. #1663
- Fix the priorities of importable formats to make sure the correct format is used. #1669
- Import editable requirements into dev dependencies. #1674
- Skip some tests on packaging < 22. #1649
- Fix a bug that sources from the project config are not loaded. #1651
- Set VIRTUAL_ENV in
pdm run
. #1652
- Add proper display for the extra pypi sources in
pdm config
. #1622 - Support running python scripts without prefixing with
python
. #1626
- Ignore the python requirement for overriden packages. #1575
- Fix the wildcards in requirement specifiers to make it pass the new parser of
packaging>=22
. #1619 - Add the missing
subdirectory
attribute to the lockfile entry. #1630 - Fix a bug that VCS locks don't update when the rev part changes. #1640
- Redirect the spinner output to stderr. #1646
- Ensure the destination directory exists before building the packages. #1647
- Support multiple PyPI indexes in the configuration. They will be tried after the sources in
pyproject.toml
. #1310 - Accept yanked versions when the requirement version is pinned. #1575
- Expose PDM fixtures as a
pytest
pluginpdm.pytest
for plugin developers. #1594 - Show message in the status when fetching package hashes. Fetch hashes from the JSON API response as well. #1609
- Mark
pdm.lock
with an@generated
comment. #1611
- Exclude site-packages for symlinks of the python interpreter as well. #1598
- Fix a bug that error output can't be decoded correctly on Windows. #1602
- Detect PDM inside a zipapp and disable some functions. #1578
- Don't write
sitecustomize
to the home directory if it exists in the filesystem(not packed in a zipapp). #1572 - Fix a bug that a directory is incorrectly marked as to be deleted when it contains symlinks. #1580
- Allow relative paths in
build-system.requires
, sincebuild
andhatch
both support it. Be aware it is not allowed in the standard. #1560 - Strip the local part when building a specifier for comparison with the package version. This is not permitted by PEP 508 as implemented by
packaging 22.0
. #1562 - Update the version for check_update after self update #1563
- Replace the
__file__
usages withimportlib.resources
, to make PDM usable in a zipapp. #1567 - Fix the matching problem of packages in the lockfile. #1569
- Exclude
package==22.0
from the dependencies to avoid some breakages to the end users. #1568
- Fix an installation failure when the RECORD file contains commas in the file path. #1010
- Fallback to
pdm.pep517
as the metadata transformer for unknown custom build backends. #1546 - Fix a bug that Ctrl + C kills the python interactive session instead of clearing the current line. #1547
- Fix a bug with egg segment for local dependency #1552
- Update
installer
to0.6.0
. #1550 - Update minimum version of
unearth
to0.6.3
and test againstpackaging==22.0
. #1555
- Fix a resolution loop issue when the current project depends on itself and it uses the dynamic version from SCM. #1541
- Don't give duplicate results when specifying a relative path for
pdm use
. #1542
- Beautify the error message of build errors. Default to showing the last 10 lines of the build output. #1491
- Rename the
tool.pdm.overrides
table totool.pdm.resolution.overrides
. The old name is deprecated at the same time. #1503 - Add backend selection and
--backend
option topdm init
command, users can choose a favorite backend fromsetuptools
,flit
,hatchling
andpdm-pep517
(default), since they all support PEP 621 standards. #1504 - Allows specifying the insertion position of user provided arguments in scripts with the
{args[:default]}
placeholder. #1507
- The local package is now treated specially during installation and locking. This means it will no longer be included in the lockfile, and should never be installed twice even when using nested extras. This will ensure the lockdown stays relevant when the version changes. #1481
- Fix the version diff algorithm of installed packages to consider local versions as compatible. #1497
- Fix the confusing message when detecting a Python interpreter under
python.use_venv=False
#1508 - Fix the test failure with the latest
findpython
installed. #1516 - Fix the module missing error of pywin32 in a virtualenv with
install.cache
set totrue
and caching method ispth
. #863
- Drop the dependency
pdm-pep517
. #1504 - Replace
pep517
withpyproject-hooks
because of the rename. #1528
- Remove the support for exporting the project file to a
setup.py
format, users are encouraged to migrate to the PEP 621 metadata. #1504
- Make
sitecustomize.py
respect thePDM_PROJECT_MAX_DEPTH
environment variable #1471
- Fix the comparison of
python_version
in the environment marker. When the version contains only one digit, the result was incorrect. #1484
- Add
venv.prompt
configuration to allow customizing prompt when a virtualenv is activated #1332 - Allow the use of custom CA certificates per publish repository using
ca_certs
or from the command line viapdm publish --ca-certs <path> ...
. #1392 - Rename the
plugin
command toself
, and it can not only manage plugins but also all dependencies. Add a subcommandself update
to update PDM itself. #1406 - Allow
pdm init
to receive a Python path or version via--python
option. #1412 - Add a default value for
requires-python
when importing from other formats. #1426 - Use
pdm
instead ofpip
to resolve and install build requirements. So that PDM configurations can control the process. #1429 - Customizable color theme via
pdm config
command. #1450 - A new
pdm lock --check
flag to validate whether the lock is up to date. #1459 - Add both option and config item to ship
pip
when creating a new venv. #1463 - Issue warning and skip the requirement if it has the same name as the current project. #1466
- Enhance the
pdm list
command with new formats:--csv,--markdown
and add options--fields,--sort
to control the output contents. Users can also includelicenses
in the--fields
option to display the package licenses. #1469 - A new pre-commit hook to run
pdm lock --check
in pre-commit. #1471
- Fix the issue that relative paths don't work well with
--project
argument. #1220 - It is now possible to refer to a package from outside the project with relative paths in dependencies. #1381
- Ensure
pypi.[ca,client]_cert[s]
config items are passed to distribution builder install steps to allow for custom PyPI index sources with self signed certificates. #1396 - Fix a crash issue when depending on editable packages with extras. #1401
- Do not save the python path when using non-interactive mode in
pdm init
. #1410 - Fix the matching of
python*
command inpdm run
. #1414 - Show the Python path, instead of the real executable, in the Python selection menu. #1418
- Fix the HTTP client of package publishment to prompt for password and read PDM configurations correctly. #1430
- Ignore the unknown fields when constructing a requirement object. #1445
- Fix a bug of unrelated candidates being fetched if the requirement is matching wildcard versions(e.g.
==1.*
). #1465 - Use
importlib-metadata
from PyPI for Python < 3.10. #1467
- Clarify the difference between a library and an application. Update the guide of multi-stage docker build. #1371
- Remove all top-level imports, users should import from the submodules instead. #1404
- Remove the usages of old config names deprecated since 2.0. #1422
- Remove the deprecated color functions, use rich's console markup instead. #1452
- Ensure
pypi.[ca,client]_cert[s]
config items are passed to distribution builder install steps to allow for custom PyPI index sources with self signed certificates. #1396 - Fix a crash issue when depending on editable packages with extras. #1401
- Do not save the python path when using non-interactive mode in
pdm init
. #1410 - Restrict importlib-metadata (<5.0.0) for Python <3.8 #1411
- Fix a lock failure when depending on self with URL requirements. #1347
- Ensure list to concatenate args for composite scripts. #1359
- Fix an error in
pdm lock --refresh
if some packages has URLs. #1361 - Fix unnecessary package downloads and VCS clones for certain commands. #1370
- Fix a conversion error when converting a list of conditional dependencies from a Poetry format. #1383
- Adds a section to the docs on how to correctly work with PDM and version control systems. #1364
- When adding a package to (or removing from) a group, enhance the formatting of the group name in the printed message. #1329
- Fix a bug of missing hashes for packages with
file://
links the first time they are added. #1325 - Ignore invalid values of
data-requires-python
when parsing package links. #1334 - Leave an incomplete project metadata if PDM fails to parse the project files, but emit a warning. #1337
- Fix the bug that
editables
package isn't installed for self package. #1344 - Fix a decoding error for non-ASCII characters in package description when publishing it. #1345
- Clarify documentation explaining
setup-script
,run-setuptools
, andis-purelib
. #1327
- Fix a bug that dependencies from different versions of the same package override each other. #1307
- Forward SIGTERM to child processes in
pdm run
. #1312 - Fix errors when running on FIPS 140-2 enabled systems using Python 3.9 and newer. #1313
- Fix the build failure when the subprocess outputs with non-UTF8 characters. #1319
- Delay the trigger of
post_lock
foradd
andupdate
operations, to ensure thepyproject.toml
is updated before the hook is run. #1320
- Add a env_file.override option that allows the user to specify that the env_file should override any existing environment variables. This is not the default as the environment the code runs it should take precedence. #1299
- Fix a bug that unnamed requirements can't override the old ones in either
add
orupdate
command. #1287 - Support mutual TLS to private repositories via pypi.client_cert and pypi.client_key config options. #1290
- Set a minimum version for the
packaging
dependency to ensure thatpackaging.utils.parse_wheel_filename
is available. #1293 - Fix a bug that checking for PDM update creates a venv. #1301
- Prefer compatible packages when fetching metadata. #1302
- Allow the use of custom CA certificates using the
pypi.ca_certs
config entry. #1240 - Add
pdm export
to available pre-commit hooks. #1279
- Skip incompatible requirements when installing build dependencies. #1264
- Fix a crash when pdm tries to publish a package with non-ASCII characters in the metadata. #1270
- Try to read the lock file even if the lock version is incompatible. #1273
- For packages that are only available as source distribution, the
summary
field inpdm.lock
contains thedescription
from the package'spyproject.toml
. #1274 - Do not crash when calling
pdm show
for a package that is only available as source distribution. #1276 - Fix a bug that completion scripts are interpreted as rich markups. #1283
- Remove the dependency of
pip
. #1268
- Deprecate the top-level imports from
pdm
module, it will be removed in the future. #1282
- Support Conda environments when detecting the project environment. #1253
- Fix the interpreter resolution to first try
python
executable in thePATH
. #1255 - Stabilize sorting of URLs in
metadata.files
inpdm.lock
. #1256 - Don't expand credentials in the file URLs in the
[metada.files]
table of the lock file. #1259
env_file
variables no longer override existing environment variables. #1235- Support referencing other optional groups in optional-dependencies with
<this_package_name>[group1, group2]
#1241
- Respect
requires-python
when creating the default venv. #1237
- Write lockfile before calling 'post_lock' hook #1224
- Suppress errors when cache dir isn't accessible. #1226
- Don't save python path for venv commands. #1230
- Fix a bug that the running env overrides the PEP 582
PYTHONPATH
. #1211 - Add
pwsh
as an alias ofpowershell
for shell completion. #1216 - Fixed a bug with
zsh
completion regarding--pep582
flag. #1218 - Fix a bug of requirement checking under non-isolated mode. #1219
- Fix a bug when removing packages, TOML document might become invalid. #1221
- Store file URLs instead of filenames in the lock file, bump lock version to
4.0
. #1203
- Read site-wide configuration, which serves as the lowest-priority layer. This layer will be read-only in the CLI. #1200
- Get package links from the urls stored in the lock file. #1204
- Fix a bug that the host pip(installed with pdm) may not be compatible with the project python. #1196
- Update
unearth
to fix a bug that install links with weak hashes are skipped. This often happens on self-hosted PyPI servers. #1202
- Integrate
pdm venv
commands into the main program. Make PEP 582 an opt-in feature. #1162 - Add config
global_project.fallback_verbose
defaulting toTrue
. When set toFalse
disables messageProject is not found, fallback to the global project
#1188 - Add
--only-keep
option topdm sync
to keep only selected packages. Originally requested at #398. #1191
- Fix a bug that requirement extras and underlying are resolved to the different version #1173
- Update
unearth
to0.4.1
to skip the wheels with invalid version parts. #1178 - Fix reading
PDM_RESOLVE_MAX_ROUNDS
environment variable (was spelled…ROUDNS
before). #1180 - Deduplicate the list of found Python versions. #1182
- Use the normal stream handler for logging, to fix some display issues under non-tty environments. #1184
- Remove the useless
--no-clean
option frompdm sync
command. #1191
- Editable dependencies in the
[project]
table is not allowed, according to PEP 621. They are however still allowed in the[tool.pdm.dev-dependencies]
table. PDM will emit a warning when it finds editable dependencies in the[project]
table, or will abort when you try to add them into the[project]
table via CLI. #1083 - Now the paths to the global configurations and global project are calculated according to platform standards. #1161
- Add support for importing from a
setup.py
project. #1062 - Switch the UI backend to
rich
. #1091 - Improved the terminal UI and logging. Disable live progress under verbose mode. The logger levels can be controlled by the
-v
option. #1096 - Use
unearth
to replacepip
'sPackageFinder
and related data models. PDM no longer relies onpip
internals, which are unstable across updates. #1096 - Lazily load the candidates returned by
find_matches()
to speed up the resolution. #1098 - Add a new command
publish
to PDM since it is required for so many people and it will make the workflow easier. #1107 - Add a
composite
script kind allowing to run multiple defined scripts in a single command as well as reusing scripts but overridingenv
orenv_file
. #1117 - Add a new execution option
--skip
to opt-out some scripts and hooks from any execution (both scripts and PDM commands). #1127 - Add the
pre/post_publish
,pre/post_run
andpre/post_script
hooks as well as an extensive lifecycle and hooks documentation. #1147 - Shorter scripts listing, especially for multilines and composite scripts. #1151
- Build configurations have been moved to
[tool.pdm.build]
, according topdm-pep517 1.0.0
. At the same time, warnings will be shown against old usages. #1153 - Improve the lock speed by parallelizing the hash fetching. #1154
- Retrieve the candidate metadata by parsing the
pyproject.toml
rather than building it. #1156 - Update the format converters to support the new
[tool.pdm.build]
table. #1157 - Scripts are now available as root command if they don't conflict with any builtin or plugin-contributed command. #1159
- Add a
post_use
hook triggered after successfully switching Python version. #1163 - Add project configuration
respect-source-order
under[tool.pdm.resolution]
to respect the source order in thepyproject.toml
file. Packages will be returned by source earlier in the order or later ones if not found. #593
- Fix a bug that candidates with local part in the version can't be found and installed correctly. #1093
- Prefer
tomllib
on Python 3.11 #1072 - Drop the vendored libraries
click
,halo
,colorama
andlog_symbols
. PDM has no vendors now. #1091 - Update dependency version
pdm-pep517
to1.0.0
. #1153
- PDM legacy metadata format(from
pdm 0.x
) is no longer supported. #1157
- Provide a
tox.ini
file for easier local testing against all Python versions. #1160
- Revert #1106: Do not use
venv
scheme forprefix
kind install scheme. #1158 - Fix a bug when updating a package with extra requirements, the package version doesn't get updated correctly. #1166
- Add additional installation option via asdf-pdm.
Add
skip-add-to-path
option to installer in order to prevent changingPATH
. Replacebin
variable name withbin_dir
. #1145
- Fix a defect in the resolution preferences that causes an infinite resolution loop. #1119
- Update the poetry importer to support the new
[tool.poetry.build]
config table. #1131
- Add support for multiple versions of documentations. #1126
- Fix bug where SIGINT is sent to the main
pdm
process and not to the process actually being run. #1095 - Fix a bug due to the build backend fallback, which causes different versions of the same requirement to exist in the build environment, making the building unstable depending on which version being used. #1099
- Don't include the
version
in the cache key of the locked candidates if they are from a URL requirement. #1099 - Fix a bug where dependencies with
requires-python
pre-release versions causedpdm update
to fail withInvalidPyVersion
. #1111
- Fix a bug that dependencies are missing from the dep graph when they are depended by a requirement with extras. #1097
- Give a default version if the version is dynamic in
setup.cfg
orsetup.py
. #1101 - Fix a bug that the hashes for file URLs are not included in the lock file. #1103
- Fix a bug that package versions are updated even when they are excluded by
pdm update
command. #1104 - Prefer
venv
install scheme when available. This scheme is more stable thanposix_prefix
scheme since the latter is often patched by distributions. #1106
- Move the test artifacts to a submodule. It will make it easier to package this project. #1084
- Allow specifying lockfile other than
pdm.lock
by--lockfile
option orPDM_LOCKFILE
env var. #1038
- Replace the editable entry in
pyproject.toml
when runningpdm add --no-editable <package>
. #1050 - Ensure the pip module inside venv in installation script. #1053
- Fix the py2 compatibility issue in the in-process
get_sysconfig_path.py
script. #1056 - Fix a bug that file paths in URLs are not correctly unquoted. #1073
- Fix a bug on Python 3.11 that overriding an existing command from plugins raises an error. #1075
- Replace the
${PROJECT_ROOT}
variable in the result ofexport
command. #1079
- Show a warning if Python 2 interpreter is being used and remove the support on 2.0. #1082
- Ask for description when doing
pdm init
and create default README for libraries. #1041
- Fix a bug of missing subdirectory fragment when importing from a
requirements.txt
. #1036 - Fix use_cache.json with corrupted python causes
pdm use
error. #1039 - Ignore the
optional
key when converting from Poetry's dependency entries. #1042
- Clarify documentation on enabling PEP582 globally. #1033
- Editable installations won't be overridden unless
--no-editable
is passed.pdm add --no-editable
will now override theeditable
mode of the given packages. #1011 - Re-calculate the file hashes when running
pdm lock --refresh
. #1019
- Fix a bug that requirement with extras isn't resolved to the version as specified by the range. #1001
- Replace the
${PROJECT_ROOT}
in the output ofpdm list
. #1004 - Further fix the python path issue of macOS system installed Python. #1023
- Fix the install path issue on Python 3.10 installed from homebrew. #996
- Document how to install PDM inside a project with Pyprojectx. #1004
- Support
installer 0.5.x
. #1002
- Default the optional
license
field to "None". #991 - Don't create project files in
pdm search
command. #993 - Fix a bug that the env vars in source urls in exported result are not expanded. #997
- Users can change the install destination of global project to the user site(
~/.local
) withglobal_project.user_site
config. #885 - Make the path to the global project configurable. Rename the configuration
auto_global
toglobal_project.fallback
and deprecate the old name. #986
- Fix the compatibility when fetching license information in
show
command. #966 - Don't follow symlinks for the paths in the requirement strings. #976
- Use the default install scheme when installing build requirements. #983
- Fix a bug that
_.site_packages
is overridden by default option value. #985
- Update the dependency
pdm-pep517
to support PEP 639. #959
- Filter out the unmatched python versions when listing the available versions. #941
- Fix a bug displaying the available python versions. #943
- Fix a bug under non-UTF8 console encoding. #960
- Fix a bug that data files are not copied to the destination when using installation cache. #961
- Fix a bug that VCS repo name are parsed as the package name. #928
- Support prerelease versions for global projects. #932
- Fix a bug that VCS revision in the lock file isn't respected when installing. #933
- Switch from
pythonfinder
tofindpython
as the Python version finder. #930
- Fix a regression issue that prereleases can't be installed if the version specifier of the requirement doesn't imply that. #920
- Fix a bug that bad pip cache dir value breaks PDM's check update function. #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
- Fix a bug that incompatible platform-specific wheels are installed. #921
- Support
pre_*
andpost_*
scripts for task composition. Pre- and Post- scripts forinit
,build
,install
andlock
will be run if present. #789 - Support
--config/-c
option to specify another global configuration file. #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
- Support version ranges in
[tool.pdm.overrides]
table. #909 - Rename config
use_venv
topython.use_venv
; rename configfeature.install_cache
toinstall.cache
; rename configfeature.install_cache_method
toinstall.cache_method
; rename configparallel_install
toinstall.parallel
. #914
- Fix a bug that file URLs or VCS URLs don't work in
[tool.pdm.overrides]
table. #861 - Fix a bug of identifier mismatch for URL requirements without an explicit name. #901
- No
requires-python
should be produced if ANY(*
) is given. #917 - Fix a bug that
pdm.lock
gets created when--dry-run
is passed topdm add
. #918
- The default editable backend becomes
path
. #904
- Stop auto-migrating projects from PDM 0.x format. #912
- Rename
ExtrasError
toExtrasWarning
for better understanding. Improve the warning message. #892 - Extract the environment related code from
Candidate
into a new classPreparedCandidate
.Candidate
no longer holds anEnvironment
instance. #920
- Print the error and continue if a plugin fails to load. #878
- PDM now ignores configuration of uninstalled plugins. #872
- Fix the compatibility issue with
pip>=22.0
. #875
- If no command is given to
pdm run
, it will run the Python REPL. #856
- Fix the hash calculation when generating
direct_url.json
for a local pre-built wheel. #861 - PDM no longer migrates project meta silently. #867
- Pin
pip<22.0
. #874
- Reduce the number of tests that require network, and mark the rest with
network
marker. #858
- Fix a bug that cache dir isn't created. #843
- Fix a resolution error that dots in the package name are normalized to
-
unexpectedly. #853
- Remember the last selection in
use
command to save the human effort. And introduce an-i
option to ignored that remembered value. #846
- Fix a bug of uninstall crash when the package has directories in
RECORD
. #847 - Fix the
ModuleNotFoundError
during uninstall when the modules required are removed. #850
- Support setting Python path in global configuration. #842
- Lowercase the package names in the lock file make it more stable. #836
- Show the packages to be updated in dry run mode of
pdm update
even if--no-sync
is passed. #837 - Improve the robustness of update check code. #841
- Fix a bug that export result has environment markers that don't apply for all requirements. #843
- Allow changing the installation linking method by
feature.install_cache_method
config. #822
- Fix a bug that namespace packages can't be symlinked to the cache due to existing links. #820
- Make PDM generated pth files processed as early as possible. #821
- Fix a UnicodeDecodeError for subprocess logger under Windows/GBK. #823
- Don't symlink pycaches to the target place. #817
- Add
lock --refresh
to update the hash stored with the lock file without updating the pinned versions. #642 - Support resolution overriding in the
[tool.pdm.overrides]
table. #790 - Add support for signals for basic operations, now including
post_init
,pre_lock
,post_lock
,pre_install
andpost_install
. #798 - Add
install --check
to check if the lock file is up to date. #810 - Use symlinks to cache installed packages when it is supported by the file system. #814
- 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
- Add a new doc page: API reference. #802
- Switch back from
atoml
totomlkit
as the style-preserving TOML parser. The latter has supported TOML v1.0.0. #809
- Cache the latest version of PDM for one week to reduce the request frequency. #800
- Change the default version save strategy to
minimum
, without upper bounds. #787
- Fix the patching of sysconfig in PEP 582 initialization script. #796
- Fix an installation failure of the bootstrap script on macOS Catalina. #793
- Add a basic benchmarking script. #794
- Fix the resolution order to reduce the loop number to find a conflict. #781
- Patch the functions in
sysconfig
to return the PEP 582 scheme inpdm run
. #784
- Remove the upper bound of version constraints for most dependencies, except for some zero-versioned ones. #787
- Support
--pre/--prelease
option forpdm add
andpdm update
. It will allow prereleases to be pinned. #774 - Improve the error message when python is found but not meeting the python requirement. #777
- Fix a bug that
git+https
candidates cannot be resolved. #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
- Fix the install script to use a zipapp of virtualenv when it isn't installed. #780
- Move
version
from[project]
table to[tool.pdm]
table, deleteclassifiers
fromdynamic
, and warn usage about the deprecated usages. #748 - Add support for Conda environments in addition to Python virtual environments. #749
- Add support for saving only the lower bound
x >= VERSION
when adding dependencies. #752 - Improve the error message when resolution fails. #754
- Switch to self-implemented
pdm list --freeze
to fix a bug due to Pip's API change. #533 - Fix an infinite loop issue when resolving candidates with incompatible
requires-python
. #744 - Fix the python finder to support pyenv-win. #745
- Fix the ANSI color output for Windows cmd and Powershell terminals. #753
- Remove
-s/--section
option from all previously supported commands. Use-G/--group
instead. #756
- Use
importlib
to replaceimp
in thesitecustomize
module for Python 3. #574 - Fix the lib paths under non-isolated build. #740
- Exclude the dependencies with extras in the result of
pdm export
. #741
- Add a new option
-s/--site-packages
topdm run
as well as a script config item. When it is set toTrue
, site-packages from the selected interpreter will be loaded into the running environment. #733
- Now
NO_SITE_PACKAGES
isn't set inpdm run
if the executable is out of local packages. #733
- Isolate the project environment with system site packages in
pdm run
, but keep them seen when PEP 582 is enabled. #708
- Run
pip
with--isolated
when building wheels. In this way some env vars likePIP_REQUIRE_VIRTUALENV
can be ignored. #669 - Fix the install script to ensure
pip
is not DEBUNDLED. #685 - Fix a bug that when
summary
isNone
, the lockfile can't be generated. #719 ${PROJECT_ROOT}
should be written in the URL when relative path is given. #721- Fix a bug that when project table already exists,
pdm import
can't merge the settings correctly. #723
- Add
--no-sync
option toupdate
command. #684 - Support
find_links
source type. It can be specified viatype
key of[[tool.pdm.source]]
table. #694 - Add
--dry-run
option toadd
,install
andremove
commands. #698
- 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 - Include files should be installed under venv's base path. #682
- Ensure the value of
check_update
is boolean. #689
- Update the contributing guide, remove the usage of
setup_dev.py
in favor ofpip install
. #676
- Fix a bug that
requires-python
is not recognized in candidates evaluation. #657 - Fix the path order when pdm run so that executables in local packages dir are found first. #678
- Update
installer
to0.3.0
, fixing a bug that broke installation of some packages with unusual wheel files. #653 - Change
packaging
andtyping-extensions
to direct dependencies. #674
requires-python
now participates in the resolution as a dummy requirement. #658
- Fix the error of regex to find the shebang line. #656
- Support
--no-isolation
option forinstall
,lock
,update
,remove
,sync
commands. #640 - Make
project_max_depth
configurable and default to5
. #643
- Don't try
pdm-pep517
backend on Python 2.7 when installing self as editable. #640 - Fix a bug that existing shebang can't be replaced correctly. #651
- Fix the version range saving for prerelease versions. #654
- Allow to build in non-isolated environment, to enable optional speedups depending on the environment. #635
- Don't copy
*-nspkg.pth
files ininstall_cache
mode. It will still work without them. #623
- Fix the removal issue of standalone pyc files #633
- Add
-r/--reinstall
option tosync
command to force re-install the existing dependencies. #601 - Show update hint after every pdm command. #603
pdm cache clear
can clear cached installations if not needed any more. #604
- Fix the editable install script so that
setuptools
won't see the dependencies under local packages. #601 - Preserve the executable bit when installing wheels. #606
- Write PEP 610 metadata
direct_url.json
when installing wheels. #607 - Fix a bug that
*
fails to be converted asSpecifierSet
. #609
- Build editable packages are into wheels via PEP 660 build backend. Now all installations are unified into wheels. #612
- Added a new mode
--json
to the list command which outputs the dependency graph as a JSON document. #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
- Fix env vars in source URLs not being expanded in all cases. #570
- Fix the weird output of
pdm show
. #580 - Prefer
~/.pyenv/shims/python3
as the pyenv interpreter. #590 - Fix a bug that installing will download candidates that do not match the locked hashes. #596
- Added instructions to the Contributing section for creating news fragments #573
- Deprecate
-s/--section
option in favor of-G/--group
. #591
- Switch to a self-implemented version of uninstaller. #586
pdm/installers/installers.py
is renamed topdm/installers/manager.py
to be more accurate. TheInstaller
class under that file is renamed toInstallerManager
and is exposed in thepdm.core.Core
object for overriding. The newpdm/installers/installers.py
contains some installation implementations. #589- Switch from
pkg_resources.Distribution
to the implementation ofimportlib.metadata
. #592
- Accept non-canonical distribution name in the wheel's dist-info directory name. #529
- Prefer requirements with narrower version constraints or allowing prereleases to find matches. #551
- Use the underlying real executable path for writing shebangs. #553
- Fix a bug that extra markers cannot be extracted when combined with other markers with "and". #559
- Fix a bug that redacted credentials in source urls get overwritten with the plain text after locking. #561
- Use installer as the wheel installer, replacing
distlib
. #519
- Support showing individual fields by
--<field-name>
options in pdm show. When no package is given, show this project. #527 - Add
--freeze
option topdm list
command which shows the dependencies list as pip's requirements.txt format. #531
- Fix the path manipulation on Windows, now the PEP 582 path is prepended to the
PYTHONPATH
. #522 - Fix the handling of auth prompting: will try keyring in non-verbose mode. #523
- Recognize old entry point name "pdm.plugin" for backward-compatibility. #530
- Match the VCS scheme in case-insensitive manner. #537
- Use the default permission bits when writing project files. #542
- Fix the VCS url to be consistent between lock and install. #547
- Add installation instructions for Scoop. #522
- Separate the build env into two different levels for better caching. #541
- Refactor the build part into smaller functions. #543
- Extract package name from egg-info in filename when eligible. Remove the patching code of resolvelib's inner class. #441
- Support installing packages from subdiretories of VCS repository. #507
- Add an install script to bootstrap PDM quickly without help of other tools. Modify docs to recommend this installation method. #508
- Add a new subcommand
plugin
to manage pdm plugins, includingadd
,remove
andlist
commands. #510
- Don't monkeypatch the internal class of
resolvelib
any more. This makes PDM more stable across updates of sub-dependencies. #515
- Clear the type errors from mypy. #261
- Add an option
-u/--unconstrained
to support unconstraining version specifiers when adding packages. #501
- Fix the format of dependency arrays when a new value is appended. #487
- Allow missing email attribute for authors and maintainers. #492
- Fix a bug that editable install shouldn't require pyproject.toml to be valid. #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
- Fix the version sort of candidates. #506
No significant changes.
No significant changes.
- Use a new approach to determine the packages to be installed. This requires a quick resolution step before installation. #456
pdm export
no longer produces requirements file applicable for all platforms due to the new approach. #456- Add structural typing for requirements module. Refactor the requirements module for that purpose. #433
- Introduce
--no-editable
option to install non-editable versions of all packages. #443 - Introduce
--no-self
option to prevent the project itself from being installed. #444 - Add a default
.gitignore
file in the__pypackages__
directory. #446 - Check if the lock file version is compatible with PDM program before installation. #463
- Expose the project root path via
PDM_PROJECT_ROOT
env var. Change to the project root when executing scripts. #470 - Fix a bug that installation resolution doesn't respect the requirement markers from pyproject config. #480
- Changing to multiline breaks the parsing of TOML document. #462
- Fix a bug that transient dependencies of conditional requirements can't be resolved. #472
- Fix a bug that invalid wheels are rejected while they are acceptable for resolution. #473
- Fix a bug that build environment is not fully isolated with the hosted environment. #477
- Ensure the lock file is compatible before looking for the locked candidates. #484
- Fix 404 links in documentation. #472
- Migrate from
tomlkit
toatoml
as the style-preserving TOML parser and writer. #465
- Remove the warning of
--dev
flag for older versions of PDM. #444
- Add Python 3.10 beta CI job. #457
- Support passing options to the build backends via
--config-setting
. #452
- Seek for other sitecustomize.py to import. #422
- Fix an unescaped single quote in fish completion script. #423
- The hashes of a remote file candidate should be calculated from the link itself. #450
- Remove
keyring
as a dependency and guide users to install it when it is not available. #442 - Specify the minimum version of
distlib
. #447
- Add log output about found candidates and their origin. #421
- Add mypy pre-commit hook #427
- Improve type safety of
pdm.cli.actions
#428 - Fix wrong mypy configuration. #451
- Allow
pdm use
with no argument given, which will list all available pythons for pick. #409
- Inform user to enable PEP 582 for development script to work. #404
- Check the existence of pyenv shim Python interpreter before using it. #406
- Fix a bug that executing
setup.py
failed for NameError. #407 - Check before setting the PYTHONPATH environment variable for PEP582 #410
- Fix development setup error. #415
- Update pip to 21.1 and fix compatibility issues. #412
- Make func translate_sections pure to avoid exporting requirements in random order. #401
- Expand the variables in install requirements' attributes for build. #402
- Include dev dependencies by default for
install
andsync
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
- Enquote executable path to ensure generating valid scripts. #387
- Consider hashes when fetching artifact link for build. #389
- Considier the sources settings when building. #399
- New pdm setting
source-includes
to mark files to be included only in sdist builds. #390
- Update
pdm-pep517
to0.7.0
; updateresolvelib
to0.7.0
. #390
- Deprecate the usage of
-d/--dev
option ininstall
andsync
commands. #391
- Improve the env builder to run in isolated mode. #384
- Remove the incompatible code from the files that will be run in-process. #375
- Get the correct Python ABI tag of selected interpreter #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.
- Upgrade
resolvelib
to0.6.0
. #381
- refactor
pdm.models.readers
to improve typing support #321 - Add a basic integration test for cross-python check. #377
- Refactor the
project.python_executable
toproject.python
that contains all info of the interpreter. #382 - Continue refactoring Python info to extract to its own module. #383
- Refactor the creation of project.
- Add hand-written zsh completion script. #188
- Add a special value
:all
given to-s/--section
to refer to all sections under the same species. Adjustadd
,sync
,install
,remove
andupdate
to support the newdev-dependencies
groups. Old behavior will be kept the same. #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 intodev
group underdev-dependencies
. #351- Move
dev-dependencies
,includes
,excludes
andpackage-dir
out from[project]
table to[tool.pdm]
table. The migration will be done automatically if old format is detected. #351 - Throws an error with meaningful message when no candidate is found for one requirement. #357
- Support
--dry-run
option forupdate
command to display packages that need update, install or removal. Add--top
option to limit to top level packages only. #358 - Full-featured completion scripts for Zsh and Powershell - section selection, package name autocompletion and so on. Windows is a first-class citizen! #367
- Support non-interactive
init
command via-n/--non-interactive
option. No question will be asked in this mode. #368 - Show project packages path(PEP 582) in the output of
pdm info
, also add an option--packages
to show that value only. #372
- Fix a bug that pure python libraries are not loaded to construct the WorkingSet. #346
- Don't write
<script>-X.Y
variant to the bin folder. #365 - Python is now run in isolated mode via subprocess to avoid accidentally importing user packages. #369
- Don't overwrite existing dependencies when importing from requirements.txt. #370
- Add instructions of how to integrate PDM with Emacs, contributed by @linw1995. #372
- Remove the support of project path following
-g/--global
that was deprecated in1.4.0
. One should use-g -p <project_path>
for that purpose. #361
- Add test coverage to PDM. #109
- Add type annotations into untyped functions to start using mypy. #354
- Refactor the format converter code to be more explicit. #360
- Skip the first prompt of
pdm init
#352
- Fix a test failure when using homebrew installed python. #348
- Get revision from the VCS URL if source code isn't downloaded to local. #349
- Update dependency
pdm-pep517
to0.6.1
. #353
- Emit warning if version or description can't be retrieved when importing from flit metadata. #342
- Add
type
argument topdm cache clear
and improve its UI. #343 - Always re-install the editable packages when syncing the working set. This can help tracking the latest change of
entry-points
. #344
- Make installer quit early if a wheel isn't able to build. #338
- ignore type checking in
models.project_info.ProjectInfo
, which indexesdistlib.metadata._data
#335
- Change the group name of entry points from
pdm.plugins
topdm
. Export some useful objects and models for shorter import path. #318 - Field
cmd
intools.pdm.scripts
configuration items now allows specifying an argument array instead of a string. - Refactor: Remove the reference of
stream
singleton, improve the UI related code. #320 - Support dependencies managed by poetry and flit being installed as editable packages. #324
- Refactor: Extract the logic of finding interpreters to method for the sake of subclass overriding. #326
- Complete the
cache
command, addlist
,remove
andinfo
subcommands. #329 - Refactor: Unify the code about selecting interpreter to reduce the duplication. #331
- Retrieve the version and description of a flit project by parsing the AST of the main file. #333
- Fix a parsing error when non-ascii characters exist in
pyproject.toml
. #308 - Fix a bug that non-editable VCS candidates can't satisfy their requirements once locked in the lock file. #314
- Fix a bug of import-on-init that fails when requirements.txt is detected. #328
- Refactor the code, extract the version related logic from
specifiers.py
to a separated module. #303
- Fix a bug that get_dependencies() returns error when the
setup.py
has nointall_requires
key. #299 - Pin the VCS revision for non-editable VCS candidates in the lock file. #305
- Fix a bug that editable build hits the cached wheel unexpectedly. #307
- replace 'typing comments' with type annotations throughout #298
- Support importing dependencies from requirements.txt to dev-dependencies or sections. #291
- Fallback to static parsing when building was failed to find the dependencies of a candidate. #293
- Fix a bug that
pdm init
fails whenpyproject.toml
exists but has no[project]
section. #295
- Document about how to use PDM with Nox. #281
- When
-I/--ignore-python
passed orPDM_IGNORE_SAVED_PYTHON=1
, ignore the interpreter set in.pdm.toml
and don't save to it afterwards. #283 - A new option
-p/--project
is introduced to specify another path for the project base. It can also be combined with-g/--global
option. The latter is changed to a flag only option that does not accept values. #286 - Support
-f setuppy
forpdm export
to export the metadata as setup.py #289
- Fix a bug that editable local package requirements cannot be parsed rightly. #285
- Change the priority of metadata files to parse so that PEP 621 metadata will be parsed first. #288
- Add examples of how to integrate with CI pipelines (and tox). #281
- added documentation on a task provider for vscode #280
- Ignore the python requires constraints when fetching the link from the PyPI index.
- Fix the requirement string of a VCS requirement to comply with PEP 508. #275
- Fix a bug that editable packages with
src
directory can't be uninstalled correctly. #277 - Fix a bug that editable package doesn't override the non-editable version in the working set. #278
- Abort and tell user the selected section following
pdm sync
orpdm install
is not present in the error message. #274
- Fix a bug that candidates' sections cannot be retrieved rightly when circular dependencies exist. #270
- Don't pass the help argument into the run script method. #272
- Use the absolute path when importing from a Poetry pyproject.toml. #262
- Fix a bug that old toml table head is kept when converting to PEP 621 metadata format. #263
- Postpone the evaluation of
requires-python
attribute when fetching the candidates of a package. #264
- Increase the default value of the max rounds of resolution to 1000, make it configurable. #238
- Rewrite the project's
egg-info
directory when dependencies change. So thatpdm list --graph
won't show invalid entries. #240 - When importing requirements from a
requirements.txt
file, build the package to find the name if not given in the URL. #245 - When initializing the project, prompt user for whether the project is a library, and give empty
name
andversion
if not. #253
- Fix the version validator of wheel metadata to align with the implementation of
packaging
. #130 - Preserve the
sections
value of a pinned candidate to be reused. #234 - Strip spaces in user input when prompting for the python version to use. #252
- Fix the version parsing of Python requires to allow
>
,>=
,<
,<=
to combine with star versions. #254
- Change the behavior of
--save-compatible
slightly. Now the version specifier saved is using the REAL compatible operator~=
as described in PEP 440. Before:requests<3.0.0,>=2.19.1
, After:requests~=2.19
. The new specifier acceptsrequests==2.19.0
as compatible version. #225 - Environment variable
${PROJECT_ROOT}
in the dependency specification can be expanded to refer to the project root in pyproject.toml. The environment variables will be kept as they are in the lock file. #226 - Change the dependencies of a package in the lock file to a list of PEP 508 strings #236
- Ignore user's site and
PYTHONPATH
(withpython -I
mode) when executing pip commands. #231
- Document about how to activate and use a plugin. #227
- Test project on
pip 21.0
. #235
- Allow users to hide secrets from the
pyproject.toml
.- Dynamically expand env variables in the URLs in dependencies and indexes.
- Ask whether to store the credentials provided by the user.
- A user-friendly error will show when credentials are not provided nor correct. #198
- Use a different package dir for 32-bit installation(Windows). #212
- Auto disable PEP 582 when a venv-like python is given as the interpreter path. #219
- Support specifying Python interpreter by
pdm use <path-to-python-root>
. #221
- Fix a bug of
PYTHONPATH
manipulation under Windows platform. #215
- Remove support of the old PEP 517 backend API path. #217
- Correctly build wheels for dependencies with build-requirements but without a specified build-backend #213
- Fallback to pypi.org when
/search
endpoint is not available on given index. #211
- Fix a bug that PDM fails to parse python version specifiers with more than 3 parts. #210
- Fully support of PEP 621 specification.
- Old format is deprecated at the same time.
- PDM will migrate the project file for you when old format is detected.
- Other metadata formats(
Poetry
,Pipfile
,flit
) can also be imported as PEP 621 metadata. #175
- Re-implement the
pdm search
to query the/search
HTTP endpoint. #195 - Reuse the cached built wheels to accelerate the installation. #200
- Make update strategy and save strategy configurable in pdm config. #202
- Improve the error message to give more insight on what to do when resolution fails. #207
- Set
classifiers
dynamic inpyproject.toml
template for autogeneration. #209
- Fix a bug that distributions are not removed clearly in parallel mode. #204
- Fix a bug that python specifier
is_subset()
returns incorrect result. #206
- Pin
pdm-pep517
to<0.3.0
, this is the last version to support legacy project metadata format.
- Update the lock file schema, move the file hashes to
[metadata.files]
table. #196 - Retry failed jobs when syncing packages. #197
- Drop
pip-shims
package as a dependency. #132
- Fix the cache path for CI. #199
- Provide an option to export requirements from pyproject.toml #190
- For Windows users,
pdm --pep582
can enable PEP 582 globally by manipulating the WinReg. #191
- Inject
__pypackages__
intoPATH
env var duringpdm run
. #193
- Improve the user experience of
pdm run
:- Add a special key in tool.pdm.scripts that holds configurations shared by all scripts.
- Support loading env var from a dot-env file.
- Add a flag
-s/--site-packages
to include system site-packages when running. #178
- Now PEP 582 can be enabled in the Python interpreter directly! #181
- Ensure
setuptools
is installed before invoking editable install script. #174 - Require
wheel
notwheels
for global projects #182 - Write a
sitecustomize.py
instead of a.pth
file to enable PEP 582. Thanks @Aloxaf. Updateget_package_finder()
to be compatible withpip 20.3
. #185 - Fix the help messages of commands "cache" and "remove" #187
- Support custom script shortcuts in
pyproject.toml
.- Support custom script shortcuts defined in
[tool.pdm.scripts]
section. - Add
pdm run --list/-l
to show the list of script shortcuts. #168
- Support custom script shortcuts defined in
- Patch the halo library to support parallel spinners.
- Change the looking of
pdm install
. #169
- Fix a bug that package's marker fails to propagate to its grandchildren if they have already been resolved. #170
- Fix a bug that bare version specifiers in Poetry project can't be converted correctly. #172
- Fix the build error that destination directory is not created automatically. #173
- Building editable distribution does not install
build-system.requires
anymore. #167
- Switch the PEP 517 build frontend from
build
to a home-grown version. #162 - Synchronize the output of
LogWrapper
. #164 - Fix a bug that
is_subset
andis_superset
may return wrong result when wildcard excludes overlaps with the upper bound. #165
- Change to Git style config command. #157
- Add a command to generate scripts for autocompletion, which is backed by
pycomplete
. #159
- Fix a bug that
sitecustomize.py
incorrectly gets injected into the editable console scripts. #158
- Cache the built wheels to accelerate resolution and installation process. #153
- Fix a bug that no wheel is matched when finding candidates to install. #155
- Fix a bug that installation in parallel will cause encoding initialization error on Ubuntu. #156
- Display plain text instead of spinner bar under verbose mode. #150
- Fix a bug that the result of
find_matched()
is exhausted when accessed twice. #149
- Allow users to combine several dependency sections to form an extra require. #131
- Split the PEP 517 backend to its own(battery included) package. #134
- Add a new option to list command to show reverse dependency graph. #137
- Fix a bug that spaces in path causes requirement parsing error. #138
- Fix a bug that requirement's python constraint is not respected when resolving. #141
- Update
pdm-pep517
to0.2.0
that supports reading version from SCM. #146
- Add Python 3.9 to the CI version matrix to verify. #144
- Fix a compatibility issue with
wheel==0.35
. #135
- Fix a bug that extra sources are not respected when fetching distributions. #127
- Fix a bug that
pdm export
fails when the project doesn't havename
property. #126
- Upgrade dependency
pip
to20.1
. #125
- Add a new command
export
to export to alternative formats. #117
- Add Dockerfile and pushed to Docker Hub. #122
- Fix the version constraint parsing of wheel metadata. #120
- Update resolvers to
resolvelib
0.4.0. #118
- Switch to upstream
resolvelib 0.3.0
. #116
- Fix a bug that environment markers cannot be evaluated correctly if extras are connected with "or". #107
- Don't consult PyPI JSON API by default for package metadata. #112
- Eliminate backslashes in markers for TOML documents. #115
- Editable packages requires
setuptools
to be installed in the isolated environment.
- Disable loading of site-packages under PEP 582 mode. #100
- Fix a bug that TOML parsing error is not correctly captured. #101
- Fix a bug of building wheels with C extensions that the platform in file name is incorrect. #99
- Unix style executable script suffix is missing.
- Update shebang lines in the executable scripts when doing
pdm use
. #96 - Auto-detect commonly used venv directories. #97
- Fix a bug of moving files across different file system. #95
- Validate user input for
python_requires
when initializing project. #89 - Ensure
wheel
package is available before building packages. #90 - Fix an issue of remove command that will unexpectedly uninstall packages in default section. #92
- Update dependencies
pythonfinder
,python-cfonts
,pip-shims
and many others. Drop dependencyvistir
. #89
- Redirect output messages to log file for installation and locking. #84
- Fix a bug that parallel installation fails due to setuptools reinstalling. #83
- Support specifying build script for C extensions. #23
- Add test cases for
pdm build
. #81 - Make it configurable whether to consult PyPI JSON API since it may be not trustable.
- Support parallel installation.
- Add new command
pmd import
to import project metadata fromPipfile
,poetry
,flit
,requirements.txt
. #79 pdm init
andpdm install
will auto-detect possible files that can be imported.
- Fix wheel builds when
package_dir
is mapped. #81 pdm init
will use the current directory rather than finding the parents when global project is not activated.
- Introduce a super easy-to-extend plug-in system to PDM. #75
- Documentation on how to write a plugin. #75
- Fix a typo in metadata parsing from
plugins
toentry_points
- Refactor the CLI part, switch from
click
toargparse
, for better extensibility. #73 - Allow users to configure to install packages into venv when it is activated. #74
- Add a minimal dependency set for global project. #72
- Global project support
- Add a new option
-g/--global
to manage global project. The default location is at~/.pdm/global-project
. - Use the virtualenv interpreter when detected inside an activated venv.
- Add a new option
-p/--project
to select project root other than the default one. #30
- Add a new option
- Add a new command
pdm config del
to delete an existing config item. #71
- Fix a URL parsing issue that username will be dropped in the SSH URL. #68
- Add docs for global project and selecting project path. #30
- Display all available Python interpreters if users don't give one in
pdm init
. #67
- Regard
4.0
as infinite upper bound when checking subsetting. #66
- Fix a bug that
ImpossiblePySpec
's hash clashes with normal one.
- Add a new command
pdm config
to inspect configurations. #26 - Add a new command
pdm cache clear
to clean caches. #63
- Correctly show dependency graph when circular dependencies exist. #62
- Write the initial documentation for PDM. #14
- Improve the user interface of selecting Python interpreter. #54
- Fix the wheel installer to correctly unparse the flags of console scripts. #56
- Fix a bug that OS-dependent hashes are not saved. #57
- Allow specifying Python interpreter via
--python
option inpdm init
. #49 - Set
python_requires
when initializing and defaults to>={current_version}
. #50
- Always consider wheels before tarballs; correctly merge markers from different parents. #47
- Filter out incompatible wheels when installing. #48
- Use the project local interpreter to build wheels. #43
- Correctly merge Python specifiers when possible. #4
- Fix a bug that editable build generates a malformed
setup.py
.
- Add a fancy greeting banner when user types
pdm --help
. #42
- Fix the RECORD file in built wheel. #41
- Add dependency
python-cfonts
to display banner. #42
- Fix a bug that short python_version markers can't be parsed correctly. #38
- Make
_editable_intall.py
compatible with Py2.
- New option:
pdm list --graph
to show a dependency graph of the working set. #10 - New option:
pdm update --unconstrained
to ignore the version constraint of given packages. #13 - Improve the error message when project is not initialized before running commands. #19
- Pinned candidates in lock file are reused when relocking during
pdm install
. #33 - Use the pyenv interpreter value if pyenv is installed. #36
- Introduce a new command
pdm info
to show project environment information. #9
- Fix a bug that candidate hashes will be lost when reused. #11
- Update
pip
to20.0
, updatepip_shims
to0.5.0
. #28
- Add a script named
setup_dev.py
for the convenience to setup pdm for development. #29
- New command pdm use to switch python versions. #8
- New option pdm list --graph to show a dependency graph. #10
- Read metadata from lockfile when pinned candidate is reused.
- Get version from the specified file. #6
- Add column header to pdm list output.
- Pass exit code to parent process in pdm run.
- Fix error handling for CLI. #19
- Refactor the installer mocking for tests.
- Ensure pypi index url is fetched in addition to the source settings. #3
- Fix an issue that leading "c"s are mistakenly stripped. #5
- Fix an error with PEP 517 building.
- Fix editable installation, now editable scripts can also be executed from outside!
- Content hash is calculated based on dependencies and sources, not other metadata.
- Fix an issue that editable distributions can not be removed.
- Add
pdm init
to bootstrap a project.
- A complete functioning PEP 517 build backend.
pdm build
command.
- Add a Chinese README
- Add
pdm init
to bootstrap a project.
- A dependency resolver that just works.
- A PEP 582 installer.
- PEP 440 version specifiers.
- PEP 508 environment markers.
- Running scripts with PEP 582 local packages.
- Console scripts are injected with local paths.
- A neat CLI.
- add, lock, list, update, remove commands.
- PEP 517 build backends.
- Continuous Integration.