## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-aws-sam-translator Summary: Transform SAM templates into AWS CloudFormation templates Version: 1.59.0 Release: %autorelease License: Apache-2.0 URL: https://github.com/aws/serverless-application-model # We use the GitHub tarball instead of the PyPI tarball to get documentation # and tests. Source0: %{url}/archive/v%{version}/serverless-application-model-%{version}.tar.gz BuildArch: noarch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: python3-devel %global common_description %{expand: %{summary}. AWS Serverless Application Model (SAM) is an open-source framework for building serverless applications.} %description %{common_description} %package -n python3-aws-sam-translator Summary: %{summary} # The bundled version is quite close to upstream. It has some “ignore” type # annotations added, some if statements were reordered (apparently to put this # library’s common case first for performance), and an LRU cache layer was # added. # # When the type annotations were the only difference, we unbundled this as a # downstream patch. Now we bundle again, but we have asked upstream about a # path to unbundling—a request which was mandated by # https://docs.fedoraproject.org/en-US/packaging-guidelines/#bundling: # # Path to using upstream py27hash as a dependency? # https://github.com/aws/serverless-application-model/issues/2815 # # Upstream refused: “Unfortunately due to how the SAM transform is consumed # this would be a little tricky, so unless there's customer impact, it's not # something we're looking to change at this time.” Provides: bundled(python3dist(py27hash)) = 1.0.2 Obsoletes: python-aws-sam-translator-doc < 1.54.0-1 %description -n python3-aws-sam-translator %{common_description} %prep %autosetup -n serverless-application-model-%{version} # Comment out a few dev dependencies that we will not use. Then, loosen # selected semver-pinned dev dependencies, allowing newer versions. sed -r -i \ -e 's/^(black|coverage|flake8|pylint|pytest-cov|tox)\b/#\1/' \ -e 's/^(mypy|boto3-stubs|types-.*)\b/#\1/' \ -e 's/^(click|parameterized|pytest(-(rerunfailures|xdist))?)~=/\1>=/' \ -e 's/^(pyyaml|requests|tenacity)~=/\1>=/' \ requirements/dev.txt # Patch out coverage sed -r -i '/^addopts[[:blank:]]*=/d' pytest.ini %generate_buildrequires %pyproject_buildrequires -x dev %build %pyproject_wheel %install %pyproject_install %pyproject_save_files samtranslator # Bug: Source directory bin/ is installed into site-packages # https://github.com/aws/serverless-application-model/issues/2588 rm -rvf '%{buildroot}%{python3_sitelib}/bin' %check # See Makefile target “test”. We cannot run the interaction tests because they # interact with AWS. AWS_DEFAULT_REGION=us-east-1 %pytest -k "${k-}" -n auto %files -n python3-aws-sam-translator -f %{pyproject_files} # pyproject-rpm-macros handles LICENSE/NOTICE/THIRD_PARTY_LICENSES; verify with # “rpm -qL -p …” %doc CODE_OF_CONDUCT.md %doc CONTRIBUTING.md %doc DESIGN.md %doc HOWTO.md %doc README.md # Contains a handful of reStructuredText files: %doc docs/ %changelog * Thu Feb 09 2023 Benjamin A. Beasley 1.59.0-1 - Update to 1.59.0 (close RHBZ#2168407) * Wed Jan 25 2023 Benjamin A. Beasley 1.58.1-2 - Record upstream refusal to pursue unbundling py27hash * Wed Jan 25 2023 Benjamin A. Beasley 1.58.1-1 - Update to 1.58.1 (close RHBZ#2163574) * Wed Jan 25 2023 Benjamin A. Beasley 1.58.0-2 - Drop 32-bit support; base package is now noarch * Wed Jan 25 2023 Benjamin A. Beasley 1.58.0-1 - Update to 1.58.0 * Fri Jan 20 2023 Fedora Release Engineering 1.57.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jan 12 2023 Benjamin A. Beasley 1.57.0-1 - Update to 1.57.0 (close RHBZ#2160531) * Fri Jan 06 2023 Benjamin A. Beasley 1.56.0-1 - Update to 1.56.0 (close RHBZ#2158630) * Wed Dec 21 2022 Benjamin A. Beasley 1.55.0-2 - Rely on PYTEST_XDIST_AUTO_NUM_WORKERS * Wed Nov 30 2022 Benjamin A. Beasley 1.55.0-1 - Update to 1.55.0 (close RHBZ#2149189) * Fri Nov 11 2022 Benjamin A. Beasley 1.54.0-1 - Update to 1.54.0 (close RHBZ#2141855) - Merge the -doc subpackage back into the base package since upstream no longer supports generating documentation with Sphinx * Fri Nov 11 2022 Benjamin A. Beasley 1.53.0-3 - Use an improved patch for jsonschema 4.x support * Fri Nov 11 2022 Benjamin A. Beasley 1.53.0-2 - Unpin pytest-xdist to allow major version 3 * Fri Oct 14 2022 Benjamin A. Beasley 1.53.0-1 - Update to 1.53.0 (fix RHBZ#2133876) * Fri Oct 07 2022 Benjamin A. Beasley 1.52.0-1 - Update to 1.52.0 (close RHBZ#2132824) * Fri Sep 16 2022 Benjamin A. Beasley 1.51.0-1 - Update to 1.51.0 (close RHBZ#2126554) * Tue Aug 23 2022 Benjamin A. Beasley 1.50.0-2 - Parallelize sphinx-build * Fri Aug 19 2022 Benjamin A. Beasley 1.50.0-1 - Update to 1.50.0 (close RHBZ#2119149) * Thu Aug 11 2022 Benjamin A. Beasley 1.49.0-1 - Update to 1.49.0 (close RHBZ#2116533) * Thu Aug 11 2022 Benjamin A. Beasley 1.48.0-2 - Update License to SPDX * Tue Jul 26 2022 Benjamin A. Beasley 1.48.0-1 - Update to 1.48.0 (close RHBZ#2111073) * Fri Jul 22 2022 Fedora Release Engineering 1.47.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 12 2022 Benjamin A. Beasley 1.47.0-1 - Update to 1.47.0 (close RHBZ#2106488) * Thu Jul 07 2022 Benjamin A. Beasley 1.46.0-5 - Run tests in parallel * Tue Jun 28 2022 Benjamin A. Beasley 1.46.0-4 - Allow jsonschema 4.x (fix RHBZ#2101856) * Wed Jun 15 2022 Python Maint 1.46.0-3 - Rebuilt for Python 3.11 * Tue Jun 14 2022 Benjamin A. Beasley 1.46.0-2 - Unpin dev dependency on “parameterized” * Tue Jun 07 2022 Benjamin A. Beasley 1.46.0-1 - Update to 1.46.0 (close RHBZ#2094478) * Tue May 03 2022 Benjamin A. Beasley 1.45.0-2 - Work around a failing test on 32-bit builders * Thu Apr 07 2022 Benjamin A. Beasley 1.45.0-1 - Update to 1.45.0 (close RHBZ#2072691) * Tue Mar 29 2022 Benjamin A. Beasley 1.44.0-1 - Update to 1.44.0 (close RHBZ#2069359) * Thu Mar 24 2022 Benjamin A. Beasley 1.43.0-1 - Update to 1.43.0 (close RHBZ#2066966) * Fri Jan 21 2022 Fedora Release Engineering 1.42.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jan 06 2022 Benjamin A. Beasley 1.42.0-4 - Remove PyPI mock dependency (upstream PR#2184) * Fri Dec 17 2021 Benjamin A. Beasley 1.42.0-3 - Patch out pytest-cov build dependency * Fri Dec 17 2021 Benjamin A. Beasley 1.42.0-2 - Add missing license files in -doc subpackage * Wed Dec 15 2021 Benjamin A. Beasley 1.42.0-1 - Initial package (close RHBZ#2030436)