From 109f568eb1937886e32f8e438e66b050bf85e2ba Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Feb 02 2022 14:53:26 +0000 Subject: Update to 0.18.0 (close RHBZ#2044099) --- diff --git a/.gitignore b/.gitignore index 2d3fd23..379248f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /starlette-0.16.0.tar.gz /starlette-0.17.0.tar.gz /starlette-0.17.1.tar.gz +/starlette-0.18.0.tar.gz diff --git a/python-starlette.spec b/python-starlette.spec index b966136..dd56590 100644 --- a/python-starlette.spec +++ b/python-starlette.spec @@ -1,5 +1,5 @@ Name: python-starlette -Version: 0.17.1 +Version: 0.18.0 Release: %autorelease Summary: The little ASGI library that shines @@ -10,24 +10,6 @@ BuildArch: noarch BuildRequires: python3-devel -# These BR’s cannot be generated because they appear only in requirements.txt. -# We do not need the “Optionals”, which correspond to the “full” extra, nor -# those for “Packaging”, which are for uploading to PyPI, but we do need those -# for “Testing”, except linters, formatters, mypy: -# - autoflake -# - black==20.8b1 -# - coverage>=5.3 -# - flake8 -# - isort==5.* -# - mypy -# - types-requests -# - types-contextvars -# - types-PyYAML -# - types-dataclasses -BuildRequires: python3dist(databases[sqlite]) -BuildRequires: python3dist(pytest) -BuildRequires: python3dist(trio) - Obsoletes: python-starlette-doc < 0.16.0-10 %global common_description %{expand: @@ -62,14 +44,37 @@ Summary: %{summary} %prep %autosetup -n starlette-%{version} + # Remove Gitter chat app from documentation; it relies on pre-compiled/minified # JavaScript, which is not acceptable in Fedora. Since we are not building # documentation, we do this very bluntly: rm -vrf docs/js +# Produce a filtered version of requirements.txt, which contains testing +# dependencies. +# +# We do not need the “Optionals”, which correspond to the “full” extra we are +# already BR’ing; those for “Packaging”, which are for uploading to PyPI; or +# those for “Documentation”, so long as we are not able to build and package +# it; but we do need those for “Testing”, except linters, formatters, coverage +# analysis, and mypy-related dependencies. +# +# Loosen exact-version dependencies. +awk ' +!NF { next } +$1 == "#" { + o = $2 !~ /^(Optionals|Documentation|Packaging)$/ + next +} +o { + if ($1 ~ /^(black|coverage|(auto)?flake8?|isort|mypy|types-)/) { next } + print $0 +} +' requirements.txt | sed -r 's/==/>=/' | tee requirements-filtered.txt + %generate_buildrequires -%pyproject_buildrequires -x full +%pyproject_buildrequires -x full requirements-filtered.txt %build diff --git a/sources b/sources index 02ec7c8..f62b3de 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (starlette-0.17.1.tar.gz) = a8f8cee0dc40d19eab62996f4ef1230fa758375fa9b51e15eae5c906a89b76519ebe4e423aa567d73e4c055cef63e9bbae11b47d4372e28b615f6edaf22a06a7 +SHA512 (starlette-0.18.0.tar.gz) = 521d39c1eec818250da3f2dc24cd2fb08393b76e6314a9bd5f3e520bdfa4652ae4ace5876b7e7f3a7ddc5540160e1086997a40b86a1b1bfd694c6aa1abde9106