Browse Source

downgrade to 2.3.0

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 1 year ago
parent
commit
8d39658ce5
  1. 44
      SPECS/python-platformdirs.spec

44
SPECS/python-platformdirs.spec

@ -1,13 +1,11 @@ @@ -1,13 +1,11 @@
%bcond_without tests

%global srcname platformdirs
%global common_description %{expand:
A small Python module for determining appropriate platform-specific dirs, e.g.
a "user data dir".}

Name: python-%{srcname}
Version: 2.6.0
Release: 1%{?dist}
Version: 2.3.0
Release: 3%{?dist}
Summary: Python module for determining appropriate platform-specific dirs
License: MIT
URL: https://github.com/platformdirs/platformdirs
@ -21,8 +19,6 @@ BuildArch: noarch @@ -21,8 +19,6 @@ BuildArch: noarch
%package -n python3-%{srcname}
Summary: %{summary}
BuildRequires: python3-devel
# RHBZ#1712140, RHBZ#2076994
BuildRequires: pyproject-rpm-macros >= 1.2.0


%description -n python3-%{srcname} %{common_description}
@ -30,13 +26,14 @@ BuildRequires: pyproject-rpm-macros >= 1.2.0 @@ -30,13 +26,14 @@ BuildRequires: pyproject-rpm-macros >= 1.2.0

%prep
%autosetup -n %{srcname}-%{version}

# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
sed -r -i '/^[[:blank:]]*"pytest-cov\b/d' pyproject.toml
# No need to measure coverage
sed -i '/pytest-cov/d' setup.cfg


%generate_buildrequires
%pyproject_buildrequires -w %{?with_tests:-x test}
# Upstream uses tox, but we don't use it, to avoid a build dependency loop
# platformdirs <- virtualenv <- tox
%pyproject_buildrequires -x test


%build
@ -49,40 +46,15 @@ sed -r -i '/^[[:blank:]]*"pytest-cov\b/d' pyproject.toml @@ -49,40 +46,15 @@ sed -r -i '/^[[:blank:]]*"pytest-cov\b/d' pyproject.toml


%check
%if %{with tests}
# Upstream uses tox, but we don’t use it, to avoid a build dependency loop
# platformdirs <- virtualenv <- tox
%pytest
%else
%pyproject_check_import
%endif


%files -n python3-%{srcname} -f %{pyproject_files}
%license LICENSE
%license LICENSE.txt
%doc README.rst CHANGES.rst


%changelog
* Thu Dec 08 2022 Lumír Balhar <lbalhar@redhat.com> - 2.6.0-1
- Update to 2.6.0 (rhbz#2151438)

* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.5.2-2
- Rebuilt for Python 3.11

* Thu Apr 21 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.2-1
- Update to 2.5.2; accommodate upstream’s switch to hatchling build backend
- Add a build conditional for the tests

* Tue Mar 22 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.1-1
- Update to 2.5.1 (close RHBZ#2007878)

* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Sat Dec 04 2021 Carl George <carl@george.computer> - 2.3.0-3
- Use "test" extra to generate buildrequires
- Run tests with %%pytest

Loading…
Cancel
Save