From 7ddde4c7e72ecb848155e5af415c80d44f10e3bd5f805e3db0c4c45458d2201b Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 13 Dec 2023 03:00:32 +0000 Subject: [PATCH] - Update to 2.10.4: * Do not detect as requirements.txt if the file is a python script. * Provide information of the original line when parsing requirement fails. * Resolve `-r` requirements paths relative to the requirement file they are specified in. * Updating package now overwrites the old files instead of removing before installing. * Improve the error message when a specific package can't be found in the lockfile. * Add lock option to resolve direct dependencies to the minimal versions available. * Fix a bug that build requirements are installed into wrong location when using `--venv` option. * Officially supports python3.12 now. * Fix an issue that `--no-lock` option doesn't work as expected. Also support `--no-lock` option for `add`, `remove` and `update` commands. * Use `findpython` to find pythons with the spec given by the user. * Support passing filter patterns as positional arguments to `pdm list` command. Add `--tree` as an alias and preferred name of `--graph` option. * Switch to truststore by default. * Allow `pdm run` to run a script with the relative or absolute path. * Fix the compatibility issue with copier 8.0+. * Makes `comarable_version("1.2.3+local1") == Version("1.2.3")`. * Default behavior for pdm venv activate when shell detection fails. * Handle parsing errors when converting from poetry-style metadata. * Remove the legacy build backend `pdm-pep517`. * Fix the comparison of the candidate keys in the lockfile. * Don't update `pyproject.toml` if both `--unconstrained` and `--dry-run` are passed to `pdm update`. * Skip sources with empty URL when merging sources. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=34 --- pdm-2.10.4.tar.gz | 3 +++ pdm-2.7.4.tar.gz | 3 --- python-pdm.changes | 62 ++++++++++++++++++++++++++++++++++++++++++++++ python-pdm.spec | 15 +++++++---- 4 files changed, 75 insertions(+), 8 deletions(-) create mode 100644 pdm-2.10.4.tar.gz delete mode 100644 pdm-2.7.4.tar.gz diff --git a/pdm-2.10.4.tar.gz b/pdm-2.10.4.tar.gz new file mode 100644 index 0000000..bf49bcf --- /dev/null +++ b/pdm-2.10.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6dfd9d4cb59043edecb2d0b47d208e55d89d333ba7197deb05cca2dfbc7a4bfb +size 2589461 diff --git a/pdm-2.7.4.tar.gz b/pdm-2.7.4.tar.gz deleted file mode 100644 index 6bd4b07..0000000 --- a/pdm-2.7.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c77f8df1ccb7d701f005e3a430da4b8a196a2824e23e69d2d5abebafaf6e50ce -size 3062137 diff --git a/python-pdm.changes b/python-pdm.changes index 36a540f..a6752f0 100644 --- a/python-pdm.changes +++ b/python-pdm.changes @@ -1,3 +1,65 @@ +------------------------------------------------------------------- +Wed Dec 13 02:58:14 UTC 2023 - Steve Kowalik + +- Update to 2.10.4: + * Do not detect as requirements.txt if the file is a python script. + * Provide information of the original line when parsing requirement fails. + * Resolve `-r` requirements paths relative to the requirement file they + are specified in. + * Updating package now overwrites the old files instead of removing + before installing. + * Improve the error message when a specific package can't be found in the + lockfile. + * Add lock option to resolve direct dependencies to the minimal versions + available. + * Fix a bug that build requirements are installed into wrong location + when using `--venv` option. + * Officially supports python3.12 now. + * Fix an issue that `--no-lock` option doesn't work as expected. Also + support `--no-lock` option for `add`, `remove` and `update` commands. + * Use `findpython` to find pythons with the spec given by the user. + * Support passing filter patterns as positional arguments to `pdm list` + command. Add `--tree` as an alias and preferred name of `--graph` option. + * Switch to truststore by default. + * Allow `pdm run` to run a script with the relative or absolute path. + * Fix the compatibility issue with copier 8.0+. + * Makes `comarable_version("1.2.3+local1") == Version("1.2.3")`. + * Default behavior for pdm venv activate when shell detection fails. + * Handle parsing errors when converting from poetry-style metadata. + * Remove the legacy build backend `pdm-pep517`. + * Fix the comparison of the candidate keys in the lockfile. + * Don't update `pyproject.toml` if both `--unconstrained` and `--dry-run` + are passed to `pdm update`. + * Skip sources with empty URL when merging sources. + * Support target python with other architectures. + * Allow to change the python providers from the config. + * Fix a bug that egg-info directories are not removed completely, leading + to incomplete distribution. + * Skip distributions with wrong package meta information and duplicate path. + * Avoid mistakenly passing command-line arguments while testing. + * Fix a bug that lockfile groups are overwritten when running locking in + preceding step of `pdm install`. + * Tolerate and actually ignore the local versions in version specifiers. + * Fix a bug that shared cache cannot support overlapping namespace packages. + * Fix a bug that `pdm install --plugins` can't install self. + * Fix a cache collision between named requirements and url requirements. + * `pdm init` now accepts a template argument to initialize project from a + built-in or Git template. + * Replace the `DeprecationWarning` with `FutureWarning` for better exposure. + * Serve `install-pdm.py` and its checksum file on the docs site. + * Add support for using `truststore` as the SSL backend. This only works + on Python 3.10 or newer. + * Fix the breaking change by adding the functions back to the old location + with deprecation warnings. + * Fix the duplicate entries in the output of `pdm self list`. + * Disable hashes caching for local files. + * Populate the `url` field when converting requirements from a + Pipfile-style file requirement. + * Fix a bug that empty source tables in configuration files causes errors + when running pdm commands. + * Fix a resolution conflict caused by requested yanked version also in + other transitive dependencies. + ------------------------------------------------------------------- Thu Jun 22 07:41:39 UTC 2023 - Andreas Schneider diff --git a/python-pdm.spec b/python-pdm.spec index 086f3a7..a8b2151 100644 --- a/python-pdm.spec +++ b/python-pdm.spec @@ -27,7 +27,7 @@ %endif %{?sle15_python_module_pythons} Name: python-pdm%{psuffix} -Version: 2.7.4 +Version: 2.10.4 Release: 0 Summary: Python Development Master License: MIT @@ -43,7 +43,7 @@ BuildRequires: python-rpm-macros Requires: python-blinker Requires: python-cachecontrol >= 0.12.11 Requires: python-certifi -Requires: python-findpython >= 0.2.2 +Requires: python-findpython >= 0.4 Requires: python-installer Requires: python-packaging >= 20.9 Requires: python-pdm-backend @@ -51,12 +51,12 @@ Requires: python-platformdirs Requires: python-pyproject-hooks Requires: python-python-dotenv >= 0.15 Requires: python-requests-toolbelt +Requires: python-resolvelib >= 1.0.1 Requires: python-rich >= 12.3.0 Requires: python-shellingham >= 1.3.2 -Requires: python-unearth >= 0.6.3 +Requires: python-unearth >= 0.12.1 Requires: python-virtualenv >= 20 -Requires: (python-resolvelib >= 0.8 with python-resolvelib < 0.9) -Requires: (python-tomlkit >= 0.8.0 with python-tomlkit < 1) +Requires: (python-tomlkit >= 0.11.1 with python-tomlkit < 1) # from python-cachecontrol[filecache] Requires: python-lockfile >= 0.9 %if 0%{?python_version_nodots} < 311 @@ -66,6 +66,9 @@ Requires: python-tomli >= 1.1.0 Requires: python-importlib-metadata Requires: python-typing-extensions %endif +%if 0%{?python_version_nodots} >= 310 +Requires: python-truststore +%endif Requires(post): update-alternatives Requires(postun):update-alternatives BuildArch: noarch @@ -116,6 +119,8 @@ donttest="$donttest or test_add_editable_package or test_non_editable_override_e donttest="$donttest or test_list_dependency_graph_include_exclude or test_list_csv_include_exclude_valid" # Unable to find a resolution for setuptools donttest="$donttest or test_list_csv_include_exclude or test_remove_editable_packages_while_keeping_normal or test_project_backend" +# Requires network +donttest="$donttest or test_build_with_no_isolation" %pytest -v -k "not ($donttest)" %endif