17
0
Files
python-pip-tools/python-pip-tools.spec
Dirk Mueller b85c20dd67 - update to 7.3.0:
* Add `--no-strip-extras` and warn about strip extras by
    default
  * Fix revealed default config in header if requirements in
    subfolder
  * Direct references show extra requirements in .txt files
  * Document how to run under `pipx run`
  * Document that the backtracking resolver is the current
    default
  * Add `-c/--constraint` option to `pip-compile`
  * Allow options in config from both `pip-compile` and `pip-
    sync`
  * Fix rejection of negating CLI boolean flags in config
  * Validate parsed config against CLI options
  * Fix a bug where pip-sync would unexpectedly uninstall some
    packages
  * Backwards Incompatible Changes:
  * Default to `--resolver=backtracking`
  * Drop support for Python 3.7
  * Add support for `pip==23.2` where refactored out `DEV_PKGS`
  * Add `--no-config` option (#1896).
  * Sync direct references with hashes
  * Fix missing `via`s when more than two input files are used
  * Support config defaults using `.pip-tools.toml` or
    `pyproject.toml`
  * Log a warning if the user specifies `-P` and the output file
    is present but empty
  * Improve warning for `pip-compile` if no `--allow-unsafe` was
    passed
  * Correct in README `pre-commit` hook to run off

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip-tools?expand=0&rev=15
2023-08-13 21:18:45 +00:00

95 lines
3.0 KiB
RPMSpec

#
# spec file for package python-pip-tools
#
# Copyright (c) 2023 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/
#
%define skip_python2 1
Name: python-pip-tools
Version: 7.3.0
Release: 0
Summary: Tool to keep pinned dependencies up to date
License: BSD-3-Clause
URL: https://github.com/jazzband/pip-tools/
Source: https://files.pythonhosted.org/packages/source/p/pip-tools/pip-tools-%{version}.tar.gz
BuildRequires: %{python_module build}
BuildRequires: %{python_module pip >= 22.2}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tomli-w}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-build
Requires: python-click >= 8
Requires: python-pip >= 22.2
Requires: python-setuptools
Requires: python-tomli-w
Requires: python-wheel
Recommends: git-core
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module click >= 8}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: ca-certificates
BuildRequires: git-core
# /SECTION
%python_subpackages
%description
pip-tools keeps pinned dependencies inside a project up to date.
%prep
%autosetup -p1 -n pip-tools-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pip-compile
%python_clone -a %{buildroot}%{_bindir}/pip-sync
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative pip-compile pip-sync
%postun
%python_uninstall_alternative pip-compile pip-sync
%check
export LANG=en_US.UTF-8
donttest="network"
# test_direct_reference_with_extras also requires network access
donttest+=" or test_direct_reference_with_extras"
# test_local_duplicate_subdependency_combined also requires network
donttest+=" or test_local_duplicate_subdependency_combined"
# test_compile_recursive_extras also requires network
donttest+=" or test_compile_recursive_extras"
%pytest -k "not ($donttest)"
%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE
%python_alternative %{_bindir}/pip-compile
%python_alternative %{_bindir}/pip-sync
%{python_sitelib}/piptools
%{python_sitelib}/pip_tools-%{version}*-info
%changelog