Blame SPECS/python-editables.spec

rdobuilder 03a0cb
## START: Set by rpmautospec
rdobuilder 03a0cb
## (rpmautospec version 0.2.5)
rdobuilder 03a0cb
%define autorelease(e:s:pb:) %{?-p:0.}%{lua:
rdobuilder 03a0cb
    release_number = 1;
rdobuilder 03a0cb
    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
rdobuilder 03a0cb
    print(release_number + base_release_number - 1);
rdobuilder 03a0cb
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist}
rdobuilder 03a0cb
## END: Set by rpmautospec
rdobuilder 03a0cb
rdobuilder 03a0cb
# Sphinx-generated HTML documentation is not suitable for packaging; see
rdobuilder 03a0cb
# RHBZ#2006555 for discussion. Additionally, upstream uses the furo theme,
rdobuilder 03a0cb
# which we would have to patch; see RHBZ#1910798.
rdobuilder 03a0cb
#
rdobuilder 03a0cb
# We could, in theory, generate PDF documentation as a substitute, but this
rdobuilder 03a0cb
# would still require it requires python3dist(myst-parser), which is not
rdobuilder 03a0cb
# currently packaged–and we are not willing to package it solely for this
rdobuilder 03a0cb
# purpose.
rdobuilder 03a0cb
rdobuilder 03a0cb
Name:           python-editables
rdobuilder 03a0cb
Version:        0.3
rdobuilder 03a0cb
Release:        %autorelease
rdobuilder 03a0cb
Summary:        Editable installations
rdobuilder 03a0cb
rdobuilder 03a0cb
License:        MIT
rdobuilder 03a0cb
URL:            https://github.com/pfmoore/editables
rdobuilder 03a0cb
# PyPI source distributions lack tests; use the GitHub archive
rdobuilder 03a0cb
Source0:        %{url}/archive/%{version}/editables-%{version}.tar.gz
rdobuilder 03a0cb
rdobuilder 03a0cb
BuildArch:      noarch
rdobuilder 03a0cb
rdobuilder 03a0cb
BuildRequires:  python3-devel
rdobuilder 03a0cb
BuildRequires:  pyproject-rpm-macros
rdobuilder 03a0cb
rdobuilder 03a0cb
# Most of the dependencies, and all of the pytest options, in tox.ini are for
rdobuilder 03a0cb
# coverage analysis and for installation with pip/virtualenv. Rather than
rdobuilder 03a0cb
# working around all of these, it is simpler not to use tox for dependency
rdobuilder 03a0cb
# generation or testing.
rdobuilder 03a0cb
BuildRequires:  python3dist(pytest)
rdobuilder 03a0cb
rdobuilder 03a0cb
%global common_description %{expand:
rdobuilder 03a0cb
A Python library for creating “editable wheels”
rdobuilder 03a0cb
rdobuilder 03a0cb
This library supports the building of wheels which, when installed, will expose
rdobuilder 03a0cb
packages in a local directory on sys.path in “editable mode”. In other words,
rdobuilder 03a0cb
changes to the package source will be reflected in the package visible to
rdobuilder 03a0cb
Python, without needing a reinstall.}
rdobuilder 03a0cb
rdobuilder 03a0cb
%description %{common_description}
rdobuilder 03a0cb
rdobuilder 03a0cb
rdobuilder 03a0cb
%package -n python3-editables
rdobuilder 03a0cb
Summary:        %{summary}
rdobuilder 03a0cb
rdobuilder 03a0cb
%description -n python3-editables %{common_description}
rdobuilder 03a0cb
rdobuilder 03a0cb
rdobuilder 03a0cb
%prep
rdobuilder 03a0cb
%autosetup -n editables-%{version}
rdobuilder 03a0cb
rdobuilder 03a0cb
rdobuilder 03a0cb
%generate_buildrequires
rdobuilder 03a0cb
%pyproject_buildrequires
rdobuilder 03a0cb
rdobuilder 03a0cb
rdobuilder 03a0cb
%build
rdobuilder 03a0cb
%pyproject_wheel
rdobuilder 03a0cb
rdobuilder 03a0cb
rdobuilder 03a0cb
%install
rdobuilder 03a0cb
%pyproject_install
rdobuilder 03a0cb
%pyproject_save_files editables
rdobuilder 03a0cb
rdobuilder 03a0cb
rdobuilder 03a0cb
%check
rdobuilder 03a0cb
%pytest
rdobuilder 03a0cb
rdobuilder 03a0cb
rdobuilder 03a0cb
%files -n python3-editables -f %{pyproject_files}
rdobuilder 03a0cb
# pyproject-rpm-macros handles LICENSE.txt; verify with “rpm -qL -p …”
rdobuilder 03a0cb
%doc CHANGELOG.md
rdobuilder 03a0cb
%doc README.md
rdobuilder 03a0cb
rdobuilder 03a0cb
rdobuilder 03a0cb
%changelog
rdobuilder 03a0cb
* Mon Apr 11 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.3-1
rdobuilder 03a0cb
- Update to 0.3 (close RHBZ#2073823)
rdobuilder 03a0cb
rdobuilder 03a0cb
* Thu Feb 17 2022 Benjamin A. Beasley <code@musicinmybrain.net> 0.2.0-1
rdobuilder 03a0cb
- Initial package (close RHBZ#2050876)