14
0
Files
python-pyproject-api/python-pyproject-api.spec
Matej Cepl 9a31236899 - Update to 1.5.4:
- Exclude dependabot and pre-commit ci from release notes
  - Bump tools and deps
  - Make sure that the order of Requires-Dist does not matter
- Update to 1.5.3:
  - Bump pypa/gh-action-pypi-publish from 1.8.6 to 1.8.7
  - Fix read_line to raise EOFError if nothing was read
- Update to 1.5.2:
  - Add pyproject-fmt
  - docs: remove (dynamic) years from copyright
  - Drop 2.7 test
  - Add trusted-publish
  - Add 3.12 support
  - Bump pypa/gh-action-pypi-publish from 1.8.5 to 1.8.6
    git ls-files -z -- .github/workflows/check.yml \
        | xargs -0 sed -i 's|3.12.0-alpha.7|3.12.0-beta.1|g'
  - Add ruff

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyproject-api?expand=0&rev=4
2023-08-28 21:50:39 +00:00

83 lines
2.8 KiB
RPMSpec

#
# spec file for package python-pyproject-api
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-pyproject-api
Version: 1.5.4
Release: 0
Summary: API to interact with the python pyproject.toml based projects
License: MIT
URL: https://github.com/tox-dev/pyproject-api
Source: https://files.pythonhosted.org/packages/source/p/pyproject_api/pyproject_api-%{version}.tar.gz
BuildRequires: %{python_module hatch >= 0.3}
BuildRequires: %{python_module hatch-vcs >= 0.3}
BuildRequires: %{python_module hatchling >= 1.12.2}
BuildRequires: %{python_module importlib-metadata >= 6 if %python-base < 3.8}
BuildRequires: %{python_module packaging >= 23}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module tomli >= 2.0.1 if %python-base < 3.11}
BuildRequires: %{python_module wheel >= 0.38.4}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
BuildRequires: (python36-importlib-metadata >= 6 if python36-base)
Requires: python-packaging >= 23
Requires: (python-importlib-metadata >= 6 if python3-base < 3.8)
Requires: (python-tomli >= 2.0.1 if python3-base < 3.11)
BuildArch: noarch
# SECTION testing=
# (except for pytest-cov and -randomly)
BuildRequires: %{python_module covdefaults >= 2.2.2}
BuildRequires: %{python_module pytest >= 7.2.0}
BuildRequires: %{python_module pytest-mock >= 3.10.0}
BuildRequires: %{python_module virtualenv >= 20.17.1}
# /SECTION
%python_subpackages
%description
pyproject-api aims to abstract away interaction with
pyproject.toml style projects in a flexible way.
%prep
%autosetup -p1 -n pyproject_api-%{version}
%build
export LANG=en_US.UTF8
%pyproject_wheel
%install
export LANG=en_US.UTF8
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# gh#tox-dev/pyproject-api#45
skip_tests="test_can_build_on_python_2"
# gh#tox-dev/pyproject-api#77
skip_tests="($skip_tests or test_setuptools_prepare_metadata_for_build_wheel)"
%pytest -k "not $skip_tests"
%files %{python_files}
%license LICENSE
%doc README.md docs/changelog.rst
%{python_sitelib}/pyproject_api-%{version}*-info
%{python_sitelib}/pyproject_api
%changelog