diff --git a/.gitignore b/.gitignore index bcf8123..f69e21a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /lazy_loader-0.1rc2.tar.gz /lazy_loader-0.1rc3.tar.gz +/lazy_loader-0.1.tar.gz diff --git a/python-lazy-loader.spec b/python-lazy-loader.spec index 9e89f7e..d1c10d8 100644 --- a/python-lazy-loader.spec +++ b/python-lazy-loader.spec @@ -1,16 +1,14 @@ %bcond_without tests Name: python-lazy-loader -Version: 0.1~rc3 +Version: 0.1 Release: %autorelease Summary: Populate library namespace without incurring immediate import costs License: BSD-3-Clause URL: https://github.com/scientific-python/lazy_loader -# As of 0.1~rc3, the PyPI project does not include a source distribution, so we -# must use the GitHub tarball. -%global pypi_version %(echo '%{version}' | tr -d '~') -Source0: %{url}/archive/v%{pypi_version}/lazy_loader-%{pypi_version}.tar.gz +# The PyPI sdist lacks tests, so we must use the GitHub archive. +Source0: %{pypi_source lazy_loader} BuildArch: noarch @@ -45,7 +43,7 @@ Summary: %{summary} %prep -%autosetup -n lazy_loader-%{pypi_version} +%autosetup -n lazy_loader-%{version} %generate_buildrequires diff --git a/sources b/sources index ce36145..fd5daed 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lazy_loader-0.1rc3.tar.gz) = daa52bfaa6680278717885d6ac3c603f915e47b6fff0a53209afd0acac49cf2d50a38ac13f0ffeb2db9833355e0bcbb4b14f0710e5afe1f97d3ef6d2c1fcbb96 +SHA512 (lazy_loader-0.1.tar.gz) = 5ec92173a7ed6161d2754e5162ed93e091dbb87d0f707deb3c06391c1ad59f12c6f6fbee6646ef9421715e9e86e1622c29cc81625bf63311bcd3d9b97cf52610