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

144 lines
4.1 KiB
RPMSpec
Raw Normal View History

#
- 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
# spec file
#
# Copyright (c) 2022 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
- 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}
%if "%{flavor}" == "test-py38"
%define psuffix -test-py38
%define skip_python39 1
%define skip_python310 1
%bcond_without test
%endif
%if "%{flavor}" == "test-py39"
%define psuffix -test-py39
%define skip_python38 1
%define skip_python310 1
%bcond_without test
%endif
%if "%{flavor}" == "test-py310"
%define psuffix -test-py310
%define skip_python38 1
%define skip_python39 1
%bcond_without test
%endif
%if "%{flavor}" == ""
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-pdm%{psuffix}
Version: 1.15.3
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 blinker}
BuildRequires: %{python_module click >= 7}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pdm-pep517}
BuildRequires: %{python_module pep517}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module platformdirs}
BuildRequires: %{python_module poetry}
BuildRequires: %{python_module python-dotenv >= 0.15}
BuildRequires: %{python_module pythonfinder}
BuildRequires: %{python_module resolvelib}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module shellingham >= 1.3.2}
BuildRequires: %{python_module tomli >= 1.1.0}
BuildRequires: %{python_module tomlkit}
BuildRequires: %{python_module wheel >= 0.36.2}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-blinker
Requires: python-click >= 7
Requires: python-installer >= 0.5
Requires: python-packaging
Requires: python-pdm-pep517
Requires: python-pep517
Requires: python-pip
Requires: python-platformdirs
Requires: python-poetry
Requires: python-python-dotenv >= 0.15
Requires: python-pythonfinder
Requires: python-resolvelib
Requires: python-setuptools
Requires: python-shellingham >= 1.3.2
Requires: python-tomli >= 1.1.0
Requires: python-tomlkit
Requires: python-wheel >= 0.36.2
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 findpython}
BuildRequires: %{python_module installer >= 0.5}
- 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
BuildRequires: %{python_module pdm}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: git
BuildRequires: git-lfs
- 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}
%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
%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}
%check
%pytest -x -k 'not (network or path or test_use_command)'
- 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
- 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
%{python_sitelib}/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
%endif
%changelog