SHA256
1
0
forked from pool/python-pdm
python-pdm/python-pdm.spec

143 lines
4.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-pdm
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
- Update to 1.15.2: * 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 * Fix a bug where dependencies with requires-python pre-release versions caused pdm update to fail with InvalidPyVersion. #1111 * Fix a bug that dependencies are missing from the dep graph when they are depended by a requirement with extras. #1097 * Allow specifying lockfile other than pdm.lock by --lockfile option or PDM_LOCKFILE env var. #1038 * Ensure the pip module inside venv in installation script. #1053 * 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 * 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 * Fix a bug that requirement with extras isn't resolved to the version as specified by the range. #1001 * Support installer 0.5.x. #1002 * 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 * Don't follow symlinks for the paths in the requirement strings. #976 * Fix a bug that _.site_packages is overridden by default option value. #985 * 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 * Switch from pythonfinder to findpython 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 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 * Fix the compatibility issue with pip>=22.0. #875 * Fix the hash calculation when generating direct_url.json for a local pre-built wheel. #861 * Reduce the number of tests that require network, and mark the rest with network marker. #858 - Remove artifacts.tar.gz, it is now included in the source tarball. - Drop patches because they are included upstream: * mark-network-tests.patch * mark-tests-path.patch * sys-exec-failures.patch - Switch to multibuild per Python version since the testsuite takes approximately seven eons. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=6
2022-06-15 03:55:32 +02:00
%global flavor @BUILD_FLAVOR@%{nil}
Accepting request 995206 from home:bnavigator:branches:devel:languages:python - Update to v2.1.2 * 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 for add and update operations, to ensure the pyproject.toml is updated before the hook is run. #1320 - Release 2.1.1 * 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 or update 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 that packaging.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 - Release 2.1.0 * 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 OBS-URL: https://build.opensuse.org/request/show/995206 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=15
2022-08-17 18:37:18 +02:00
%if "%{flavor}" == "test"
%define psuffix -test
- Update to 1.15.2: * 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 * Fix a bug where dependencies with requires-python pre-release versions caused pdm update to fail with InvalidPyVersion. #1111 * Fix a bug that dependencies are missing from the dep graph when they are depended by a requirement with extras. #1097 * Allow specifying lockfile other than pdm.lock by --lockfile option or PDM_LOCKFILE env var. #1038 * Ensure the pip module inside venv in installation script. #1053 * 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 * 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 * Fix a bug that requirement with extras isn't resolved to the version as specified by the range. #1001 * Support installer 0.5.x. #1002 * 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 * Don't follow symlinks for the paths in the requirement strings. #976 * Fix a bug that _.site_packages is overridden by default option value. #985 * 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 * Switch from pythonfinder to findpython 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 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 * Fix the compatibility issue with pip>=22.0. #875 * Fix the hash calculation when generating direct_url.json for a local pre-built wheel. #861 * Reduce the number of tests that require network, and mark the rest with network marker. #858 - Remove artifacts.tar.gz, it is now included in the source tarball. - Drop patches because they are included upstream: * mark-network-tests.patch * mark-tests-path.patch * sys-exec-failures.patch - Switch to multibuild per Python version since the testsuite takes approximately seven eons. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=6
2022-06-15 03:55:32 +02:00
%bcond_without test
%endif
%if "%{flavor}" == ""
%define psuffix %{nil}
%bcond_with test
%endif
%{?sle15_python_module_pythons}
- Update to 1.15.2: * 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 * Fix a bug where dependencies with requires-python pre-release versions caused pdm update to fail with InvalidPyVersion. #1111 * Fix a bug that dependencies are missing from the dep graph when they are depended by a requirement with extras. #1097 * Allow specifying lockfile other than pdm.lock by --lockfile option or PDM_LOCKFILE env var. #1038 * Ensure the pip module inside venv in installation script. #1053 * 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 * 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 * Fix a bug that requirement with extras isn't resolved to the version as specified by the range. #1001 * Support installer 0.5.x. #1002 * 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 * Don't follow symlinks for the paths in the requirement strings. #976 * Fix a bug that _.site_packages is overridden by default option value. #985 * 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 * Switch from pythonfinder to findpython 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 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 * Fix the compatibility issue with pip>=22.0. #875 * Fix the hash calculation when generating direct_url.json for a local pre-built wheel. #861 * Reduce the number of tests that require network, and mark the rest with network marker. #858 - Remove artifacts.tar.gz, it is now included in the source tarball. - Drop patches because they are included upstream: * mark-network-tests.patch * mark-tests-path.patch * sys-exec-failures.patch - Switch to multibuild per Python version since the testsuite takes approximately seven eons. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=6
2022-06-15 03:55:32 +02:00
Name: python-pdm%{psuffix}
Version: 2.12.4
Release: 0
Summary: Python Development Master
License: MIT
URL: https://github.com/pdm-project/pdm/
Source0: https://files.pythonhosted.org/packages/source/p/pdm/pdm-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module importlib-metadata if %python-base <= 3.9}
BuildRequires: %{python_module pdm-backend}
Accepting request 995206 from home:bnavigator:branches:devel:languages:python - Update to v2.1.2 * 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 for add and update operations, to ensure the pyproject.toml is updated before the hook is run. #1320 - Release 2.1.1 * 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 or update 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 that packaging.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 - Release 2.1.0 * 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 OBS-URL: https://build.opensuse.org/request/show/995206 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=15
2022-08-17 18:37:18 +02:00
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-blinker
Accepting request 995206 from home:bnavigator:branches:devel:languages:python - Update to v2.1.2 * 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 for add and update operations, to ensure the pyproject.toml is updated before the hook is run. #1320 - Release 2.1.1 * 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 or update 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 that packaging.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 - Release 2.1.0 * 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 OBS-URL: https://build.opensuse.org/request/show/995206 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=15
2022-08-17 18:37:18 +02:00
Requires: python-cachecontrol >= 0.12.11
Requires: python-certifi
Requires: python-dep-logic
- 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
2023-12-13 04:00:32 +01:00
Requires: python-findpython >= 0.4
Requires: python-installer
Accepting request 995206 from home:bnavigator:branches:devel:languages:python - Update to v2.1.2 * 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 for add and update operations, to ensure the pyproject.toml is updated before the hook is run. #1320 - Release 2.1.1 * 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 or update 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 that packaging.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 - Release 2.1.0 * 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 OBS-URL: https://build.opensuse.org/request/show/995206 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=15
2022-08-17 18:37:18 +02:00
Requires: python-packaging >= 20.9
Requires: python-pdm-backend
Requires: python-platformdirs
Requires: python-pyproject-hooks
Requires: python-python-dotenv >= 0.15
Accepting request 995206 from home:bnavigator:branches:devel:languages:python - Update to v2.1.2 * 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 for add and update operations, to ensure the pyproject.toml is updated before the hook is run. #1320 - Release 2.1.1 * 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 or update 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 that packaging.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 - Release 2.1.0 * 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 OBS-URL: https://build.opensuse.org/request/show/995206 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=15
2022-08-17 18:37:18 +02:00
Requires: python-requests-toolbelt
- 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
2023-12-13 04:00:32 +01:00
Requires: python-resolvelib >= 1.0.1
Accepting request 995206 from home:bnavigator:branches:devel:languages:python - Update to v2.1.2 * 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 for add and update operations, to ensure the pyproject.toml is updated before the hook is run. #1320 - Release 2.1.1 * 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 or update 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 that packaging.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 - Release 2.1.0 * 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 OBS-URL: https://build.opensuse.org/request/show/995206 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=15
2022-08-17 18:37:18 +02:00
Requires: python-rich >= 12.3.0
Requires: python-shellingham >= 1.3.2
- 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
2023-12-13 04:00:32 +01:00
Requires: python-unearth >= 0.12.1
Accepting request 995206 from home:bnavigator:branches:devel:languages:python - Update to v2.1.2 * 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 for add and update operations, to ensure the pyproject.toml is updated before the hook is run. #1320 - Release 2.1.1 * 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 or update 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 that packaging.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 - Release 2.1.0 * 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 OBS-URL: https://build.opensuse.org/request/show/995206 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=15
2022-08-17 18:37:18 +02:00
Requires: python-virtualenv >= 20
- 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
2023-12-13 04:00:32 +01:00
Requires: (python-tomlkit >= 0.11.1 with python-tomlkit < 1)
Accepting request 995206 from home:bnavigator:branches:devel:languages:python - Update to v2.1.2 * 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 for add and update operations, to ensure the pyproject.toml is updated before the hook is run. #1320 - Release 2.1.1 * 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 or update 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 that packaging.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 - Release 2.1.0 * 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 OBS-URL: https://build.opensuse.org/request/show/995206 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=15
2022-08-17 18:37:18 +02:00
# from python-cachecontrol[filecache]
Requires: python-lockfile >= 0.9
%if 0%{?python_version_nodots} < 311
Requires: python-tomli >= 1.1.0
Accepting request 995206 from home:bnavigator:branches:devel:languages:python - Update to v2.1.2 * 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 for add and update operations, to ensure the pyproject.toml is updated before the hook is run. #1320 - Release 2.1.1 * 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 or update 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 that packaging.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 - Release 2.1.0 * 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 OBS-URL: https://build.opensuse.org/request/show/995206 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=15
2022-08-17 18:37:18 +02:00
%endif
%if 0%{?python_version_nodots} <= 39
Accepting request 995206 from home:bnavigator:branches:devel:languages:python - Update to v2.1.2 * 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 for add and update operations, to ensure the pyproject.toml is updated before the hook is run. #1320 - Release 2.1.1 * 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 or update 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 that packaging.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 - Release 2.1.0 * 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 OBS-URL: https://build.opensuse.org/request/show/995206 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=15
2022-08-17 18:37:18 +02:00
Requires: python-importlib-metadata
Requires: python-typing-extensions
%endif
- 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
2023-12-13 04:00:32 +01:00
%if 0%{?python_version_nodots} >= 310
Requires: python-truststore
%endif
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
- Update to 1.15.2: * 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 * Fix a bug where dependencies with requires-python pre-release versions caused pdm update to fail with InvalidPyVersion. #1111 * Fix a bug that dependencies are missing from the dep graph when they are depended by a requirement with extras. #1097 * Allow specifying lockfile other than pdm.lock by --lockfile option or PDM_LOCKFILE env var. #1038 * Ensure the pip module inside venv in installation script. #1053 * 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 * 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 * Fix a bug that requirement with extras isn't resolved to the version as specified by the range. #1001 * Support installer 0.5.x. #1002 * 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 * Don't follow symlinks for the paths in the requirement strings. #976 * Fix a bug that _.site_packages is overridden by default option value. #985 * 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 * Switch from pythonfinder to findpython 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 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 * Fix the compatibility issue with pip>=22.0. #875 * Fix the hash calculation when generating direct_url.json for a local pre-built wheel. #861 * Reduce the number of tests that require network, and mark the rest with network marker. #858 - Remove artifacts.tar.gz, it is now included in the source tarball. - Drop patches because they are included upstream: * mark-network-tests.patch * mark-tests-path.patch * sys-exec-failures.patch - Switch to multibuild per Python version since the testsuite takes approximately seven eons. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=6
2022-06-15 03:55:32 +02:00
%if %{with test}
BuildRequires: %{python_module pdm = %{version}}
BuildRequires: %{python_module pytest-httpserver}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
- Update to 1.15.2: * 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 * Fix a bug where dependencies with requires-python pre-release versions caused pdm update to fail with InvalidPyVersion. #1111 * Fix a bug that dependencies are missing from the dep graph when they are depended by a requirement with extras. #1097 * Allow specifying lockfile other than pdm.lock by --lockfile option or PDM_LOCKFILE env var. #1038 * Ensure the pip module inside venv in installation script. #1053 * 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 * 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 * Fix a bug that requirement with extras isn't resolved to the version as specified by the range. #1001 * Support installer 0.5.x. #1002 * 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 * Don't follow symlinks for the paths in the requirement strings. #976 * Fix a bug that _.site_packages is overridden by default option value. #985 * 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 * Switch from pythonfinder to findpython 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 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 * Fix the compatibility issue with pip>=22.0. #875 * Fix the hash calculation when generating direct_url.json for a local pre-built wheel. #861 * Reduce the number of tests that require network, and mark the rest with network marker. #858 - Remove artifacts.tar.gz, it is now included in the source tarball. - Drop patches because they are included upstream: * mark-network-tests.patch * mark-tests-path.patch * sys-exec-failures.patch - Switch to multibuild per Python version since the testsuite takes approximately seven eons. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=6
2022-06-15 03:55:32 +02:00
%endif
# /SECTION
%python_subpackages
%description
PDM is a modern Python package manager with PEP 582 support. It
installs and manages packages in a similar way to npm that
doesn't need to create a virtualenv at all!
%prep
- Update to 1.15.2: * 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 * Fix a bug where dependencies with requires-python pre-release versions caused pdm update to fail with InvalidPyVersion. #1111 * Fix a bug that dependencies are missing from the dep graph when they are depended by a requirement with extras. #1097 * Allow specifying lockfile other than pdm.lock by --lockfile option or PDM_LOCKFILE env var. #1038 * Ensure the pip module inside venv in installation script. #1053 * 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 * 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 * Fix a bug that requirement with extras isn't resolved to the version as specified by the range. #1001 * Support installer 0.5.x. #1002 * 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 * Don't follow symlinks for the paths in the requirement strings. #976 * Fix a bug that _.site_packages is overridden by default option value. #985 * 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 * Switch from pythonfinder to findpython 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 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 * Fix the compatibility issue with pip>=22.0. #875 * Fix the hash calculation when generating direct_url.json for a local pre-built wheel. #861 * Reduce the number of tests that require network, and mark the rest with network marker. #858 - Remove artifacts.tar.gz, it is now included in the source tarball. - Drop patches because they are included upstream: * mark-network-tests.patch * mark-tests-path.patch * sys-exec-failures.patch - Switch to multibuild per Python version since the testsuite takes approximately seven eons. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=6
2022-06-15 03:55:32 +02:00
%autosetup -p1 -n pdm-%{version}
Accepting request 995206 from home:bnavigator:branches:devel:languages:python - Update to v2.1.2 * 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 for add and update operations, to ensure the pyproject.toml is updated before the hook is run. #1320 - Release 2.1.1 * 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 or update 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 that packaging.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 - Release 2.1.0 * 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 OBS-URL: https://build.opensuse.org/request/show/995206 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=15
2022-08-17 18:37:18 +02:00
# we don't care about certifi version, the distro package replaces the certificates with system ones anyway
sed -i 's/"certifi>=[0-9.]*"/"certifi"/' pyproject.toml
%build
- Update to 1.15.2: * 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 * Fix a bug where dependencies with requires-python pre-release versions caused pdm update to fail with InvalidPyVersion. #1111 * Fix a bug that dependencies are missing from the dep graph when they are depended by a requirement with extras. #1097 * Allow specifying lockfile other than pdm.lock by --lockfile option or PDM_LOCKFILE env var. #1038 * Ensure the pip module inside venv in installation script. #1053 * 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 * 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 * Fix a bug that requirement with extras isn't resolved to the version as specified by the range. #1001 * Support installer 0.5.x. #1002 * 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 * Don't follow symlinks for the paths in the requirement strings. #976 * Fix a bug that _.site_packages is overridden by default option value. #985 * 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 * Switch from pythonfinder to findpython 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 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 * Fix the compatibility issue with pip>=22.0. #875 * Fix the hash calculation when generating direct_url.json for a local pre-built wheel. #861 * Reduce the number of tests that require network, and mark the rest with network marker. #858 - Remove artifacts.tar.gz, it is now included in the source tarball. - Drop patches because they are included upstream: * mark-network-tests.patch * mark-tests-path.patch * sys-exec-failures.patch - Switch to multibuild per Python version since the testsuite takes approximately seven eons. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=6
2022-06-15 03:55:32 +02:00
%if !%{with test}
%pyproject_wheel
- Update to 1.15.2: * 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 * Fix a bug where dependencies with requires-python pre-release versions caused pdm update to fail with InvalidPyVersion. #1111 * Fix a bug that dependencies are missing from the dep graph when they are depended by a requirement with extras. #1097 * Allow specifying lockfile other than pdm.lock by --lockfile option or PDM_LOCKFILE env var. #1038 * Ensure the pip module inside venv in installation script. #1053 * 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 * 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 * Fix a bug that requirement with extras isn't resolved to the version as specified by the range. #1001 * Support installer 0.5.x. #1002 * 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 * Don't follow symlinks for the paths in the requirement strings. #976 * Fix a bug that _.site_packages is overridden by default option value. #985 * 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 * Switch from pythonfinder to findpython 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 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 * Fix the compatibility issue with pip>=22.0. #875 * Fix the hash calculation when generating direct_url.json for a local pre-built wheel. #861 * Reduce the number of tests that require network, and mark the rest with network marker. #858 - Remove artifacts.tar.gz, it is now included in the source tarball. - Drop patches because they are included upstream: * mark-network-tests.patch * mark-tests-path.patch * sys-exec-failures.patch - Switch to multibuild per Python version since the testsuite takes approximately seven eons. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=6
2022-06-15 03:55:32 +02:00
%endif
%install
- Update to 1.15.2: * 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 * Fix a bug where dependencies with requires-python pre-release versions caused pdm update to fail with InvalidPyVersion. #1111 * Fix a bug that dependencies are missing from the dep graph when they are depended by a requirement with extras. #1097 * Allow specifying lockfile other than pdm.lock by --lockfile option or PDM_LOCKFILE env var. #1038 * Ensure the pip module inside venv in installation script. #1053 * 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 * 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 * Fix a bug that requirement with extras isn't resolved to the version as specified by the range. #1001 * Support installer 0.5.x. #1002 * 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 * Don't follow symlinks for the paths in the requirement strings. #976 * Fix a bug that _.site_packages is overridden by default option value. #985 * 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 * Switch from pythonfinder to findpython 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 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 * Fix the compatibility issue with pip>=22.0. #875 * Fix the hash calculation when generating direct_url.json for a local pre-built wheel. #861 * Reduce the number of tests that require network, and mark the rest with network marker. #858 - Remove artifacts.tar.gz, it is now included in the source tarball. - Drop patches because they are included upstream: * mark-network-tests.patch * mark-tests-path.patch * sys-exec-failures.patch - Switch to multibuild per Python version since the testsuite takes approximately seven eons. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=6
2022-06-15 03:55:32 +02:00
%if !%{with test}
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pdm
%python_expand %fdupes %{buildroot}%{$python_sitelib}
- Update to 1.15.2: * 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 * Fix a bug where dependencies with requires-python pre-release versions caused pdm update to fail with InvalidPyVersion. #1111 * Fix a bug that dependencies are missing from the dep graph when they are depended by a requirement with extras. #1097 * Allow specifying lockfile other than pdm.lock by --lockfile option or PDM_LOCKFILE env var. #1038 * Ensure the pip module inside venv in installation script. #1053 * 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 * 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 * Fix a bug that requirement with extras isn't resolved to the version as specified by the range. #1001 * Support installer 0.5.x. #1002 * 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 * Don't follow symlinks for the paths in the requirement strings. #976 * Fix a bug that _.site_packages is overridden by default option value. #985 * 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 * Switch from pythonfinder to findpython 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 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 * Fix the compatibility issue with pip>=22.0. #875 * Fix the hash calculation when generating direct_url.json for a local pre-built wheel. #861 * Reduce the number of tests that require network, and mark the rest with network marker. #858 - Remove artifacts.tar.gz, it is now included in the source tarball. - Drop patches because they are included upstream: * mark-network-tests.patch * mark-tests-path.patch * sys-exec-failures.patch - Switch to multibuild per Python version since the testsuite takes approximately seven eons. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=6
2022-06-15 03:55:32 +02:00
%endif
Accepting request 995206 from home:bnavigator:branches:devel:languages:python - Update to v2.1.2 * 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 for add and update operations, to ensure the pyproject.toml is updated before the hook is run. #1320 - Release 2.1.1 * 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 or update 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 that packaging.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 - Release 2.1.0 * 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 OBS-URL: https://build.opensuse.org/request/show/995206 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=15
2022-08-17 18:37:18 +02:00
%if %{with test}
%check
# no network
donttest="network"
# mock testing finds the wrong python versions in our multiflavor setup
donttest="$donttest or test_project_packages_path or test_conda_backend_create"
donttest="$donttest or test_init_non_interactive"
# Broken test trying to find a resolution to a git repository
donttest="$donttest or test_add_editable_package or test_non_editable_override_editable"
# Broken test unable to find a resolution for wheel
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"
- 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
2023-12-13 04:00:32 +01:00
# Requires network
donttest="$donttest or test_build_with_no_isolation"
%pytest -v -k "not ($donttest)"
Accepting request 995206 from home:bnavigator:branches:devel:languages:python - Update to v2.1.2 * 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 for add and update operations, to ensure the pyproject.toml is updated before the hook is run. #1320 - Release 2.1.1 * 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 or update 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 that packaging.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 - Release 2.1.0 * 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 OBS-URL: https://build.opensuse.org/request/show/995206 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=15
2022-08-17 18:37:18 +02:00
%endif
%post
%python_install_alternative pdm
%postun
%python_uninstall_alternative pdm
- Update to 1.15.2: * 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 * Fix a bug where dependencies with requires-python pre-release versions caused pdm update to fail with InvalidPyVersion. #1111 * Fix a bug that dependencies are missing from the dep graph when they are depended by a requirement with extras. #1097 * Allow specifying lockfile other than pdm.lock by --lockfile option or PDM_LOCKFILE env var. #1038 * Ensure the pip module inside venv in installation script. #1053 * 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 * 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 * Fix a bug that requirement with extras isn't resolved to the version as specified by the range. #1001 * Support installer 0.5.x. #1002 * 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 * Don't follow symlinks for the paths in the requirement strings. #976 * Fix a bug that _.site_packages is overridden by default option value. #985 * 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 * Switch from pythonfinder to findpython 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 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 * Fix the compatibility issue with pip>=22.0. #875 * Fix the hash calculation when generating direct_url.json for a local pre-built wheel. #861 * Reduce the number of tests that require network, and mark the rest with network marker. #858 - Remove artifacts.tar.gz, it is now included in the source tarball. - Drop patches because they are included upstream: * mark-network-tests.patch * mark-tests-path.patch * sys-exec-failures.patch - Switch to multibuild per Python version since the testsuite takes approximately seven eons. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=6
2022-06-15 03:55:32 +02:00
%if !%{with test}
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/pdm
Accepting request 995206 from home:bnavigator:branches:devel:languages:python - Update to v2.1.2 * 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 for add and update operations, to ensure the pyproject.toml is updated before the hook is run. #1320 - Release 2.1.1 * 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 or update 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 that packaging.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 - Release 2.1.0 * 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 OBS-URL: https://build.opensuse.org/request/show/995206 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=15
2022-08-17 18:37:18 +02:00
%{python_sitelib}/pdm
%{python_sitelib}/pdm-%{version}*-info
- Update to 1.15.2: * 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 * Fix a bug where dependencies with requires-python pre-release versions caused pdm update to fail with InvalidPyVersion. #1111 * Fix a bug that dependencies are missing from the dep graph when they are depended by a requirement with extras. #1097 * Allow specifying lockfile other than pdm.lock by --lockfile option or PDM_LOCKFILE env var. #1038 * Ensure the pip module inside venv in installation script. #1053 * 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 * 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 * Fix a bug that requirement with extras isn't resolved to the version as specified by the range. #1001 * Support installer 0.5.x. #1002 * 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 * Don't follow symlinks for the paths in the requirement strings. #976 * Fix a bug that _.site_packages is overridden by default option value. #985 * 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 * Switch from pythonfinder to findpython 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 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 * Fix the compatibility issue with pip>=22.0. #875 * Fix the hash calculation when generating direct_url.json for a local pre-built wheel. #861 * Reduce the number of tests that require network, and mark the rest with network marker. #858 - Remove artifacts.tar.gz, it is now included in the source tarball. - Drop patches because they are included upstream: * mark-network-tests.patch * mark-tests-path.patch * sys-exec-failures.patch - Switch to multibuild per Python version since the testsuite takes approximately seven eons. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=6
2022-06-15 03:55:32 +02:00
%endif
%changelog